.tchat-root{--tc-ink:#0E1E32;--tc-ink2:#3A4A60;--tc-green:#1F9A4E;--tc-green-d:#167A3D;--tc-paper:#F5F8FC;--tc-mist:#DCE5F0;--tc-white:#fff;
  font-family:"Public Sans",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;line-height:1.45;color:var(--tc-ink)}
.tchat-root *{box-sizing:border-box}
.tchat-fab{position:fixed;right:calc(20px + env(safe-area-inset-right,0px));bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:9999;
  height:60px;min-width:60px;padding:0 20px 0 16px;border-radius:30px;border:0;cursor:pointer;background:var(--tc-green);color:#fff;
  display:flex;align-items:center;gap:10px;font:700 15px/1 "Bricolage Grotesque","Public Sans",system-ui,sans-serif;
  box-shadow:0 12px 28px -8px rgba(31,154,78,.6);transition:transform .2s ease,background .2s ease}
.tchat-fab:hover{background:var(--tc-green-d);transform:translateY(-2px)}
.tchat-fab:focus-visible{outline:3px solid var(--tc-ink);outline-offset:3px}
.tchat-fab svg{width:26px;height:26px;flex-shrink:0}
.tchat-fab .tchat-dot{position:absolute;top:6px;right:8px;width:12px;height:12px;border-radius:50%;background:#FFB400;border:2px solid #fff}
.tchat-root.open .tchat-fab{display:none}
.tchat-panel{position:fixed;right:calc(20px + env(safe-area-inset-right,0px));bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:10000;
  width:380px;max-width:calc(100vw - 32px);height:min(600px,calc(100vh - 40px));background:var(--tc-paper);border-radius:20px;overflow:hidden;
  display:none;flex-direction:column;box-shadow:0 30px 60px -20px rgba(14,30,50,.45),0 0 0 1px rgba(14,30,50,.06)}
.tchat-root.open .tchat-panel{display:flex;animation:tchatIn .22s ease}
@keyframes tchatIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.tchat-root.open .tchat-panel{animation:none}.tchat-fab{transition:none}}
.tchat-head{background:var(--tc-ink);color:#fff;padding:14px 14px 14px 16px;display:flex;align-items:center;gap:12px}
.tchat-av{width:40px;height:40px;border-radius:50%;background:var(--tc-green);display:grid;place-items:center;font:800 18px/1 "Bricolage Grotesque",system-ui,sans-serif;flex-shrink:0}
.tchat-who{flex:1;min-width:0}
.tchat-who b{display:block;font:700 16px/1.2 "Bricolage Grotesque",system-ui,sans-serif}
.tchat-who span{font-size:12.5px;color:#B9D8C5;display:flex;align-items:center;gap:6px}
.tchat-who span::before{content:"";width:8px;height:8px;border-radius:50%;background:#4CCB7A}
.tchat-x{background:transparent;border:0;color:#fff;width:36px;height:36px;border-radius:50%;cursor:pointer;font-size:22px;line-height:1}
.tchat-x:hover{background:rgba(255,255,255,.12)}
.tchat-x:focus-visible{outline:2px solid #fff}
.tchat-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
.tchat-msg{max-width:85%;padding:10px 13px;border-radius:16px;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
.tchat-msg.bot{align-self:flex-start;background:var(--tc-white);border:1px solid var(--tc-mist);border-bottom-left-radius:4px}
.tchat-msg.me{align-self:flex-end;background:var(--tc-green);color:#fff;border-bottom-right-radius:4px}
.tchat-msg a{color:var(--tc-green-d);font-weight:600;text-decoration:underline}
.tchat-msg.me a{color:#fff}
.tchat-typing{display:inline-flex;gap:4px;padding:2px 0}
.tchat-typing i{width:7px;height:7px;border-radius:50%;background:#9AA8B8;animation:tchatB 1s infinite}
.tchat-typing i:nth-child(2){animation-delay:.15s}.tchat-typing i:nth-child(3){animation-delay:.3s}
@keyframes tchatB{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.tchat-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 10px}
.tchat-chips button{border:1px solid var(--tc-green);background:var(--tc-white);color:var(--tc-green-d);border-radius:999px;padding:7px 12px;font:600 13px/1 inherit;font-family:inherit;cursor:pointer}
.tchat-chips button:hover{background:#E3F4EA}
.tchat-form{display:flex;gap:8px;padding:10px 12px calc(12px + env(safe-area-inset-bottom,0px));background:var(--tc-white);border-top:1px solid var(--tc-mist)}
.tchat-form textarea{flex:1;min-width:0;resize:none;border:1px solid var(--tc-mist);border-radius:14px;padding:10px 12px;font:inherit;color:var(--tc-ink);background:var(--tc-paper);max-height:110px;height:44px}
.tchat-form textarea:focus{outline:2px solid var(--tc-green);outline-offset:0;border-color:transparent}
.tchat-send{width:44px;height:44px;border-radius:50%;border:0;background:var(--tc-green);color:#fff;cursor:pointer;display:grid;place-items:center;flex-shrink:0}
.tchat-send:disabled{opacity:.5;cursor:default}
.tchat-send svg{width:20px;height:20px}
.tchat-foot{font-size:11px;color:var(--tc-ink2);text-align:center;padding:0 0 8px;background:var(--tc-white)}
@media (max-width:520px){
  .tchat-panel{right:0;bottom:0;top:0;width:100vw;max-width:100vw;height:auto;border-radius:0}
  .tchat-head{padding-top:calc(14px + env(safe-area-inset-top,0px))}
  .tchat-fab span{display:none}
  .tchat-fab{padding:0;width:60px;justify-content:center}
}
.tchat-root .tchat-panel,.tchat-root .tchat-head,.tchat-root .tchat-body,.tchat-root .tchat-form{margin:0}
.tchat-root .tchat-panel{padding:0}

.tchat-fab{padding:0 20px 0 6px}
.tchat-fab-av{width:48px;height:48px;border-radius:50%;background:#F1F3F6;flex-shrink:0;display:block}
.tchat-root .tchat-av{width:40px;height:40px;border-radius:50%;background:#F1F3F6;display:block;object-fit:cover}
.tchat-hello{align-self:flex-start;width:86px;height:auto;margin:0 0 -4px 6px}
@media (max-width:520px){.tchat-fab{padding:0;width:60px;justify-content:center}.tchat-fab-av{width:52px;height:52px}}
