.shc-root{--shc-c1:#1E5BB8;--shc-c2:#22A06B;position:fixed;bottom:20px;right:20px;z-index:99999;font-family:inherit;font-size:15px;line-height:1.6}
.shc-root.shc-rtl{right:auto;left:20px}
.shc-root *{box-sizing:border-box}
.shc-launcher{width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;color:#fff;background:linear-gradient(135deg,var(--shc-c1),var(--shc-c2));box-shadow:0 8px 24px rgba(0,0,0,.22);display:flex;align-items:center;justify-content:center;transition:transform .2s;padding:0}
.shc-launcher:hover{transform:scale(1.06)}
.shc-panel{position:absolute;bottom:76px;right:0;width:370px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100vh - 110px);background:#fff;border-radius:18px;box-shadow:0 16px 48px rgba(0,0,0,.2);display:flex;flex-direction:column;overflow:hidden;opacity:0;transform:translateY(12px) scale(.98);pointer-events:none;transition:opacity .2s,transform .2s}
.shc-rtl .shc-panel{right:auto;left:0}
.shc-open .shc-panel{opacity:1;transform:none;pointer-events:auto}
.shc-head{display:flex;align-items:center;gap:10px;padding:14px 14px;color:#fff;background:linear-gradient(135deg,var(--shc-c1),var(--shc-c2))}
.shc-avatar{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;flex:none}
.shc-meta{flex:1;display:flex;flex-direction:column;min-width:0}
.shc-meta strong{font-size:15px;color:#fff}
.shc-meta span{font-size:12px;opacity:.9;display:flex;align-items:center;gap:5px}
.shc-meta i{width:7px;height:7px;border-radius:50%;background:#7CFFB2;display:inline-block}
.shc-head button{background:transparent;border:0;color:#fff;cursor:pointer;padding:4px;font-size:18px;line-height:1;opacity:.85;display:flex}
.shc-head button:hover{opacity:1;background:transparent}
.shc-body{flex:1;overflow-y:auto;padding:16px 14px;background:#F5F7FA;display:flex;flex-direction:column;gap:8px}
.shc-msg{max-width:85%;padding:9px 13px;border-radius:14px;word-wrap:break-word;white-space:normal}
.shc-assistant{align-self:flex-start;background:#fff;color:#1d2533;border:1px solid #E6EAF0;border-start-start-radius:4px}
.shc-user{align-self:flex-end;background:var(--shc-c1);color:#fff;border-start-end-radius:4px}
.shc-msg a{color:var(--shc-c1);text-decoration:underline;word-break:break-all}
.shc-user a{color:#fff}
.shc-typing{display:flex;gap:4px;padding:12px 14px}
.shc-typing span{width:7px;height:7px;border-radius:50%;background:#9AA4B2;animation:shc-b 1.2s infinite}
.shc-typing span:nth-child(2){animation-delay:.15s}.shc-typing span:nth-child(3){animation-delay:.3s}
@keyframes shc-b{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-5px);opacity:1}}
.shc-quick{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px 0;background:#F5F7FA}
.shc-quick button{border:1px solid var(--shc-c1);color:var(--shc-c1);background:#fff;border-radius:16px;padding:5px 11px;font-size:13px;cursor:pointer;font-family:inherit;line-height:1.4}
.shc-quick button:hover{background:var(--shc-c1);color:#fff}
.shc-wa{display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;color:#128C7E!important;background:#F5F7FA;padding:8px;text-decoration:none!important}
.shc-wa:hover{text-decoration:underline!important}
.shc-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid #E6EAF0;background:#fff;margin:0}
.shc-form textarea{flex:1;resize:none;border:1px solid #DDE2EA;border-radius:12px;padding:9px 12px;font:inherit;font-size:14px;max-height:110px;outline:none;background:#fff;color:#1d2533;min-height:0;line-height:1.5}
.shc-form textarea:focus{border-color:var(--shc-c1)}
.shc-form button{width:42px;height:42px;border-radius:50%;border:0;background:var(--shc-c1);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex:none;padding:0}
.shc-rtl .shc-form button svg{transform:scaleX(-1)}
.shc-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0}
@media (max-width:480px){
  .shc-root,.shc-root.shc-rtl{bottom:14px;right:14px;left:auto}
  .shc-rtl.shc-root{left:14px;right:auto}
  .shc-open .shc-panel{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;border-radius:0}
  .shc-open .shc-launcher{display:none}
}
