/* Cookie baner (bio inline u inc/cookies.html) */
#cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: #0a0a09;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--tss-r);
    padding: 24px 24px 20px;
    font-family: Georgia, serif;
    color: var(--tss-tx);
    box-shadow: 0 16px 60px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03);
    z-index: 9999;
    animation: cookieSlideUp .3s ease-out;
}

@keyframes cookieSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.cookie-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--tss-rsm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.cookie-title {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,.5);
    letter-spacing: .01em;
}

.cookie-desc {
    font-size: 13px;
    color: rgba(255,255,255,.25);
    line-height: 1.6;
    margin-bottom: 18px;
}

.cookie-desc a {
    color: rgba(255,255,255,.35);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transition: color var(--tss-dur), border-color var(--tss-dur);
}
.cookie-desc a:hover {
    color: rgba(255,255,255,.55);
    border-color: rgba(255,255,255,.2);
}

.cookie-divider {
    height: 1px;
    background: rgba(255,255,255,.04);
    margin: 0 0 16px;
}

.cookie-toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: var(--tss-rsm);
    background: rgba(255,255,255,.02);
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,.04);
    transition: border-color var(--tss-dur);
}
.cookie-toggle-container:hover {
    border-color: rgba(255,255,255,.07);
}

.toggle-label {
    color: rgba(255,255,255,.4);
    font-size: 13px;
    font-family: Georgia, serif;
}
.toggle-label-sub {
    color: rgba(255,255,255,.18);
    font-size: 11px;
    font-family: Georgia, serif;
}

.toggle-locked {
    font-size: 11px;
    color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 4px;
    padding: 2px 7px;
    letter-spacing: .03em;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 23px;
    flex-shrink: 0;
}
.cookie-switch input { display: none; }
.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 100px;
    transition: background var(--tss-dur), border-color var(--tss-dur);
}
.cookie-slider:before {
    content: "";
    position: absolute;
    height: 15px; width: 15px;
    left: 3px; bottom: 3px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    transition: transform var(--tss-dur), background var(--tss-dur);
}
.cookie-switch input:checked + .cookie-slider {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.14);
}
.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(19px);
    background: rgba(255,255,255,.55);
}
.cookie-switch input:disabled + .cookie-slider { cursor: not-allowed; opacity: .4; }
.cookie-switch input:disabled:checked + .cookie-slider {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.08);
}
.cookie-switch input:disabled:checked + .cookie-slider:before {
    background: rgba(255,255,255,.3);
}

.cookie-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

#cookie-consent-banner button {
    border: none;
    border-radius: var(--tss-rsm);
    cursor: pointer;
    font-size: 13px;
    font-family: Georgia, serif;
    letter-spacing: .02em;
    padding: 9px 14px;
    transition: background var(--tss-dur), transform var(--tss-dur), color var(--tss-dur);
    white-space: nowrap;
}

#confirmSelection {
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.35);
    border: 1px solid rgba(255,255,255,.07) !important;
    flex: 1;
}
#confirmSelection:hover {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.55);
    transform: translateY(-1px);
}

#acceptCookies {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.12) !important;
    flex: 1.5;
}
#acceptCookies:hover {
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.8);
    transform: translateY(-1px);
}

#rejectCookies {
    background: transparent;
    color: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.04) !important;
    flex: 1;
}
#rejectCookies:hover {
    color: rgba(255,255,255,.3);
    border-color: rgba(255,255,255,.08) !important;
    transform: translateY(-1px);
}

#cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,.4);
    color: rgba(255,255,255,6);
    border: 1px solid rgba(0,0,0,.6);
    padding: 8px 14px;
    border-radius: var(--tss-rsm);
    font-size: 13px;
    font-family: Georgia, serif;
    cursor: pointer;
    z-index: 9998;
    display: none;
    transition: background var(--tss-dur), color var(--tss-dur);
}
#cookie-settings-btn:hover {
    background: rgba(0,0,0,.7);
}

@media (max-width: 480px) {
    .cookie-actions { flex-direction: column; }
    #cookie-consent-banner button { width: 100%; }
}
