.consent-banner,
.consent-modal {
    color: #0f172a;
    font-family: inherit;
}

.consent-modal-open {
    overflow: hidden;
}

.consent-banner[hidden],
.consent-modal[hidden] {
    display: none;
}

.consent-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: auto;
    z-index: 1200;
    width: min(520px, calc(100vw - 2rem));
}

.consent-banner__content {
    display: block;
    padding: 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 38px rgba(11, 31, 51, 0.12);
    backdrop-filter: blur(10px);
}

.consent-banner__title,
.consent-modal__eyebrow {
    margin: 0 0 0.35rem;
    color: var(--accent, #12a6a6);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.consent-banner__title {
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
}

.consent-banner__text,
.consent-modal__intro,
.consent-preference p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.consent-banner__text {
    font-size: 0.84rem;
    line-height: 1.48;
}

.consent-banner__link {
    display: inline-flex;
    margin-top: 0.35rem;
    color: var(--navy, #0b1f33);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.consent-banner__link:hover,
.consent-banner__link:focus-visible {
    color: var(--accent, #12a6a6);
}

.consent-banner__actions,
.consent-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.consent-banner__actions {
    justify-content: flex-start;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    line-height: 1;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.consent-banner .consent-btn {
    min-height: 34px;
    padding: 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 800;
}

.consent-banner .consent-btn--primary {
    box-shadow: 0 8px 18px rgba(18, 166, 166, 0.18);
}

.consent-banner .consent-btn--muted {
    background: #f1f5f9;
    color: #334155;
}

.consent-btn:hover,
.consent-btn:focus-visible {
    transform: translateY(-1px);
}

.consent-btn:focus-visible,
.consent-modal__close:focus-visible,
.consent-preference--toggle:focus-within {
    outline: 3px solid rgba(18, 166, 166, 0.34);
    outline-offset: 3px;
}

.consent-btn--primary {
    background: var(--accent, #12a6a6);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(18, 166, 166, 0.22);
}

.consent-btn--outline {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.14);
    color: var(--navy, #0b1f33);
}

.consent-btn--muted {
    background: #e2e8f0;
    color: #334155;
}

.consent-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 31, 51, 0.62);
}

.consent-modal__panel {
    position: relative;
    width: min(680px, 100%);
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
    padding: 1.4rem;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.consent-modal__panel h2,
.consent-preference h3 {
    margin: 0;
    color: var(--navy, #0b1f33);
}

.consent-modal__panel h2 {
    margin-bottom: 0.55rem;
    font-size: clamp(1.55rem, 4vw, 2rem);
}

.consent-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
    font-size: 1.35rem;
}

.consent-preference {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: #f8fafc;
}

.consent-status {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: rgba(18, 166, 166, 0.12);
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 800;
}

.consent-preference--toggle {
    cursor: pointer;
}

.consent-preference--toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consent-switch {
    position: relative;
    width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color 180ms ease;
}

.consent-switch::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.24);
    transition: transform 180ms ease;
}

.consent-preference--toggle input:checked + .consent-switch {
    background: var(--accent, #12a6a6);
}

.consent-preference--toggle input:checked + .consent-switch::after {
    transform: translateX(24px);
}

.consent-modal__actions {
    margin-top: 1.2rem;
}

@media (max-width: 720px) {
    .consent-banner {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        width: auto;
    }

    .consent-banner__content {
        padding: 0.85rem;
    }

    .consent-banner__actions {
        justify-content: stretch;
    }

    .consent-banner .consent-btn {
        width: 100%;
    }

    .consent-preference {
        grid-template-columns: 1fr;
    }

    .consent-modal__actions {
        justify-content: stretch;
    }

    .consent-modal__actions .consent-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .consent-btn,
    .consent-switch,
    .consent-switch::after {
        transition: none;
    }

    .consent-btn:hover,
    .consent-btn:focus-visible {
        transform: none;
    }
}
