.lscb{--lscb-color:#111827;--lscb-bottom:20px;--lscb-side:20px;position:fixed;right:var(--lscb-side);bottom:var(--lscb-bottom);z-index:99999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:14px;line-height:1.45;color:#1f2937}
.lscb *{box-sizing:border-box}
.lscb-launcher{position:relative;width:58px;height:58px;border-radius:50%;border:0;background:var(--lscb-color);color:#fff;cursor:pointer;display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.25);transition:transform .2s}
.lscb-launcher:hover{transform:scale(1.06)}
.lscb-badge{position:absolute;top:-2px;right:-2px;background:#ef4444;color:#fff;font-size:11px;font-weight:700;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;border:2px solid #fff}
.lscb-panel{position:absolute;right:0;bottom:72px;width:370px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100vh - 110px);background:#fff;border-radius:16px;box-shadow:0 16px 48px rgba(0,0,0,.22);display:flex;flex-direction:column;overflow:hidden;opacity:0;transform:translateY(12px) scale(.98);pointer-events:none;transition:opacity .2s,transform .2s}
.lscb-open .lscb-panel{opacity:1;transform:none;pointer-events:auto}
.lscb-head{background:var(--lscb-color);color:#fff;padding:14px 16px;display:flex;justify-content:space-between;align-items:center}
.lscb-head strong{display:block;font-size:15px}
.lscb-head small{opacity:.8;font-size:12px}
.lscb-close{background:none;border:0;color:#fff;font-size:26px;line-height:1;cursor:pointer;padding:0 4px}
.lscb-body{flex:1;overflow-y:auto;padding:14px;background:#f6f7f9;display:flex;flex-direction:column;gap:8px}
.lscb-msg{max-width:85%;padding:9px 12px;border-radius:14px;word-wrap:break-word}
.lscb-msg a{color:inherit;text-decoration:underline}
.lscb-assistant{background:#fff;border:1px solid #e5e7eb;align-self:flex-start;border-bottom-left-radius:4px}
.lscb-user{background:var(--lscb-color);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.lscb-typing span{display:inline-block;width:6px;height:6px;margin:0 2px;border-radius:50%;background:#9ca3af;animation:lscb-b 1s infinite}
.lscb-typing span:nth-child(2){animation-delay:.15s}.lscb-typing span:nth-child(3){animation-delay:.3s}
@keyframes lscb-b{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.lscb-cards{display:flex;gap:8px;overflow-x:auto;padding:2px 0 6px;scroll-snap-type:x mandatory}
.lscb-card{flex:0 0 150px;scroll-snap-align:start;background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.lscb-card-img{display:block;aspect-ratio:1;background:#f3f4f6}
.lscb-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.lscb-card-info{padding:8px;display:flex;flex-direction:column;gap:4px;flex:1}
.lscb-card-name{font-size:13px;font-weight:600;color:#111827;text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lscb-card-price{font-weight:700;font-size:13px}
.lscb-sale{background:#dcfce7;color:#166534;font-size:10px;padding:1px 6px;border-radius:99px;font-weight:600}
.lscb-oos{color:#b91c1c;font-size:12px}
.lscb-card-actions{display:flex;gap:6px;margin-top:auto}
.lscb-card-actions a{flex:1;text-align:center;font-size:12px;padding:6px 4px;border-radius:8px;border:1px solid #d1d5db;color:#111827;text-decoration:none}
.lscb-card-actions a.lscb-primary{background:var(--lscb-color);border-color:var(--lscb-color);color:#fff}
.lscb-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px;background:#f6f7f9}
.lscb-chips:not(:empty){padding:6px 12px 10px}
.lscb-chip{border:1px solid var(--lscb-color);color:var(--lscb-color);background:#fff;border-radius:99px;padding:6px 12px;font-size:13px;cursor:pointer}
.lscb-chip:hover{background:var(--lscb-color);color:#fff}
.lscb-form{display:flex;gap:8px;padding:10px;border-top:1px solid #e5e7eb;background:#fff}
.lscb-form input{flex:1;border:1px solid #d1d5db;border-radius:99px;padding:10px 14px;font-size:14px;outline:none;min-width:0}
.lscb-form input:focus{border-color:var(--lscb-color)}
.lscb-form button{width:40px;height:40px;border-radius:50%;border:0;background:var(--lscb-color);color:#fff;cursor:pointer;display:grid;place-items:center;flex-shrink:0}
/* Evita que los bloques del chat se achiquen (cortaba las tarjetas) */
.lscb .lscb-body>*{flex-shrink:0}
/* Blindaje contra estilos del tema (WoodMart, Flatsome, etc.) */
.lscb button,.lscb input,.lscb a{font-family:inherit!important;text-transform:none!important;letter-spacing:normal!important;box-shadow:none!important;min-height:0!important;min-width:0!important;margin:0!important;line-height:1.3!important}
.lscb .lscb-launcher{width:58px!important;height:58px!important;padding:0!important;border-radius:50%!important;background:var(--lscb-color)!important;color:#fff!important;border:0!important}
.lscb .lscb-close{background:transparent!important;border:0!important;color:#fff!important;padding:0 4px!important;width:auto!important;height:auto!important;font-size:26px!important;line-height:1!important}
.lscb .lscb-chip{background:#fff!important;color:var(--lscb-color)!important;border:1px solid var(--lscb-color)!important;border-radius:99px!important;padding:6px 12px!important;font-size:13px!important;font-weight:500!important;height:auto!important}
.lscb .lscb-chip:hover{background:var(--lscb-color)!important;color:#fff!important}
.lscb .lscb-form button{width:40px!important;height:40px!important;padding:0!important;border-radius:50%!important;background:var(--lscb-color)!important;color:#fff!important;border:0!important}
.lscb .lscb-form input{height:auto!important;border:1px solid #d1d5db!important;border-radius:99px!important;padding:10px 14px!important;font-size:14px!important;background:#fff!important;color:#1f2937!important}
.lscb .lscb-card-img img{max-width:100%!important;height:100%!important}
/* Una tarjeta grande + un pedacito de la siguiente (indica que se puede deslizar) */
.lscb .lscb-cards{gap:10px;padding:2px 2px 8px;scroll-padding-left:2px}
.lscb .lscb-card{flex:0 0 76%;border-radius:14px}
.lscb .lscb-card-img{aspect-ratio:4/3;background:#fff;border-bottom:1px solid #f0f1f3}
.lscb .lscb-card-img img{object-fit:contain!important;padding:8px}
.lscb .lscb-card-info{padding:10px 12px 12px;gap:6px}
.lscb .lscb-card-name{font-size:14px;-webkit-line-clamp:3}
.lscb .lscb-card-price{font-size:16px}
.lscb .lscb-card-regular{color:#9ca3af;font-weight:400;font-size:13px;text-decoration:line-through;margin-left:4px}
.lscb .lscb-card-actions a{padding:8px 4px!important;font-size:13px!important}
.lscb .lscb-card-actions a{font-size:12px!important;padding:6px 4px!important;border-radius:8px!important;text-decoration:none!important}
@media (max-width:480px){.lscb .lscb-panel{position:fixed;inset:auto 8px calc(var(--lscb-bottom) + 72px) 8px;width:auto;max-width:none;height:calc(100vh - var(--lscb-bottom) - 100px)}}

/* ---------- Modo guiado ---------- */
.lscb .lscb-chiprow{display:flex;flex-wrap:wrap;gap:6px;padding:2px 0 4px}
.lscb .lscb-chiprow.lscb-old{display:none}
.lscb a.lscb-chip{display:inline-block;text-decoration:none!important;background:#fff;color:var(--lscb-color)!important;border:1px solid var(--lscb-color)!important;border-radius:99px!important;padding:6px 12px!important;font-size:13px!important;font-weight:500!important}
.lscb a.lscb-chip:hover{background:var(--lscb-color)!important;color:#fff!important}
.lscb .lscb-chip-primary,.lscb a.lscb-chip-primary{background:var(--lscb-color)!important;color:#fff!important}
.lscb .lscb-card-actions button{flex:1;text-align:center;font-size:13px!important;padding:8px 4px!important;border-radius:8px!important;border:1px solid var(--lscb-color)!important;background:var(--lscb-color)!important;color:#fff!important;cursor:pointer;height:auto!important;font-weight:500!important}
.lscb .lscb-msg em{opacity:.75;font-size:12px}
.lscb .lscb-msg select.lscb-state{display:block;width:100%!important;margin-top:8px!important;padding:8px 10px!important;border:1px solid #d1d5db!important;border-radius:8px!important;background:#fff!important;color:#1f2937!important;font-size:14px!important;height:auto!important}
.lscb .lscb-head-actions{display:flex;align-items:center;gap:6px}
.lscb .lscb-reset{background:transparent!important;border:0!important;color:#fff!important;opacity:.75;font-size:20px!important;padding:0 4px!important;width:auto!important;height:auto!important;cursor:pointer;line-height:1!important}
.lscb .lscb-reset:hover{opacity:1}

/* ---------- Botón a la izquierda (ej. arriba del botón de WhatsApp) ---------- */
.lscb.lscb-left{right:auto;left:var(--lscb-side)}
.lscb.lscb-left .lscb-panel{right:auto;left:0}
.lscb .lscb-panel{max-height:calc(100vh - var(--lscb-bottom) - 90px)}

/* ---------- Estilos del botón flotante ---------- */
.lscb.lscb-btn-border .lscb-launcher{border:2px solid var(--lscb-accent)!important;color:var(--lscb-accent)!important;box-shadow:0 0 0 3px rgba(0,0,0,.25),0 8px 24px rgba(0,0,0,.35)!important}
.lscb.lscb-btn-accent .lscb-launcher{background:var(--lscb-accent)!important;color:var(--lscb-color)!important;border:2px solid var(--lscb-color)!important}

/* ---------- Celular: el panel ocupa el ancho de la pantalla, de cualquier lado ---------- */
@media (max-width:480px){
.lscb .lscb-panel,.lscb.lscb-left .lscb-panel{position:fixed;left:8px!important;right:8px!important;width:auto!important;max-width:none!important;top:auto!important;bottom:calc(var(--lscb-bottom) + 72px)!important;height:auto!important;max-height:calc(100vh - var(--lscb-bottom) - 90px)!important}
.lscb .lscb-panel{min-height:min(420px,calc(100vh - var(--lscb-bottom) - 90px))}
}
.lscb .lscb-body{min-height:0}

/* ---------- Ventana más alta y tarjetas más compactas (la tarjeta entra entera) ---------- */
.lscb .lscb-panel{height:min(660px,calc(100vh - var(--lscb-bottom) - 90px))}
.lscb .lscb-card-img{aspect-ratio:auto;height:150px}
.lscb .lscb-card-img img{height:150px!important}

/* ---------- Opciones de variantes: verde = combina con lo elegido, rojo = otra combinación ---------- */
.lscb .lscb-chip.lscb-chip-ok{background:rgba(34,197,94,.14)!important;border-color:rgba(22,163,74,.55)!important;color:#14532d!important}
.lscb .lscb-chip.lscb-chip-ok:hover{background:rgba(34,197,94,.28)!important;color:#14532d!important}
.lscb .lscb-chip.lscb-chip-alt{background:rgba(239,68,68,.10)!important;border-color:rgba(220,38,38,.40)!important;color:#7f1d1d!important}
.lscb .lscb-chip.lscb-chip-alt:hover{background:rgba(239,68,68,.20)!important;color:#7f1d1d!important}

/* ---------- Armado de pedido mayorista ---------- */
.lscb .lscb-msg.lscb-order{max-width:100%;width:100%;padding:10px}
.lscb .lscb-otitle{margin-bottom:8px;font-size:14px}
.lscb .lscb-otitle span{opacity:.7;font-size:12px}
.lscb .lscb-orow{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid #f0f1f3}
.lscb .lscb-oname{font-size:13px;font-weight:600;line-height:1.25;flex:1;min-width:0}
.lscb .lscb-oname small{display:block;font-weight:400;opacity:.7;font-size:12px;margin-top:2px}
.lscb .lscb-ogroup{border:1px solid #e5e7eb;border-radius:10px;padding:8px 10px;margin-bottom:8px}
.lscb .lscb-ogroup.lscb-odone{border-color:rgba(22,163,74,.55);background:rgba(34,197,94,.07)}
.lscb .lscb-osub{font-size:13px;padding:4px 0}
.lscb .lscb-osub:last-child{border-bottom:0}
.lscb .lscb-stepper{display:inline-flex;align-items:center;gap:6px;flex-shrink:0}
.lscb .lscb-stepper b{min-width:22px;text-align:center;font-size:14px}
.lscb .lscb-stepper .lscb-obtn{width:28px!important;height:28px!important;padding:0!important;border-radius:50%!important;border:1px solid var(--lscb-color)!important;background:#fff!important;color:var(--lscb-color)!important;font-size:16px!important;line-height:1!important;cursor:pointer}
.lscb .lscb-stepper .lscb-obtn:disabled{opacity:.3;cursor:default}
.lscb .lscb-ofoot{margin-top:10px;display:flex;flex-direction:column;gap:6px}
.lscb .lscb-oprog{font-size:12.5px;line-height:1.5;background:#f6f7f9;border-radius:8px;padding:8px}
.lscb .lscb-ototal{font-size:13px}
.lscb .lscb-ofoot>.lscb-obtn{width:100%!important;padding:9px 10px!important;border-radius:10px!important;border:1px solid var(--lscb-color)!important;background:#fff!important;color:var(--lscb-color)!important;font-size:13px!important;font-weight:600!important;cursor:pointer;height:auto!important}
.lscb .lscb-ofoot>.lscb-obtn.lscb-oprimary{background:var(--lscb-color)!important;color:#fff!important}
.lscb .lscb-ofoot>.lscb-obtn:disabled{opacity:.45;cursor:default}
.lscb .lscb-ohint{font-size:12px;opacity:.75}
.lscb .lscb-ohint-top{margin:0 0 4px;opacity:.85}
.lscb .lscb-osub small{opacity:.65;font-size:11.5px;white-space:nowrap}

.lscb .lscb-oyay{font-size:13px;font-weight:600;color:#14532d;background:rgba(34,197,94,.14);border:1px solid rgba(22,163,74,.45);border-radius:8px;padding:8px;animation:lscb-pop .35s ease-out}
@keyframes lscb-pop{0%{transform:scale(.92);opacity:0}100%{transform:none;opacity:1}}
.lscb .lscb-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:5}
.lscb .lscb-confetti span{position:absolute;top:-24px;font-size:18px;animation:lscb-fall 1.6s ease-in forwards}
@keyframes lscb-fall{0%{transform:translateY(0) rotate(0);opacity:1}100%{transform:translateY(620px) rotate(320deg);opacity:0}}
.lscb .lscb-othumb{width:40px;height:40px;object-fit:cover;border-radius:6px;flex:0 0 40px;background:#f2f2f2}
.lscb .lscb-orow>.lscb-oname{flex:1;min-width:0}
.lscb .lscb-order .lscb-obtn.lscb-omore{display:block;width:100%!important;margin:8px 0 2px;padding:8px 10px!important;border-radius:10px!important;border:1px dashed var(--lscb-color)!important;background:#fff!important;color:var(--lscb-color)!important;font-size:13px!important;font-weight:600!important;cursor:pointer;height:auto!important}
.lscb .lscb-order.lscb-oclosed{opacity:.55}
.lscb .lscb-orow.lscb-oon .lscb-oname{font-weight:700}
.lscb .lscb-orow.lscb-oon{background:rgba(34,197,94,.08);border-radius:8px}
.lscb .lscb-otitle .lscb-othumb{vertical-align:middle;margin-right:8px}
.lscb .lscb-ohint-go{background:#fff7e6;border:1px solid #f5d38a;border-radius:8px;padding:7px 8px;opacity:1;color:#5b4300}
.lscb .lscb-ofoot>.lscb-obtn.lscb-osmall{border-color:#ccc!important;color:#777!important;font-weight:500!important;font-size:12px!important;padding:6px 10px!important}
.lscb .lscb-ocart{font-size:12px;opacity:.8}

/* ---------- Cartel de presentación junto al botón ---------- */
.lscb .lscb-teaser{position:absolute;bottom:72px;right:0;width:270px;max-width:calc(100vw - 24px);display:flex;gap:10px;align-items:flex-start;background:#fff;color:#1f2937;border-radius:14px;padding:12px 30px 12px 12px;box-shadow:0 10px 30px rgba(0,0,0,.22);cursor:pointer;font-size:13.5px;line-height:1.4;opacity:0;transform:translateY(8px) scale(.97);pointer-events:none;transition:opacity .3s,transform .3s}
.lscb.lscb-left .lscb-teaser{right:auto;left:0}
.lscb .lscb-teaser.lscb-teaser-on{opacity:1;transform:none;pointer-events:auto}
.lscb.lscb-open .lscb-teaser{display:none}
.lscb .lscb-teaser:after{content:"";position:absolute;bottom:-7px;right:22px;width:14px;height:14px;background:#fff;transform:rotate(45deg);box-shadow:3px 3px 6px rgba(0,0,0,.08)}
.lscb.lscb-left .lscb-teaser:after{right:auto;left:22px}
.lscb .lscb-teaser-av{flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:var(--lscb-color);color:var(--lscb-accent,#fff);display:grid;place-items:center}
.lscb .lscb-teaser-av svg{width:24px;height:24px}
.lscb .lscb-teaser-t{flex:1;min-width:0}
.lscb .lscb-teaser-x{position:absolute;top:4px;right:6px;width:22px!important;height:22px!important;padding:0!important;border:0!important;background:transparent!important;color:#9ca3af!important;font-size:18px!important;line-height:1!important;cursor:pointer;min-height:0!important}
.lscb .lscb-teaser-x:hover{color:#374151!important}
.lscb .lscb-launcher svg{width:30px;height:30px}

/* Mayorista sin módulo: solo WhatsApp, sin buscador */
.lscb.lscb-waonly .lscb-form,.lscb.lscb-waonly .lscb-reset{display:none!important}

/* ---------- Pop-up de bienvenida ---------- */
.lscbp{position:fixed;inset:0;z-index:2147483646;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(15,23,42,.5);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0;transition:opacity .25s;font-family:inherit}
.lscbp.lscbp-on{opacity:1}
.lscbp .lscbp-card{position:relative;width:100%;max-width:370px;background:#fff;color:#1f2937;border-radius:18px;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.35);transform:translateY(14px) scale(.97);transition:transform .3s cubic-bezier(.2,.9,.3,1.2);text-align:center}
.lscbp.lscbp-on .lscbp-card{transform:none}
.lscbp .lscbp-top{height:78px;background:var(--lscb-color);position:relative;background-image:radial-gradient(circle at 20% 0,rgba(255,255,255,.14),transparent 55%)}
.lscbp .lscbp-av{position:absolute;left:50%;bottom:-34px;transform:translateX(-50%);width:72px;height:72px;border-radius:50%;background:var(--lscb-color);border:3px solid var(--lscb-accent);box-shadow:0 0 0 5px #fff;display:flex;align-items:center;justify-content:center;color:var(--lscb-accent)}
.lscbp .lscbp-av svg{width:38px;height:38px}
.lscbp .lscbp-in{padding:46px 24px 22px}
.lscbp .lscbp-t{margin:0 0 8px!important;font-size:19px!important;line-height:1.25!important;font-weight:700!important;color:#111827!important;text-transform:none!important;letter-spacing:0!important}
.lscbp .lscbp-p{font-size:14.5px;line-height:1.5;color:#374151;margin:0 0 18px}
.lscbp .lscbp-p strong{color:#111827}
.lscbp .lscbp-acts{display:flex;flex-direction:column;gap:8px}
.lscbp .lscbp-go{display:block;width:100%;padding:12px 16px!important;border-radius:12px!important;border:2px solid var(--lscb-accent)!important;background:var(--lscb-color)!important;color:#fff!important;font-size:15px!important;font-weight:600!important;cursor:pointer;height:auto!important;line-height:1.2!important;text-transform:none!important}
.lscbp .lscbp-go:hover{filter:brightness(1.12)}
.lscbp .lscbp-no{background:transparent!important;border:0!important;color:#6b7280!important;font-size:13.5px!important;cursor:pointer;padding:6px!important;height:auto!important;text-transform:none!important;text-decoration:underline}
.lscbp .lscbp-x{position:absolute;top:8px;right:10px;z-index:1;background:transparent!important;border:0!important;color:#fff!important;opacity:.8;font-size:26px!important;line-height:1!important;cursor:pointer;padding:2px 6px!important;width:auto!important;height:auto!important}
.lscb.lscb-pulse .lscb-launcher{animation:lscb-pulse 1.2s ease-out 3}
@keyframes lscb-pulse{0%{box-shadow:0 0 0 0 rgba(212,197,107,.75)}100%{box-shadow:0 0 0 18px rgba(212,197,107,0)}}
@media (prefers-reduced-motion:reduce){.lscbp,.lscbp .lscbp-card{transition:none}.lscb.lscb-pulse .lscb-launcher{animation:none}}
