.cookie-preferences-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7, 17, 31, .58);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cookie-preferences-backdrop[hidden] {
    display: none;
}

.cookie-preferences-modal {
    position: relative;
    width: min(100%, 540px);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(207, 161, 92, .35);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(7, 17, 31, .3);
    animation: cookiePreferencesIn .22s ease-out both;
}

.cookie-preferences-head {
    padding: 28px 30px 22px;
    color: #fff;
    background: linear-gradient(135deg, #07111f, #17283b);
    border-bottom: 3px solid #cfa15c;
}

.cookie-preferences-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #cfa15c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cookie-preferences-head h2 {
    margin: 0;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1.2;
}

.cookie-preferences-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    cursor: pointer;
}

.cookie-preferences-close:hover {
    color: #07111f;
    background: #cfa15c;
}

.cookie-preferences-body {
    padding: 24px 30px 28px;
}

.cookie-preferences-body>p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.55;
}

.cookie-preference-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-top: 1px solid #e8e6e1;
}

.cookie-preference-copy strong,
.cookie-preference-copy small {
    display: block;
}

.cookie-preference-copy strong {
    color: #07111f;
    font-size: .88rem;
}

.cookie-preference-copy small {
    margin-top: 4px;
    color: #64748b;
    font-size: .72rem;
}

.cookie-preference-status {
    flex: 0 0 auto;
    color: #a97d36;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cookie-preferences-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.cookie-preferences-actions button {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .76rem;
    font-weight: 800;
}

.cookie-preferences-secondary {
    color: #07111f;
    background: #fff;
    border: 1px solid #d8d4cc;
}

.cookie-preferences-primary {
    color: #07111f;
    background: #cfa15c;
    border: 1px solid #cfa15c;
}

.cookie-preferences-secondary:hover,
.cookie-preferences-primary:hover {
    filter: brightness(.95);
}

@keyframes cookiePreferencesIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.footer-cookie-settings {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.footer-cookie-settings:hover {
    color: #cfa15c;
}

.cookie-preference-toggle {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 24px;
    margin: 0;
    cursor: pointer;
}

.cookie-preference-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cookie-preference-toggle>span[aria-hidden="true"] {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 20px;
    transition: background .2s ease;
}

.cookie-preference-toggle>span[aria-hidden="true"]::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(7, 17, 31, .25);
    content: "";
    transition: transform .2s ease;
}

.cookie-preference-toggle input:checked+span[aria-hidden="true"] {
    background: #cfa15c;
}

.cookie-preference-toggle input:checked+span[aria-hidden="true"]::after {
    transform: translateX(18px);
}

@media (max-width: 575px) {
    .cookie-preferences-backdrop {
        padding: 14px;
    }

    .cookie-preferences-head,
    .cookie-preferences-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cookie-preferences-head h2 {
        padding-right: 26px;
        font-size: 1.2rem;
    }

    .cookie-preferences-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-preferences-actions button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-preferences-modal {
        animation: none;
    }
}