/* Storm Discount Cookie Consent – stijl
 * Hoofdkleur via --sdcc-color (back office). Alles onder .sdcc, zodat het thema niets breekt. */

.sdcc {
  --sdcc-color: #0A73C8;
  --sdcc-text: #1f2937;
  --sdcc-muted: #4b5563;
  --sdcc-border: #e5e7eb;
  --sdcc-soft: #f8fafc;
  --sdcc-radius: 10px;
  --sdcc-off: #d1d5db;
  font-family: inherit;
  color: var(--sdcc-text);
  font-size: 15px;
  line-height: 1.5;
}
.sdcc *, .sdcc *::before, .sdcc *::after { box-sizing: border-box; }
.sdcc [hidden] { display: none !important; }

.sdcc .sdcc-icon { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; }
.sdcc .sdcc-icon [fill="currentColor"] { fill: currentColor; }
.sdcc .sdcc-icon path, .sdcc .sdcc-icon circle:not([fill]) { fill: none; }

/* ---------- Balk ---------- */
.sdcc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2147483000;
  background: #fff;
  border-top: 1px solid var(--sdcc-border);
  box-shadow: 0 -6px 24px rgba(15, 23, 42, .12);
  padding: 18px 24px 12px;
  max-height: 85vh;
  overflow-y: auto;
}
.sdcc-banner__inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 1320px;
  margin: 0 auto;
}
.sdcc-banner__main { flex: 1 1 auto; min-width: 0; }
.sdcc-banner__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sdcc-banner__logo { color: var(--sdcc-color); display: inline-flex; }
.sdcc .sdcc-banner__logo .sdcc-icon { width: 30px; height: 30px; }
.sdcc-title { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--sdcc-text); }
.sdcc-text { margin: 0; color: var(--sdcc-muted); }
.sdcc-policy { color: var(--sdcc-color); text-decoration: underline; white-space: nowrap; }

.sdcc-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 220px;
}
.sdcc-banner__toggles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1320px;
  margin: 14px auto 0;
  padding-top: 10px;
  border-top: 1px solid var(--sdcc-border);
}
.sdcc-banner__switches { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- Knoppen ---------- */
.sdcc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid var(--sdcc-color);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s, background-color .15s;
  width: 100%;
}
/* Weigeren en accepteren bewust even opvallend (AP: weigeren moet net zo makkelijk zijn) */
.sdcc-btn--primary { background: var(--sdcc-color); color: #fff; }
.sdcc-btn--primary:hover { filter: brightness(.9); }
.sdcc-btn--outline { background: #fff; color: var(--sdcc-color); }
.sdcc-btn--outline:hover { background: var(--sdcc-soft); }
.sdcc-btn:focus-visible, .sdcc-link:focus-visible, .sdcc-cat__toggle:focus-visible,
.sdcc-close:focus-visible, .sdcc-switch input:focus-visible + .sdcc-switch__track {
  outline: 3px solid var(--sdcc-color);
  outline-offset: 2px;
}

.sdcc-link {
  background: none; border: 0; padding: 4px 0;
  color: var(--sdcc-text); font: inherit; cursor: pointer; white-space: nowrap;
}
.sdcc-link:hover { color: var(--sdcc-color); text-decoration: underline; }

/* ---------- Schakelaar ---------- */
.sdcc-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
  user-select: none;
}
.sdcc-switch input {
  position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer;
}
.sdcc-switch__track {
  position: relative;
  width: 44px; height: 24px;
  border-radius: 999px;
  background: var(--sdcc-off);
  transition: background-color .2s;
  flex: 0 0 auto;
}
.sdcc-switch__track::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.sdcc-switch input:checked + .sdcc-switch__track { background: var(--sdcc-color); }
.sdcc-switch input:checked + .sdcc-switch__track::after { transform: translateX(20px); }
.sdcc-switch--locked { cursor: default; color: var(--sdcc-muted); }
.sdcc-switch--locked input { cursor: default; }
.sdcc-switch--locked .sdcc-switch__track { opacity: .55; }

/* ---------- Venster ---------- */
html.sdcc-lock { overflow: hidden; }
.sdcc-modal {
  position: fixed; inset: 0;
  z-index: 2147483001;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.sdcc-modal__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.sdcc-modal__dialog {
  position: relative;
  width: 100%; max-width: 600px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .3);
  padding: 24px 28px 16px;
  outline: none;
}
.sdcc-modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sdcc-modal__header .sdcc-title { font-size: 1.35rem; }
.sdcc-close {
  background: none; border: 0; padding: 6px; border-radius: 6px;
  color: var(--sdcc-muted); cursor: pointer; display: inline-flex;
}
.sdcc-close:hover { background: var(--sdcc-soft); color: var(--sdcc-text); }

.sdcc-cat {
  border: 1px solid var(--sdcc-border);
  border-radius: var(--sdcc-radius);
  background: var(--sdcc-soft);
  margin-bottom: 10px;
}
.sdcc-cat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.sdcc-cat__toggle {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 14px; text-align: left;
}
.sdcc-cat__toggle:first-child { flex: 1 1 auto; }
.sdcc-cat__icon { color: var(--sdcc-text); display: inline-flex; }
.sdcc-cat__title { font-weight: 600; }
.sdcc-cat__chevron { color: var(--sdcc-muted); padding: 4px; border-radius: 6px; }
.sdcc .sdcc-cat__chevron .sdcc-icon { width: 18px; height: 18px; transition: transform .2s; }
.sdcc-cat__chevron[aria-expanded="true"] .sdcc-icon { transform: rotate(180deg); }
.sdcc-badge {
  font-size: .8rem; font-weight: 600;
  color: #15803d; background: #dcfce7;
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.sdcc-cat__body { padding: 0 16px 14px 52px; color: var(--sdcc-muted); font-size: .93rem; }
.sdcc-cat__body p { margin: 0 0 8px; }
.sdcc-table { width: 100%; border-collapse: collapse; font-size: .85rem; background: #fff; }
.sdcc-table th, .sdcc-table td { text-align: left; padding: 6px 8px; border: 1px solid var(--sdcc-border); vertical-align: top; }
.sdcc-table th { background: #f1f5f9; color: var(--sdcc-text); font-weight: 600; }
.sdcc-table code { font-size: .85em; color: var(--sdcc-text); background: none; padding: 0; }

.sdcc-modal__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.sdcc-modal__footer { text-align: center; border-top: 1px solid var(--sdcc-border); margin-top: 16px; padding-top: 10px; font-size: .85rem; }
.sdcc-modal__footer a { color: var(--sdcc-muted); }

/* ---------- Footerlink ---------- */
.sdcc-footer-link { text-align: center; font-size: .875rem; padding: .25rem 0; }
.sdcc-footer-link a { color: inherit; text-decoration: underline; }

/* ---------- Mobiel ---------- */
@media (max-width: 767.98px) {
  .sdcc-banner { padding: 14px 16px 10px; }
  .sdcc-banner__inner { flex-direction: column; gap: 14px; }
  .sdcc-banner__actions { flex-basis: auto; width: 100%; }
  .sdcc-banner__toggles { flex-direction: column; align-items: flex-start; }
  .sdcc-modal__dialog { padding: 18px 16px 12px; }
  .sdcc-modal__actions { grid-template-columns: 1fr; }
  .sdcc-cat__body { padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .sdcc * { transition: none !important; }
}
