/* Cookie banner and footer preferences button (a build with an analytics key only). Look: option B, 2026-10-21. */
#consent[hidden], .consent-open[hidden] { display: none; }
#consent {
  position: fixed; z-index: 999; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(env(safe-area-inset-bottom), 12px);
  max-height: 70vh; overflow-y: auto; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px;
  background: #FBF3E6; color: #2A2018; border-radius: 18px;
  box-shadow: 0 14px 32px -12px rgba(0, 0, 0, .5);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}
#consent p { margin: 0; font-weight: 400; font-size: 14px; line-height: 1.4; }
#consent a {
  color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 2px;
  padding: 15px 0; /* inline padding widens the hit area to 44px without moving the text */
}
#consent .consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#consent button {
  flex: 1 1 120px; min-height: 44px; border: 0; border-radius: 12px; cursor: pointer;
  background: #2A2018; color: #FBF3E6; font: 600 15px/1 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}
#consent a:focus-visible, #consent button:focus-visible { outline: 2px solid #2A2018; outline-offset: 3px; }
/* consent.js sets --consent-space (the card's height plus its bottom offset, twice: below and above it) while the
   card shows, so the end of the page, the footer included, can scroll clear of it. */
html.consent-shown { scroll-padding-bottom: var(--consent-space, 0px); }
html.consent-shown body { padding-bottom: var(--consent-space, 0px); }
@media (min-width: 861px) {
  #consent { left: max(24px, env(safe-area-inset-left)); right: auto; bottom: 24px; width: 380px; }
}
@media (prefers-reduced-motion: no-preference) {
  #consent { animation: consent-in .2s ease-out; }
}
@keyframes consent-in { from { opacity: 0; } to { opacity: 1; } }

.consent-open {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  color: inherit; font: 500 14px/1 var(--f-body, "Geist", system-ui, sans-serif); cursor: pointer;
}
.consent-open:hover { text-decoration: underline; }
.consent-open:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
