/*
 * Cookie consent banner + preference modal. No non-essential script on
 * any page may run until the visitor has explicitly accepted — see
 * cookie-consent.js. Reuses the homepage's design tokens (variables.css)
 * so it looks native on any public page it's included on.
 */
.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    background: var(--navy-raised, #11172A);
    border-top: 1px solid var(--border, rgba(255,255,255,.08));
    color: var(--white, #F0F4FF);
    font-family: var(--font-body, 'Inter', sans-serif);
    padding: 20px 24px;
    box-shadow: 0 -8px 24px rgba(0,0,0,.35);
}

.cookie-consent-banner.is-visible {
    display: block;
}

.cookie-consent-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

.cookie-consent-text {
    flex: 1 1 360px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--slate, #8892AA);
    margin: 0;
}

.cookie-consent-text a {
    color: var(--indigo-light, #8B6FFF);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}

.cookie-btn {
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: var(--radius-sm, 6px);
    border: 1px solid var(--border, rgba(255,255,255,.08));
    background: transparent;
    color: var(--white, #F0F4FF);
    cursor: pointer;
    white-space: nowrap;
}

.cookie-btn:hover {
    border-color: var(--border-strong, rgba(107,72,255,.4));
}

.cookie-btn-primary {
    background: var(--indigo, #6B48FF);
    border-color: var(--indigo, #6B48FF);
}

.cookie-btn-primary:hover {
    background: var(--indigo-dark, #4A2FCC);
}

.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 15, 30, .6);
    padding: 20px;
}

.cookie-consent-overlay.is-visible {
    display: flex;
}

.cookie-consent-modal {
    width: 100%;
    max-width: 480px;
    background: var(--navy-raised, #11172A);
    border: 1px solid var(--border, rgba(255,255,255,.08));
    border-radius: var(--radius-md, 12px);
    padding: 28px;
    color: var(--white, #F0F4FF);
    font-family: var(--font-body, 'Inter', sans-serif);
}

.cookie-consent-modal h3 {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    margin: 0 0 12px;
    font-size: 18px;
}

.cookie-consent-modal p {
    font-size: 14px;
    color: var(--slate, #8892AA);
    line-height: 1.5;
    margin: 0 0 20px;
}

.cookie-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--border, rgba(255,255,255,.08));
}

.cookie-category:first-of-type {
    border-top: none;
}

.cookie-category-label {
    font-size: 14px;
    font-weight: 500;
}

.cookie-category-desc {
    font-size: 13px;
    color: var(--slate, #8892AA);
    margin: 4px 0 0;
}

.cookie-toggle {
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 22px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-track {
    position: absolute;
    inset: 0;
    background: var(--border, rgba(255,255,255,.08));
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease;
}

.cookie-toggle-track::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white, #F0F4FF);
    transition: transform .15s ease;
}

.cookie-toggle input:checked + .cookie-toggle-track {
    background: var(--indigo, #6B48FF);
}

.cookie-toggle input:checked + .cookie-toggle-track::before {
    transform: translateX(18px);
}

.cookie-toggle input:disabled + .cookie-toggle-track {
    background: var(--indigo, #6B48FF);
    opacity: .5;
    cursor: not-allowed;
}

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

.cookie-preferences-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}
