/* ============================================================
   Meneer van der Wafel: WhatsApp-knop, reviews en veelgestelde vragen
   ============================================================ */

/* ---------------- Zwevende WhatsApp-knop ---------------- */
.wa-widget { position: fixed; right: 18px; bottom: 18px; z-index: 90; font-family: Inter, system-ui, sans-serif; }
@media (max-width: 640px) { .wa-widget { right: 14px; bottom: 14px; } }

.wa-knop {
  position: relative;
  width: 60px; height: 60px;
  border: 0; border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 26px -6px rgba(37, 211, 102, 0.6), 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}
.wa-knop:hover { transform: scale(1.08); box-shadow: 0 12px 34px -6px rgba(37, 211, 102, 0.75); }
.wa-knop:focus-visible { outline: 3px solid #B86A1B; outline-offset: 3px; }
.wa-knop svg { width: 32px; height: 32px; }

/* Zacht kloppend ringetje, valt op zonder te schreeuwen */
.wa-knop::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid #25D366; animation: wa-puls 2.8s ease-out infinite;
}
@keyframes wa-puls {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
.wa-widget.open .wa-knop::after { animation: none; }
.wa-widget.open .wa-knop { background: #2D1B10; }

/* ---------------- Keuzemenu ---------------- */
.wa-menu {
  position: absolute; right: 0; bottom: 74px;
  width: 300px; max-width: calc(100vw - 36px);
  background: #F7EFE4;
  border: 1px solid #E6C99F;
  border-radius: 18px;
  box-shadow: 0 20px 50px -14px rgba(45, 27, 16, 0.45);
  overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.22s;
  /* nooit hoger dan het scherm, ook niet met het toetsenbord open */
  max-height: calc(100vh - 96px);
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
}
.wa-widget.open .wa-menu { opacity: 1; visibility: visible; transform: none; }

.wa-kop {
  background: #2D1B10; color: #F7EFE4;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}
.wa-kop img { width: 38px; height: 38px; border-radius: 999px; }
.wa-kop strong { display: block; font-size: 14px; }
.wa-kop span { font-size: 11.5px; color: rgba(247,239,228,0.65); }

.wa-intro { padding: 12px 16px 6px; font-size: 12.5px; color: rgba(45,27,16,0.65); }

.wa-optie {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: none; border: 0;
  border-top: 1px solid rgba(230,201,159,0.55);
  text-align: left;
  font-size: 14px; color: #2D1B10;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.wa-optie:first-of-type { border-top: 0; }
.wa-optie:hover { background: rgba(230,201,159,0.35); color: #2D1B10; }
.wa-optie .wa-pijl { margin-left: auto; color: #B86A1B; }
.wa-optie .wa-emoji { font-size: 17px; }

.wa-voet {
  padding: 9px 16px 12px;
  font-size: 11px; color: rgba(45,27,16,0.5);
  border-top: 1px solid rgba(230,201,159,0.55);
}

@media (prefers-reduced-motion: reduce) {
  .wa-knop, .wa-menu { transition: none; }
  .wa-knop::after { animation: none; }
}

/* ---------------- Reviews ---------------- */
.mvdw-reviews { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .mvdw-reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mvdw-reviews { grid-template-columns: repeat(3, 1fr); } }

.mvdw-review {
  background: #fff;
  border: 1px solid rgba(230,201,159,0.7);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 6px 18px -10px rgba(45,27,16,0.25);
  display: flex; flex-direction: column;
}
.mvdw-review__sterren { color: #F5A623; letter-spacing: 2px; font-size: 15px; }
.mvdw-review__tekst {
  margin: 10px 0 0;
  color: rgba(45,27,16,0.85);
  line-height: 1.65;
  font-size: 15px;
  flex: 1;
}
.mvdw-review__naam {
  margin-top: 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  color: #2D1B10;
}
.mvdw-review__bron {
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px; color: rgba(45,27,16,0.5);
  display: flex; align-items: center; gap: 5px; margin-top: 2px;
}

/* ---------------- Veelgestelde vragen ---------------- */
.mvdw-vragen { max-width: 780px; margin: 0 auto; }
.mvdw-vraag {
  border-bottom: 1px solid rgba(230,201,159,0.8);
}
.mvdw-vraag > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 44px 18px 4px;
  position: relative;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: #2D1B10;
  transition: color 0.2s;
}
.mvdw-vraag > summary::-webkit-details-marker { display: none; }
.mvdw-vraag > summary:hover { color: #B86A1B; }
.mvdw-vraag > summary::after {
  content: "";
  position: absolute; right: 8px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid #B86A1B;
  border-bottom: 2px solid #B86A1B;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.28s cubic-bezier(0.19, 1, 0.22, 1);
}
.mvdw-vraag[open] > summary::after { transform: translateY(-25%) rotate(225deg); }
.mvdw-vraag__antwoord {
  padding: 0 44px 20px 4px;
  color: rgba(45,27,16,0.8);
  line-height: 1.7;
  animation: mvdw-vouw 0.3s ease;
}
@keyframes mvdw-vouw { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mvdw-vraag__antwoord { animation: none; } }

/* ---------------- Melding over cookies ---------------- */
.mvdw-koekbalk {
  position: fixed;
  left: 18px; right: 18px; bottom: 18px;
  z-index: 120;
  max-width: 460px;
  background: #F7EFE4;
  border: 1px solid #E6C99F;
  border-radius: 18px;
  box-shadow: 0 20px 50px -14px rgba(45, 27, 16, 0.45);
  padding: 18px 20px 16px;
  font-family: Inter, system-ui, sans-serif;
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.38s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.3s;
}
.mvdw-koekbalk.open { opacity: 1; visibility: visible; transform: none; }

/* Op de telefoon net boven de WhatsApp-knop, zodat die vrij blijft */
@media (max-width: 640px) {
  .mvdw-koekbalk { left: 14px; right: 14px; bottom: 88px; max-width: none; padding: 16px 16px 14px; }
}

.mvdw-koektekst {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(45, 27, 16, 0.85);
}
.mvdw-koektekst a { color: #B86A1B; text-decoration: underline; text-underline-offset: 3px; }
.mvdw-koektekst a:hover { color: #7B4A17; }

.mvdw-koekknoppen { display: flex; gap: 10px; flex-wrap: wrap; }

.mvdw-koekknop {
  flex: 1 1 auto;
  min-width: 130px;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  background: #B86A1B; color: #F7EFE4;
  transition: background 0.2s, transform 0.2s;
}
.mvdw-koekknop:hover { background: #7B4A17; transform: translateY(-1px); }
.mvdw-koekknop:focus-visible { outline: 3px solid #2D1B10; outline-offset: 2px; }
.mvdw-koekknop--rustig {
  background: transparent;
  color: rgba(45, 27, 16, 0.75);
  border: 1px solid #E6C99F;
}
.mvdw-koekknop--rustig:hover { background: rgba(230, 201, 159, 0.35); color: #2D1B10; }

@media (prefers-reduced-motion: reduce) {
  .mvdw-koekbalk { transition: none; }
  .mvdw-koekknop:hover { transform: none; }
}

/* ---------------- Chat in het menu ---------------- */
.wa-verborgen {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wa-optie.wa-chatstart {
  width: 100%; font-family: inherit;
  border-bottom: 1px solid rgba(230,201,159,0.55);
}

.wa-terug {
  display: block; width: 100%;
  background: none; border: 0;
  border-bottom: 1px solid rgba(230,201,159,0.55);
  padding: 10px 16px; text-align: left;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12.5px; color: #B86A1B; cursor: pointer;
}
.wa-terug:hover { background: rgba(230,201,159,0.3); }

.wa-gesprek {
  padding: 14px 16px 6px;
  max-height: 260px;
  max-height: min(260px, 32vh);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 9px;
  overscroll-behavior: contain;
}

.wa-bel {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13.5px; line-height: 1.55;
  white-space: pre-line;
}
.wa-bel--bot  { background: #fff; border: 1px solid rgba(230,201,159,0.8); color: #2D1B10; align-self: flex-start; border-bottom-left-radius: 4px; }
.wa-bel--mens { background: #2D1B10; color: #F7EFE4; align-self: flex-end; border-bottom-right-radius: 4px; }
.wa-bel--link { color: #B86A1B; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.wa-bel--link:hover { background: rgba(230,201,159,0.35); color: #7B4A17; }

.wa-denkt { display: flex; gap: 4px; align-items: center; padding: 12px; }
.wa-denkt span {
  width: 6px; height: 6px; border-radius: 999px; background: #B86A1B;
  animation: wa-stip 1.2s infinite ease-in-out;
}
.wa-denkt span:nth-child(2) { animation-delay: 0.15s; }
.wa-denkt span:nth-child(3) { animation-delay: 0.3s; }
@keyframes wa-stip { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.wa-tips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 16px 10px; }
.wa-tip {
  border: 1px solid #E6C99F; background: #fff;
  border-radius: 999px; padding: 6px 11px;
  font-family: Inter, system-ui, sans-serif; font-size: 12px;
  color: #7B4A17; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.wa-tip:hover { background: rgba(230,201,159,0.4); border-color: #B86A1B; }

.wa-invoer {
  display: flex; gap: 7px; align-items: center;
  padding: 10px 12px;
  border-top: 1px solid rgba(230,201,159,0.55);
}
.wa-invoer input {
  flex: 1; min-width: 0;
  border: 1px solid #E6C99F; border-radius: 999px;
  padding: 9px 13px;
  font-family: Inter, system-ui, sans-serif; font-size: 13.5px;
  color: #2D1B10; background: #fff;
}
.wa-invoer input:focus { outline: 2px solid #B86A1B; outline-offset: 0; border-color: #B86A1B; }
.wa-invoer button {
  flex: 0 0 auto;
  width: 36px; height: 36px; border: 0; border-radius: 999px;
  background: #B86A1B; color: #F7EFE4;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.15s;
}
.wa-invoer button:hover { background: #7B4A17; }

.wa-naarwa {
  display: block; padding: 0 16px 12px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11.5px; color: rgba(45,27,16,0.55);
  text-decoration: underline; text-underline-offset: 3px;
}
.wa-naarwa:hover { color: #B86A1B; }

@media (prefers-reduced-motion: reduce) { .wa-denkt span { animation: none; } }
