#sofi-root{--sofi-red:#e30613;--sofi-dark:#1d1d1f;position:fixed;bottom:20px;z-index:99990;font-family:inherit;font-size:14px;line-height:1.45}
#sofi-root.sofi-right{right:20px}
#sofi-root.sofi-left{left:20px}
#sofi-root *{box-sizing:border-box}
.sofi-launcher{display:flex;align-items:center;gap:8px;background:var(--sofi-dark);color:#fff;border:0;border-radius:999px;padding:12px 18px;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.25);font-size:14px;font-weight:600}
.sofi-launcher:hover{background:#000}
.sofi-launcher-dot{width:10px;height:10px;border-radius:50%;background:#2ecc71;box-shadow:0 0 0 3px rgba(46,204,113,.3)}
.sofi-open .sofi-launcher{display:none}
.sofi-panel{width:370px;max-width:calc(100vw - 24px);height:560px;max-height:calc(100vh - 40px);background:#fff;border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.28);display:flex;flex-direction:column;overflow:hidden}
.sofi-panel[hidden]{display:none}
.sofi-head{display:flex;justify-content:space-between;align-items:center;gap:8px;background:var(--sofi-dark);color:#fff;padding:12px 14px;font-size:13px}
.sofi-head strong{font-size:15px}
.sofi-test{background:#f1c40f;color:#000;border-radius:4px;padding:1px 6px;font-size:10px;font-weight:700;margin-left:4px}
.sofi-close{background:none;border:0;color:#fff;font-size:24px;line-height:1;cursor:pointer;padding:0 4px}
.sofi-msgs{flex:1;overflow-y:auto;padding:14px;background:#f5f5f7;display:flex;flex-direction:column;gap:10px}
.sofi-msg{max-width:88%;padding:9px 12px;border-radius:12px;word-wrap:break-word;overflow-wrap:anywhere}
.sofi-msg p{margin:0 0 6px}
.sofi-msg p:last-child{margin-bottom:0}
.sofi-msg ul{margin:4px 0 6px;padding-left:18px}
.sofi-msg li{margin:2px 0}
.sofi-msg a{color:var(--sofi-red);text-decoration:underline}
.sofi-bot{background:#fff;color:#222;align-self:flex-start;border:1px solid #e6e6e6;border-bottom-left-radius:4px}
.sofi-user{background:var(--sofi-dark);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.sofi-action{display:block;margin-top:8px;text-align:center;padding:9px 12px;border-radius:8px;font-weight:700;text-decoration:none!important;color:#fff!important;background:var(--sofi-red)}
.sofi-action-whatsapp{background:#25d366}
.sofi-typing{display:flex;gap:4px;padding:12px 14px}
.sofi-typing span{width:7px;height:7px;border-radius:50%;background:#999;animation:sofi-b 1s infinite}
.sofi-typing span:nth-child(2){animation-delay:.15s}
.sofi-typing span:nth-child(3){animation-delay:.3s}
@keyframes sofi-b{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.sofi-form{display:flex;gap:8px;padding:10px;border-top:1px solid #eee;background:#fff}
.sofi-form textarea{flex:1;resize:none;border:1px solid #ddd;border-radius:10px;padding:9px 10px;font:inherit;font-size:15px;max-height:110px;min-height:40px}
.sofi-form textarea:focus{outline:none;border-color:var(--sofi-dark)}
.sofi-form button{width:42px;border:0;border-radius:10px;background:var(--sofi-red);color:#fff;font-size:16px;cursor:pointer}
.sofi-form button:disabled{opacity:.5;cursor:wait}
.sofi-foot{font-size:10.5px;color:#888;text-align:center;padding:0 10px 8px;background:#fff}
@media (max-width:480px){
#sofi-root{bottom:12px}
#sofi-root.sofi-right{right:12px}
#sofi-root.sofi-left{left:12px}
.sofi-launcher-text{display:none}
.sofi-launcher{padding:14px}
.sofi-launcher::after{content:"Sofi";font-size:14px}
.sofi-open{left:0!important;right:0!important;bottom:0!important}
.sofi-open .sofi-panel{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
}
.sofi-cartbox{margin-top:8px;border-top:1px dashed #e0e0e0;padding-top:8px}
.sofi-cart-wait{color:#666;font-size:13px}
.sofi-cart-ok{color:#1e8e3e;font-weight:700;font-size:13px}
.sofi-cart-warn{color:#b26a00;font-size:12px;margin-top:6px}
.sofi-action-checkout{background:#1e8e3e}
.sofi-action-secondary{background:#fff;color:var(--sofi-dark)!important;border:1px solid #ccc}
.sofi-typing{align-items:center;flex-wrap:wrap}
.sofi-status{font-style:normal;font-size:12px;color:#777;margin-left:6px}
.sofi-working{background:#fff;border:1px solid #e6e6e6;align-self:flex-start;max-width:88%;padding:10px 12px;border-radius:12px;border-bottom-left-radius:4px}
.sofi-working p{margin:0 0 6px}
.sofi-work-step{color:#555;font-size:13px}
.sofi-work-time{color:#888;font-size:12px;margin:6px 0 0!important}
.sofi-progress{height:6px;background:#eee;border-radius:4px;overflow:hidden}
.sofi-progress-bar{height:100%;width:0;background:var(--sofi-dark);transition:width 1s linear}
