/* Eigen cookiebanner — layout gelijk aan de oude Cookiebot-banner */
.p5cc {
  --p5cc-accent: #c8a800;
  --p5cc-text: #4a524c;
  width: calc(100% - 2rem);
  max-width: 900px;
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--p5cc-text);
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 32px 68px rgba(0, 0, 0, .3);
  display: none;
  flex-direction: column;
}
.p5cc[open] { display: flex; }
.p5cc::backdrop { background: rgba(0, 0, 0, .35); }
.p5cc button { font: inherit; cursor: pointer; }
.p5cc :focus-visible { outline: 2px solid var(--p5cc-accent); outline-offset: 2px; }

.p5cc-head {
  display: flex; justify-content: flex-end; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--p5cc-accent);
}
.p5cc-head img { height: 34px; width: auto; }
.p5cc-close {
  background: none; border: 0; font-size: 2rem; line-height: 1; color: #141414; padding: 0 .25rem;
}

.p5cc-tabs { display: flex; border-bottom: 1px solid var(--p5cc-accent); }
.p5cc-tabs button {
  flex: 1; background: none; border: 0; border-bottom: 3px solid transparent;
  padding: .9rem .5rem; font-weight: 600; color: #141414;
}
.p5cc-tabs button[aria-selected="true"] { color: var(--p5cc-accent); border-bottom-color: var(--p5cc-accent); }

.p5cc-body { padding: 1.25rem 1.5rem; overflow-y: auto; flex: 1 1 auto; min-height: 6rem; }
.p5cc-body h2 { font-size: 15px; font-weight: 700; margin: 0 0 .5rem; color: #141414; }
.p5cc-body p { margin: 0 0 .75rem; }
.p5cc-body a { color: inherit; text-decoration: underline; }
.p5cc details { border-bottom: 1px solid #e5e5e5; padding: .6rem 0; }
.p5cc summary { cursor: pointer; font-weight: 600; color: #141414; }
.p5cc-count {
  display: inline-block; min-width: 1.6em; padding: 0 .4em; margin-left: .3em;
  border-radius: 1em; background: #eee; font-size: 12px; text-align: center;
}
.p5cc-table { overflow-x: auto; }
.p5cc table { width: 100%; border-collapse: collapse; font-size: 13px; }
.p5cc th, .p5cc td { text-align: left; vertical-align: top; padding: .35rem .5rem .35rem 0; border-top: 1px solid #eee; }

.p5cc-levels { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--p5cc-accent); }
.p5cc-levels label {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: 1.2rem .5rem; font-weight: 600; color: #141414; text-align: center; cursor: pointer;
}
.p5cc-levels label + label { border-left: 1px solid var(--p5cc-accent); }

/* Schakelaar */
.p5cc input[role="switch"] {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 57px; height: 32px; border-radius: 16px; background: #68726a;
  position: relative; cursor: pointer; transition: background .2s;
}
.p5cc input[role="switch"]::before {
  content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; transition: transform .2s;
}
.p5cc input[role="switch"]:checked { background: var(--p5cc-accent); }
.p5cc input[role="switch"]:checked::before { transform: translateX(25px); }
.p5cc input[role="switch"]:disabled { cursor: default; opacity: .75; }

.p5cc-buttons {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
  padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--p5cc-accent);
}
.p5cc-buttons button {
  background: var(--p5cc-accent); color: #fff; border: 2px solid var(--p5cc-accent);
  border-radius: 4px; padding: 1rem; font-weight: 600;
}
.p5cc-buttons button:hover { background: #b39600; border-color: #b39600; }

@media (max-width: 600px) {
  .p5cc { font-size: 14px; }
  .p5cc-levels { grid-template-columns: repeat(2, 1fr); }
  .p5cc-levels label:nth-child(3) { border-left: 0; }
  .p5cc-levels label:nth-child(n+3) { border-top: 1px solid var(--p5cc-accent); }
  .p5cc-buttons { grid-template-columns: 1fr; }
  .p5cc-buttons [data-p5cc="all"] { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .p5cc input[role="switch"], .p5cc input[role="switch"]::before { transition: none; }
}

/* Thema-stijlen neutraliseren */
.p5cc p, .p5cc li, .p5cc td, .p5cc th, .p5cc summary, .p5cc label { font-size: inherit; line-height: inherit; }
.p5cc h2:focus { outline: none; }
.p5cc-close { width: auto; height: auto; min-width: 0; box-shadow: none; }
