/* VELNOIR cookie-consent banner (Phase 9, D146). Token-only (Design Law 2).
   NOT an LCP node. Pre-reveal hidden ONLY under html.anim - consent.js reveals
   it with .is-open when the visitor has not decided; the no-JS render keeps the
   base visibility so the <form> is always reachable. */

.consent {
    position: fixed;
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    z-index: 60;
    margin-inline: auto;
    max-width: 46rem;
    background: var(--surface-raised);
    color: var(--ink);
    border: 1px solid var(--line-warm);
    border-radius: var(--radius-2);
    padding: var(--space-5);
}

/* Pre-reveal discipline: hidden only when the boot gate ran (html.anim), shown
   by consent.js only when undecided. No-JS keeps the base visibility. */
html.anim .consent { display: none; }
html.anim .consent.is-open { display: block; }

.consent__title {
    font-size: var(--text-2);
    margin: 0 0 var(--space-2);
}

.consent__text {
    font-size: var(--text-0);
    color: var(--ink-2);
    margin: 0 0 var(--space-4);
    max-width: 60ch;
}

.consent__text a {
    color: var(--accent);
}

.consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.consent__settings {
    margin-top: var(--space-4);
}

.consent__settings > summary {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: var(--space-3);
}

.consent__fieldset {
    border: 1px solid var(--line);
    border-radius: var(--radius-1);
    padding: var(--space-4);
    margin: 0 0 var(--space-4);
    display: grid;
    gap: var(--space-3);
}

.consent__legend {
    font-size: var(--text--1);
    color: var(--ink-3);
    padding: 0 var(--space-2);
}

.consent__option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-3);
    align-items: start;
    font-size: var(--text-0);
    color: var(--ink-2);
    line-height: 1.5;
}

.consent__option strong {
    color: var(--ink);
}

@media (max-width: 640px) {
    .consent {
        left: var(--space-3);
        right: var(--space-3);
        bottom: var(--space-3);
        padding: var(--space-4);
    }

    .consent__actions .btn {
        flex: 1 1 auto;
    }
}
