/* Unrush Cookie Consent – huisstijl Unrush (Poppins, zwart op beige, rechte hoeken, outline-knoppen) */
#ucc-root {
  --ucc-bg: #fff9f1;
  --ucc-panel: #f8f1e6;
  --ucc-line: #dcd3c6;
  --ucc-text: #000;
  --ucc-muted: #333;
  --ucc-accent: #b5a846;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ucc-text);
  font-size: 15px;
  line-height: 1.55;
}
#ucc-root *, #ucc-root *::before, #ucc-root *::after { box-sizing: border-box; }
#ucc-root [hidden] { display: none !important; }

.ucc-banner, .ucc-prefs {
  position: fixed;
  z-index: 2147483000;
  background: var(--ucc-bg);
  border: 1px solid var(--ucc-text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}
.ucc-banner {
  left: 16px; right: 16px; bottom: 16px;
  max-width: 640px;
  padding: 24px;
}
.ucc-banner:focus, .ucc-prefs:focus { outline: none; }
.ucc-title { font-size: 20px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.ucc-text { margin: 0 0 16px; color: var(--ucc-muted); }
.ucc-text a, .ucc-prefs a { color: var(--ucc-text); text-decoration: underline; }

/* Drie gelijkwaardige knoppen: zelfde vorm, kleur en grootte (AP-vuistregel 2) */
.ucc-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ucc-btn {
  appearance: none;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  color: var(--ucc-text);
  background: transparent;
  border: 1px solid var(--ucc-text);
  border-radius: 0;
  padding: 12px 16px;
  min-height: 48px;
  cursor: pointer;
  text-align: center;
}
.ucc-btn:hover { background: var(--ucc-panel); }
.ucc-btn:focus-visible, .ucc-switch input:focus-visible + .ucc-switch-track, .ucc-open-settings:focus-visible,
.ucc-close:focus-visible, .ucc-text a:focus-visible, .ucc-prefs a:focus-visible {
  outline: 3px solid var(--ucc-text);
  outline-offset: 2px;
}

/* Voorkeuren (tweede laag) */
.ucc-prefs {
  inset: 0;
  margin: auto;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 24px;
  height: fit-content;
}
.ucc-prefs-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.ucc-close { font: inherit; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ucc-text); padding: 4px 8px; }
.ucc-cat { border-top: 1px solid var(--ucc-line); padding: 16px 0; }
.ucc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ucc-cat h3 { font-size: 16px; font-weight: 600; margin: 0; }
.ucc-cat p { margin: 6px 0 0; color: var(--ucc-muted); font-size: 14px; }
.ucc-always { font-size: 14px; font-weight: 500; white-space: nowrap; }

.ucc-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.ucc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ucc-switch-track {
  width: 44px; height: 24px; border: 1px solid var(--ucc-text); background: #fff; position: relative; flex: none;
}
.ucc-switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--ucc-text);
  transition: transform .15s ease;
}
.ucc-switch input:checked + .ucc-switch-track { background: var(--ucc-accent); }
.ucc-switch input:checked + .ucc-switch-track::after { transform: translateX(20px); }
.ucc-switch-state { font-size: 14px; font-weight: 600; min-width: 2.5em; } /* status ook in tekst (kleurenblind) */
.ucc-prefs .ucc-actions { margin-top: 16px; }

/* Zwevende knop om toestemming te wijzigen of in te trekken */
.ucc-open-settings {
  position: fixed; left: 16px; bottom: 16px; z-index: 2147482999;
  font: inherit; font-size: 13px; font-weight: 500;
  background: var(--ucc-bg); color: var(--ucc-text);
  border: 1px solid var(--ucc-text); padding: 8px 12px; cursor: pointer;
}
#ucc-root.ucc-open .ucc-open-settings { display: none; }

.ucc-short { display: none; }

/* Juridische links onder de Elementor-footer, in de footerstijl van Unrush (Poppins 14px, zwart, lichte lijn) */
.ucc-legal { font-family: Poppins, system-ui, sans-serif; border-top: 1px solid #dcd3c6; padding: 16px; background: transparent; }
.ucc-legal ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1140px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; }
.ucc-legal a { color: #000; font-size: 14px; font-weight: 400; text-decoration: none; display: inline-block; padding: 6px 0; min-height: 24px; }
.ucc-legal a:hover { text-decoration: underline; }
.ucc-legal a:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
@media (max-width: 600px) { .ucc-legal ul { gap: 4px 20px; } .ucc-legal a { padding: 10px 0; } }

/* Mobiel: compacte eerste laag (korte tekst, Accepteren/Weigeren naast elkaar en identiek, Voorkeuren eronder in dezelfde stijl) */
@media (max-width: 600px) {
  #ucc-root { font-size: 14px; line-height: 1.45; }
  .ucc-banner { left: 0; right: 0; bottom: 0; max-width: none; border-left: 0; border-right: 0; border-bottom: 0; padding: 14px 16px calc(12px + env(safe-area-inset-bottom)); }
  .ucc-long { display: none; }
  .ucc-short { display: inline; }
  .ucc-title { font-size: 16px; margin-bottom: 4px; }
  .ucc-text { margin-bottom: 12px; }
  .ucc-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ucc-banner .ucc-actions .ucc-btn:last-child { grid-column: 1 / -1; }
  .ucc-btn { min-height: 44px; padding: 10px 8px; font-size: 14px; }
  .ucc-prefs { width: 100vw; max-height: 100vh; inset: auto 0 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .ucc-prefs .ucc-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ucc-switch-track::after { transition: none; } }
@media print { #ucc-root { display: none; } }
