/* ============================================================
   Asistente comercial Bianisal — widget por botones
   Estilos aislados bajo .shop-bot (no chocan con style.css).
   Tema claro/oscuro + animaciones + carrusel de tarjetas.
   ============================================================ */

.shop-bot {
  --sb-brand: #6d28d9;
  --sb-brand-2: #7c3aed;
  --sb-bg: #f4f6fb;
  --sb-panel: #ffffff;
  --sb-text: #1a1d26;
  --sb-muted: #64748b;
  --sb-bot-bubble: #ffffff;
  --sb-user-bubble: linear-gradient(135deg, var(--sb-brand), var(--sb-brand-2));
  --sb-border: #e4e8f0;
  --sb-frame:
    linear-gradient(145deg, #ddd6fe 0%, #8b5cf6 42%, #6d28d9 72%, #c4b5fd 100%);
  --sb-shadow:
    0 0 0 1px rgba(109, 40, 217, .14),
    0 0 0 6px rgba(109, 40, 217, .06),
    0 10px 24px -10px rgba(30, 27, 75, .28),
    0 28px 56px -20px rgba(109, 40, 217, .38);
  --sb-radius: 18px;

  position: fixed;
  right: 16px;
  /* Encima de la cinta de horarios (footer fijo en PC) */
  bottom: calc(0.45rem + 2.15rem + 0.45rem + 6px);
  z-index: 2147483000;
  font-family: var(--font-poppins, "Poppins", "Inter", system-ui, sans-serif);
  color: var(--sb-text);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: auto;
  max-width: none;
  box-sizing: border-box;
  overflow-x: hidden;
}

.shop-bot[data-theme="dark"] {
  --sb-bg: #14151c;
  --sb-panel: #1b1d27;
  --sb-text: #eef0f6;
  --sb-muted: #9aa1b2;
  --sb-bot-bubble: #262936;
  --sb-border: #2c2f3d;
  --sb-frame:
    linear-gradient(145deg, #4c1d95 0%, #8b5cf6 45%, #a78bfa 70%, #312e81 100%);
  --sb-shadow:
    0 0 0 1px rgba(167, 139, 250, .22),
    0 0 0 6px rgba(109, 40, 217, .12),
    0 14px 32px -12px rgba(0, 0, 0, .55),
    0 32px 64px -22px rgba(109, 40, 217, .45);
}

/* ---------- Launcher ---------- */
.shop-bot__launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: fit-content;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(109, 40, 217, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #6d28d9;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  box-shadow:
    0 12px 28px rgba(109, 40, 217, 0.16),
    0 2px 10px rgba(15, 23, 42, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.shop-bot__launcher:hover {
  transform: translateY(-2px);
  border-color: rgba(109, 40, 217, 0.35);
  box-shadow:
    0 16px 36px rgba(109, 40, 217, 0.22),
    0 4px 14px rgba(15, 23, 42, 0.1);
}
.shop-bot__launcher:active { transform: translateY(0); }
.shop-bot__launcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  animation: sb-bob 2.6s ease-in-out infinite;
}
.shop-bot__launcher-icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
}
.shop-bot__launcher-text {
  white-space: nowrap;
}
.shop-bot[data-theme="dark"] .shop-bot__launcher {
  background: #ffffff;
  color: #6d28d9;
  border-color: rgba(109, 40, 217, 0.28);
}
@keyframes sb-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.shop-bot--open .shop-bot__launcher { display: none; }

/* ---------- Panel ---------- */
.shop-bot__panel {
  width: 370px;
  max-width: calc(100vw - 24px);
  /* Crece con el chat; no deja un hueco blanco enorme al inicio */
  height: auto;
  max-height: min(560px, calc(100vh - 48px));
  border: 1.5px solid transparent;
  border-radius: var(--sb-radius);
  background:
    linear-gradient(var(--sb-panel), var(--sb-panel)) padding-box,
    var(--sb-frame) border-box;
  box-shadow: var(--sb-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: sb-pop .22s cubic-bezier(.2, .8, .2, 1);
  box-sizing: border-box;
  min-width: 0;
  isolation: isolate;
  position: relative;
}
.shop-bot__panel[hidden] {
  display: none !important;
}
.shop-bot__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .08);
  z-index: 2;
}
@keyframes sb-pop {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Header ---------- */
.shop-bot__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, var(--sb-brand), var(--sb-brand-2));
  color: #fff;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}
.shop-bot__avatar {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .18);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.shop-bot__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.shop-bot__head-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
  margin-right: auto;
  min-width: 0;
}
.shop-bot__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-bot__status {
  font-size: 11px;
  opacity: .92;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.shop-bot__status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
  animation: sb-pulse 1.8s infinite;
}
@keyframes sb-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.shop-bot__close {
  background: transparent; border: 0; color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer; opacity: .85;
  width: 30px; height: 30px; border-radius: 8px;
  flex-shrink: 0;
}
.shop-bot__close:hover { opacity: 1; background: rgba(255, 255, 255, .15); }

