/* Shared consent UI; independent of site theme */
.cookie-banner, .cookie-preferences { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height: 1.5; text-align: left; }
.cookie-banner *, .cookie-preferences * { box-sizing: border-box; }
/* ==========================================================
   NEED ONE — COOKIE / CONSENT UI
   ========================================================== */

.cookie-banner[hidden],
.cookie-overlay[hidden],
.cookie-preferences[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 5000;
    max-width: 1180px;
    margin: 0 auto;
    border: 1px solid #D7E3EC;
    border-top: 4px solid #E8892F;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 18px 55px rgba(0,52,95,0.18);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.cookie-banner-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    padding: 22px 24px;
}

.cookie-kicker {
    display: block;
    margin-bottom: 6px;
    color: #E8892F;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.cookie-banner h2,
.cookie-preferences h2 {
    margin: 0;
    color: #00345F;
    font-size: 22px;
    line-height: 1.08;
    letter-spacing: -0.5px;
}

.cookie-banner p,
.cookie-preferences p {
    margin: 8px 0 0;
    color: #647786;
    font-size: 13px;
    line-height: 1.55;
}

.cookie-banner p a {
    color: #00467F;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    min-height: 42px;
    padding: 11px 15px;
    border: 1px solid transparent;
    border-radius: 0;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-btn-primary {
    background: #E8892F;
    border-color: #E8892F;
    color: #FFFFFF;
}

.cookie-btn-primary:hover,
.cookie-btn-primary:focus-visible {
    background: #D9771F;
    border-color: #D9771F;
}

.cookie-btn-secondary {
    background: #FFFFFF;
    border-color: #00467F;
    color: #00467F;
}

.cookie-btn-secondary:hover,
.cookie-btn-secondary:focus-visible {
    background: #F6F9FB;
}

.cookie-btn-link {
    min-height: auto;
    padding: 8px 4px;
    background: transparent;
    border: 0;
    color: #00467F;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 5100;
    background: rgba(0,31,56,0.56);
}

.cookie-preferences {
    position: fixed;
    inset: 0;
    z-index: 5200;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-y: auto;
}

.cookie-preferences-card {
    width: min(680px, 100%);
    border-top: 5px solid #E8892F;
    background: #FFFFFF;
    box-shadow: 0 24px 80px rgba(0,31,56,0.28);
}

.cookie-preferences-heading {
    padding: 26px 28px 20px;
    border-bottom: 1px solid #D7E3EC;
}

.cookie-preference-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid #D7E3EC;
    cursor: pointer;
}

.cookie-preference-row strong {
    display: block;
    color: #00345F;
    font-size: 14px;
}

.cookie-preference-row p {
    max-width: 500px;
    margin-top: 5px;
    font-size: 12px;
}

.cookie-preference-required {
    cursor: default;
    background: #F6F9FB;
}

.cookie-always-on {
    color: #00467F;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    white-space: nowrap;
}

.cookie-switch {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 26px;
    flex: 0 0 auto;
}

.cookie-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-switch span {
    position: absolute;
    inset: 0;
    border: 1px solid #9CB6C7;
    background: #DDE7EE;
    transition: 0.2s ease;
}

.cookie-switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(0,52,95,0.24);
    transition: transform 0.2s ease;
}

.cookie-switch input:checked + span {
    border-color: #E8892F;
    background: #E8892F;
}

.cookie-switch input:checked + span::after {
    transform: translateX(22px);
}

.cookie-switch input:focus-visible + span {
    outline: 2px solid #00467F;
    outline-offset: 3px;
}

.cookie-preferences-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 22px 28px 26px;
}

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

.footer-cookie-settings {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
    color: #FFFFFF;
}

@media (max-width: 820px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-banner-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .cookie-banner-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .cookie-banner {
        left: 0;
        right: 0;
        bottom: 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
    }

    .cookie-banner h2,
    .cookie-preferences h2 {
        font-size: 20px;
    }

    .cookie-banner-actions,
    .cookie-preferences-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-preferences {
        padding: 12px;
        align-items: end;
    }

    .cookie-preferences-heading,
    .cookie-preference-row,
    .cookie-preferences-actions {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cookie-preference-row {
        gap: 16px;
    }
}
