/* Assistente de atendimento que termina no WhatsApp */
.wa-float{display:none !important}

.sb-launch{position:fixed;right:20px;bottom:20px;z-index:40;display:inline-flex;align-items:center;gap:10px;background:#17752f;color:#fff;border:0;border-radius:999px;padding:14px 22px 14px 18px;font:700 16px 'Barlow',system-ui,sans-serif;cursor:pointer;box-shadow:0 10px 28px rgba(0,0,0,.28);transition:transform .2s ease,background .2s ease}
.sb-launch:hover{transform:translateY(-2px);background:#0d3b24}
.sb-launch::after{content:"";position:absolute;inset:0;border-radius:999px;border:2px solid #17752f;animation:pulse 2.4s ease-out infinite;pointer-events:none}
.sb-launch .dot{position:absolute;top:-3px;right:-3px;width:14px;height:14px;border-radius:50%;background:#f2c200;border:2px solid #fff}
.sb-open .sb-launch{display:none}

.sb-panel{position:fixed;right:20px;bottom:20px;z-index:41;width:380px;max-width:calc(100vw - 24px);height:min(600px,calc(100vh - 40px));display:none;flex-direction:column;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.3);font-family:'Barlow',system-ui,sans-serif;transform-origin:bottom right}
.sb-open .sb-panel{display:flex;animation:sbIn .28s cubic-bezier(.2,.8,.2,1)}
@keyframes sbIn{from{opacity:0;transform:translateY(16px) scale(.96)}to{opacity:1;transform:none}}

.sb-head{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;background:#0d3b24;color:#fff}
.sb-head img{width:40px;height:40px;border-radius:50%;background:#fff;padding:4px;object-fit:contain}
.sb-head .t{flex:1;min-width:0;line-height:1.2}
.sb-head strong{display:block;font-size:16px}
.sb-head span{font-size:13px;color:#b9cbbd}
.sb-head span::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#5fcf7c;margin-right:6px;vertical-align:1px}
.sb-x{background:none;border:0;color:#fff;width:44px;height:44px;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.sb-x:hover{background:rgba(255,255,255,.12)}

.sb-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:var(--alt);scroll-behavior:smooth}
.sb-msg{max-width:85%;padding:10px 14px;border-radius:14px;font-size:15px;line-height:1.45;white-space:pre-line;animation:msgIn .25s ease}
@keyframes msgIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.sb-bot{align-self:flex-start;background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:4px}
.sb-me{align-self:flex-end;background:#17752f;color:#fff;border-bottom-right-radius:4px}
.sb-typing{align-self:flex-start;display:inline-flex;gap:4px;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:14px;border-bottom-left-radius:4px}
.sb-typing i{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:blink 1s infinite}
.sb-typing i:nth-child(2){animation-delay:.15s}.sb-typing i:nth-child(3){animation-delay:.3s}
@keyframes blink{0%,80%,100%{opacity:.25}40%{opacity:1}}

.sb-opts{display:flex;flex-wrap:wrap;gap:8px;padding:2px 0 4px}
.sb-opt{background:var(--surface);color:var(--brand-ink);border:1.5px solid var(--brand-ink);border-radius:999px;padding:10px 14px;min-height:44px;font:600 14px 'Barlow',system-ui,sans-serif;cursor:pointer;transition:background .15s ease,color .15s ease}
.sb-opt:hover{background:var(--brand-ink);color:var(--surface)}
.sb-send-wa{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;background:#f2c200;color:#14201a;border:0;border-radius:10px;padding:14px;font:700 16px 'Barlow',system-ui,sans-serif;text-decoration:none;cursor:pointer}
.sb-send-wa:hover{background:#ffd633;color:#14201a}

.sb-foot{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line);background:var(--surface)}
.sb-foot input{flex:1;min-width:0;height:46px;border:1px solid var(--line);border-radius:10px;padding:0 14px;font:16px 'Barlow',system-ui,sans-serif;background:var(--alt);color:var(--ink)}
.sb-foot input:focus{outline:2px solid var(--brand-ink);outline-offset:0;border-color:transparent}
.sb-foot input:disabled{opacity:.55}
.sb-foot button{width:46px;height:46px;border:0;border-radius:10px;background:#17752f;color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.sb-foot button:disabled{opacity:.45;cursor:default}
.sb-direct{display:block;text-align:center;font-size:13px;padding:0 12px 10px;background:var(--surface)}

@media (max-width:600px){
  .sb-launch{padding:0;width:60px;height:60px;justify-content:center;right:16px;bottom:16px}
  .sb-launch .lbl{display:none}
  .sb-panel{right:0;bottom:0;width:100vw;max-width:100vw;height:100dvh;border-radius:0;border:0}
}
@media (prefers-reduced-motion:reduce){.sb-launch::after{display:none}}