/* ---------- Messages ---------- */
.shop-bot__messages {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--sb-bg);
  min-width: 0;
  min-height: 0;
  max-height: min(460px, calc(100vh - 140px));
}
.shop-bot__messages::-webkit-scrollbar { width: 5px; }
.shop-bot__messages::-webkit-scrollbar-thumb { background: #d1d9e6; border-radius: 8px; }

.shop-bot__msg {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  animation: sb-in .2s ease;
  gap: 6px;
}
@keyframes sb-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.shop-bot__msg--user { align-items: flex-end; }
.shop-bot__msg--bot { align-items: stretch; }

.shop-bot__bubble {
  max-width: 92%;
  padding: 9px 12px 6px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  background: var(--sb-bot-bubble);
  color: var(--sb-text);
  border: 1px solid var(--sb-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  border-bottom-left-radius: 4px;
  word-wrap: break-word;
  position: relative;
}
.shop-bot__msg--bot .shop-bot__bubble { max-width: 100%; }
.shop-bot__msg--user .shop-bot__bubble {
  background: var(--sb-user-bubble);
  color: #fff;
  border: 0;
  box-shadow: 0 2px 8px -2px rgba(109, 40, 217, .35);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 4px;
}
.shop-bot__bubble--error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* Hora estilo WhatsApp (solo reloj, sin checks) */
.shop-bot__bubble-time {
  display: block;
  float: right;
  clear: both;
  margin: 2px 0 0 8px;
  padding: 0;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #667781;
  opacity: 0.9;
  user-select: none;
  white-space: nowrap;
}
.shop-bot__msg--user .shop-bot__bubble-time {
  color: rgba(255, 255, 255, 0.78);
}
.shop-bot__bubble--error .shop-bot__bubble-time {
  color: #b91c1c;
  opacity: 0.75;
}
.shop-bot__bubble--payment .shop-bot__bubble-time,
.shop-bot__bubble--license .shop-bot__bubble-time,
.shop-bot__bubble--delivery .shop-bot__bubble-time {
  margin-top: 8px;
}
.shop-bot__bubble--timed::after {
  content: "";
  display: table;
  clear: both;
}
.shop-bot[data-theme="dark"] .shop-bot__bubble-time {
  color: #8696a0;
}
.shop-bot[data-theme="dark"] .shop-bot__msg--user .shop-bot__bubble-time {
  color: rgba(255, 255, 255, 0.7);
}

.shop-bot__highlight-name {
  color: #002366;
  font-weight: 700;
}
.shop-bot__highlight-name--green {
  color: #16a34a;
}
.shop-bot[data-theme="dark"] .shop-bot__highlight-name {
  color: #5b9bd5;
}
.shop-bot[data-theme="dark"] .shop-bot__highlight-name--green {
  color: #4ade80;
}

.shop-bot__highlight-tv-codigo {
  color: #ca8a04;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.shop-bot[data-theme="dark"] .shop-bot__highlight-tv-codigo {
  color: #facc15;
}

/* ---------- Botones de opción ---------- */
.shop-bot__btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 0;
  width: 100%;
}
.shop-bot__btn {
  padding: 8px 10px;
  border: 1px solid #d8dfeb;
  background: #ffffff;
  color: var(--sb-brand);
  border-radius: 11px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.shop-bot__btn-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.shop-bot__btn--whatsapp {
  color: #128c7e;
  border-color: #86efac;
  background: #f0fdf4;
}
.shop-bot__btn--whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}
.shop-bot__btn--whatsapp.shop-bot__btn--primary {
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(37, 211, 102, .55);
}
.shop-bot__btns--stale,
.shop-bot__plist-row--stale {
  opacity: 0.45;
  pointer-events: none;
}
.shop-bot__btns--stale .shop-bot__btn,
.shop-bot__plist-row--stale {
  cursor: default;
}
.shop-bot__btn--whatsapp.shop-bot__btn--primary:hover {
  filter: brightness(1.05);
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
}
.shop-bot__btn:hover {
  background: rgba(109, 40, 217, .06);
  border-color: var(--sb-brand);
  color: var(--sb-brand);
}
.shop-bot__btn:active { transform: scale(.98); }
.shop-bot__btn--primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--sb-brand), var(--sb-brand-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px -4px rgba(109, 40, 217, .45);
}
.shop-bot__btn--primary:hover {
  filter: brightness(1.05);
  background: linear-gradient(135deg, var(--sb-brand), var(--sb-brand-2));
  color: #fff;
}

