/* Werkhervattingskas chat + contactknop.
   De chatknop staat 12px boven de contactknop. Openen van de een verbergt de ander.
   Alleen actief als de server de widget in de pagina zet. */
.whkchat{--whk-green:#1C6E4A;--whk-green-d:#15563A;--whk-ink:#11192B;--whk-paper:#F7F3EA;--whk-line:#D7CBB0;--whk-soft:#5B5547;--whk-size:58px;position:fixed;right:22px;bottom:var(--whkchat-lift,22px);z-index:520;width:max-content;max-width:calc(100vw - 24px);font-family:"IBM Plex Sans",sans-serif;font-size:15px;line-height:1.45;color:var(--whk-ink);pointer-events:none}
.whkchat,.whkchat *{box-sizing:border-box}
.whkchat [hidden]{display:none!important}
.whkchat__stack{position:relative;display:flex;flex-direction:column;align-items:flex-end;gap:12px;pointer-events:auto}
.whkchat__launch{position:relative;width:var(--whk-size);height:var(--whk-size)}
.whkchat__launcher,.whkchat__contact,.whkchat__menu,.whkchat__panel,.whkchat__teaser{pointer-events:auto}
.whkchat__launcher{display:block;width:var(--whk-size);height:var(--whk-size);padding:0;border:3px solid #fff;border-radius:50%;background:var(--whk-green-d);cursor:pointer;box-shadow:0 6px 18px rgba(17,25,43,.28);-webkit-tap-highlight-color:transparent}
.whkchat__launcher img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.whkchat__dot{position:absolute;right:1px;bottom:1px;width:14px;height:14px;border-radius:50%;background:#22c55e;border:2px solid #fff}
.whkchat__launcher:hover{transform:translateY(-1px)}
.whkchat__launcher:focus-visible,.whkchat__contact:focus-visible,.whkchat__close:focus-visible,.whkchat__send:focus-visible,.whkchat__chip:focus-visible,.whkchat__menu a:focus-visible,.whkchat__menu button:focus-visible{outline:3px solid var(--whk-ink);outline-offset:3px}
.whkchat__teaser{position:absolute;right:0;bottom:calc(100% + 10px);display:flex;align-items:center;gap:2px;max-width:min(188px,calc(100vw - 96px));padding:2px 2px 2px 0;border-radius:16px;background:#fff;border:1px solid var(--whk-line);box-shadow:0 6px 22px rgba(17,25,43,.16)}
.whkchat__teaser:after{content:"";position:absolute;right:22px;bottom:-7px;width:12px;height:12px;background:#fff;border-right:1px solid var(--whk-line);border-bottom:1px solid var(--whk-line);transform:rotate(45deg)}
.whkchat__teaser-open{display:block;margin:0;padding:6px 4px 6px 12px;border:0;background:none;color:var(--whk-ink);font-weight:700;font-size:13px;white-space:nowrap;cursor:pointer}
.whkchat__teaser-x{position:relative;z-index:1;width:24px;height:24px;border:0;border-radius:50%;background:transparent;color:var(--whk-soft);cursor:pointer}
.whkchat__contact{display:inline-flex;align-items:center;gap:8px;height:52px;padding:0 18px 0 16px;border:0;border-radius:999px;background:var(--whk-green);color:#fff;font:inherit;font-weight:700;font-size:15px;cursor:pointer;box-shadow:0 6px 18px rgba(17,25,43,.22);flex:0 0 auto}
.whkchat__contact svg{width:22px;height:22px;flex:0 0 auto}
.whkchat__contact:hover{background:var(--whk-green-d)}
.whkchat__menu{display:flex;flex-direction:column;gap:6px;min-width:220px;padding:10px;border-radius:14px;background:#fff;border:1px solid var(--whk-line);box-shadow:0 12px 32px rgba(17,25,43,.18)}
.whkchat__menu a,.whkchat__menu button{display:flex;align-items:center;gap:8px;width:100%;margin:0;padding:10px 12px;border:0;border-radius:10px;background:var(--whk-paper);color:var(--whk-ink);font:inherit;font-weight:650;font-size:14px;text-align:left;text-decoration:none;cursor:pointer}
.whkchat__menu a:hover,.whkchat__menu button:hover{background:#E7F2EC}
.whkchat.is-contact-open .whkchat__launch,.whkchat.is-open .whkchat__stack{display:none}
html.whkchat-exit .whkchat:not(.is-open) .whkchat__stack{visibility:hidden;pointer-events:none}
html.whkchat-on #whatsapp-btn{display:none!important}
html.whkchat-on #back-to-top{right:auto;left:16px}
.whkchat__panel{position:fixed;right:22px;bottom:22px;display:flex;flex-direction:column;width:380px;height:min(640px,calc(100vh - 48px));max-height:calc(100vh - 48px);border-radius:16px;background:#fff;box-shadow:0 18px 50px rgba(17,25,43,.28);overflow:hidden;z-index:80;pointer-events:auto}
.whkchat.is-open{z-index:860}
.whkchat__head{display:flex;align-items:center;gap:12px;padding:14px 12px 14px 16px;background:var(--whk-green-d);color:#fff;flex:0 0 auto}
.whkchat__head img{width:44px;height:44px;border-radius:50%;border:2px solid #fff;object-fit:cover}
.whkchat__head-txt{flex:1;min-width:0}
.whkchat__title{margin:0;font-size:15px;font-weight:750;line-height:1.25}
.whkchat__sub{margin:2px 0 0;font-size:13px;color:rgba(255,255,255,.9)}
.whkchat__close{width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:#fff;font-size:22px;cursor:pointer}
.whkchat__close:hover{background:rgba(255,255,255,.16)}
.whkchat__log{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:16px 14px 8px;background:var(--whk-paper);display:flex;flex-direction:column;gap:10px}
.whkchat__msg{max-width:88%;padding:10px 13px;border-radius:14px;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.whkchat__msg p{margin:0 0 6px}
.whkchat__msg p:last-child{margin-bottom:0}
.whkchat__msg ul{margin:4px 0 6px 18px;padding:0}
.whkchat__msg a{color:var(--whk-green-d);font-weight:700}
.whkchat__msg--bot{align-self:flex-start;background:#fff;border:1px solid var(--whk-line);border-bottom-left-radius:4px}
.whkchat__msg--user{align-self:flex-end;background:var(--whk-green-d);color:#fff;border-bottom-right-radius:4px}
.whkchat__msg--user a{color:#fff}
.whkchat__typing{display:inline-flex;gap:4px;align-items:center;height:18px}
.whkchat__typing i{width:7px;height:7px;border-radius:50%;background:#8a8172;display:block;animation:whkdot 1.1s infinite ease-in-out}
.whkchat__typing i:nth-child(2){animation-delay:.15s}
.whkchat__typing i:nth-child(3){animation-delay:.3s}
@keyframes whkdot{0%,80%,100%{opacity:.3}40%{opacity:1}}
.whkchat__chips{display:flex;flex-wrap:wrap;gap:8px;padding:4px 14px 8px;background:var(--whk-paper)}
.whkchat__chips:empty{display:none}
.whkchat__chip{margin:0;padding:8px 12px;border:2px solid var(--whk-green);border-radius:999px;background:#fff;color:var(--whk-green-d);font:inherit;font-size:14px;font-weight:700;cursor:pointer;text-align:left}
.whkchat__chip:hover,.whkchat__chip--lead{background:var(--whk-green-d);border-color:var(--whk-green-d);color:#fff}
.whkchat__offer{align-self:flex-start;margin:0;padding:8px 14px;border:2px solid var(--whk-green-d);border-radius:999px;background:#fff;color:var(--whk-green-d);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.whkchat__form{display:flex;align-items:flex-end;gap:8px;margin:0;padding:10px 12px 6px;border-top:1px solid var(--whk-line);background:#fff}
.whkchat__input{flex:1;min-height:44px;max-height:120px;margin:0;padding:10px 12px;border:1px solid var(--whk-line);border-radius:12px;background:#fff;color:var(--whk-ink);font:inherit;font-size:16px;line-height:1.35;resize:none}
.whkchat__input:focus{outline:none;border-color:var(--whk-green);box-shadow:0 0 0 3px rgba(28,110,74,.2)}
.whkchat__send{width:44px;height:44px;border:0;border-radius:50%;background:var(--whk-green);color:#fff;cursor:pointer;flex:0 0 auto}
.whkchat__send[disabled]{opacity:.5;cursor:default}
.whkchat__notice{margin:0;padding:2px 14px 10px;background:#fff;font-size:12px;line-height:1.4;color:var(--whk-soft)}
.whkchat__notice a,.whkchat__linkbtn{color:var(--whk-green-d);font-weight:700}
.whkchat__linkbtn{margin:0;padding:0;border:0;background:none;font:inherit;font-size:12px;cursor:pointer}
.whkchat__lead{align-self:stretch;padding:14px;border:1px solid var(--whk-line);border-radius:14px;background:#fff}
.whkchat__lead h3{margin:0 0 8px;font-size:15px;font-family:inherit}
.whkchat__lead p{margin:0 0 8px;font-size:13px;color:var(--whk-soft)}
.whkchat__grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.whkchat__field{display:flex;flex-direction:column;gap:3px}
.whkchat__field--wide{grid-column:1/-1}
.whkchat__field label{font-size:13px;font-weight:700}
.whkchat__field input,.whkchat__field textarea{width:100%;margin:0;padding:8px 10px;border:1px solid var(--whk-line);border-radius:8px;font:inherit;font-size:16px}
.whkchat__field textarea{min-height:64px;resize:vertical}
.whkchat__field [aria-invalid="true"]{border-color:#A23E2C}
.whkchat__err{margin:6px 0 0;color:#A23E2C;font-size:12px}
.whkchat__hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.whkchat__submit{display:block;width:100%;margin-top:10px;padding:12px 16px;border:0;border-radius:999px;background:var(--whk-green);color:#fff;font:inherit;font-size:15px;font-weight:750;cursor:pointer}
.whkchat__submit[disabled]{opacity:.6}
.whkchat__ok{margin:0;font-weight:700;color:var(--whk-green-d)}
@media (max-width:879px){
  .whkchat{right:16px;bottom:var(--whkchat-lift,16px)}
  .whkchat__panel{inset:0;width:100%;height:100%;height:100dvh;max-height:none;border-radius:0}
  .whkchat__grid{grid-template-columns:1fr}
  html.whkchat-noscroll,html.whkchat-noscroll body{overflow:hidden}
}
@media (max-width:767px){
  .whkchat{--whk-size:46px;right:12px;z-index:640}
  .whkchat__stack{flex-direction:row;align-items:center;gap:10px}
  .whkchat__launch,.whkchat__contact{flex:0 0 auto}
  .whkchat__contact{width:var(--whk-size);height:var(--whk-size);padding:0;border-radius:50%;justify-content:center;gap:0}
  .whkchat__contact span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .whkchat__menu{position:absolute;right:0;bottom:calc(100% + 10px)}
  .whkchat__teaser{display:none}
  html.whkchat-on .cookie-banner p{padding-right:118px}
}
@media (prefers-reduced-motion:reduce){
  .whkchat__launcher,.whkchat__typing i{transition:none;animation:none}
}
@media print{.whkchat{display:none!important}}
