.chat-fab{position:fixed;inset-inline-end:18px;bottom:86px;z-index:60;display:flex;align-items:center;gap:8px;border:0;border-radius:999px;background:#0b5c3a;color:#fff;font-weight:600;font-size:1rem;line-height:1;font-family:var(--head,inherit);padding:.85em 1.1em;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.3)}
.chat-fab:hover{filter:brightness(1.12)}
.chat-fab svg{flex:none}
.chat-panel{position:fixed;inset-inline-end:18px;bottom:154px;z-index:70;width:min(380px,calc(100vw - 36px));height:min(600px,calc(100vh - 220px));display:flex;flex-direction:column;background:#fff;color:#1b1b1b;border-radius:18px;box-shadow:0 14px 44px rgba(0,0,0,.35);overflow:hidden;font-size:1rem}
.chat-panel[hidden]{display:none}
.chat-head{background:#0b5c3a;color:#fff;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.chat-head strong{font-size:1.05rem}
.chat-x{border:0;background:rgba(255,255,255,.18);color:#fff;border-radius:50%;width:34px;height:34px;font-size:1.3rem;line-height:1;cursor:pointer}
.chat-note{background:#fff7e6;border-bottom:1px solid #f0dcae;color:#4a3b14;font-size:.85rem;line-height:1.4;padding:8px 14px}
.chat-log{flex:1;overflow:auto;padding:12px 14px;display:flex;flex-direction:column;gap:10px;background:#f6faf7}
.chat-m{max-width:88%;padding:.6em .85em;border-radius:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-m.bot{align-self:flex-start;background:#fff;border:1px solid #dbe8df}
.chat-m.me{align-self:flex-end;background:#0b5c3a;color:#fff}
.chat-m a{color:inherit;text-decoration:underline}
.chat-m.bot a{color:#0b5c3a;font-weight:600}
.chat-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 10px;background:#f6faf7}
.chat-chips button{border:1px solid #0b5c3a;background:#fff;color:#0b5c3a;border-radius:999px;padding:.4em .8em;font:inherit;font-size:.9rem;cursor:pointer}
.chat-chips button:hover{background:#e8f3ea}
.chat-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #e1e8e3;background:#fff}
.chat-form textarea{flex:1;resize:none;border:1px solid #b7c7bd;border-radius:12px;padding:.55em .7em;font:inherit;font-size:1rem;min-height:44px;max-height:96px}
.chat-form button{border:0;border-radius:12px;background:#f26a2e;color:#fff;font-weight:600;font-size:1rem;font-family:inherit;padding:0 1em;cursor:pointer}
.chat-form button:disabled{opacity:.5;cursor:default}
.chat-hand{display:flex;gap:12px;flex-wrap:wrap;padding:8px 14px 10px;background:#fff;border-top:1px solid #eef2ef;font-size:.85rem}
.chat-hand a{color:#0b5c3a;font-weight:600}
.chat-dots span{display:inline-block;width:7px;height:7px;margin:0 2px;border-radius:50%;background:#7a9a86;animation:chatd 1s infinite}
.chat-dots span:nth-child(2){animation-delay:.2s}.chat-dots span:nth-child(3){animation-delay:.4s}
@keyframes chatd{0%,80%,100%{opacity:.25}40%{opacity:1}}
@media (prefers-reduced-motion:reduce){.chat-dots span{animation:none}}
@media (max-width:480px){.chat-panel{inset-inline:10px;width:auto;bottom:154px;height:calc(100vh - 175px)}}
@media print{.chat-fab,.chat-panel{display:none}}