/* Primary arriba + secundarios centrados debajo (p. ej. Cancelar proceso) */
.shop-bot__btns--stack {
  grid-template-columns: 1fr;
  justify-items: stretch;
}
.shop-bot__btns--stack .shop-bot__btn--primary {
  grid-column: auto;
}

/* Botón único centrado post-entrega (Nueva conversación) */
.shop-bot__btns--center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 8px;
  margin-bottom: 4px;
}
.shop-bot__btns--center .shop-bot__btn {
  min-width: min(100%, 220px);
  max-width: 280px;
  justify-content: center;
  text-align: center;
}
.shop-bot__btns--center .shop-bot__btn--primary {
  grid-column: auto;
}

/* Selector catálogo: Combos ancho completo + categorías en 2 columnas */
.shop-bot__btns--catalog {
  gap: 6px;
  margin-top: 2px;
}
.shop-bot__btns--catalog .shop-bot__btn--primary {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 11px;
  box-shadow: 0 4px 12px -4px rgba(109, 40, 217, .4);
  letter-spacing: 0;
}
.shop-bot__btns--catalog .shop-bot__btn--catalog {
  padding: 8px 9px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 11px;
  background: #ffffff;
  border-color: #d8dfeb;
  color: var(--sb-brand);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.shop-bot__btns--catalog .shop-bot__btn--catalog:hover {
  background: rgba(109, 40, 217, .05);
  border-color: rgba(109, 40, 217, .35);
  box-shadow: 0 2px 8px rgba(109, 40, 217, .1);
}
.shop-bot[data-theme="dark"] .shop-bot__btns--catalog .shop-bot__btn--catalog {
  background: var(--sb-card);
  border-color: var(--sb-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.shop-bot__btns--catalog.shop-bot__btns--scroll {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}
.shop-bot__btns--catalog.shop-bot__btns--scroll::-webkit-scrollbar {
  width: 5px;
}
.shop-bot__btns--catalog.shop-bot__btns--scroll::-webkit-scrollbar-thumb {
  background: #d1d9e6;
  border-radius: 8px;
}
.shop-bot__btns--catalog .shop-bot__btn--catalog .shop-bot__btn-label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  word-break: break-word;
}

/* Productos del catálogo: miniatura + 2 por fila */
.shop-bot__btns--products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
.shop-bot__btns--products.shop-bot__btns--scroll {
  max-height: 380px;
}
.shop-bot__btns--products .shop-bot__btn--product,
.shop-bot__btns--catalog .shop-bot__btn--product {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  min-height: 0;
  height: 100%;
  border-radius: 12px;
}
.shop-bot__btns--products .shop-bot__btn--product:hover,
.shop-bot__btns--catalog .shop-bot__btn--product:hover {
  transform: translateY(-1px);
}
.shop-bot__btn-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 6px;
  box-sizing: border-box;
  background: #f4f1fc;
  overflow: hidden;
  flex-shrink: 0;
}
.shop-bot__btn-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.shop-bot__btn-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
  opacity: 0.72;
}
.shop-bot__btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 8px 8px;
  min-width: 0;
}
.shop-bot__btn-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--sb-text, #1e1b4b);
  word-break: break-word;
}
.shop-bot__btn-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--sb-brand);
  line-height: 1.15;
}
.shop-bot[data-theme="dark"] .shop-bot__btn-media {
  background: rgba(109, 40, 217, .14);
}
.shop-bot[data-theme="dark"] .shop-bot__btn-name {
  color: var(--sb-text);
}

