/* Cookie consent banner; sits above the mobile tab bar. */
.consent {
  position: fixed; inset-inline: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 55; /* below the drawer scrim (60) and the toast (80) */
  max-width: 560px; margin-inline: auto; padding: 16px;
  background: var(--page); border: 1px solid var(--gold); border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); font-size: 14px; line-height: 1.6;
  animation: rise 300ms var(--ease);
}
.consent p { margin-bottom: 12px; }
.consent p a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-text); text-decoration: underline; }
.consent-actions { display: flex; gap: 8px; }
/* Declining is as easy as accepting: same size and weight. */
.consent-actions button { flex: 1; min-height: 44px; padding: 0 12px; border: 1px solid var(--ink); font-weight: 700; }
.consent-actions button[data-consent-choice="granted"] { background: var(--ink); color: var(--on-ink); }
.consent-actions button[data-consent-choice="denied"]:hover { background: var(--sand); }
/* Desktop: a corner card that leaves the page readable instead of a centred bar. */
@media (min-width: 900px) { .consent { bottom: 20px; inset-inline: auto 20px; max-width: 400px; margin-inline: 0; } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
