/* ───────────────────────────────────────────────────────────
   Cookiebanner  —  gedeeld bestand
   Markup wordt door consent.js geinjecteerd (#consent-root).

   Stapeling op de site: ticker 50, deze banner 60, cart-overlay
   200, cart-drawer 210, leeftijdsverificatie 100000. De banner
   staat dus boven de ticker en netjes achter de winkelwagen.

   Cursor wordt bewust niet gezet: de pagina's hebben
   `body { cursor: none }` met een custom dot, en op touch
   `cursor: auto`. Cursor erft, dus beide gevallen kloppen vanzelf.
   ─────────────────────────────────────────────────────────── */

#consent-root {
  position: fixed;
  left: 20px;
  /* Boven de ticker (40px) blijven, plus de safe area op iOS */
  bottom: calc(40px + env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 60;
  width: calc(100% - 40px);
  max-width: 420px;
  background: #ffffff;
  border: 1.5px solid #193d53;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 10px 30px rgba(25, 61, 83, 0.14);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#consent-root.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.consent-title {
  margin: 0 0 8px;
  color: #193d53;
  font: 700 15px 'AlteHaasGrotesk', sans-serif;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.consent-text {
  margin: 0 0 16px;
  color: #111111;
  font: 400 14px/1.55 'AlteHaasGrotesk', sans-serif;
  text-wrap: pretty;
}

.consent-text a {
  color: #193d53;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-btn {
  padding: 11px 20px;
  border-radius: 10px;
  border: 1.5px solid #193d53;
  font: 700 13px 'AlteHaasGrotesk', sans-serif;
  text-transform: lowercase;
  transition: background 0.2s, color 0.2s;
}

.consent-btn--accept {
  background: #193d53;
  color: #ffffff;
}
.consent-btn--accept:hover {
  background: #6fbf5a;
  border-color: #6fbf5a;
}

.consent-btn--deny {
  background: transparent;
  color: #193d53;
}
.consent-btn--deny:hover {
  background: #193d53;
  color: #ffffff;
}

/* "cookies"-link in de footer: terugkomen op je keuze, wettelijk vereist.
   consent.js hangt hem in .footer-inner (navy achtergrond, witte tekst). */
.consent-reopen {
  background: none;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.55);
  font: 400 12px 'AlteHaasGrotesk', sans-serif;
  text-transform: lowercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.consent-reopen:hover { color: #ffffff; }

@media (max-width: 600px) {
  #consent-root {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    padding: 18px;
  }
  .consent-actions { gap: 8px; }
  .consent-btn { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  #consent-root {
    transition: none;
    transform: none;
  }
  #consent-root.is-visible { transform: none; }
}
