/* ============================================================
   Het Behout — Cookie Consent Banner
   GDPR/AVG + Belgische Cookiewet compliant
   Versie 1.0
   ============================================================ */

/* ── Reset & basis ───────────────────────────────────────── */
#hb-cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 12, 0.55);
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
#hb-cookie-overlay.hb-visible {
  opacity: 1;
  pointer-events: all;
}

#hb-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  font-family: 'Georgia', 'Times New Roman', serif;
  background: #f5f0e8;
  border-top: 3px solid #3B6D11;
  box-shadow: 0 -6px 40px rgba(20, 32, 12, 0.18);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 90vh;
  overflow-y: auto;
}
#hb-cookie-banner.hb-visible {
  transform: translateY(0);
}

/* ── Inner wrapper ───────────────────────────────────────── */
.hb-cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 32px 24px;
}

/* ── Header ──────────────────────────────────────────────── */
.hb-cookie-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.hb-cookie-title {
  font-size: 17px;
  font-weight: 700;
  color: #2D4A1E;
  letter-spacing: 0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hb-cookie-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #3B6D11;
  border-radius: 50%;
  flex-shrink: 0;
}
.hb-cookie-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b6b5e;
  font-size: 20px;
  line-height: 1;
  padding: 2px 4px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.hb-cookie-close:hover { color: #2D4A1E; }

/* ── Intro tekst ─────────────────────────────────────────── */
.hb-cookie-intro {
  font-size: 13.5px;
  color: #4a4a3e;
  line-height: 1.65;
  margin: 0 0 18px;
}
.hb-cookie-intro a {
  color: #3B6D11;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hb-cookie-intro a:hover { color: #2D4A1E; }

/* ── Categorieën ─────────────────────────────────────────── */
.hb-cookie-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.hb-cookie-category {
  background: #fff;
  border: 1.5px solid #d8d0c0;
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.hb-cookie-category:has(.hb-toggle:checked) {
  border-color: #3B6D11;
}
.hb-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.hb-cat-name {
  font-size: 13px;
  font-weight: 700;
  color: #2D4A1E;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hb-cat-desc {
  font-size: 12px;
  color: #6b6b5e;
  line-height: 1.5;
  margin: 0;
}

/* ── Toggle switch ───────────────────────────────────────── */
.hb-toggle-wrap {
  position: relative;
  flex-shrink: 0;
}
.hb-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.hb-toggle-label {
  display: block;
  width: 38px;
  height: 22px;
  background: #c8c0b0;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.25s;
  position: relative;
}
.hb-toggle-label::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.hb-toggle:checked + .hb-toggle-label {
  background: #3B6D11;
}
.hb-toggle:checked + .hb-toggle-label::after {
  transform: translateX(16px);
}
.hb-toggle:disabled + .hb-toggle-label {
  opacity: 0.6;
  cursor: not-allowed;
}
.hb-required-tag {
  font-size: 10px;
  color: #3B6D11;
  background: #e8f2de;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Actieknoppen ────────────────────────────────────────── */
.hb-cookie-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.hb-btn {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 10px 22px;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.hb-btn:active { transform: scale(0.97); }

.hb-btn-accept-all {
  background: #3B6D11;
  color: #fff;
}
.hb-btn-accept-all:hover { background: #2D4A1E; }

.hb-btn-accept-selection {
  background: transparent;
  color: #3B6D11;
  border: 1.5px solid #3B6D11;
}
.hb-btn-accept-selection:hover {
  background: #e8f2de;
}

.hb-btn-reject {
  background: transparent;
  color: #6b6b5e;
  border: 1.5px solid #c8c0b0;
}
.hb-btn-reject:hover {
  background: #ede8df;
  color: #2D4A1E;
}

.hb-cookie-actions .hb-spacer {
  flex: 1;
}
.hb-powered {
  font-size: 11px;
  color: #a0998c;
  font-style: italic;
}

/* ── Kleine heropening knop (na sluiten) ─────────────────── */
#hb-cookie-reopen {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 99990;
  background: #3B6D11;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 8px 14px 8px 10px;
  font-size: 12px;
  font-family: 'Georgia', serif;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 14px rgba(45, 74, 30, 0.35);
  transition: background 0.2s, transform 0.15s;
}
#hb-cookie-reopen:hover {
  background: #2D4A1E;
  transform: translateY(-1px);
}
#hb-cookie-reopen svg {
  flex-shrink: 0;
}

/* ── Responsief ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .hb-cookie-inner {
    padding: 20px 18px 18px;
  }
  .hb-cookie-categories {
    grid-template-columns: 1fr;
  }
  .hb-cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hb-btn {
    text-align: center;
    padding: 12px 16px;
  }
  .hb-spacer { display: none; }
}