/* Ozobot cookietoestemming — gebruikt de tokens en knoppen van het thema (tokens.css, buttons.css, dialog.css). */
.oz-consent[hidden] { display: none; }
.oz-consent {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 950;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.oz-consent__inner {
  pointer-events: auto;
  box-sizing: border-box;
  width: min(72rem, 100%);
  display: flex;
  align-items: center;
  gap: 1.5rem 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--oz-color-background, #fff);
  color: var(--oz-color-text, #242631);
  border: 1px solid var(--oz-color-border, #d8dce6);
  border-radius: var(--oz-radius-xl, 2rem);
  box-shadow: var(--oz-shadow-elevated, 0 18px 48px rgb(22 22 23 / 16%));
}
/* De banner krijgt bij tonen de focus (voor schermlezers); zonder zichtbare rand, de knoppen houden hun eigen focusstijl. */
.oz-consent:focus, .oz-consent:focus-visible { outline: none; box-shadow: none; }
.oz-consent__text { flex: 1 1 auto; min-width: 0; }
.oz-consent__title { margin: 0 0 .35rem; font-size: 1.125rem; font-weight: 800; line-height: 1.3; color: var(--oz-color-heading, #161617); }
.oz-consent__text p { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--oz-color-text-muted, #5d6070); }
.oz-consent__text a { color: var(--oz-color-link, #4027c7); font-weight: 700; }
.oz-consent__actions { flex: none; display: flex; flex-wrap: wrap; gap: .625rem; }
.oz-consent__actions .oz-button { white-space: nowrap; }

/* Voorkeurenvenster (oz-dialog) */
.oz-consent-dialog p { color: var(--oz-color-text-muted, #5d6070); }
.oz-consent-categories { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .75rem; }
.oz-consent-category { padding: 1rem 1.25rem; border: 1px solid var(--oz-color-border, #d8dce6); border-radius: var(--oz-radius-large, 1.25rem); background: var(--oz-color-surface, #f5f5f7); }
.oz-consent-category p { margin: .35rem 0 0; font-size: .9375rem; line-height: 1.5; }
.oz-consent-switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; }
.oz-consent-category__label { font-weight: 700; color: var(--oz-color-text, #242631); }
.oz-consent-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.oz-consent-switch__track { position: relative; flex: none; width: 3rem; height: 1.75rem; border-radius: 999px; background: var(--oz-color-border, #d8dce6); transition: background .15s; }
.oz-consent-switch__track::after { content: ""; position: absolute; top: .25rem; left: .25rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); transition: transform .15s; }
.oz-consent-switch input:checked + .oz-consent-switch__track { background: var(--oz-color-primary, #4f34e2); }
.oz-consent-switch input:checked + .oz-consent-switch__track::after { transform: translateX(1.25rem); }
.oz-consent-switch input:disabled + .oz-consent-switch__track { opacity: .55; }
.oz-consent-switch input:focus-visible + .oz-consent-switch__track { outline: 2px solid var(--oz-color-focus, #0b63ce); outline-offset: 3px; }

/* Video-placeholder tot er toestemming is */
.oz-consent-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; display: grid; place-items: center; background: var(--oz-color-surface, #f5f5f7); border: 1px solid var(--oz-color-border, #d8dce6); border-radius: var(--oz-radius-large, 1.25rem); overflow: hidden; }
.oz-consent-embed__notice { max-width: 28rem; padding: 1.5rem; text-align: center; display: grid; gap: 1rem; justify-items: center; }
.oz-consent-embed__notice p { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--oz-color-text-muted, #5d6070); }
.oz-consent-embed__notice strong { color: var(--oz-color-text, #242631); }

@media (max-width: 900px) {
  .oz-consent__inner { flex-direction: column; align-items: stretch; padding: 1.25rem; border-radius: var(--oz-radius-large, 1.25rem); }
  .oz-consent__actions .oz-button { flex: 1 1 auto; }
}
@media (max-width: 480px) {
  .oz-consent { inset: auto .5rem .5rem .5rem; }
  .oz-consent__text p { font-size: .875rem; }
  .oz-consent__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .oz-consent__actions [data-oz-consent-action="accept"] { grid-column: 1 / -1; grid-row: 1; }
  .oz-consent-embed { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .oz-consent-switch__track, .oz-consent-switch__track::after { transition: none; }
}

/* Footer: cookie-icoon in plaats van de tekst "Cookie-instellingen". */
.oz-consent-menu-item .oz-consent-icon-link { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; padding: 4px; border-radius: 999px; color: inherit; line-height: 0; text-decoration: none; }
.oz-consent-menu-item .oz-consent-icon-link:hover { background: rgb(255 255 255 / 12%); }
.oz-consent-menu-item .oz-consent-icon-link svg { display: block; flex: 0 0 20px; }
