/* Chatvenster */
.rt-chat-knop{position:fixed;right:18px;bottom:18px;z-index:60;display:inline-flex;align-items:center;gap:8px;padding:12px 18px 12px 14px;border:0;border-radius:999px;background:var(--green,#2F5D3A);color:#fff;font:inherit;font-weight:600;font-size:.95rem;box-shadow:0 10px 30px rgba(20,40,25,.25);cursor:pointer}
.rt-chat-knop svg{width:22px;height:22px}
.rt-chat-knop:hover{filter:brightness(1.08)}
.rt-chat-knop:focus-visible{outline:3px solid #E8A317;outline-offset:3px}
body.rt-chat-open .rt-chat-knop{display:none}
/* Boven de zwevende totaalbalk van de calculator blijven */
body:has(.calc-bar.show) .rt-chat-knop{bottom:86px}

.rt-chat{position:fixed;right:18px;bottom:18px;z-index:61;width:min(390px,calc(100vw - 24px));height:min(600px,calc(100vh - 36px));display:flex;flex-direction:column;background:var(--surface,#fff);border:1px solid var(--line,#e2ddd2);border-radius:20px;box-shadow:0 24px 60px rgba(20,40,25,.28);overflow:hidden}
.rt-chat[hidden]{display:none}
.rt-chat-kop{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;background:var(--green,#2F5D3A);color:#fff}
.rt-chat-kop strong{display:block;font-size:1rem}
.rt-chat-kop span{display:block;font-size:.8rem;opacity:.85}
.rt-chat-sluit{border:0;background:rgba(255,255,255,.15);color:#fff;width:34px;height:34px;border-radius:50%;font-size:1.4rem;line-height:1;cursor:pointer}
.rt-chat-berichten{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#F7F4EE}
.rt-chat-bericht{max-width:88%;padding:10px 13px;border-radius:14px;font-size:.94rem;line-height:1.5;word-wrap:break-word}
.rt-chat-bericht p{margin:0}
.rt-chat-bericht p+p,.rt-chat-bericht ul+p,.rt-chat-bericht p+ul{margin-top:6px}
.rt-chat-bericht ul{margin:0;padding-left:1.15em}
.rt-chat-bericht a{color:inherit;font-weight:600}
.van-ons{align-self:flex-start;background:#fff;border:1px solid var(--line,#e2ddd2);border-bottom-left-radius:4px}
.van-ons a{color:var(--green,#2F5D3A)}
.van-bezoeker{align-self:flex-end;background:var(--green,#2F5D3A);color:#fff;border-bottom-right-radius:4px}
.rt-chat-bericht.wacht{color:var(--muted,#6b746d);letter-spacing:3px;animation:rt-chat-puls 1.2s infinite}
.rt-chat-bericht.fout{background:#FBE9E4;border-color:#f1c7bc;color:#7A2414}
@keyframes rt-chat-puls{50%{opacity:.4}}
.rt-chat-suggesties{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 10px;background:#F7F4EE}
.rt-chat-suggesties:empty{display:none}
.rt-chat-suggesties button{border:1px solid var(--line,#e2ddd2);background:#fff;border-radius:999px;padding:6px 11px;font:inherit;font-size:.84rem;cursor:pointer;color:var(--ink,#1e2a22)}
.rt-chat-suggesties button:hover{border-color:var(--green,#2F5D3A)}
.rt-chat-form{display:flex;gap:8px;align-items:flex-end;padding:10px 12px;border-top:1px solid var(--line,#e2ddd2);background:#fff}
.rt-chat-form textarea{flex:1;resize:none;border:1px solid var(--line,#e2ddd2);border-radius:12px;padding:10px 12px;font:inherit;font-size:.95rem;max-height:120px}
.rt-chat-form textarea:focus{outline:2px solid var(--green,#2F5D3A);outline-offset:0;border-color:transparent}
.rt-chat-form button{flex:none;width:42px;height:42px;border:0;border-radius:12px;background:var(--green,#2F5D3A);color:#fff;cursor:pointer;display:grid;place-items:center}
.rt-chat-form button svg{width:20px;height:20px}
.rt-chat-voet{margin:0;padding:6px 14px 10px;font-size:.74rem;color:var(--muted,#6b746d);background:#fff}
.rt-chat-voet a{color:inherit}
.rt-chat-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (max-width:520px){
  .rt-chat{right:0;bottom:0;width:100vw;height:100dvh;border-radius:0;border:0}
  .rt-chat-knop span{display:none}
  .rt-chat-knop{padding:14px}
}
@media print{.rt-chat-knop,.rt-chat{display:none!important}}
