.thps-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    width: 100%;
    max-width: none;
    margin: 0;
    background: #fff;
    border: none;
    border-top: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    padding: 5px 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 5px 10px;
}

.thps-cookie-banner[hidden] {
    display: none !important;
}

.thps-cookie-banner__body {
    flex: 1 1 280px;
    min-width: 0;
}

.thps-cookie-banner__title {
    margin: 0 0 4px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #111827;
}

.thps-cookie-banner__text {
    margin: 0;
    font-size: 0.70rem;
    line-height: 1.45;
    color: #4b5563;
}

.thps-cookie-banner__text a {
    color: #2A2AEA;
    text-decoration: underline;
    font-size: inherit;
}

.thps-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.thps-cookie-btn {
    border: none;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
}

.thps-cookie-btn--primary {
    background: #2A2AEA;
    color: #fff;
}

.thps-cookie-btn--primary:hover {
    background: #1f20c4;
}

.thps-cookie-btn--secondary {
    background: #f3f4f6;
    color: #111827;
}

.thps-cookie-btn--secondary:hover {
    background: #e5e7eb;
}

.thps-cookie-btn--ghost {
    background: transparent;
    color: #2A2AEA;
    text-decoration: underline;
    padding-left: 0;
    padding-right: 0;
}

.thps-cookie-modal-open {
    overflow: hidden;
}

.thps-cookie-settings {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.thps-cookie-settings[hidden] {
    display: none !important;
}

.thps-cookie-settings__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
}

.thps-cookie-settings__panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.thps-cookie-settings__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.thps-cookie-settings__header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.thps-cookie-settings__close {
    border: none;
    background: #f3f4f6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
}

.thps-cookie-category {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
}

.thps-cookie-category h3 {
    margin: 0 0 6px;
    font-size: 0.95rem;
}

.thps-cookie-category p {
    margin: 0 0 10px;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.45;
}

.thps-cookie-category label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.thps-cookie-category--locked label {
    color: #9ca3af;
}

.thps-cookie-settings__footer {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.thps-cookie-form-notice {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 14px;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 12px;
}

.thps-cookie-form-notice[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .thps-cookie-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
    }

    .thps-cookie-banner__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .thps-cookie-btn--ghost {
        margin-left: auto;
    }
}