/* Homepage (test): WhatsApp, vaste CTA-balk en cookiemelding als één samenhangend geheel.
   Posities: --wjm-bar = hoogte van de CTA-balk (0 als die niet zichtbaar is). */
:root { --wjm-gap: 12px; --wjm-wa: #25D366; }

/* ---------- WhatsApp onder de hero-CTA's (alleen mobiel): rustige tekstlink ---------- */
.wjm-wa-line { display: none; }
@media (max-width: 900px) {
  body .wjm-wa-line {
    display: flex; justify-content: center; align-items: flex-start; gap: 8px; width: 100%; margin: 14px 0 0; padding: 4px 0;
    border: 0; border-radius: 0; background: none; box-shadow: none; color: #171713; text-decoration: none; text-align: center;
  }
  body .wjm-wa-line .wjm-wa-icon { display: grid; place-items: center; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: #1FA855; }
  body .wjm-wa-line .wjm-wa-icon svg { width: 18px; height: 18px; }
  body .wjm-wa-line strong { display: block; color: #171713; font-size: .9rem; font-weight: 700; line-height: 1.3; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  body .wjm-wa-line small { display: block; max-width: 300px; margin: 3px auto 0; color: #2E7D4F; font-size: .78rem; font-style: italic; line-height: 1.35; }
}

/* ---------- Zwevende WhatsApp-knop rechtsonder: op alle pagina's direct zichtbaar ---------- */
.wjm-wa-float {
  position: fixed; z-index: 1190; right: 20px; bottom: 20px;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wjm-wa); color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none; transform: translateY(8px) scale(.94); transition: opacity .2s, transform .2s, bottom .22s ease;
}
.wjm-wa-float svg { width: 30px; height: 30px; }
.wjm-wa-float.is-visible { opacity: 1; pointer-events: auto; transform: none; }
@media (max-width: 900px) {
  body .wjm-wa-float { right: 14px; width: 52px; height: 52px; bottom: calc(var(--wjm-bar, 0px) + var(--wjm-cookie, 0px) + max(14px, env(safe-area-inset-bottom))); }
}

/* ---------- Vaste CTA-balk: compacter met bereikbaarheidsregel ---------- */
@media (max-width: 900px) {
  body .wh15-mobile-sticky-cta { grid-template-columns: 1fr 1fr !important; row-gap: 6px !important; padding: 7px 8px 8px !important; border-radius: 16px !important; }
  body .wh15-mobile-sticky-cta .wjm-status { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 7px; color: #5C544B; font-size: .72rem; line-height: 1.2; }
  body .wh15-mobile-sticky-cta .wjm-status b { color: #171713; font-weight: 750; }
  body .wh15-mobile-sticky-cta .wjm-status i { width: 7px; height: 7px; border-radius: 50%; background: #B9AE9F; }
  body .wh15-mobile-sticky-cta .wjm-status.is-open i { background: #60712F; box-shadow: 0 0 0 3px rgba(96,113,47,.18); }
  body .wh15-mobile-sticky-cta a { min-height: 48px !important; border-radius: 11px !important; }
  body .wh15-mobile-sticky-cta .wh15-mobile-sticky-call { background: #60712F !important; border-color: #60712F !important; }
  body .wh15-mobile-sticky-cta .wh15-mobile-sticky-contact { background: #D8A33D !important; color: #171713 !important; font-size: .82rem !important; font-weight: 850 !important; }
  /* Inhoud blijft volledig bereikbaar: ruimte onder de footer voor balk + zwevende knoppen */
  body.wjm-bar-on .wt10-footer { padding-bottom: calc(var(--wjm-bar, 0px) + 74px) !important; }
}

/* Cookiemelding: zie wijdema-cookies.css (cookieplugin). */
}
@media (prefers-reduced-motion: reduce) { .wjm-cookie, .wjm-cookie-reopen, .wjm-wa-float { transition: none !important; } }

/* ---------- WhatsApp-venster (opent bij een klik op een WhatsApp-knop) ---------- */
.wjm-wa-modal[hidden] { display: none; }
.wjm-wa-modal { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; padding: 16px; }
.wjm-wa-backdrop { position: absolute; inset: 0; background: rgba(23,23,19,.5); }
.wjm-wa-dialog {
  position: relative; display: grid; gap: 12px; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 22px 20px 20px; border-radius: 18px; background: #fff; color: #5C544B; box-shadow: 0 24px 60px rgba(0,0,0,.25);
  font-size: .86rem; line-height: 1.5;
}
.wjm-wa-dialog h2 { margin: 0 32px 0 0; color: #171713; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.wjm-wa-intro { margin: -4px 0 2px; }
.wjm-wa-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #F4EFE6; color: #171713; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.wjm-wa-dialog label { display: grid; gap: 5px; color: #171713; font-size: .82rem; font-weight: 700; }
.wjm-wa-dialog input:not([type=file]), .wjm-wa-dialog textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #E2D8C9; border-radius: 10px; background: #fff; color: #171713; font: 400 .95rem/1.4 Inter, system-ui, sans-serif;
}
.wjm-wa-dialog textarea { resize: vertical; min-height: 84px; }
.wjm-wa-dialog input[type=file] { width: 100%; padding: 8px; border: 1px solid #E2D8C9; border-radius: 10px; font: 400 .82rem Inter, system-ui, sans-serif; color: #5C544B; }
.wjm-wa-dialog input:focus, .wjm-wa-dialog textarea:focus { outline: none; border-color: #1FA855; box-shadow: 0 0 0 3px rgba(31,168,85,.18); }
.wjm-wa-hint { margin-top: -6px; color: #777167; font-size: .76rem; }
.wjm-wa-error { margin: 0; padding: 8px 10px; border-radius: 8px; background: #FCEDEA; color: #9B2C1C; font-size: .8rem; }
.wjm-wa-submit { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border: 0; border-radius: 12px; background: var(--wjm-wa); color: #fff; font: 800 .98rem/1 Inter, system-ui, sans-serif; cursor: pointer; }
.wjm-wa-submit svg { width: 22px; height: 22px; }
.wjm-wa-close:focus-visible, .wjm-wa-submit:focus-visible { outline: 3px solid #60712F; outline-offset: 2px; }
body.wjm-wa-open { overflow: hidden; }
body.wjm-wa-open .wjm-cookie-reopen { opacity: 0; pointer-events: none; }
@media (max-width: 560px) {
  .wjm-wa-modal { align-items: end; padding: 0; }
  .wjm-wa-dialog { width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}
/* WhatsApp-venster volgens nieuw ontwerp: ronde velden, fotoregel als uitleg */
.wjm-wa-intro { padding-bottom: 12px; border-bottom: 1px solid #EEE8DF; }
.wjm-wa-dialog input:not([type=file]) { border-radius: 999px; padding: 11px 16px; }
.wjm-wa-dialog textarea { border-radius: 12px; padding: 11px 16px; }
.wjm-wa-photo { display: flex; gap: 10px; align-items: flex-start; color: #60712F; }
.wjm-wa-photo svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; }
.wjm-wa-photo strong { display: block; color: #171713; font-size: .9rem; font-weight: 700; }
.wjm-wa-photo small { display: block; color: #5C544B; font-size: .78rem; }
body .wjm-wa-dialog h2#wjm-wa-title { max-width: none !important; width: auto !important; font-size: 1.12rem !important; line-height: 1.3 !important; }
@media (max-width: 900px) {
  body a.wjm-wa-line strong { font-size: 14px; white-space: nowrap; }
  body a.wjm-wa-line small { max-width: none; font-size: 12px; white-space: nowrap; }
  body a.wjm-wa-line .wjm-wa-icon { width: 16px; height: 16px; }
  body a.wjm-wa-line .wjm-wa-icon svg { width: 16px; height: 16px; }
}
/* Foto toevoegen in het WhatsApp-venster */
.wjm-wa-photo { display: grid; gap: 10px; }
.wjm-wa-drop { display: flex !important; grid-template-columns: none; align-items: center; gap: 12px !important; padding: 12px 14px; border: 1.5px dashed #CFC3B1; border-radius: 12px; background: #FBF8F2; color: #60712F; cursor: pointer; }
.wjm-wa-drop:focus-within { border-color: #1FA855; box-shadow: 0 0 0 3px rgba(31,168,85,.18); }
.wjm-wa-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wjm-wa-drop svg { flex: 0 0 26px; width: 26px; height: 26px; }
.wjm-wa-drop strong { display: block; color: #171713; font-size: .9rem; font-weight: 700; }
.wjm-wa-drop small { display: block; color: #5C544B; font-size: .76rem; font-weight: 400; }
.wjm-wa-thumbs { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wjm-wa-thumbs li { position: relative; width: 64px; height: 64px; }
.wjm-wa-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid #E2D8C9; }
.wjm-wa-thumbs button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: #171713; color: #fff; font-size: 14px; line-height: 22px; cursor: pointer; }

/* WhatsApp-alternatief in formulieren */
.wjm-wa-form { display: grid; gap: 10px; margin: 14px 0 4px; color: #171713; text-decoration: none; }
.wjm-wa-form-or { display: flex; align-items: center; gap: 10px; color: #8A8176; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.wjm-wa-form-or i { flex: 1; height: 1px; background: #E7DDCF; }
.wjm-wa-form-link { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border: 1px solid #CDE9D7; border-radius: 12px; background: #F3FBF6; font-size: 14px; line-height: 1.35; text-align: center; }
.wjm-wa-form-link .wjm-wa-icon { display: grid; flex: 0 0 20px; width: 20px; height: 20px; color: #1FA855; }
.wjm-wa-form-link .wjm-wa-icon svg { width: 20px; height: 20px; }
.wjm-wa-form-link strong { color: #1B7A43; text-decoration: underline; text-underline-offset: 3px; }
.wjm-wa-form:hover .wjm-wa-form-link { border-color: #1FA855; }
.wjm-wa-form:focus-visible { outline: 3px solid #60712F; outline-offset: 3px; border-radius: 12px; }


/* Tablet: WhatsApp-link links uitgelijnd onder de knoppen (zoals de rest van de hero) */
@media (min-width: 561px) and (max-width: 900px) {
  body a.wjm-wa-line { justify-content: flex-start; text-align: left; }
}

/* WhatsApp Business API: uitleg onder de knop en bevestiging na versturen */
.wjm-wa-note { margin: -4px 0 0; color: #777167; font-size: .76rem; line-height: 1.45; text-align: center; }
.wjm-wa-note a { color: #4E5D24; font-weight: 700; text-decoration: underline; }
.wjm-wa-done[hidden] { display: none; }
.wjm-wa-done { position: relative; display: grid; gap: 12px; justify-items: center; width: min(440px, 100%); padding: 32px 22px 22px; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.wjm-wa-done h2 { margin: 0; color: #171713; font-size: 1.2rem; font-weight: 800; }
.wjm-wa-done p { margin: 0; color: #5C544B; font-size: .9rem; line-height: 1.55; }
.wjm-wa-done-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #E6F6EC; color: #1B7A43; font-size: 28px; font-weight: 800; }
.wjm-wa-done .wjm-wa-submit { width: 100%; }
.wjm-wa-submit:disabled { opacity: .7; cursor: progress; }
@media (max-width: 560px) { .wjm-wa-done { width: 100%; border-radius: 18px 18px 0 0; padding-bottom: max(22px, env(safe-area-inset-bottom)); } }

/* Zwevende WhatsApp-knop kleiner en rustiger */
body .wjm-wa-float { width: 46px; height: 46px; right: 18px; bottom: 18px; box-shadow: 0 6px 16px rgba(0,0,0,.16); }
body .wjm-wa-float svg { width: 25px; height: 25px; }
@media (max-width: 900px) {
  body .wjm-wa-float { right: 14px; width: 44px; height: 44px; bottom: calc(var(--wjm-bar, 0px) + var(--wjm-cookie, 0px) + max(14px, env(safe-area-inset-bottom))); }
  body .wjm-wa-float svg { width: 24px; height: 24px; }
}
