/* consent.css (10-11-2026) – cookiebanner in Cookiebot-stijl. Kleur per site via --ljc-accent. */
#ljc, #ljc *, #ljc-widget { box-sizing: border-box; }
#ljc {
  --ljc-accent: #3f7a38;
  --ljc-accent-dark: color-mix(in srgb, var(--ljc-accent) 82%, #000);
  --ljc-text: #141414;
  --ljc-muted: #474747;
  --ljc-line: #d6d6d6;
  --ljc-soft: #f2f2f2;
  position: fixed; z-index: 2147483000;
  left: 50%; bottom: 16px; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 900px; max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  background: #fff; color: var(--ljc-text);
  border-radius: 8px;
  box-shadow: 0 32px 68px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .08);
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: normal; text-align: left;
}
#ljc[hidden], #ljc-widget[hidden], #ljc [hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  #ljc:not([hidden]) { animation: ljcIn .3s cubic-bezier(.2, .7, .2, 1); }
}
@keyframes ljcIn { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Kop: logo */
#ljc .ljc-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px 12px; border-bottom: 1px solid var(--ljc-line); min-height: 64px; }
#ljc .ljc-logo { display: block; max-height: 40px; max-width: 180px; width: auto; height: auto; }
#ljc .ljc-close { border: 0; background: none; font-size: 28px; line-height: 1; color: var(--ljc-muted); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
#ljc .ljc-close:hover { color: var(--ljc-text); background: var(--ljc-soft); }

/* Tabbladen */
#ljc .ljc-tabs { display: flex; border-bottom: 1px solid var(--ljc-line); }
#ljc .ljc-tab {
  flex: 1 1 0; appearance: none; background: none; border: 0; border-bottom: 3px solid transparent;
  padding: 14px 8px 11px; margin: 0; font: inherit; font-weight: 600; color: var(--ljc-text); cursor: pointer;
}
#ljc .ljc-tab:hover { color: var(--ljc-accent); }
#ljc .ljc-tab[aria-selected="true"] { color: var(--ljc-accent); border-bottom-color: var(--ljc-accent); }

/* Inhoud */
#ljc .ljc-body { overflow-y: auto; padding: 20px 24px 8px; flex: 1 1 auto; min-height: 0; }
#ljc .ljc-title { margin: 0 0 8px; font: inherit; font-size: 17px; font-weight: 700; color: var(--ljc-text); letter-spacing: .1px; }
#ljc .ljc-text, #ljc .ljc-panel p { margin: 0 0 12px; color: var(--ljc-muted); font-size: 15px; }
#ljc a { color: var(--ljc-accent); text-decoration: underline; }

/* Schakelaars onder de tekst (zoals in Cookiebot) */
#ljc .ljc-switches {
  display: flex; flex-wrap: wrap; align-items: stretch;
  margin: 0 24px; border: 1px solid var(--ljc-line); border-radius: 8px; overflow: hidden;
}
#ljc .ljc-sw-item {
  flex: 1 1 0; min-width: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 8px; border-right: 1px solid var(--ljc-line); cursor: pointer; margin: 0;
}
#ljc .ljc-sw-label { font-weight: 600; font-size: 14px; color: var(--ljc-text); }
#ljc .ljc-more {
  flex: 1 1 0; min-width: 140px; appearance: none; border: 0; background: none; font: inherit; font-weight: 600; font-size: 14px;
  color: var(--ljc-accent); cursor: pointer; padding: 12px 8px;
}
#ljc .ljc-more:hover { background: var(--ljc-soft); }

/* Schakelaar */
#ljc .ljc-switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: 0 0 auto; }
#ljc .ljc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
#ljc .ljc-switch input:disabled { cursor: not-allowed; }
#ljc .ljc-slider { position: absolute; inset: 0; background: #8c8c8c; border-radius: 28px; transition: background .2s; }
#ljc .ljc-slider::before { content: ""; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
#ljc .ljc-switch input:checked + .ljc-slider { background: var(--ljc-accent); }
#ljc .ljc-switch input:checked + .ljc-slider::before { transform: translateX(20px); }
#ljc .ljc-switch input:disabled + .ljc-slider { opacity: .55; }
#ljc .ljc-switch input:focus-visible + .ljc-slider { outline: 3px solid var(--ljc-text); outline-offset: 2px; }

