/* Compact, non-modal cookie preferences. */
.cookie-card, .cookie-card * { box-sizing: border-box; }
.cookie-card {
  position: fixed; z-index: 900; inset: auto auto max(22px, env(safe-area-inset-bottom)) 24px;
  width: 370px; max-width: calc(100vw - 32px); padding: 20px;
  color: #263922; background: #fafbf5; border: 1px solid #bcc8ad;
  border-radius: 6px; box-shadow: 0 4px 20px #26392214;
  font-family: 'Funnel Display', system-ui, sans-serif;
}
.cookie-card[hidden], .cookie-card [hidden] { display: none !important; }
.cookie-card .cookie-heading { margin: 0 0 10px; }
.cookie-card h2 { margin: 0; color: #263922; font: 500 18px/1.3 'Funnel Display', system-ui, sans-serif; letter-spacing: -.025em; }
.cookie-card p { margin: 0; color: #53614d; font: 400 14px/1.45 'Funnel Display', system-ui, sans-serif; letter-spacing: 0; }
.cookie-card p a { color: #354c27; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cookie-card .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 0; }
.cookie-card button { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 10px 12px; margin: 0; border: 1px solid #8d9c7c; border-radius: 4px; background: #f2f5e9; color: #354c27; font: 500 14px/1.2 'Funnel Display', system-ui, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; transition: background .15s; }
.cookie-card button[data-cookie-choice=accepted] { background: #354c27; color: #fafbf5; border-color: #354c27; }
@media (hover: hover) {
  .cookie-card button:hover { background: #e4ebd5; }
  .cookie-card button[data-cookie-choice=accepted]:hover { background: #496334; }
}
.cookie-card button:active { filter: brightness(.96); }
.cookie-card :focus-visible, .cookie-settings:focus-visible { outline: 2px solid #526a35; outline-offset: 4px; }
.cookie-card .cookie-current { margin-top: 10px; font-size: 12px; }
.cookie-settings { appearance: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; margin: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: none; cursor: pointer; }
.cookie-settings:hover { text-decoration: underline; text-underline-offset: 4px; }
.cookie-settings-fallback { position: fixed; bottom: 12px; left: 20px; z-index: 899; padding: 0 12px; border-radius: 8px; background: #fafbf5; color: #354c27; font: 12px 'Funnel Display', system-ui, sans-serif; }
.cookie-sr-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .cookie-card { left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); max-width: 420px; padding: 15px 16px; border-radius: 6px; }
  .cookie-card .cookie-heading { margin-bottom: 7px; }
  .cookie-card .cookie-actions { margin-top: 12px; }
  .site-footer nav:has(.cookie-settings), .footer-links:has(.cookie-settings) { flex-wrap: wrap; }
}
@media (max-height: 440px) {
  .cookie-card { max-height: calc(100dvh - 24px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-card * { transition: none; }
}
