.s360cb-root{--cb:#b3152e;font-family:Roboto,Arial,sans-serif;}
.s360cb-wa,.s360cb-launcher{position:fixed;z-index:900;width:56px;height:56px;border:0;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 26px -8px rgba(0,0,0,.5);cursor:pointer;transition:transform .18s ease;padding:0;}
.s360cb-wa:hover,.s360cb-launcher:hover{transform:scale(1.07);}
.s360cb-launcher{bottom:20px;background:var(--cb);}
.s360cb-wa{bottom:90px;background:#25d366;}
.s360cb-right .s360cb-wa,.s360cb-right .s360cb-launcher{right:20px;}
.s360cb-left .s360cb-wa,.s360cb-left .s360cb-launcher{left:20px;}
.s360cb-root:not(.s360cb-has-chat) .s360cb-wa:only-child{bottom:20px;}
.s360cb-panel{position:fixed;z-index:901;bottom:90px;width:360px;max-width:calc(100vw - 24px);height:520px;max-height:calc(100vh - 110px);background:#fff;border-radius:14px;box-shadow:0 24px 60px -16px rgba(0,0,0,.55);display:none;flex-direction:column;overflow:hidden;}
.s360cb-right .s360cb-panel{right:20px;}
.s360cb-left .s360cb-panel{left:20px;}
.s360cb-panel.open{display:flex;}
.s360cb-root.is-open .s360cb-wa{display:none;}
.s360cb-head{background:var(--cb);color:#fff;display:flex;align-items:center;gap:12px;padding:14px 16px;}
.s360cb-avatar{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.s360cb-avatar svg{width:20px;height:20px;}
.s360cb-htext{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25;}
.s360cb-htext strong{font-size:16px;}
.s360cb-htext small{font-size:12.5px;opacity:.85;}
.s360cb-close{position:relative;width:32px;height:32px;border:0;border-radius:50%;background:rgba(255,255,255,.16);cursor:pointer;flex-shrink:0;}
.s360cb-close::before,.s360cb-close::after{content:'';position:absolute;top:50%;left:50%;width:14px;height:2px;background:#fff;transform:translate(-50%,-50%) rotate(45deg);}
.s360cb-close::after{transform:translate(-50%,-50%) rotate(-45deg);}
.s360cb-msgs{flex:1;overflow-y:auto;padding:16px;background:#f6f6f7;display:flex;flex-direction:column;gap:10px;}
.s360cb-msg{max-width:86%;padding:10px 14px;border-radius:14px;font-size:14.5px;line-height:1.5;word-wrap:break-word;}
.s360cb-bot{background:#fff;color:#1c1c1e;border:1px solid #e6e6e9;border-bottom-left-radius:4px;align-self:flex-start;}
.s360cb-user{background:var(--cb);color:#fff;border-bottom-right-radius:4px;align-self:flex-end;}
.s360cb-msg a{color:var(--cb);text-decoration:underline;}
.s360cb-user a{color:#fff;}
.s360cb-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.s360cb-act{display:inline-block;border:1px solid var(--cb);background:#fff;color:var(--cb) !important;text-decoration:none !important;font-size:13px;font-weight:600;padding:7px 12px;border-radius:999px;cursor:pointer;}
.s360cb-act:hover{background:var(--cb);color:#fff !important;}
.s360cb-act-wa{border-color:#1da851;color:#1da851 !important;}
.s360cb-act-wa:hover{background:#1da851;}
.s360cb-typing{display:flex;gap:4px;padding:14px;}
.s360cb-typing i{width:7px;height:7px;border-radius:50%;background:#9a9aa0;animation:s360cbdot 1s infinite ease-in-out;}
.s360cb-typing i:nth-child(2){animation-delay:.15s;}
.s360cb-typing i:nth-child(3){animation-delay:.3s;}
@keyframes s360cbdot{0%,80%,100%{opacity:.3;transform:translateY(0);}40%{opacity:1;transform:translateY(-3px);}}
.s360cb-chips{display:flex;gap:8px;padding:10px 12px;overflow-x:auto;background:#fff;border-top:1px solid #ececef;scrollbar-width:thin;}
.s360cb-chip{flex-shrink:0;border:1px solid #d6d6db;background:#fff;color:#1c1c1e;font-size:13px;padding:7px 12px;border-radius:999px;cursor:pointer;white-space:nowrap;}
.s360cb-chip:hover{border-color:var(--cb);color:var(--cb);}
.s360cb-form{display:flex;gap:8px;padding:10px 12px 12px;background:#fff;border-top:1px solid #ececef;}
.s360cb-form input{flex:1;min-width:0;border:1px solid #d6d6db;border-radius:999px;padding:10px 14px;font-size:14px;font-family:inherit;}
.s360cb-form input:focus{outline:none;border-color:var(--cb);}
.s360cb-form button{width:42px;height:42px;border:0;border-radius:50%;background:var(--cb);cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.s360cb-lead{display:flex;flex-direction:column;gap:8px;margin-top:10px;min-width:220px;}
.s360cb-lead input,.s360cb-lead textarea{border:1px solid #d6d6db;border-radius:8px;padding:9px 11px;font-size:14px;font-family:inherit;width:100%;box-sizing:border-box;}
.s360cb-lead textarea{min-height:60px;resize:vertical;}
.s360cb-hp{position:absolute !important;left:-9999px !important;}
.s360cb-err{color:#b3152e;font-size:13px;}
.s360cb-submit{border:0;background:var(--cb);color:#fff;font-weight:600;font-size:14px;padding:10px;border-radius:8px;cursor:pointer;}
.s360cb-submit:disabled{opacity:.6;cursor:default;}
body.lead-open .s360cb-root{display:none;}
@media (max-width:480px){.s360cb-panel{right:12px !important;left:12px !important;width:auto;bottom:84px;height:calc(100vh - 100px);}}