/* EP:Tummers — site cookie consent (first-party, GDPR-style) */
/* Op :root zodat #ept-cookie-prefs (buiten #ept-cookie-consent-root) dezelfde kleuren krijgt */
:root {
  --ept-cc-bg: #ffffff;
  --ept-cc-text: #1a1a1a;
  --ept-cc-muted: #5c5c5c;
  --ept-cc-border: rgba(0, 0, 0, 0.08);
  --ept-cc-accent: #28a745;
  --ept-cc-accent-hover: #218838;
  --ept-cc-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--ept-cc-border);
  --ept-cc-radius: 12px;
}

#ept-cookie-consent-root {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

#ept-cookie-consent-root *,
#ept-cookie-consent-root *::before,
#ept-cookie-consent-root *::after {
  box-sizing: border-box;
}

#ept-cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(15, 18, 22, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#ept-cookie-consent-root.ept-cc-visible #ept-cookie-backdrop {
  opacity: 1;
  pointer-events: auto;
}

#ept-cookie-panel {
  position: fixed;
  z-index: 2147483001;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 720px;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 769px) {
  #ept-cookie-panel {
    bottom: 24px;
    padding: 0 24px 24px;
  }
}

#ept-cookie-consent-root.ept-cc-visible #ept-cookie-panel {
  transform: translate(-50%, 0);
}

.ept-cc-card {
  background: var(--ept-cc-bg);
  color: var(--ept-cc-text);
  border-radius: var(--ept-cc-radius);
  box-shadow: var(--ept-cc-shadow);
  overflow: hidden;
  border: 1px solid var(--ept-cc-border);
}

.ept-cc-card__inner {
  padding: 24px 24px 20px;
}

@media (max-width: 600px) {
  .ept-cc-card__inner {
    padding: 20px 18px 16px;
  }
}

.ept-cc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ept-cc-muted);
  margin-bottom: 12px;
}

.ept-cc-badge svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.ept-cc-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ept-cc-text);
}

.ept-cc-text {
  margin: 0 0 20px;
  color: var(--ept-cc-muted);
  font-size: 0.9375rem;
}

.ept-cc-text a {
  color: var(--ept-cc-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ept-cc-text a:hover {
  color: var(--ept-cc-accent-hover);
}

.ept-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ept-cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ept-cc-btn:focus-visible {
  outline: 2px solid var(--ept-cc-accent);
  outline-offset: 2px;
}

.ept-cc-btn--primary {
  background: var(--ept-cc-accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(40, 167, 69, 0.25);
}

.ept-cc-btn--primary:hover {
  background: var(--ept-cc-accent-hover);
}

.ept-cc-btn--secondary {
  background: #f4f4f4;
  color: var(--ept-cc-text);
}

.ept-cc-btn--secondary:hover {
  background: #eaeaea;
}

.ept-cc-btn--ghost {
  background: transparent;
  color: var(--ept-cc-muted);
  padding-left: 12px;
  padding-right: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ept-cc-btn--ghost:hover {
  color: var(--ept-cc-text);
}

/* Preferences modal */
#ept-cookie-prefs {
  position: fixed;
  inset: 0;
  z-index: 2147483002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background: rgba(15, 18, 22, 0.55);
  backdrop-filter: blur(4px);
}

#ept-cookie-prefs *,
#ept-cookie-prefs *::before,
#ept-cookie-prefs *::after {
  box-sizing: border-box;
}

#ept-cookie-prefs.ept-cc-open {
  display: flex;
}

.ept-cc-prefs-dialog {
  width: 100%;
  max-width: 480px;
  max-height: min(90vh, 640px);
  overflow: auto;
  /* Dekkend wit (modal staat buiten consent-root; var(--ept-cc-bg) was daar eerder ongeldig → doorzichtig) */
  background: #ffffff;
  color: var(--ept-cc-text);
  border-radius: var(--ept-cc-radius);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.ept-cc-prefs-head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--ept-cc-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ept-cc-prefs-head h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.ept-cc-prefs-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: #f4f4f4;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ept-cc-text);
}

.ept-cc-prefs-close:hover {
  background: #eaeaea;
}

.ept-cc-prefs-body {
  padding: 18px 22px 22px;
}

.ept-cc-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--ept-cc-border);
}

.ept-cc-row:last-of-type {
  border-bottom: none;
}

.ept-cc-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.ept-cc-row-title {
  font-weight: 600;
  font-size: 0.9375rem;
}

.ept-cc-row-desc {
  font-size: 0.8125rem;
  color: var(--ept-cc-muted);
  margin: 0;
  padding-right: 48px;
}

.ept-cc-switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.ept-cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ept-cc-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 28px;
  transition: 0.25s;
}

.ept-cc-switch-slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ept-cc-switch input:checked + .ept-cc-switch-slider {
  background: var(--ept-cc-accent);
}

.ept-cc-switch input:checked + .ept-cc-switch-slider::before {
  transform: translateX(20px);
}

.ept-cc-switch input:disabled + .ept-cc-switch-slider {
  opacity: 0.55;
  cursor: not-allowed;
}

.ept-cc-prefs-footer {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--ept-cc-border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* Re-open control */
#ept-cookie-reopen {
  position: fixed;
  z-index: 2147482999;
  left: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  padding: 8px 14px;
  font-family: Roboto, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ept-cc-muted, #5c5c5c);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 100px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
}

#ept-cookie-reopen:hover {
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.15);
}

#ept-cookie-reopen.ept-cc-show {
  display: inline-flex;
}

@media print {
  #ept-cookie-consent-root,
  #ept-cookie-prefs,
  #ept-cookie-reopen {
    display: none !important;
  }
}
