/* WerfHero – supportchat (assets/js/hulp.js). Geel/zwart, geen blauw. */
.hulp-knop { position: fixed; right: 20px; bottom: 20px; z-index: 56; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--inkt); color: var(--wit); font: inherit; font-weight: 800; font-size: 15px;
  box-shadow: 0 0 0 2px var(--geel), 0 10px 24px rgba(0,0,0,.28); transition: right .25s ease, bottom .25s ease, transform .15s ease; }
/* Rechtsonder (zoals de meeste chats), links naast de knop 'naar boven' zodra die verschijnt.
   Links onderaan bedekte hij de tekst van de startpagina (hero) op 1024–1280px. */
.zweef.is-zichtbaar ~ .hulp-knop { right: 82px; }
.hulp-knop svg { width: 24px; height: 24px; color: var(--geel); flex: none; }
.hulp-knop:hover { transform: translateY(-2px); }
.hulp-open .hulp-knop { display: none; }

.hulp { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 380px; height: min(600px, calc(100vh - 110px));
  display: flex; flex-direction: column; background: var(--wit); color: var(--inkt); border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06); }
.hulp[hidden] { display: none; }
.hulp__kop { display: flex; align-items: center; gap: 6px; padding: 14px 12px 14px 18px; background: var(--inkt); color: var(--wit); position: relative; }
.hulp__kop::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: repeating-linear-gradient(-45deg, var(--geel) 0 8px, var(--inkt) 8px 16px); }
.hulp__kop div { flex: 1; min-width: 0; }
.hulp__kop strong { display: block; color: var(--geel); font-weight: 900; font-size: 17px; }
.hulp__kop span { display: block; font-size: 13px; color: var(--grijs-4); }
.hulp__kop button { width: 40px; height: 40px; flex: none; border: 0; border-radius: 12px; background: transparent; color: var(--wit); cursor: pointer; display: grid; place-items: center; }
.hulp__kop button:hover { background: var(--grijs-1); }
.hulp__kop svg { width: 20px; height: 20px; }

.hulp__lijst { flex: 1; overflow-y: auto; padding: 22px 14px 10px; display: flex; flex-direction: column; gap: 10px; background: var(--grijs-7); overscroll-behavior: contain; }
.hulp__bericht { max-width: 86%; }
.hulp__bericht > p { margin: 0; padding: 10px 13px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.hulp__bericht--hulp { align-self: flex-start; }
.hulp__bericht--hulp > p { background: var(--wit); border: 1px solid var(--grijs-6); border-bottom-left-radius: 4px; }
.hulp__bericht--klant { align-self: flex-end; }
.hulp__bericht--klant > p { background: var(--geel); border-bottom-right-radius: 4px; font-weight: 600; }
.hulp__bericht.is-bezig > p { color: var(--grijs-3); font-style: italic; }
.hulp__door { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.hulp__tips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; background: var(--grijs-7); }
.hulp__tips[hidden] { display: none; }
.hulp__tips button { border: 1.5px solid var(--inkt); background: var(--wit); color: var(--inkt); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; min-height: 44px; }
.hulp__tips button:hover { background: var(--geel); }

.hulp__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--grijs-6); background: var(--wit); }
.hulp__form[hidden] { display: none; }
.hulp__form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 13px; border: 1.5px solid var(--grijs-5); border-radius: 14px; font: inherit; font-size: 16px; line-height: 1.35; color: var(--inkt); background: var(--wit); }
.hulp__form textarea:focus { outline: none; border-color: var(--inkt); }
.hulp__form button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 14px; background: var(--geel); color: var(--inkt); cursor: pointer; display: grid; place-items: center; }
.hulp__form button:disabled { opacity: .5; cursor: default; }
.hulp__form button svg { width: 22px; height: 22px; }

.hulp__voet { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 4px; font-size: 13px; font-weight: 700; color: var(--grijs-2); }
.hulp__kanalen { display: flex; gap: 6px; }
.hulp__ai { margin: 0; padding: 0 12px 10px; font-size: 11px; color: var(--grijs-3); }
.hulp__wa, .hulp__mail { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.hulp__wa { background: var(--inkt); color: var(--wit); }
.hulp__wa svg { color: #25D366; }
.hulp__mail { border: 1.5px solid var(--inkt); color: var(--inkt); }
.hulp__wa svg, .hulp__mail svg { width: 17px; height: 17px; }
.hulp__wa.groot, .hulp__mail.groot { min-height: 44px; padding: 0 15px; font-size: 14px; }

.hulp__contact { margin-top: 10px; background: var(--wit); border: 1px solid var(--grijs-6); border-radius: 14px; padding: 10px; }
.hulp__contact p { margin: 0 0 8px; font-size: 13px; line-height: 1.4; color: var(--grijs-1); }
.hulp__contact p.is-ok { margin: 0; font-weight: 700; color: var(--inkt); }
.hulp__contact div { display: flex; gap: 6px; }
.hulp__contact input { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border: 1.5px solid var(--grijs-5); border-radius: 10px; font: inherit; font-size: 16px; }
.hulp__contact input:focus { outline: none; border-color: var(--inkt); }
.hulp__contact button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--geel); color: var(--inkt); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }

@media (max-width: 959px) {
  /* Op de gsm: ronde knop rechts, boven de vaste "gratis proberen"-balk; het venster vult het scherm. */
  /* Zonder vaste balk (bovenaan de pagina) zakt de knop naar de hoek, zodat hij de knoppen van de hero niet bedekt. */
  .hulp-knop { right: 12px; bottom: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: 52px; padding: 0; justify-content: center; }
  .zweef.is-zichtbaar ~ .hulp-knop { right: 12px; bottom: 76px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 64px); }
  .hulp-knop span { display: none; }
  .hulp { left: 0; right: 0; top: 0; bottom: 0; width: auto; height: auto; border-radius: 0; }
  .hulp-open, .hulp-open body { overflow: hidden; }
  .hulp__voet { padding-bottom: max(4px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .hulp-knop { transition: none; } }
@media print { .hulp-knop, .hulp { display: none; } }
