/* ===== FAB + TOOLTIP ===== */
.cookie-fab-wrap {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99999;
}

/* Bolletje */
.cookie-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2b2e3a;
  color: #fff;               /* bepaalt currentColor van het icoon */
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  outline: none;
}
.cookie-fab:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.28); background:#3a3e4f; }

/* GROTER icoon (vult de bol meer; dunne donkere band) */
.cookie-icon { width: 46px; height: 46px; display:block; }

/* Tooltip rechts van de bol */
.cookie-fab-tip {
  position: absolute;
  left: calc(52px + 8px);   /* 52px bol + 8px marge */
  top: 50%;
  transform: translateY(-50%);
  background: #2b2e3a;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  line-height: 24px;
  height: 26px;
  white-space: nowrap;
  padding: 0 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.cookie-fab-tip::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #2b2e3a;
}
.cookie-fab-wrap:hover .cookie-fab-tip,
.cookie-fab-wrap:focus-within .cookie-fab-tip { opacity: 1; }

/* ===== MODAL EN OVERIGE STYLES (ongewijzigd) ===== */
.cookie-open { overflow: hidden; }

.cookie-modal[aria-hidden="true"] { display: none; }
.cookie-modal[aria-hidden="false"] { display: block; }

.cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 99997;
}

.cookie-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 80px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  z-index: 99998;
  padding: 20px 20px 16px;
}

.cookie-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.cookie-title { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.cookie-intro { margin: 0 0 16px; color: #444; }

/* Categorieën */
.cookie-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.cookie-cat { border: 1px solid #e8e8e8; border-radius: 12px; overflow: hidden; }
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fafafa;
}
.cookie-toggle .label { font-weight: 600; }

.cookie-cat-toggle {
  margin-left: auto;
  border: 1px solid #e1e4ea;
  background: #fff;
  border-radius: 8px;
  width: 34px; height: 28px;
  display: grid; place-items: center;
  cursor: pointer;
}
.cookie-cat-toggle[aria-expanded="true"] .cookie-chevron { transform: rotate(90deg); }
.cookie-chevron { transition: transform .2s ease; }

/* Slider (checkbox) */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
}
.cookie-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.cookie-switch .cookie-switch-slider {
  position: absolute;
  inset: 0;
  background: #d0d4dc;
  border-radius: 999px;
  transition: background .2s ease, box-shadow .2s ease;
  z-index: 1;
  pointer-events: none;
}
.cookie-switch .cookie-switch-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.cookie-switch input:checked + .cookie-switch-slider { background: #2b7fff; }
.cookie-switch input:checked + .cookie-switch-slider::before { transform: translateX(20px); }
.cookie-switch input:focus-visible + .cookie-switch-slider { box-shadow: 0 0 0 3px rgba(43,127,255,.35); }
.cookie-switch input[disabled] { cursor: not-allowed; }
.cookie-switch input[disabled] + .cookie-switch-slider { background: #b9bec8; }
.cookie-switch input[disabled] + .cookie-switch-slider::before { opacity: .8; }

/* Categoriepaneel */
.cookie-cat-panel { padding: 10px 12px 12px; }
.cookie-cat-panel[hidden] { display: none; }
.cookie-cat-text { color: #444; margin: 4px 0 8px; }

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 0;
  font-size: 14px;
}
.cookie-table th, .cookie-table td {
  text-align: left;
  border-bottom: 1px solid #eee;
  padding: 8px 6px;
  vertical-align: top;
}
.cookie-table .cookie-empty td { color: #666; font-style: italic; }

/* Actieknoppen */
.cookie-actions {
  display: flex; gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-actions .button {
  border-radius: 8px !important;
  padding: 8px 12px;
  line-height: 1.2;
}
.cookie-actions .button-primary {
  background: #2b7fff;
  border-color: #2b7fff;
}
.cookie-actions .button-primary:hover { filter: brightness(0.95); }

/* Shortcode tabel */
.cookie-statement .cookie-table { margin-top: 4px; }

@media (max-width: 480px) {
  .cookie-dialog { padding: 16px 14px; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .button { width: 100%; }
}
