/* SoloGlass — cookiebanner. Neemt het lettertype van de site over; werkt in beide ontwerpen. */
.cc {
  --cc-ink: #1a2332;
  --cc-text: #3c4a5c;
  --cc-muted: #64748b;
  --cc-line: #e2e8f0;
  --cc-bg: #ffffff;
  --cc-focus: #4a7fa5;
  position: fixed;
  z-index: 300;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(440px, calc(100vw - 32px));
  font: inherit;
  color: var(--cc-text);
  animation: cc-in .35s ease both;
}
.cc[hidden] { display: none !important; }
.cc-box {
  display: grid;
  gap: 14px;
  padding: 22px 22px 20px;
  background: var(--cc-bg);
  border: 1px solid var(--cc-line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(26, 35, 50, .22), 0 2px 6px rgba(26, 35, 50, .08);
}
.cc-title {
  margin: 0;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--cc-ink);
}
.cc-text { margin: 0; font-size: 14px; line-height: 1.6; }
.cc-text a { color: var(--cc-ink); text-decoration: underline; text-underline-offset: 2px; }
.cc-prefs { display: grid; border-top: 1px solid var(--cc-line); }
.cc-prefs[hidden] { display: none !important; }
.cc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--cc-line);
  cursor: pointer;
}
.cc-row:first-child { cursor: default; }
.cc-label { display: grid; gap: 2px; min-width: 0; }
.cc-label strong { color: var(--cc-ink); font-size: 14px; }
.cc-label small { color: var(--cc-muted); font-size: 12.5px; line-height: 1.45; }
.cc-always { font-size: 12px; font-weight: 600; color: var(--cc-muted); white-space: nowrap; }
.cc-switch {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  cursor: pointer;
  flex: none;
  transition: background-color .2s ease;
}
.cc-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}
.cc-switch:checked { background: var(--cc-ink); }
.cc-switch:checked::after { transform: translateX(18px); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cc-btn {
  flex: 1 1 140px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--cc-ink);
  border-radius: 999px;
  background: var(--cc-ink);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cc-btn:hover { background: #243044; }
.cc-btn[hidden], .cc-more[hidden] { display: none !important; }
.cc-more {
  flex: 1 0 100%;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cc-ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.cc button:focus-visible, .cc a:focus-visible, .cc-switch:focus-visible {
  outline: 3px solid var(--cc-focus);
  outline-offset: 2px;
}
/* Link "Cookie-instellingen" in de footer */
.cc-open {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.cc-open:hover { opacity: .85; }
@keyframes cc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .cc { left: 0; right: 0; bottom: 0; width: auto; }
  .cc-box {
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
    padding: 20px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    max-height: 85vh;
    overflow-y: auto;
  }
}
@media (prefers-reduced-motion: reduce) { .cc { animation: none; } }
