/* =============================================================
   NSP COOKIE CONSENT — cookie.css
   ============================================================= */

/* Banner (fixed, gecentreerd onderin) */
.nsp-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1060;
  width: calc(100% - 48px);
  max-width: 660px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 40px -8px rgba(21,18,15,.28);
  border: 1px solid rgba(21,18,15,.1);
  padding: 28px;
}

/* Sluitknop (×) */
.nsp-cookie-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  color: #A89C8C;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color .15s;
}
.nsp-cookie-close:hover { color: #15120F; }

/* Titel */
.nsp-cookie-banner__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 8px;
  padding-right: 32px; /* ruimte voor × */
}

/* Introductietekst */
.nsp-cookie-banner__text {
  font-family: 'Newsreader', serif;
  font-size: 15px;
  line-height: 1.55;
  color: #6F675D;
  margin-bottom: 18px;
}
.nsp-cookie-banner__text a { color: #0B5BB0; }

/* ── Voorkeurenpaneel ─────────────────────────── */

/* Standaard verborgen — Bootstrap collapse doet de rest */
.nsp-cookie-settings {
  display: none;
  border-top: 1px solid rgba(21,18,15,.08);
  margin-bottom: 20px;
}
.nsp-cookie-settings.show { display: block; }

/* Categorie-rij */
.nsp-cookie-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(21,18,15,.08);
}
.nsp-cookie-cat:last-child { border-bottom: none; }

.nsp-cookie-cat__name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.nsp-cookie-cat__desc {
  font-size: 13px;
  color: #6F675D;
  line-height: 1.45;
}
.nsp-cookie-cat__fixed {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #A89C8C;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Toggle schakelaar ───────────────────────── */

.nsp-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Verberg het echte checkbox-element — !important voorkomt Bootstrap override */
.nsp-toggle input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}

/* De zichtbare balk */
.nsp-toggle__slider {
  position: absolute;
  inset: 0;
  background: rgba(21,18,15,.18);
  border-radius: 28px;
  transition: background .2s;
}

/* Het ronde knopje */
.nsp-toggle__slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform .2s;
}

/* Ingeschakeld */
.nsp-toggle input:checked + .nsp-toggle__slider {
  background: #E86E10;
}
.nsp-toggle input:checked + .nsp-toggle__slider::before {
  transform: translateX(24px);
}

/* Focusstijl voor toegankelijkheid */
.nsp-toggle input:focus-visible + .nsp-toggle__slider {
  outline: 2px solid #0B5BB0;
  outline-offset: 2px;
}

/* ── Knoppen ─────────────────────────────────── */

.nsp-cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* Instellingen-knop */
.nsp-cookie-btn-settings {
  background: none;
  border: 1.5px solid rgba(21,18,15,.25);
  border-radius: 3px;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #6F675D;
  cursor: pointer;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  transition: border-color .15s, color .15s;
}
.nsp-cookie-btn-settings:hover {
  border-color: rgba(21,18,15,.5);
  color: #15120F;
}

/* Chevron roteert bij openen */
.nsp-cookie-btn-settings__icon {
  display: inline-block;
  transition: transform .2s;
}
.nsp-cookie-btn-settings.is-open .nsp-cookie-btn-settings__icon {
  transform: rotate(180deg);
}

/* ── Mobiel ──────────────────────────────────── */

@media (max-width: 575.98px) {
  .nsp-cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-radius: 8px 8px 0 0;
  }
  .nsp-cookie-btn-settings {
    margin-left: 0;
  }
}