/* Acordeón Combos / Pantallas */
.shop-bot__catalog-accordion {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
}
.shop-bot__catalog-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.shop-bot__catalog-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid #d8dfeb;
  border-radius: 11px;
  background: #ffffff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.shop-bot__catalog-toggle-label {
  color: var(--sb-brand);
  flex: 1;
  min-width: 0;
}
.shop-bot__catalog-toggle-chevron {
  flex-shrink: 0;
  color: var(--sb-brand);
  font-size: 14px;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform .2s ease;
}
.shop-bot__catalog-section.is-open .shop-bot__catalog-toggle {
  border-color: rgba(109, 40, 217, .4);
  background: rgba(109, 40, 217, .05);
  box-shadow: 0 2px 8px rgba(109, 40, 217, .1);
}
.shop-bot__catalog-section.is-open .shop-bot__catalog-toggle-chevron {
  transform: rotate(-90deg);
}
.shop-bot__catalog-toggle:hover {
  border-color: rgba(109, 40, 217, .35);
  background: rgba(109, 40, 217, .04);
}
.shop-bot__catalog-panel {
  animation: shopBotAccordionIn .2s ease;
}
.shop-bot__catalog-panel[hidden] {
  display: none !important;
}
.shop-bot__btns--accordion-grid {
  margin-top: 0;
}
@keyframes shopBotAccordionIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.shop-bot[data-theme="dark"] .shop-bot__catalog-toggle {
  background: var(--sb-card);
  border-color: var(--sb-border);
}

/* ---------- Carrusel de tarjetas ---------- */
.shop-bot__carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shop-bot__carousel::-webkit-scrollbar { height: 6px; }
.shop-bot__carousel::-webkit-scrollbar-thumb { background: var(--sb-border); border-radius: 6px; }

.shop-bot__card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--sb-panel);
  border: 1px solid var(--sb-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px -12px rgba(30, 20, 60, .4);
}
.shop-bot__card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--sb-bot-bubble);
  overflow: hidden;
}
.shop-bot__card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-bot__card-badge {
  position: absolute; top: 8px; left: 8px;
  background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px;
}
.shop-bot__card-badge--float { position: static; align-self: flex-start; margin: 10px 10px 0; }
.shop-bot__card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.shop-bot__card-title { font-size: 14px; font-weight: 600; }
.shop-bot__card-sub { font-size: 12px; color: var(--sb-muted); }
.shop-bot__card-price { font-size: 16px; font-weight: 700; color: var(--sb-brand); margin-top: 2px; }
.shop-bot[data-theme="dark"] .shop-bot__card-price { color: #c4b5fd; }
.shop-bot__card .shop-bot__btns { margin-top: 8px; }
.shop-bot__card .shop-bot__btn { padding: 7px 10px; font-size: 12px; }

/* ---------- Lista compacta de productos ---------- */
.shop-bot__plist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
  max-height: 280px;
  overflow-y: auto;
  width: 100%;
}
.shop-bot__plist::-webkit-scrollbar { width: 5px; }
.shop-bot__plist::-webkit-scrollbar-thumb { background: #d1d9e6; border-radius: 8px; }

.shop-bot__plist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--sb-border);
  border-radius: 11px;
  background: #ffffff;
  color: var(--sb-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .1s ease;
}
.shop-bot__plist-row:hover:not(.shop-bot__plist-row--disabled) {
  border-color: var(--sb-brand);
  background: #faf8ff;
  box-shadow: 0 2px 8px -4px rgba(109, 40, 217, .2);
}
.shop-bot__plist-row:active:not(.shop-bot__plist-row--disabled) { transform: scale(.99); }
.shop-bot__plist-row--disabled { opacity: .65; cursor: not-allowed; }

.shop-bot__plist-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.shop-bot__plist-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-bot__plist-price {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--sb-brand);
}
.shop-bot__plist-chevron {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
  color: var(--sb-muted);
}
.shop-bot__plist-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #ef4444;
  background: rgba(239, 68, 68, .1);
  padding: 3px 8px;
  border-radius: 999px;
}

