/* FN+ cookie consent and analytics preferences */
.cookie-consent-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    background: rgba(7, 27, 51, .38);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.cookie-consent-backdrop.is-visible { display: block; }

.cookie-consent {
    position: fixed;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 9999;
    display: none;
    max-width: 780px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid rgba(18, 107, 255, .16);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(7, 27, 51, .28);
}
.cookie-consent.is-visible { display: block; }
.cookie-consent h2 {
    margin: 0 0 10px;
    color: var(--fn-navy, #071b33);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.025em;
}
.cookie-consent p {
    margin: 0;
    color: var(--fn-muted, #61738a);
    font-size: .9rem;
    line-height: 1.65;
}
.cookie-consent a {
    color: var(--fn-primary, #126bff);
    font-weight: 700;
}
.cookie-consent-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.cookie-consent .cookie-choice {
    min-width: 155px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--fn-primary, #126bff);
    border-radius: 999px;
    font: inherit;
    font-size: .84rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.cookie-consent .cookie-choice:hover { transform: translateY(-1px); }
.cookie-consent .cookie-choice:focus-visible {
    outline: 3px solid rgba(18, 107, 255, .28);
    outline-offset: 3px;
}
.cookie-consent .cookie-reject {
    color: var(--fn-primary, #126bff);
    background: #fff;
}
.cookie-consent .cookie-accept {
    color: #fff;
    background: var(--fn-primary, #126bff);
    box-shadow: 0 10px 24px rgba(18, 107, 255, .22);
}
.cookie-settings-link {
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}
.cookie-settings-link:hover { color: #fff; text-decoration: underline; }

@media (max-width: 575.98px) {
    .cookie-consent {
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 20px 18px;
        border-radius: 18px;
    }
    .cookie-consent-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }
    .cookie-consent .cookie-choice { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent .cookie-choice { transition: none; }
}
