/* ---- Cookiemelding, in de stijl van de site ----
   Zelfde kaartvorm, zelfde randen en dezelfde zwarte pil als de CTA's. */
.cookiebalk {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90;
  width: calc(100vw - 40px);
  max-width: 430px;
  background: var(--card-light, #FFFFFF);
  border: 1px solid var(--border-low, #E8DFD5);
  border-radius: var(--gl-radius-card, 2.4rem);
  box-shadow: 0 18px 44px -12px rgba(50, 50, 50, .22), 0 3px 10px rgba(50, 50, 50, .06);
  padding: 26px 26px 22px;
  color: var(--fg-light, #323232);
}
.cookiebalk[hidden] { display: none; }
.cookiebalk.is-open { animation: cookiebalk-in .5s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes cookiebalk-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cookiebalk h2 {
  font-family: 'Google Sans Flex', 'Google Sans', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 10px;
}
.cookiebalk p {
  color: var(--text-secondary, rgba(50, 50, 50, .8));
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.cookiebalk a { color: var(--primary, #5E9BFF); text-decoration: underline; text-underline-offset: 3px; }

.cookie-knoppen { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-knop {
  flex: 1 1 auto;
  border: 0;
  border-radius: 999rem;
  padding: 11px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: var(--bg-light, #F3EFEA);
  color: var(--fg-light, #323232);
  transition: background .2s ease, transform .2s cubic-bezier(.16, 1, .3, 1);
}
.cookie-knop:hover { background: var(--border-low, #E8DFD5); }
.cookie-knop:active { transform: scale(.98); }
.cookie-knop--donker { background: var(--bg-dark, #1A1A1A); color: #fff; }
.cookie-knop--donker:hover { background: #000; }

/* ---- Paneel met de losse keuzes ---- */
.cookie-keuzes { margin: 0 0 18px; }
.cookie-keuzes[hidden] { display: none; }
.cookie-optie {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border-low, #E8DFD5);
}
.cookie-optie p { margin: 2px 0 0; font-size: 13px; }
.cookie-optie-naam { font-size: 14px; font-weight: 500; }
.cookie-schakelaar { position: relative; flex-shrink: 0; width: 42px; height: 24px; margin-top: 2px; }
.cookie-schakelaar input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.cookie-schakelaar span {
  position: absolute; inset: 0;
  background: var(--border-mid, #DDD3C7);
  border-radius: 999rem;
  transition: background .2s ease;
  pointer-events: none;
}
.cookie-schakelaar span::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1);
}
.cookie-schakelaar input:checked + span { background: var(--primary, #5E9BFF); }
.cookie-schakelaar input:checked + span::after { transform: translateX(18px); }
.cookie-schakelaar input:disabled + span { opacity: .55; }
.cookie-schakelaar input:disabled { cursor: not-allowed; }
.cookie-schakelaar input:focus-visible + span { outline: 2px solid var(--primary, #5E9BFF); outline-offset: 3px; }

@media (max-width: 520px) {
  .cookiebalk { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 22px 20px 18px; }
  .cookie-knop { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cookiebalk.is-open { animation: none; }
  .cookie-knop, .cookie-schakelaar span, .cookie-schakelaar span::after { transition: none; }
}