/* ---------- Typing ---------- */
.shop-bot__typing {
  display: flex; gap: 4px; padding: 2px 12px 6px;
}
.shop-bot__typing[hidden] { display: none; }
.shop-bot__typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sb-muted); opacity: .6;
  animation: sb-typing 1.2s infinite ease-in-out;
}
.shop-bot__typing span:nth-child(2) { animation-delay: .15s; }
.shop-bot__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes sb-typing { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- Comprobante (sin campo de texto) ---------- */
.shop-bot__proof-bar {
  display: flex;
  flex-direction: column;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(109, 40, 217, .18);
  background: linear-gradient(180deg, #f5f0ff 0%, #ffffff 70%);
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}
.shop-bot__proof-bar[hidden] {
  display: none !important;
}

.shop-bot__text-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(109, 40, 217, .18);
  background: linear-gradient(180deg, #f8f5ff 0%, #ffffff 70%);
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}
.shop-bot__text-bar[hidden] {
  display: none !important;
}
.shop-bot__text-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #c4b5fd;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--sb-text);
  background: #fff;
  outline: none;
}
.shop-bot__text-input:focus {
  border-color: var(--sb-brand);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, .12);
}
.shop-bot__text-send {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sb-brand), var(--sb-brand-2));
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.shop-bot__text-send:hover {
  filter: brightness(1.06);
}

/* ---------- Form (legacy) ---------- */
.shop-bot__form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--sb-border);
  background: #ffffff;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  flex-shrink: 0;
}
.shop-bot__input {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg);
  color: var(--sb-text);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.shop-bot__input:focus { border-color: var(--sb-brand); box-shadow: 0 0 0 3px rgba(109, 40, 217, .12); }
.shop-bot__send {
  width: 42px; height: 42px; flex: 0 0 42px;
  border: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--sb-brand), var(--sb-brand-2));
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: transform .12s ease, filter .12s ease;
  flex-shrink: 0;
}
.shop-bot__send:hover { filter: brightness(1.08); transform: scale(1.05); }
.shop-bot__send svg { width: 22px; height: 22px; margin-left: 2px; }

.shop-bot__attach {
  width: 44px; height: 44px; flex: 0 0 44px;
  border: 2px solid #c4b5fd;
  border-radius: 12px;
  background: #f5f0ff;
  color: var(--sb-brand);
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: border-color .12s ease, background .12s ease, transform .12s ease, color .12s ease;
  flex-shrink: 0;
}
.shop-bot__attach svg { width: 22px; height: 22px; }
.shop-bot__attach:hover {
  border-color: var(--sb-brand);
  background: #ede9fe;
  color: var(--sb-brand-2);
  transform: scale(1.05);
}
.shop-bot__attach.shop-bot__attach--bar {
  width: 100%;
  height: auto;
  min-height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sb-brand), var(--sb-brand-2));
  box-shadow:
    0 6px 18px -4px rgba(109, 40, 217, .55),
    0 0 0 3px rgba(109, 40, 217, .12);
  transform: none;
  animation: sb-proof-pulse 2.2s ease-in-out infinite;
}
.shop-bot__attach.shop-bot__attach--bar:hover {
  transform: none;
  filter: brightness(1.06);
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--sb-brand), var(--sb-brand-2));
  box-shadow:
    0 8px 22px -4px rgba(109, 40, 217, .6),
    0 0 0 3px rgba(109, 40, 217, .18);
}
.shop-bot__attach.shop-bot__attach--bar:active {
  filter: brightness(0.96);
}
@keyframes sb-proof-pulse {
  0%, 100% { box-shadow: 0 6px 18px -4px rgba(109, 40, 217, .55), 0 0 0 3px rgba(109, 40, 217, .12); }
  50% { box-shadow: 0 8px 24px -2px rgba(109, 40, 217, .7), 0 0 0 5px rgba(109, 40, 217, .2); }
}

