/* Cookie banner (scripts/consent.js). Self-contained: works on any page. Light card, orange buttons. */
.consent {
  position: fixed; z-index: 200;
  left: 50%; transform: translateX(-50%);   /* centred along the bottom of the screen */
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: min(34rem, calc(100% - 24px));
  display: none; flex-direction: column; gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: #FFFFFF; color: #2A1A3F;
  border: 1px solid rgba(42, 26, 63, 0.14); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(60, 35, 15, 0.25);
  font: 400 0.9rem/1.45 Geist, ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
}
.consent.is-open { display: flex; }
.consent__main { display: flex; gap: 0.8rem; align-items: flex-start; }
.consent__icon { width: 40px; height: 40px; flex: none; margin-top: 2px; }
.consent__title { font-weight: 600; margin: 0 0 0.2rem; }
.consent__text { margin: 0; color: #5E4A6B; }
.consent__text a { color: #9A4F12; text-decoration: underline; text-underline-offset: 2px; }
.consent__prefs { display: grid; gap: 0.55rem; }
.consent__prefs[hidden] { display: none; }
.consent__row { display: flex; gap: 0.6rem; align-items: flex-start; color: #5E4A6B; }
.consent__row input { margin-top: 0.2rem; accent-color: #C8792C; width: 1rem; height: 1rem; flex: none; }
.consent__row strong { color: #2A1A3F; font-weight: 600; margin-right: 0.3rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.consent__btn {
  min-height: 40px; padding: 0 0.95rem; border-radius: 8px; cursor: pointer;
  font: 500 0.88rem/1 inherit; font-family: inherit;
  border: 1px solid rgba(42, 26, 63, 0.3); background: transparent; color: #2A1A3F;
}
.consent__btn[hidden] { display: none; }
.consent__btn:hover { border-color: #2A1A3F; }
.consent__btn--primary { background: #C8792C; border-color: #C8792C; color: #000; }
.consent__btn--primary:hover { background: #D98A3C; border-color: #D98A3C; }
.consent__btn:focus-visible { outline: 2px solid #C8792C; outline-offset: 2px; }
@media (max-width: 480px) {
  .consent__actions { justify-content: stretch; }
  .consent__btn { flex: 1 1 auto; }
}
