/* Cookie consent banner (resources/views/partials/consent-banner.php). Both choices carry equal weight. */
.ckb { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 540px; margin-left: auto; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .55); }
.ckb[hidden] { display: none; }
.ckb__in { padding: 18px 20px 20px; }
.ckb__title { margin: 0 0 6px; font: 600 16px/1.3 var(--font); }
.ckb__text { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.ckb__text a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.ckb__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ckb__actions .btn { flex: 1 1 140px; }
.ftr__consent { min-height: 24px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.ftr__consent:hover { color: var(--text); }
/* Phones: a compact sheet on the bottom edge, so the first form on the page stays visible (Codex QA 2026-11-28).
   consent.js adds .ckb--top when the form would still sit under it and there is room for it above the form. */
@media (max-width: 600px) {
    .ckb { left: 0; right: 0; bottom: 0; max-width: none; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; box-shadow: 0 -12px 40px -12px rgba(0, 0, 0, .6); }
    .ckb__in { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
    .ckb__title { margin: 0 0 4px; font-size: 14px; }
    .ckb__text { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; }
    .ckb__actions { flex-wrap: nowrap; gap: 8px; }
    .ckb__actions .btn { flex: 1 1 0; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
    .ckb--top { top: 0; bottom: auto; border-radius: 0 0 var(--radius) var(--radius); border-top: 0; border-bottom: 1px solid var(--border-strong); box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .6); }
    .ckb--top .ckb__in { padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; }
}
@media print { .ckb { display: none; } }
