.tlr-chat-root{--tlr-chat-accent:#0b6b8a;--tlr-chat-bg:#f6f7f9;position:fixed;bottom:16px;z-index:99990;font:14px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.tlr-chat-root *{box-sizing:border-box}
.tlr-chat-left{left:16px}.tlr-chat-right{right:16px}
.tlr-chat-fab{width:56px;height:56px;border-radius:50%;border:0;cursor:pointer;background:var(--tlr-chat-accent);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.3)}
.tlr-chat-bot a{color:var(--tlr-chat-accent);text-decoration:underline;word-break:break-all}
.tlr-chat-fab.tlr-chat-has-icon{background:#fff;padding:0;overflow:hidden}
.tlr-chat-fab img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.tlr-chat-fab:focus-visible,.tlr-chat-send:focus-visible,.tlr-chat-close:focus-visible{outline:3px solid #ffbf47;outline-offset:2px}
.tlr-chat-panel{position:absolute;bottom:68px;width:340px;max-width:calc(100vw - 32px);height:460px;max-height:calc(100vh - 110px);background:#fff;border-radius:14px;box-shadow:0 8px 30px rgba(0,0,0,.28);display:flex;flex-direction:column;overflow:hidden;color:#222}
.tlr-chat-panel[hidden]{display:none}
.tlr-chat-left .tlr-chat-panel{left:0}.tlr-chat-right .tlr-chat-panel{right:0}
.tlr-chat-head{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:var(--tlr-chat-accent);color:#fff}
.tlr-chat-close{background:none;border:0;color:#fff;font-size:24px;line-height:1;cursor:pointer;padding:0 4px}
.tlr-chat-body{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;background:var(--tlr-chat-bg)}
.tlr-chat-msg{max-width:86%;padding:8px 11px;border-radius:12px;word-wrap:break-word;overflow-wrap:anywhere}
.tlr-chat-bot{align-self:flex-start;background:#fff;border:1px solid #e3e6ea}
.tlr-chat-bot:empty{display:none}
.tlr-chat-user{align-self:flex-end;background:var(--tlr-chat-accent);color:#fff}
.tlr-chat-err{background:#fdecea;border-color:#f3c4bf;color:#8a1c13;font-size:13px}
.tlr-chat-form{display:flex;gap:6px;padding:8px;border-top:1px solid #e3e6ea;background:#fff;margin:0}
.tlr-chat-input{flex:1;min-width:0;border:1px solid #ccd0d4;border-radius:8px;padding:9px 10px;font:inherit;color:#222;background:#fff}
.tlr-chat-send{border:0;border-radius:8px;padding:0 14px;background:var(--tlr-chat-accent);color:#fff;font:inherit;font-weight:600;cursor:pointer}
.tlr-chat-send:disabled{opacity:.5;cursor:default}
.tlr-chat-foot{font-size:11px;color:#777;text-align:center;padding:0 8px 7px;background:#fff}
.tlr-chat-typing{display:flex;gap:4px;padding:12px 14px}
.tlr-chat-typing span{width:7px;height:7px;border-radius:50%;background:#9aa3ad;animation:tlr-chat-dot 1.2s infinite ease-in-out}
.tlr-chat-typing span:nth-child(2){animation-delay:.15s}.tlr-chat-typing span:nth-child(3){animation-delay:.3s}
@keyframes tlr-chat-dot{0%,80%,100%{opacity:.25;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}
@media print{.tlr-chat-root{display:none}}