/* Livechat v2 — CSS v20. = v19 + asistente de IA de telas:
 *   - El campo "¿Qué vas a coser?" del héroe pasa de botón muerto a FORM con
 *     input real (el proyecto viaja a /api/livechat/asistente-tela).
 *   - "Viendo una tela" se vuelve mini-herramienta: specs reales (mono), stock,
 *     escalera de volumen del visitante y el asistente pre-cargado con la tela.
 */
@import url('/styles/livechat-v19.css');

/* ── Héroe asistente: input real dentro del campo ── */
form.lc-assist__field { cursor: text; }
.lc-assist__input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: var(--font-sans); font-size: 14px; color: var(--lc-ink, #18181b); height: 100%; }
.lc-assist__input::placeholder { color: var(--lc-ink-4, #a1a1aa); }
button.lc-assist__go { position: relative; border: none; cursor: pointer; padding: 0; touch-action: manipulation; transition: filter .15s ease; }
button.lc-assist__go:hover { filter: brightness(1.12); }
/* Zona táctil ≥44px sin crecer el visual (el botón mide 34px). */
button.lc-assist__go::after { content: ''; position: absolute; inset: -7px; }

/* ── "Viendo una tela" mini-herramienta ── */
.lc-viendo__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lc-viendo__specs span { padding: 4px 9px; border-radius: 8px; background: var(--lc-s2, #f4f4f5); font-family: var(--font-mono, ui-monospace, monospace); font-size: 10.5px; letter-spacing: 0.2px; color: var(--lc-ink-2, #3f3f46); }
.lc-viendo__stock { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: #00a862; }
.lc-viendo__stock.is-off { color: var(--lc-ink-3, #71717a); }
.lc-viendo__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lc-viendo__plan { margin-left: 8px; padding: 2px 8px; border-radius: 7px; background: #f9f1dc; color: #a57c2c; font-family: var(--font-sans); font-size: 10.5px; font-weight: 700; }
.lc-viendo__tiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lc-viendo__tier { padding: 5px 10px; border-radius: 9px; background: var(--lc-s2, #f4f4f5); border: 1px solid var(--lc-line, #e4e4e7); font-family: var(--font-mono, ui-monospace, monospace); font-size: 10.5px; color: var(--lc-ink-2, #3f3f46); }
.lc-viendo__tier b { font-family: var(--font-sans); font-weight: 700; color: var(--lc-ink, #18181b); }
.lc-viendo__tier.is-on { background: var(--lc-accent-soft, #eef4ff); border-color: var(--lc-accent, #0071e3); }
.lc-viendo__tier.is-on b { color: var(--lc-accent, #0071e3); }
.lc-viendo__ask { display: flex; align-items: center; gap: 10px; margin-top: 13px; height: 48px; border-radius: 12px; border: 1px solid var(--lc-line-s, #ececef); background: var(--lc-s2, #f4f4f5); padding: 0 8px 0 14px; }
.lc-viendo__input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: var(--font-sans); font-size: 13.5px; color: var(--lc-ink, #18181b); height: 100%; }
.lc-viendo__input::placeholder { color: var(--lc-ink-4, #a1a1aa); }
.lc-viendo__go { position: relative; width: 34px; height: 34px; border-radius: 10px; border: none; background: var(--lc-accent, #0071e3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; touch-action: manipulation; transition: filter .15s ease; }
.lc-viendo__go:hover { filter: brightness(1.12); }
.lc-viendo__go::after { content: ''; position: absolute; inset: -7px; }
.lc-viendo__hint { margin: 7px 2px 0; font-family: var(--font-sans); font-size: 11px; color: var(--lc-ink-3, #71717a); }
.lc-viendo__chips { margin-top: 11px; }

/* iOS hace zoom al enfocar inputs <16px — en táctil los subimos a 16. */
@media (max-width: 767px) {
  .lc-assist__input, .lc-viendo__input { font-size: 16px; }
}