/* Miniatura de comprobante en el chat del cliente */
.shop-bot__bubble--proof {
  padding: 8px 10px 6px;
  max-width: 78%;
}
.shop-bot__proof-caption {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}
.shop-bot__proof-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, .12);
  cursor: zoom-in;
  line-height: 0;
}
.shop-bot__proof-thumb img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}
.shop-bot__proof-hint {
  margin-top: 5px;
  font-size: 10px;
  opacity: .8;
}
.shop-bot__proof-file {
  font-size: 12px;
  font-weight: 600;
}
.shop-bot__lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .88);
}
.shop-bot__lightbox[hidden] { display: none !important; }
.shop-bot__lightbox-inner {
  position: relative;
  max-width: min(920px, 96vw);
  max-height: 92vh;
}
.shop-bot__lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 12px;
  object-fit: contain;
  background: #111;
  cursor: zoom-out;
}
.shop-bot__lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.shop-bot__timer {
  margin-top: 2px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #f5f0ff;
  border: 1px solid #e4d8ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}
.shop-bot__timer--expired { background: rgba(220, 38, 38, .08); border-color: rgba(220, 38, 38, .25); }
.shop-bot__timer-value { font-variant-numeric: tabular-nums; color: var(--sb-brand); }

/* ---------- Resumen de pago Bre-B ---------- */
.shop-bot__bubble--payment {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 12px 7px;
  line-height: 1.4;
}
.shop-bot__payment-row {
  margin: 0;
}
.shop-bot__payment-row--key-label {
  margin-bottom: -2px;
  text-align: center;
}
.shop-bot__payment-key-label {
  display: inline-block;
  margin: 0;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sb-brand);
  background: linear-gradient(180deg, rgba(109, 40, 217, .1), rgba(109, 40, 217, .05));
  border: 1px solid rgba(109, 40, 217, .2);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .65) inset;
}
.shop-bot__payment-line {
  display: block;
  font-size: 12.5px;
  line-height: 1.4;
}
.shop-bot__payment-line--total {
  font-weight: 700;
  font-size: 13px;
}
.shop-bot__payment-key-block {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(109, 40, 217, .08), rgba(109, 40, 217, .04));
  border: 1px solid rgba(109, 40, 217, .18);
  text-align: center;
}
.shop-bot__payment-key-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.shop-bot__payment-key-icon {
  font-size: 14px;
  line-height: 1;
}
.shop-bot__payment-key-copy {
  border: 1px solid #c4b5fd;
  background: #ffffff;
  color: var(--sb-brand);
  border-radius: 999px;
  padding: 3px 8px;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.shop-bot__payment-key-copy:hover {
  background: #f5f0ff;
  border-color: var(--sb-brand);
}
.shop-bot__payment-key-value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--sb-brand);
  word-break: break-all;
}
.shop-bot__payment-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(109, 40, 217, .14);
}
.shop-bot__payment-instructions {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8f9fc;
  border: 1px solid #e8ecf4;
  font-size: 12.5px;
  line-height: 1.45;
  color: #1a1d26;
  font-weight: 700;
  text-align: center;
}
.shop-bot__payment-instructions .shop-bot__highlight-name {
  font-weight: 800;
}
.shop-bot__payment-proof-note {
  margin: 0;
  padding: 11px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff1f0 0%, #ffe4e1 100%);
  border: 1.5px solid #f87171;
  box-shadow:
    0 0 0 3px rgba(239, 68, 68, .12),
    0 4px 14px -4px rgba(220, 38, 38, .35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  animation: sb-alert-pulse 1.8s ease-in-out infinite;
}
.shop-bot__payment-proof-note-title {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: #b91c1c;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.shop-bot__payment-proof-note-sub {
  display: block;
  font-size: 11.5px;
  line-height: 1.35;
  color: #991b1b;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
@keyframes sb-alert-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(239, 68, 68, .12),
      0 4px 14px -4px rgba(220, 38, 38, .35);
    border-color: #f87171;
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(239, 68, 68, .22),
      0 6px 18px -2px rgba(220, 38, 38, .45);
    border-color: #ef4444;
  }
}
.shop-bot__payment-timer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 6px 9px;
  border-radius: 8px;
  background: #f5f0ff;
  border: 1px solid #e4d8ff;
}
.shop-bot__payment-line--timer-label {
  font-weight: 600;
  font-size: 11.5px;
}
.shop-bot__payment-timer-value {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--sb-brand);
}
.shop-bot__payment-timer--expired {
  background: rgba(220, 38, 38, .08);
  border-color: rgba(220, 38, 38, .25);
}
.shop-bot__payment-timer--expired .shop-bot__payment-timer-value {
  color: #dc2626;
}
.shop-bot[data-theme="dark"] .shop-bot__payment-timer {
  background: rgba(109, 40, 217, .12);
  border-color: rgba(167, 139, 250, .22);
}
.shop-bot[data-theme="dark"] .shop-bot__payment-timer--expired {
  background: rgba(220, 38, 38, .12);
  border-color: rgba(248, 113, 113, .28);
}
.shop-bot__payment-email-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 2px;
}
.shop-bot__payment-email {
  display: block;
  margin: 0;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--sb-brand);
  word-break: break-all;
  background: rgba(109, 40, 217, .07);
  border: 1px solid rgba(109, 40, 217, .14);
}
.shop-bot[data-theme="dark"] .shop-bot__payment-key-block {
  background: rgba(109, 40, 217, .14);
  border-color: rgba(167, 139, 250, .25);
}
.shop-bot[data-theme="dark"] .shop-bot__payment-key-label {
  background: rgba(109, 40, 217, .18);
  border-color: rgba(167, 139, 250, .28);
  box-shadow: none;
  color: #c4b5fd;
}
.shop-bot[data-theme="dark"] .shop-bot__payment-key-copy {
  background: var(--sb-card);
}
.shop-bot[data-theme="dark"] .shop-bot__payment-instructions {
  background: var(--sb-card);
  border-color: var(--sb-border);
  color: var(--sb-text);
}
.shop-bot[data-theme="dark"] .shop-bot__payment-email {
  background: rgba(109, 40, 217, .12);
}