/* Details: uitklapbare categorieën */
#ljc .ljc-acc { border: 1px solid var(--ljc-line); border-radius: 8px; margin: 0 0 10px; }
#ljc .ljc-acc-head { display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; }
#ljc .ljc-acc-btn { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; appearance: none; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ljc-text); text-align: left; padding: 10px 8px; cursor: pointer; border-radius: 6px; }
#ljc .ljc-acc-btn:hover { background: var(--ljc-soft); }
#ljc .ljc-chev { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; margin: 0 4px; }
#ljc .ljc-acc-btn[aria-expanded="true"] .ljc-chev { transform: rotate(45deg); }
#ljc .ljc-badge { display: inline-block; min-width: 24px; padding: 1px 8px; border-radius: 12px; background: #e4e4e4; color: var(--ljc-text); font-size: 12px; font-weight: 700; text-align: center; }
#ljc .ljc-acc-body { padding: 0 16px 14px 44px; }
#ljc .ljc-acc-body p { font-size: 14px; }
#ljc .ljc-none { font-style: italic; }
#ljc .ljc-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 4px 0 0; }
#ljc .ljc-table th, #ljc .ljc-table td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--ljc-line); vertical-align: top; color: var(--ljc-text); }
#ljc .ljc-table th { background: var(--ljc-soft); font-weight: 700; border-top: 0; }

/* Knoppen */
#ljc .ljc-foot { display: flex; gap: 12px; padding: 16px 24px 20px; }
#ljc .ljc-btn {
  flex: 1 1 0; min-height: 48px; padding: 12px 16px; margin: 0;
  appearance: none; border: 2px solid var(--ljc-accent); border-radius: 6px; background: #fff; color: var(--ljc-accent);
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; text-align: center;
  transition: background .15s, color .15s, border-color .15s;
}
#ljc .ljc-btn:hover { background: var(--ljc-soft); }
#ljc .ljc-btn--primary { background: var(--ljc-accent); color: #fff; }
#ljc .ljc-btn--primary:hover { background: var(--ljc-accent-dark); border-color: var(--ljc-accent-dark); }
#ljc button:focus-visible, #ljc a:focus-visible { outline: 3px solid var(--ljc-text); outline-offset: 2px; }

/* Icoon linksonder om de keuze te wijzigen */
#ljc-widget {
  --ljc-accent: #3f7a38;
  position: fixed; z-index: 2147482999; left: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ljc-accent); cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .22); padding: 0;
}
#ljc-widget:hover { transform: scale(1.06); }
#ljc-widget:focus-visible { outline: 3px solid #141414; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { #ljc-widget { transition: transform .15s; } }

/* Telefoon: als blad onderin het scherm */
@media (max-width: 640px) {
  #ljc { left: 0; right: 0; bottom: 0; transform: none; width: 100%; max-height: 88vh; border-radius: 12px 12px 0 0; }
  @keyframes ljcIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  #ljc .ljc-head { padding: 12px 16px 10px; min-height: 54px; }
  #ljc .ljc-logo { max-height: 32px; }
  #ljc .ljc-body { padding: 16px 16px 6px; }
  #ljc .ljc-text { font-size: 14px; }
  #ljc .ljc-switches { margin: 0 16px; }
  #ljc .ljc-sw-item { flex: 1 1 33%; min-width: 0; padding: 10px 4px; border-bottom: 1px solid var(--ljc-line); }
  #ljc .ljc-more { flex: 1 1 100%; }
  #ljc .ljc-foot { flex-direction: column; gap: 8px; padding: 12px 16px 16px; }
  #ljc .ljc-btn { min-height: 46px; }
  #ljc .ljc-acc-body { padding: 0 12px 12px; }
  #ljc .ljc-table thead { display: none; }
  #ljc .ljc-table tr { display: block; border-top: 1px solid var(--ljc-line); padding: 6px 0; }
  #ljc .ljc-table td { display: flex; gap: 8px; border: 0; padding: 3px 4px; }
  #ljc .ljc-table td::before { content: attr(data-l); font-weight: 700; min-width: 96px; }
  #ljc-widget { width: 44px; height: 44px; left: 12px; bottom: 12px; }
}
