/* ===== TJ media chatbot: het venster. Laadt pas na een klik op het knopje (js/chatbot-knop.js).
   Kleuren en letters van de huisstijl (zie style.css); vaste waarden omdat niet elke pagina style.css laadt. ===== */
.tjc{position:fixed;right:20px;bottom:20px;z-index:9995;width:min(400px,calc(100vw - 40px));height:min(640px,calc(100vh - 40px));display:flex;flex-direction:column;background:#fff;color:#2B2B2B;border:1px solid rgba(43,43,43,.16);box-shadow:0 30px 60px -24px rgba(43,43,43,.5);font-family:'Montserrat',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;font-size:15px;line-height:1.5;animation:tjc-in .22s cubic-bezier(.22,.61,.36,1)}
.tjc[hidden]{display:none}
.tjc *,.tjc *::before,.tjc *::after{box-sizing:border-box}
@keyframes tjc-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

.tjc-kop{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 10px 12px 18px;background:#2B2B2B;color:#fff}
.tjc-titel{margin:0;font-size:1rem;font-weight:700;letter-spacing:.01em}
.tjc-sluit{display:grid;place-items:center;width:44px;height:44px;border:0;background:none;color:#fff;cursor:pointer;border-radius:4px}
.tjc-sluit svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.tjc-sluit:hover{background:rgba(255,255,255,.12)}
.tjc-sluit:focus-visible{outline:2px solid #fff;outline-offset:-4px}

.tjc-balk{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 18px;background:#EFE6DE;font-size:.85rem;font-weight:600}
.tjc-wa{flex:none;display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;background:#9A0002;color:#fff;font-weight:700;font-size:.8rem;text-decoration:none}
.tjc-wa:hover{background:#7A0002}
.tjc-wa:focus-visible{outline:2px solid #2B2B2B;outline-offset:2px}

.tjc-log{flex:1;overflow-y:auto;padding:16px 16px 8px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.tjc-log:focus-visible{outline:2px solid #9A0002;outline-offset:-2px}
.tjc-melding{margin:0 0 4px;font-size:.75rem;line-height:1.45;color:#5C524A}
.tjc-melding a{color:inherit}
.tjc-bericht{max-width:88%;padding:10px 14px;border-radius:14px;white-space:pre-line;overflow-wrap:anywhere}
.tjc-bot{align-self:flex-start;background:#EFE6DE;border-bottom-left-radius:4px}
.tjc-gebruiker{align-self:flex-end;background:#2B2B2B;color:#fff;border-bottom-right-radius:4px}
.tjc-bot a:not(.tjc-btn):not(.tjc-mail){color:#9A0002;font-weight:600}
.tjc-bot a.tjc-link{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
.tjc-bot a.tjc-link:hover,.tjc-bot a.tjc-link:focus-visible{text-decoration:none;background:rgba(154,0,2,.09)}
.tjc-bericht p{margin:0 0 8px}
/* Vakwoord in een antwoord: klik stelt de vraag "Wat betekent ...?" */
.tjc-term{display:inline;padding:0 3px;margin:0 -1px;border:0;border-radius:4px;background:rgba(154,0,2,.09);color:#9A0002;font:inherit;font-weight:600;text-decoration:underline dotted 1.5px;text-underline-offset:3px;cursor:pointer}
.tjc-term:hover,.tjc-term:focus-visible{background:#9A0002;color:#fff;text-decoration:none;outline:none}

.tjc-snel{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.tjc-chip{min-height:40px;padding:8px 14px;border:1.5px solid #9A0002;border-radius:999px;background:#fff;color:#9A0002;font:inherit;font-size:.85rem;font-weight:600;cursor:pointer;text-align:left}
.tjc-chip:hover{background:#9A0002;color:#fff}
.tjc-chip:focus-visible{outline:2px solid #2B2B2B;outline-offset:2px}

.tjc-knoppen{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.tjc-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 16px;border:1.5px solid #2B2B2B;border-radius:999px;background:#fff;color:#2B2B2B;font:inherit;font-size:.85rem;font-weight:700;text-decoration:none;cursor:pointer}
.tjc-btn:hover{background:#2B2B2B;color:#fff}
.tjc-btn-rood{border-color:#9A0002;background:#9A0002;color:#fff}
.tjc-btn-rood:hover{background:#7A0002;border-color:#7A0002}
.tjc-btn:focus-visible{outline:2px solid #2B2B2B;outline-offset:2px}
.tjc-mail{display:inline-block;margin-top:8px;font-size:.8rem;color:#5C524A}
.tjc-label{display:block;margin:10px 0 6px;font-size:.8rem;font-weight:600}
.tjc-sam{width:100%;padding:10px;border:1.5px solid #2B2B2B;border-radius:8px;background:#fff;color:#2B2B2B;font:inherit;font-size:.9rem;resize:vertical}
.tjc-sam:focus-visible{outline:2px solid #9A0002;outline-offset:1px}
.tjc-wacht{margin:8px 0 0;font-size:.85rem;color:#5C524A}

.tjc-typt{display:flex;gap:5px;align-items:center;min-height:40px}
.tjc-typt span{width:7px;height:7px;border-radius:50%;background:#6E635A;animation:tjc-punt 1s infinite ease-in-out}
.tjc-typt span:nth-child(2){animation-delay:.15s}
.tjc-typt span:nth-child(3){animation-delay:.3s}
@keyframes tjc-punt{0%,80%,100%{opacity:.3;transform:none}40%{opacity:1;transform:translateY(-3px)}}

.tjc-invoer{display:flex;align-items:flex-end;gap:8px;padding:10px 12px 12px;border-top:1px solid rgba(43,43,43,.16)}
.tjc-invoer[hidden]{display:none}
.tjc-invoer textarea{flex:1;min-height:44px;max-height:120px;padding:11px 12px;border:1.5px solid rgba(43,43,43,.4);border-radius:10px;font:inherit;font-size:16px;line-height:1.35;resize:none;color:#2B2B2B;background:#fff}
.tjc-invoer textarea:focus-visible{outline:2px solid #9A0002;outline-offset:1px;border-color:#9A0002}
.tjc-invoer textarea:disabled{background:#f6f2ee}
.tjc-verzend{flex:none;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:#9A0002;color:#fff;cursor:pointer}
.tjc-verzend:hover{background:#7A0002}
.tjc-verzend:disabled{opacity:.5;cursor:default}
.tjc-verzend:focus-visible{outline:2px solid #2B2B2B;outline-offset:2px}
.tjc-verzend svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.tjc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Mobiel: volledig scherm */
@media (max-width:600px){
  .tjc{inset:0;width:100%;height:100%;height:100dvh;border:0;box-shadow:none}
  .tjc-open,.tjc-open body{overflow:hidden}
}

@media (prefers-reduced-motion:reduce){
  .tjc{animation:none}
  .tjc-typt span{animation:none;opacity:.6}
}
@media print{.tjc{display:none}}

/* "Laat Thijs mij contacteren" */
.tjc-balk{flex-wrap:wrap}
.tjc-terugbel{flex-basis:100%;padding:0;border:0;background:none;color:#9A0002;font:inherit;font-size:.8rem;font-weight:700;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer;min-height:28px}
.tjc-terugbel[hidden]{display:none}
.tjc-terugbel:focus-visible{outline:2px solid #2B2B2B;outline-offset:2px}
.tjc-contactform{max-width:100%;width:100%}
.tjc-veld{margin-top:8px}
.tjc-veld label{display:block;margin-bottom:3px;font-size:.8rem;font-weight:600}
.tjc-veld input,.tjc-veld textarea{width:100%;min-height:42px;padding:9px 10px;border:1.5px solid rgba(43,43,43,.4);border-radius:8px;background:#fff;color:#2B2B2B;font:inherit;font-size:16px}
.tjc-veld textarea{resize:vertical}
.tjc-veld input:focus-visible,.tjc-veld textarea:focus-visible{outline:2px solid #9A0002;outline-offset:1px;border-color:#9A0002}
.tjc-pot{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.tjc-fout{margin:6px 0 0;color:#9A0002;font-size:.85rem;font-weight:600}
.tjc-fout:empty{display:none}
.tjc-klein{margin:8px 0 0;font-size:.75rem;color:#5C524A}
.tjc-klein a{color:inherit}
.tjc-ok{border-left:4px solid #2f6b3a}
