/* Burbuja del «Asistente» (tienda-asistente.php). Abajo a la izquierda: a la derecha están «My Rewards» y el botón de
 * subir, y en el centro la barra «Ver pedido» de la carta. 06/11/2026 */
.tasi { --tasi-color: #c7060f; --tasi-tinta: #1d1d1f; font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--tasi-tinta); }
.tasi-poke { --tasi-color: #14241c; }
.tasi *, .tasi *::before, .tasi *::after { box-sizing: border-box; }
.tasi-burbuja {
  position: fixed; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 9995;
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px; margin: 0;
  border: 0; border-radius: 999px; background: var(--tasi-color); color: #fff; cursor: pointer;
  font: 600 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-transform: none; letter-spacing: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.tasi-burbuja:hover { filter: brightness(1.1); }
.tasi-icono { width: 22px; height: 22px; flex: 0 0 22px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4v-4H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm3 6.5a1.5 1.5 0 1 0 0 .01zm5 0a1.5 1.5 0 1 0 0 .01zm5 0a1.5 1.5 0 1 0 0 .01z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4v-4H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm3 6.5a1.5 1.5 0 1 0 0 .01zm5 0a1.5 1.5 0 1 0 0 .01zm5 0a1.5 1.5 0 1 0 0 .01z'/%3E%3C/svg%3E") center / contain no-repeat; }
.tasi-abierto .tasi-burbuja { display: none; }
/* texto que cambia de idioma: los tres en la misma celda, solo se ve uno */
.tasi-burbuja-txt { display: inline-grid; }
.tasi-txt { grid-area: 1 / 1; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; white-space: nowrap; }
.tasi-txt-ver { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .tasi-txt { transition: none; transform: none; } }
/* en la carta, con la barra «Ver pedido» abajo: la burbuja se sube */
html.pbc-con-barra .tasi-burbuja { bottom: 90px; }
html.pbc-sin-scroll .tasi { display: none; }

.tasi-panel {
  position: fixed; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 2147482000;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); height: min(560px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
}
.tasi-panel[hidden] { display: none; }
.tasi-cab { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--tasi-color); color: #fff; }
.tasi-tit { font-weight: 700; font-size: 16px; }
.tasi-cerrar { width: 32px; height: 32px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.tasi-lista { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #f6f5f2; -webkit-overflow-scrolling: touch; }
.tasi-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.45; }
.tasi-el { align-self: flex-start; background: #fff; border: 1px solid #e6e4df; border-bottom-left-radius: 4px; }
.tasi-yo { align-self: flex-end; background: var(--tasi-color); color: #fff; border-bottom-right-radius: 4px; }
.tasi-msg a { color: inherit; text-decoration: underline; }
.tasi-msg p { margin: 0 0 8px; }
.tasi-msg p:last-child, .tasi-msg ul:last-child { margin-bottom: 0; }
.tasi-msg ul { margin: 2px 0 8px; padding: 0 0 0 18px; list-style: disc; }
.tasi-msg li { margin: 0 0 4px; padding: 0; list-style: disc; }
.tasi-msg li::before { content: none; }
.tasi-yo { white-space: pre-line; }
.tasi-el { white-space: normal; }
/* chat abierto: fuera los botones flotantes de otros plugins y del tema */
html.tasi-html-abierto .wll-launcher-button-container, html.tasi-html-abierto #scrollUp, html.tasi-html-abierto .scrollup,
html.tasi-html-abierto #back-to-top, html.tasi-html-abierto .back-to-top, html.tasi-html-abierto .scroll-top,
html.tasi-html-abierto .pbc-barra, html.tasi-html-abierto #cmplz-manage-consent, html.tasi-html-abierto .cmplz-manage-consent { display: none !important; }
.tasi-escribiendo { display: inline-flex; gap: 4px; padding: 12px 14px; }
.tasi-escribiendo span { width: 7px; height: 7px; border-radius: 50%; background: #9a9a9f; animation: tasi-bota 1s infinite ease-in-out; }
.tasi-escribiendo span:nth-child(2) { animation-delay: .15s; }
.tasi-escribiendo span:nth-child(3) { animation-delay: .3s; }
@keyframes tasi-bota { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.tasi-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid #ececee; background: #fff; margin: 0; }
.tasi-campo {
  flex: 1; min-height: 40px; max-height: 110px; padding: 9px 12px; margin: 0; resize: none;
  border: 1.5px solid #dcdce0; border-radius: 12px; background: #fff; color: var(--tasi-tinta);
  font: 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; box-shadow: none; outline: none;
}
.tasi-campo:focus { border-color: var(--tasi-color); }
.tasi-enviar { flex: 0 0 40px; width: 40px; height: 40px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: var(--tasi-color); color: #fff; font-size: 17px; cursor: pointer; }
.tasi-enviar:disabled { opacity: .5; cursor: default; }
.tasi-nota { margin: 0; padding: 0 12px 10px; background: #fff; color: #7a7a80; font-size: 11.5px; line-height: 1.35; }
@media (max-width: 600px) {
  .tasi-burbuja { left: 12px; height: 44px; padding: 0 14px 0 12px; }
  .tasi-panel { left: 0; right: 0; bottom: 0; width: 100%; height: 82vh; height: 82dvh; border-radius: 16px 16px 0 0; }
  .tasi-campo { font-size: 16px; } /* menos de 16 px hace zoom en iPhone */
}
@media (prefers-reduced-motion: reduce) { .tasi-escribiendo span { animation: none; } }
