/* ============================================================
   MATOMO COOKIE CONSENT – in websitestijl
   Voeg toe aan navigation.css of style.css (onderaan)
   ============================================================ */

/* ── BANNER ── */
.gz-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: #2a2a2a;
  color: #fff;
  padding: 1.2rem 2rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  border-top: 3px solid #c8633a;
}
.gz-cookie-banner.visible {
  transform: translateY(0);
}
.gz-cookie-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.gz-cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 280px;
}
.gz-cookie-icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 2px; }
.gz-cookie-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.3rem;
}
.gz-cookie-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin: 0;
}
.gz-cookie-desc a {
  color: #d4a843;
  text-decoration: underline;
}
.gz-cookie-desc strong { color: rgba(255,255,255,0.9); }

.gz-cookie-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Knoppen */
.gz-cookie-btn {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}
.gz-cookie-settings {
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.25);
}
.gz-cookie-settings:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.gz-cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.gz-cookie-decline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.gz-cookie-accept {
  background: #c8633a;
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(200,99,58,0.35);
}
.gz-cookie-accept:hover {
  background: #a64e2b;
  transform: translateY(-1px);
}

/* ── MODAL ── */
.gz-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.gz-cookie-modal.open {
  pointer-events: all;
  opacity: 1;
}
.gz-cookie-modal-inner {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s;
}
.gz-cookie-modal.open .gz-cookie-modal-inner {
  transform: translateY(0);
}
.gz-cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid #e8e0d5;
  background: #2d5e3a;
}
.gz-cookie-modal-header h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  color: #fff;
  margin: 0;
}
.gz-cookie-modal-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.gz-cookie-modal-close:hover { background: rgba(255,255,255,0.28); }

.gz-cookie-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Cookie categorieën */
.gz-cookie-category {
  border: 1px solid #e8e0d5;
  border-radius: 10px;
  overflow: hidden;
}
.gz-cookie-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  background: #fdf8f2;
  gap: 1rem;
}
.gz-cookie-cat-header h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  color: #2a2a2a;
  margin: 0 0 0.25rem;
}
.gz-cookie-cat-header p {
  font-size: 0.81rem;
  color: #6b6b6b;
  margin: 0;
  line-height: 1.5;
}
.gz-cookie-toggle-disabled {
  font-size: 0.72rem;
  color: #2d5e3a;
  font-weight: 700;
  background: #d4edda;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Toggle schakelaar */
.gz-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}
.gz-toggle input { opacity: 0; width: 0; height: 0; }
.gz-toggle-slider {
  position: absolute;
  inset: 0;
  background: #e8e0d5;
  border-radius: 100px;
  transition: background 0.2s;
}
.gz-toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.gz-toggle input:checked + .gz-toggle-slider { background: #2d5e3a; }
.gz-toggle input:checked + .gz-toggle-slider::before { transform: translateX(20px); }

/* Cookie detail tabel */
.gz-cookie-cat-detail {
  padding: 0.8rem 1.2rem;
  border-top: 1px solid #e8e0d5;
}
.gz-cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  color: #6b6b6b;
}
.gz-cookie-table th {
  text-align: left;
  padding: 0.3rem 0.5rem;
  font-weight: 700;
  color: #2a2a2a;
  border-bottom: 1px solid #e8e0d5;
}
.gz-cookie-table td {
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid #f0e8d8;
}
.gz-cookie-table tr:last-child td { border-bottom: none; }
.gz-cookie-table code {
  background: #f0e8d8;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
}

.gz-cookie-modal-footer {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e8e0d5;
  background: #fdf8f2;
}

/* ── OVERLAY ── */
.gz-cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 9050;
  pointer-events: none;
  transition: background 0.3s;
}
.gz-cookie-overlay.open {
  background: rgba(0,0,0,0.55);
  pointer-events: all;
}

/* ── HEROPENEN KNOP ── */
.gz-cookie-reopen {
  position: fixed;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: 8900;
  background: #2a2a2a;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: background 0.18s, transform 0.18s;
  display: flex; align-items: center; justify-content: center;
}
.gz-cookie-reopen:hover {
  background: #c8633a;
  transform: scale(1.1);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .gz-cookie-inner { flex-direction: column; padding: 1.2rem; }
  .gz-cookie-actions { width: 100%; }
  .gz-cookie-btn { flex: 1; text-align: center; }
  .gz-cookie-modal { padding: 0; align-items: flex-end; }
  .gz-cookie-modal-inner { border-radius: 16px 16px 0 0; max-height: 85vh; }
}

/* ============================================================
   NIEUWSBRIEF POPUP
   ============================================================ */
.gz-newsletter-popup {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 900;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  width: min(370px, calc(100vw - 2rem));
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
  overflow: hidden;
}
.gz-newsletter-popup.visible {
  transform: translateY(0);
  opacity: 1;
}
.gz-nl-popup-header {
  background: #2d5e3a;
  padding: 1.1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gz-nl-popup-header h3 {
  font-size: 1rem;
  color: #fff;
  margin: 0;
}
.gz-nl-popup-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.gz-nl-popup-close:hover { background: rgba(255,255,255,0.3); }
.gz-nl-popup-body { padding: 1.3rem 1.4rem; }
.gz-nl-popup-body p {
  font-size: 0.86rem;
  color: #6b6b6b;
  margin-bottom: 0.9rem;
  line-height: 1.6;
}
.gz-nl-popup-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.gz-nl-popup-form input[type="text"] {
  display: none !important; /* honeypot */
}
.gz-nl-popup-form input[type="email"] {
  border: 1.5px solid #e8e0d5;
  border-radius: 8px;
  padding: 0.62rem 0.9rem;
  font-family: inherit;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.gz-nl-popup-form input[type="email"]:focus { border-color: #2d5e3a; }
.gz-nl-popup-submit {
  background: #c8633a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.68rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}
.gz-nl-popup-submit:hover { background: #a64e2b; }
.gz-nl-popup-success {
  display: none;
  text-align: center;
  padding: 0.8rem;
  color: #2d5e3a;
  font-weight: 600;
  font-size: 0.88rem;
}
.gz-nl-popup-privacy {
  font-size: 0.7rem;
  color: #6b6b6b;
  text-align: center;
  margin-top: 0.35rem;
}
.gz-nl-popup-privacy a { color: #c8633a; }

@media (max-width: 400px) {
  .gz-newsletter-popup {
    bottom: 0; right: 0;
    border-radius: 18px 18px 0 0;
    width: 100%;
  }
}
