/* Wijdema Cookies — compacte kaart in de huisstijl. Positie volgt --wjm-bar (mobiele CTA-balk), zodat niets overlapt. */
.wjm-cookie[hidden], .wjm-cookie-prefs[hidden] { display: none !important; }
.wjm-cookie {
  position: fixed; z-index: 1300; left: 16px; bottom: 16px; width: min(420px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 18px 18px 16px; border: 1px solid #E7DDCF; border-radius: 18px; background: #fff; color: #4A443C;
  box-shadow: 0 18px 44px rgba(26,21,15,.18); font: 400 .86rem/1.55 Inter, system-ui, sans-serif;
  animation: wjmCookieIn .22s ease-out;
}
@keyframes wjmCookieIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wjm-cookie-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.wjm-cookie-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #FBF0D4; color: #845B0D; }
.wjm-cookie-icon svg { width: 20px; height: 20px; }
.wjm-cookie h2 { margin: 0; color: #171713; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.wjm-cookie p { margin: 0 0 10px; }
.wjm-cookie-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; }
.wjm-cookie a { color: #4E5D24; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.wjm-cookie-prefs { display: grid; gap: 8px; margin: 2px 0 12px; }
.wjm-cookie-cat { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #EEE8DF; border-radius: 10px; background: #F8F5EE; cursor: pointer; }
.wjm-cookie-cat input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #60712F; cursor: pointer; }
.wjm-cookie-cat input:disabled { cursor: default; }
.wjm-cookie-cat b { display: block; color: #171713; font-size: .86rem; }
.wjm-cookie-cat b em { margin-left: 4px; color: #60712F; font-size: .72rem; font-style: normal; font-weight: 700; }
.wjm-cookie-cat small { display: block; color: #5C544B; font-size: .78rem; line-height: 1.45; }
.wjm-cookie-cat .wjm-cookie-services { margin-top: 3px; color: #777167; }
.wjm-cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wjm-btn { min-height: 42px; padding: 0 14px; border: 1.5px solid transparent; border-radius: 10px; font: 750 .84rem/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
/* Weigeren en accepteren: even groot en even goed zichtbaar */
.wjm-btn--line { background: #fff; border-color: #171713; color: #171713; }
.wjm-btn--line:hover { background: #F4EFE6; }
.wjm-btn--gold { background: #D8A33D; border-color: #D8A33D; color: #171713; }
.wjm-btn--gold:hover { background: #C9952F; border-color: #C9952F; }
.wjm-btn--ghost { grid-column: 1 / -1; min-height: 34px; padding: 0 6px; background: none; color: #4A443C; text-decoration: underline; text-underline-offset: 3px; }
.wjm-btn:focus-visible, .wjm-cookie-cat input:focus-visible, .wjm-cookie-reopen:focus-visible, .wjm-cookie a:focus-visible { outline: 3px solid #60712F; outline-offset: 2px; }

/* Later wijzigen: klein rond knopje linksonder + link "Cookie-instellingen" in de footer */
.wjm-cookie-reopen {
  position: fixed; z-index: 1190; left: 16px; bottom: 16px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid #E7DDCF; border-radius: 50%; background: #fff; color: #845B0D; box-shadow: 0 6px 16px rgba(26,21,15,.14); cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .2s, bottom .22s ease, visibility .2s;
}
.wjm-cookie-reopen svg { width: 20px; height: 20px; }
.wjm-cookie-reopen.is-visible { opacity: 1; visibility: visible; }
.wjm-cookie-link { cursor: pointer; }

/* Video's zonder toestemming: korte uitleg met keuze */
.wjm-embed-consent { margin: 10px 0 0; padding: 14px 16px; border: 1px solid #E7DDCF; border-radius: 12px; background: #fff; color: #4A443C; font: 400 .86rem/1.5 Inter, system-ui, sans-serif; }
.wjm-embed-consent p { margin: 0 0 10px; }
.wjm-embed-consent div { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 900px) {
  /* Boven de mobiele CTA-balk, over de volle breedte; de balk blijft bruikbaar */
  .wjm-cookie { left: 10px; right: 10px; width: auto; bottom: calc(var(--wjm-bar, 0px) + max(10px, env(safe-area-inset-bottom))); max-height: calc(100vh - var(--wjm-bar, 0px) - 90px); padding: 14px 14px 12px; font-size: .82rem; }
  .wjm-cookie-reopen { left: 14px; bottom: calc(var(--wjm-bar, 0px) + max(20px, env(safe-area-inset-bottom))); }
}
@media (prefers-reduced-motion: reduce) { .wjm-cookie, .wjm-cookie-reopen { animation: none !important; transition: none !important; } }
@media print { .wjm-cookie, .wjm-cookie-reopen { display: none !important; } }