/* ---------- Licencia entregada ---------- */
.shop-bot__bubble--license {
  padding: 10px 12px 7px;
}
.shop-bot__license-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.shop-bot__license-title {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  flex: 1;
}
.shop-bot__license-copy {
  flex: 0 0 auto;
  border: 1px solid #c4b5fd;
  background: #f5f0ff;
  color: var(--sb-brand);
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.shop-bot__license-copy:hover {
  background: #ede9fe;
  border-color: var(--sb-brand);
}
.shop-bot__license-copy--done {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .35);
  color: #15803d;
}
.shop-bot__license-fields {
  display: grid;
  gap: 6px;
}
.shop-bot__license-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.35;
}
.shop-bot__license-icon {
  flex: 0 0 auto;
  width: 1.15rem;
  text-align: center;
  font-size: 13px;
}
.shop-bot__license-line {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.shop-bot__license-label {
  color: var(--sb-muted);
  font-weight: 500;
}
.shop-bot__license-value {
  color: var(--sb-text);
  font-weight: 600;
}
.shop-bot__license-footer {
  margin: 8px 0 0;
  padding: 8px 8px 2px;
  border-top: 1px solid rgba(109, 40, 217, .12);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: #6d28d9;
  letter-spacing: 0.01em;
}

/* ---------- Entrega / agradecimiento ---------- */
.shop-bot__bubble--delivery {
  padding: 12px 12px 10px;
  border: 1px solid rgba(34, 197, 94, .28);
  background:
    linear-gradient(165deg, rgba(240, 253, 244, .95), rgba(255, 255, 255, .98));
  box-shadow: 0 8px 18px -14px rgba(22, 163, 74, .45);
}
.shop-bot__delivery-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 10px;
}
.shop-bot__delivery-icon {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(34, 197, 94, .16);
  border: 1px solid rgba(34, 197, 94, .28);
  font-size: 1rem;
  line-height: 1;
}
.shop-bot__delivery-head-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.shop-bot__delivery-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #15803d;
}
.shop-bot__delivery-title {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.3;
  color: #14532d;
  letter-spacing: -0.01em;
}
.shop-bot__delivery-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.shop-bot__delivery-stat:only-child {
  grid-column: 1 / -1;
}
.shop-bot__delivery-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(34, 197, 94, .16);
}
.shop-bot__delivery-stat--balance {
  border-color: rgba(109, 40, 217, .18);
  background: rgba(245, 240, 255, .9);
}
.shop-bot__delivery-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sb-muted);
}
.shop-bot__delivery-stat-value {
  font-size: 13px;
  font-weight: 800;
  color: #166534;
  line-height: 1.2;
}
.shop-bot__delivery-stat--balance .shop-bot__delivery-stat-value {
  color: var(--sb-brand);
}
.shop-bot__delivery-thanks {
  margin: 0;
  padding: 8px 8px 2px;
  border-top: 1px solid rgba(34, 197, 94, .14);
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  color: #5b21b6;
}
.shop-bot[data-theme="dark"] .shop-bot__bubble--delivery {
  background: linear-gradient(165deg, rgba(20, 83, 45, .28), rgba(20, 18, 32, .96));
  border-color: rgba(74, 222, 128, .28);
}
.shop-bot[data-theme="dark"] .shop-bot__delivery-title {
  color: #bbf7d0;
}
.shop-bot[data-theme="dark"] .shop-bot__delivery-eyebrow {
  color: #86efac;
}
.shop-bot[data-theme="dark"] .shop-bot__delivery-stat {
  background: rgba(0, 0, 0, .28);
  border-color: rgba(74, 222, 128, .2);
}
.shop-bot[data-theme="dark"] .shop-bot__delivery-stat--balance {
  background: rgba(109, 40, 217, .16);
  border-color: rgba(167, 139, 250, .25);
}
.shop-bot[data-theme="dark"] .shop-bot__delivery-stat-value {
  color: #bbf7d0;
}
.shop-bot[data-theme="dark"] .shop-bot__delivery-stat--balance .shop-bot__delivery-stat-value {
  color: #ddd6fe;
}
.shop-bot[data-theme="dark"] .shop-bot__delivery-thanks {
  border-top-color: rgba(74, 222, 128, .18);
  color: #ddd6fe;
}
.shop-bot[data-theme="dark"] .shop-bot__license-footer {
  border-top-color: rgba(167, 139, 250, .2);
  color: #ddd6fe;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .shop-bot {
    right: 14px;
    left: auto;
    /* Borde inferior de la burbuja = borde superior de la cinta de horarios */
    bottom: calc(0.45rem + 2.15rem + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: calc(100% - 28px);
  }

  .shop-bot__launcher {
    width: 68px;
    height: 68px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    justify-content: center;
    gap: 0;
    overflow: hidden;
  }

  .shop-bot__launcher:hover {
    box-shadow: none;
    border-color: transparent;
  }

  .shop-bot__launcher-text {
    display: none;
  }

  .shop-bot__launcher-icon {
    animation: sb-bob 2.6s ease-in-out infinite;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
  }

  .shop-bot__launcher-icon img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
  }

  .shop-bot.shop-bot--open {
    right: 14px;
    left: auto;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    width: min(320px, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
    align-items: stretch;
    overflow: hidden;
  }

  .shop-bot__panel {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(72vh, calc(100dvh - 24px - env(safe-area-inset-bottom, 0px)));
    border-radius: var(--sb-radius);
  }

  .shop-bot__head {
    padding: 10px 12px;
    border-radius: calc(var(--sb-radius) - 1.5px) calc(var(--sb-radius) - 1.5px) 0 0;
  }

  .shop-bot__messages {
    padding: 12px 12px 10px;
    gap: 8px;
    max-height: min(58vh, calc(100dvh - 150px - env(safe-area-inset-bottom, 0px)));
  }

  .shop-bot__proof-bar {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .shop-bot__form {
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .shop-bot__attach {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .shop-bot__send {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .shop-bot__send svg,
  .shop-bot__attach svg {
    width: 20px;
    height: 20px;
  }

  .shop-bot__input {
    padding: 10px 12px;
    font-size: 16px;
  }

  .shop-bot__msg,
  .shop-bot__btns,
  .shop-bot__carousel,
  .shop-bot__catalog-accordion,
  .shop-bot__plist {
    max-width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-bot__launcher-icon,
  .shop-bot__status::before,
  .shop-bot__typing span,
  .shop-bot__panel,
  .shop-bot__msg,
  .shop-bot__attach.shop-bot__attach--bar,
  .shop-bot__payment-proof-note { animation: none !important; }
}

/* Formulario de bienvenida (invitados) */
.shop-bot__guest-form {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 10px;
  max-width: 100%;
  box-shadow: none;
}
.shop-bot__guest-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}
.shop-bot__guest-subtitle {
  font-size: 11.5px;
  color: #475569;
  margin: 0 0 8px;
  line-height: 1.35;
}
.shop-bot__guest-field {
  margin-bottom: 8px;
}
.shop-bot__guest-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}
.shop-bot__guest-label span {
  color: #dc2626;
}
.shop-bot__guest-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 13px;
  color: #0f172a;
  background: #fff;
}
.shop-bot__guest-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.shop-bot__guest-error {
  font-size: 12px;
  color: #dc2626;
  margin: 0 0 10px;
  min-height: 1em;
}
.shop-bot__guest-submit {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  cursor: pointer;
}
.shop-bot__guest-submit:hover { filter: brightness(1.05); }
.shop-bot__guest-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.shop-bot[data-theme="dark"] .shop-bot__guest-form {
  background: #1e293b;
  border-color: #334155;
}
.shop-bot[data-theme="dark"] .shop-bot__guest-title { color: #f1f5f9; }
.shop-bot[data-theme="dark"] .shop-bot__guest-subtitle { color: #94a3b8; }
.shop-bot[data-theme="dark"] .shop-bot__guest-label { color: #cbd5e1; }
.shop-bot[data-theme="dark"] .shop-bot__guest-input {
  background: #0f172a;
  border-color: #475569;
  color: #f8fafc;
}
