/* ==========================================================================
   EvenJij cookietoestemming
   Aanvullende stylesheet (hoort bij /js/evenjij-cookie-consent.js).
   Huisstijl: bruin #644534, taupe #967F71, ink #3B3937, creme #F7F2EC.

   Uitgangspunt voor de vormgeving: weigeren moet net zo makkelijk zijn als
   accepteren. De twee hoofdknoppen krijgen daarom exact dezelfde maat,
   dezelfde typografie en dezelfde visuele zwaarte. Er is geen "stille"
   weigerknop en geen donkere-patroon-truc met een lichtgrijze tweede knop.
   ========================================================================== */

.ej-cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(43, 33, 27, 0.72);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ej-cc-overlay[hidden] { display: none; }

/* Zolang de dialoog open is mag de achterliggende pagina niet scrollen of
   bediend worden. De focus-trap in de JS regelt het toetsenbord. */
body.ej-cc-locked { overflow: hidden; }

.ej-cc-dialog {
  width: 100%;
  max-width: 640px;
  margin: auto;
  background: #FBF7F2;
  color: #3B3937;
  border: 1px solid #E3D8CD;
  border-top: 5px solid #644534;
  border-radius: 0;
  box-shadow: 0 18px 50px rgba(43, 33, 27, 0.35);
  padding: 1.75rem;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

@media (min-width: 576px) {
  .ej-cc-dialog { padding: 2.25rem; }
}

.ej-cc-title {
  color: #644534;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.ej-cc-text {
  color: #3B3937;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.ej-cc-text a,
.ej-cc-links a {
  color: #644534;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ej-cc-text a:hover,
.ej-cc-links a:hover { color: #967F71; }

/* ── Knoppenrij: twee gelijkwaardige hoofdknoppen ────────────────────── */

.ej-cc-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0 0.75rem;
}

@media (min-width: 576px) {
  .ej-cc-actions { grid-template-columns: 1fr 1fr; }
}

.ej-cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  border-radius: 0;
  border: 2px solid #644534;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* Accepteren en weigeren delen dezelfde afmetingen. Het enige verschil is
   vulling versus omlijning, zodat ze even goed opvallen. */
.ej-cc-btn-accept {
  background: #644534;
  color: #F7F2EC;
}

.ej-cc-btn-accept:hover {
  background: #52382a;
  border-color: #52382a;
  color: #fff;
}

.ej-cc-btn-reject {
  background: #F7F2EC;
  color: #644534;
}

.ej-cc-btn-reject:hover {
  background: #EFE4D8;
  color: #52382a;
}

.ej-cc-btn:focus-visible,
.ej-cc-toggle:focus-visible,
.ej-cc-dialog a:focus-visible,
.ej-cc-option input:focus-visible {
  outline: 3px solid #967F71;
  outline-offset: 2px;
}

/* Secundaire, bewust minder zware knop: het openklappen van de details.
   Deze mag rustiger zijn omdat hij geen toestemming geeft of weigert. */
.ej-cc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 0;
  padding: 0.35rem 0;
  color: #644534;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ej-cc-toggle:hover { color: #967F71; }

/* ── Granulaire keuzes ───────────────────────────────────────────────── */

.ej-cc-options {
  margin: 1rem 0 0;
  border-top: 1px solid #E3D8CD;
  padding-top: 1rem;
}

.ej-cc-options[hidden] { display: none; }

.ej-cc-option {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem;
  margin-bottom: 0.6rem;
  background: #fff;
  border: 1px solid #E3D8CD;
  border-radius: 0;
}

.ej-cc-option input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: #644534;
  cursor: pointer;
}

.ej-cc-option input[type="checkbox"]:disabled { cursor: not-allowed; }

/* Uitgegrijsd: noodzakelijke cookies staan vast aan en zijn niet te wijzigen. */
.ej-cc-option-locked {
  background: #F2ECE5;
  color: #6b6560;
}

.ej-cc-option-locked .ej-cc-option-title { color: #6b6560; }

.ej-cc-option-title {
  display: block;
  color: #3B3937;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.ej-cc-option-desc {
  display: block;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #6b6560;
  margin: 0;
}

.ej-cc-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0;
  background: #E3D8CD;
  color: #52382a;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.ej-cc-save {
  margin-top: 0.25rem;
}

.ej-cc-links {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid #E3D8CD;
  font-size: 0.85rem;
  color: #6b6560;
}

.ej-cc-links a { margin-right: 0.85rem; }

/* Sluitknop, alleen zichtbaar wanneer er al een geldige keuze bestaat en de
   bezoeker de dialoog zelf heropende via "Cookievoorkeuren". */
.ej-cc-close {
  float: right;
  background: none;
  border: 0;
  padding: 0.25rem 0.5rem;
  margin: -0.5rem -0.5rem 0 0;
  color: #6b6560;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.ej-cc-close:hover { color: #3B3937; }
.ej-cc-close[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .ej-cc-dialog { animation: ejCcIn 0.25s ease-out; }
  @keyframes ejCcIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
