/* ── Cookie Consent Banner & Preferences Modal ── */
#rsw-cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 100;
    background: #ffffff;
    border: 1px solid #d7e7ee;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(8, 35, 63, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 300ms ease, transform 300ms ease;
    font-family: 'Inter', sans-serif;
}
#rsw-cookie-banner.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
@media (min-width: 768px) {
    #rsw-cookie-banner {
        left: auto;
        right: 24px;
        width: 380px;
    }
}
@media (max-width: 767px) {
    #rsw-cookie-banner {
        /* Avoid covering the 56px high mobile sticky CTA */
        bottom: 76px;
    }
}

/* Modal backdrop overlay */
#rsw-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    padding: 16px;
    font-family: 'Inter', sans-serif;
}
#rsw-cookie-modal.is-active {
    display: flex;
}
#rsw-cookie-modal-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 24px;
    box-shadow: 0 20px 48px rgba(8, 35, 63, 0.22);
    border: 1px solid #dbeafe;
}

/* Accessible Toggle Switches */
#rsw-cookie-modal label div {
    position: relative;
    width: 36px;
    height: 20px;
    background-color: #cbd5e1;
    border-radius: 9999px;
    transition: background-color 200ms;
}
#rsw-cookie-modal label div::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    border-radius: 9999px;
    transition: transform 200ms;
}
#rsw-cookie-modal label input:checked + div {
    background-color: #f97316; /* Brand secondary orange */
}
#rsw-cookie-modal label input:checked + div::after {
    transform: translateX(16px);
}
#rsw-cookie-modal label input:focus-visible + div {
    outline: 2px solid #00288e;
    outline-offset: 2px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
