/* Cookie consent banner — matches the site's black/white theme */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 0px;
    z-index: 99998;
    background: rgba(10, 10, 14, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: #ededed;
    padding: 22px 26px;
    font-family: "Inter", sans-serif;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: cookieSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    line-height: 0;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.cookie-banner__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.cookie-banner__body {
    max-width: 1100px;
    padding-right: 24px;
}

.cookie-banner__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.cookie-banner__link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    transition: text-decoration-color 0.2s;
    margin-left: 4px;
}

.cookie-banner__link:hover {
    text-decoration-color: #fff;
}

.cookie-banner__prefs-toggle {
    background: transparent;
    border: none;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 0 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    transition: text-decoration-color 0.2s;
}

.cookie-banner__prefs-toggle:hover {
    text-decoration-color: #fff;
}

.cookie-banner__prefs-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s;
    margin-top: -3px;
}

.cookie-banner__prefs-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.cookie-banner__prefs {
    display: none;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 14px;
}

.cookie-banner__prefs.is-open {
    display: flex;
}

/* Toggle switches — site monochrome theme */
.cookie-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

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

.cookie-switch__track {
    position: relative;
    width: 34px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    transition: background 0.25s, border-color 0.25s;
    flex-shrink: 0;
}

.cookie-switch__thumb {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 14px;
    height: 14px;
    background: #ededed;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2), background 0.25s;
}

.cookie-switch input:checked + .cookie-switch__track {
    background: #fff;
    border-color: #fff;
}

.cookie-switch input:checked + .cookie-switch__track .cookie-switch__thumb {
    transform: translateX(16px);
    background: #000;
}

.cookie-switch input:focus-visible + .cookie-switch__track {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 2px;
}

.cookie-switch__label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* Action buttons — match site .qtov-cta and .btn_purple_bg_black patterns */
.cookie-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    min-width: 200px;
    padding-right: 30px;
}

.cookie-btn {
    border-radius: 8px;
    padding: 9px 24px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    white-space: nowrap;
    text-align: center;
}

/* Primary: white filled (matches .qtov-cta) */
.cookie-btn--accept {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.cookie-btn--accept:hover {
    background: transparent;
    color: #fff;
}

/* Secondary: black with white border (matches .btn_purple_bg_black) */
.cookie-btn--save {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.cookie-btn--save:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Tertiary: subtle ghost button */
.cookie-btn--reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn--reject:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 900px) {
    .cookie-banner__close {
    top: 10px;
    right: 10px;
    }
    .cookie-banner {
        grid-template-columns: 1fr;
        padding: 16px 16px 22px 16px;
        left: 12px;
        right: 12px;
        bottom: 2px;
    }
    .cookie-banner__body {
        padding-right: 25px;
    }
    .cookie-banner__actions {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
        padding: 0;
    }
    .cookie-btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 560px) {
    .cookie-banner__prefs {
        gap: 14px;
    }
    .cookie-banner__actions {
        flex-direction: column;
    }
}
