/* ============================================================
   Vendedor Straka — Compra Gamer | Chat Widget CSS
   Variables de diseño + Widget flotante + Modal presupuesto
   Solo estos estilos — no afecta el CSS de la pagina base
   ============================================================ */

/* ── Variables CSS — EZG Branding ───────────────────────── */
:root {
  --bg-base: #080808;
  --bg-surface: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1e1e1e;
  --bg-header: #111111;
  --bg-modal: #161616;
  --bg-footer: #080808;

  --accent: #F26829;
  --accent-dim: rgba(242, 104, 41, 0.12);
  --accent-glow: 0 0 20px rgba(242, 104, 41, 0.35);
  --accent-hover: #d4551e;

  --orange: #F26829;
  --orange-dim: rgba(242, 104, 41, 0.12);
  --green: #16a34a;
  --green-dim: rgba(22, 163, 74, 0.12);
  --red: #dc2626;
  --red-dim: rgba(220, 38, 38, 0.12);
  --yellow: #d97706;

  --text-primary: #f0f0f0;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --text-on-dark: #f5f5f5;
  --text-on-dark-muted: #888888;

  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(242, 104, 41, 0.35);
  --border-dark: rgba(255, 255, 255, 0.08);

  --radius-sm: 5px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.30);
  --shadow-card-hover: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-popup: 0 4px 24px rgba(0, 0, 0, 0.28);

  --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ── Chat Widget ─────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════
   CHAT POPUP WIDGET — estilo CompraGamer
   FAB: círculo naranja · Panel: header oscuro + cuerpo blanco
   ══════════════════════════════════════════════════════════════ */
.chat-trigger {
  position: fixed;
  bottom: 90px;
  right: 42px;
  z-index: 999999;
  pointer-events: none;
  background: #000000;
  border: 2px solid transparent;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  box-shadow: none;
  opacity: 0;
  transition: var(--transition), border-color var(--transition), opacity 0.5s ease;
  cursor: pointer;
}

/* Visible tras la secuencia de intro */
.chat-trigger--visible {
  opacity: 1;
  pointer-events: all !important;
}

/* Centrado con la burbuja durante la intro (top se calcula en JS, right: 42px se hereda) */
.chat-trigger--beside-bubble {
  bottom: auto !important;
}

.chat-trigger:hover {
  background: #000000;
  transform: scale(1.05) translateY(-2px);
  border-color: var(--accent);
}

.chat-trigger.is-open {
  background: #000000;
  border-color: var(--accent);
}

/* Light Mode (warm-mode) chat FAB */
body.warm-mode .chat-trigger:hover,
body.warm-mode .chat-trigger.is-open {
  background: #000000;
  box-shadow: none;
}

.chat-trigger .chat-pulse {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: var(--green);
  border: 1.5px solid #f2f2f2;
  border-radius: 50%;
}

/* Chat Panel */
.chat-panel {
  /* ── Forzar dark mode interno — override light/warm del body ── */
  --bg-base: #080808;
  --bg-surface: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1e1e1e;
  --bg-header: rgba(8, 8, 8, 0.92);
  --bg-modal: #161616;
  --accent: #F26829;
  --accent-dim: rgba(242, 104, 41, 0.12);
  --accent-glow: 0 0 28px rgba(242, 104, 41, 0.40);
  --accent-hover: #d4551e;
  --text-primary: #f0f0f0;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --text-on-dark: #f5f5f5;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(242, 104, 41, 0.35);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.30);
  --shadow-popup: 0 4px 24px rgba(0, 0, 0, 0.28);

  position: fixed;
  bottom: 166px;
  right: 42px;
  width: 420px;
  min-height: 300px;
  max-height: min(600px, calc(100vh - 150px));
  z-index: 999998;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-xl);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: var(--transition-slow);
  overflow: hidden;
}

.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Chat Header — oscuro como la nav de CG */
.chat-header {
  padding: 10px 16px;
  background: var(--bg-header);
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.chat-header-info {
  flex: 1;
}

.chat-header-info h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

.chat-header-info p {
  font-size: 11.5px;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-header-info p::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

.chat-header-actions {
  display: flex;
  gap: 6px;
}

.btn-chat-icon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #aaaaaa;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
}

.btn-chat-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chat-close-dot {
  display: none; /* Punto de cierre oculto — se cierra tocando el trigger del bot */
}

.chat-close-dot:hover {
  color: var(--accent);
}

/* LLM Selector */
.llm-selector-bar {
  padding: 10px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.llm-selector-bar label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.llm-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  flex: 1;
  cursor: pointer;
  transition: var(--transition);
}

.llm-select:focus {
  border-color: var(--accent);
}

.llm-api-key {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-family: 'Montserrat', sans-serif;
  flex: 2;
  transition: var(--transition);
}

.llm-api-key::placeholder {
  color: var(--text-muted);
}

.llm-api-key:focus {
  border-color: var(--accent);
}

.llm-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.llm-badge.mock {
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.30);
}

.llm-badge.live {
  background: rgba(22, 163, 74, 0.12);
  color: var(--green);
  border: 1px solid rgba(22, 163, 74, 0.30);
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px; /* horizontal 14px = alineado con input area */
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  background: var(--bg-base);
}

.message {
  display: flex;
  gap: 10px;
  animation: msgIn 0.28s ease-out;
}

.message.bot {
  justify-content: center;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.user {
  flex-direction: row-reverse;
}

/* ── Comic speech bubble tails ──────────────────────────
   Usamos el wrapper (no la burbuja) para evitar conflicto
   con overflow-x:auto del .message-bubble del bot.
   avatar=30px + gap=10px → burbuja empieza/termina en 40px.
   Triángulo 8px → left/right edge a 32px.
   ─────────────────────────────────────────────────── */
.message.bot {
  position: relative;
}

.message.user {
  position: relative;
}

/* Bot: triángulo eliminado — diseño limpio sin cola */
.message.bot::before {
  display: none;
}

/* User: triángulo apunta a la DERECHA (hacia el avatar) */
.message.user::after {
  content: '';
  position: absolute;
  right: 32px;
  bottom: 5px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent #F26829;
  z-index: 1;
}

.message-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  align-self: flex-end;
}

.message.bot .message-avatar {
  background: var(--accent);
}

.message.user .message-avatar {
  background: #2a2a2a;
}

.message-bubble {
  max-width: 80%;
  padding: 11px 15px;
  border-radius: var(--radius-lg);
  font-size: 13.5px;
  line-height: 1.6;
}

.message.bot .message-bubble {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg); /* uniforme — sin cola */
  color: #f0f0f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.30);
  overflow-x: auto;
  max-width: 100%;
  width: 100%; /* ocupa todo el ancho del contenedor */
}

.message.user .message-bubble {
  background: var(--accent);
  border: none;
  border-bottom-right-radius: 4px;
  color: #ffffff;
}

/* Budget Table in chat */
.budget-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  margin-top: 10px;
  font-size: 12px;
}

.budget-table-title {
  padding: 8px 12px;
  background: rgba(235, 62, 28, 0.08);
  border-bottom: 1px solid rgba(235, 62, 28, 0.20);
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.budget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.budget-row:last-of-type {
  border-bottom: none;
}

.budget-row .item-name {
  color: var(--text-secondary);
  flex: 1;
}

.budget-row .item-price {
  color: var(--text-primary);
  font-weight: 700;
  white-space: nowrap;
}

.budget-total-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-surface);
  border-top: 2px solid rgba(235, 62, 28, 0.20);
}

.budget-total-row .total-label {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
}

.budget-total-row .total-amount {
  font-weight: 900;
  font-size: 15px;
  color: var(--accent);
}

/* ── IA Employee Enhancements ───────────────────────── */
.compatibility-warning-box {
  background: rgba(220, 38, 38, 0.07);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: var(--radius);
  padding: 12px;
  margin-top: 12px;
  font-size: 13px;
  color: #b91c1c;
}

.compatibility-warning-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
}

.compatibility-warning-box ul {
  padding-left: 20px;
  list-style: disc;
}

.upsell-suggestion-box {
  background: linear-gradient(135deg, rgba(235, 62, 28, 0.07), rgba(249, 115, 22, 0.05));
  border: 1px solid rgba(235, 62, 28, 0.20);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 12px;
  font-size: 13px;
  position: relative;
  overflow: hidden;
}

.upsell-suggestion-box::before {
  content: '✨';
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 24px;
  opacity: 0.20;
}

.upsell-header {
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.upsell-body {
  color: var(--text-primary);
  line-height: 1.4;
}

.upsell-body small {
  color: var(--text-secondary);
  font-style: italic;
}

.btn-export-budget {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--accent);
  color: #ffffff;
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: var(--transition);
}

.btn-export-budget:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Alert badge in message */
.alert-rma {
  display: flex;
  gap: 8px;
  background: rgba(249, 115, 22, 0.09);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--orange);
  line-height: 1.5;
}

.alert-rma .alert-icon {
  flex-shrink: 0;
  font-size: 14px;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 4px 0;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: #cccccc;
  border-radius: 50%;
  animation: typing 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {

  0%,
  80%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }

  40% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* Quick Replies */
.quick-replies {
  padding: 8px 12px 6px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  scrollbar-width: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.quick-replies::-webkit-scrollbar {
  display: none;
}

.quick-reply-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.quick-reply-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(235, 62, 28, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(235, 62, 28, 0.12);
}

/* Chat Input */
.chat-input-area {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-end;
  background: var(--bg-surface);
}

.chat-input-wrap {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.chat-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(235, 62, 28, 0.12);
}

.chat-input-wrap textarea {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
  resize: none;
  width: 100%;
  min-height: 22px;
  max-height: 100px;
  overflow-y: auto;
}

.chat-input-wrap textarea::placeholder {
  color: #aaaaaa;
}

.btn-send {
  background: var(--accent);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-send:hover {
  background: var(--accent-hover);
  transform: scale(1.06);
}

.btn-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ══════════════════════════════════════════════════════════════
   MODAL — PRESUPUESTO (fondo blanco, acento naranja)
   ══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-modal);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(10px);
  transition: var(--transition-slow);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-header);
}

.modal-header h2 {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.modal-header .store-badge {
  font-size: 11px;
  color: #888888;
  font-weight: 500;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #aaaaaa;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.btn-close-modal:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal-body {
  overflow-y: auto;
  padding: 24px 28px;
  flex: 1;
}

.modal-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-budget-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.modal-budget-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.modal-budget-table td {
  padding: 12px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.modal-budget-table tr:last-child td {
  border-bottom: none;
}

.modal-budget-table .td-component {
  color: var(--text-secondary);
  font-size: 12px;
}

.modal-budget-table .td-product {
  color: var(--text-primary);
  font-weight: 500;
}

.modal-budget-table .td-price {
  color: var(--accent);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.modal-total-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-total-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.modal-total-amount {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
}

.modal-total-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-advisor-note {
  background: rgba(235, 62, 28, 0.06);
  border: 1px solid rgba(235, 62, 28, 0.18);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.modal-advisor-note strong {
  color: var(--accent);
}

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  background: var(--bg-header);
}

.btn-download-pdf {
  flex: 1;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.btn-download-pdf:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(235, 62, 28, 0.30);
}

.btn-share {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-share:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Engine Badge */
.engine-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  cursor: default;
}

.engine-badge.mock {
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.30);
}

.engine-badge.live {
  background: rgba(22, 163, 74, 0.12);
  color: var(--green);
  border: 1px solid rgba(22, 163, 74, 0.30);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: none;
  }

  50% {
    box-shadow: 0 0 10px rgba(22, 163, 74, 0.28);
  }
}

/* Share Toast Notification */
.share-toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-header);
  border: 1px solid rgba(235, 62, 28, 0.40);
  color: #f0f0f0;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  z-index: 3000;
  box-shadow: var(--shadow-popup);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  white-space: nowrap;
}

.share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* MD Table (chat messages) */
.md-table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  max-width: 100%;
  white-space: normal;
  margin: 10px 0;
  font-size: 12px;
}

.md-table th {
  background: var(--bg-surface);
  color: var(--text-muted);
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
  min-width: 60px;
}

.md-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 60px;
}

.md-table tr:last-child td {
  border-bottom: none;
}

/* Card entrance animation */
.product-card {
  animation: cardIn 0.38s ease-out both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }
}

@media (max-width: 600px) {
  .chat-panel {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 90px;
    max-height: calc(100vh - 100px);
  }

  .chat-trigger {
    right: 16px;
    bottom: 20px;
  }

  .modal-box {
    max-height: 95vh;
    border-radius: var(--radius-lg);
  }

  .header-top {
    height: 60px;
    padding: 0 16px;
  }

  .products-section {
    padding: 28px 14px;
  }
}

/* ─── Session Reset Notice ─────────────────────────────────── */
.session-reset-notice {
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
  font-style: italic;
  padding: 4px 0;
}

/* ─── Sales Action Buttons (Post-Budget) ───────────────────── */
.sales-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.sales-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 12.5px;
  font-weight: 700;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.2px;
}

.sales-btn-confirm {
  background: var(--green);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.sales-btn-confirm:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.sales-btn-human {
  background: var(--bg-card);
  border: 1px solid var(--border-accent) !important;
  color: var(--accent);
}

.sales-btn-human:hover {
  background: var(--accent-dim);
}

.sales-btn-pdf {
  background: var(--bg-card);
  border: 1px solid var(--border) !important;
  color: var(--text-secondary);
}

.sales-btn-pdf:hover {
  border-color: var(--border-accent) !important;
  color: var(--accent);
}

.sales-btn-view {
  background: var(--bg-card);
  border: 1px solid var(--border) !important;
  color: var(--text-secondary);
}

.sales-btn-view:hover {
  border-color: var(--border-accent) !important;
  color: var(--accent);
}

/* ─── WhatsApp Capture UI ──────────────────────────────────── */
.wa-capture-title {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.wa-capture-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.wa-capture-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.wa-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  transition: var(--transition);
}

.wa-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(242, 104, 41, 0.15);
}

.wa-btn-send {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
}

.wa-btn-send:hover {
  opacity: 0.88;
}

.wa-btn-skip {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px;
  font-family: 'Montserrat', sans-serif;
}

.wa-btn-skip:hover {
  color: var(--text-secondary);
}

.wa-capture-done {
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 0;
  color: var(--text-primary);
}

/* ─── WhatsApp Capture Form — inline en el área del input ─── */
.wa-capture-inline {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.wa-capture-inline .wa-capture-title {
  font-size: 13px;
  margin-bottom: 2px;
}
.wa-capture-inline .wa-capture-subtitle {
  font-size: 12px;
  margin-bottom: 6px;
}
.wa-capture-inline .wa-capture-input-row {
  margin-bottom: 0;
}

/* ─── Cart CTA en el chat ──────────────────────────────────── */
.cart-cta-bubble {
  border: 1px solid var(--green-dim) !important;
  background: #f0fdf4 !important;
}

.cart-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: var(--green);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.cart-action-btn:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

/* ─── Modal de Carrito ─────────────────────────────────────── */
.cart-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cart-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-modal-box {
  background: var(--bg-modal);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  width: min(480px, calc(100vw - 32px));
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.25s ease;
}

.cart-modal-overlay.open .cart-modal-box {
  transform: scale(1) translateY(0);
}

.cart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.cart-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-sale-tag {
  font-size: 0.7rem;
  color: var(--green);
  opacity: 0.8;
  font-weight: normal;
  margin-left: 8px;
}

.cart-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: var(--transition);
}

.cart-modal-close:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.cart-modal-items {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-surface);
}

.cart-item-row:last-child {
  border-bottom: none;
}

.cart-item-name {
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
}

.cart-item-component {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-surface);
  margin: 0 8px;
  border-radius: var(--radius);
}

.cart-total-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-total-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.cart-modal-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px 20px;
}

.cart-btn {
  flex: 1;
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 12.5px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.cart-btn-pdf {
  background: var(--bg-card);
  border: 1px solid var(--border) !important;
  color: var(--text-secondary);
}

.cart-btn-pdf:hover {
  border-color: var(--border-accent) !important;
  color: var(--accent);
}

.cart-btn-pay {
  background: var(--green);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cart-btn-pay:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

@media (max-width: 600px) {
  .cart-modal-actions {
    flex-direction: column;
  }
}

/* ── Guided flow buttons ────────────────────────────────────── */
.guided-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.guided-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Montserrat', sans-serif;
}

.guided-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── Post-action buttons ────────────────────────────────────── */
.post-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.post-btn {
  padding: 9px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: var(--transition);
  border: none;
  width: 100%;
}

.post-btn-confirm {
  background: var(--green);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.post-btn-confirm:hover {
  background: #15803d;
}

.post-btn-cancel {
  background: #fff0f0;
  color: var(--accent);
  border: 1px solid rgba(240, 50, 10, 0.25) !important;
}

.post-btn-cancel:hover {
  background: var(--accent-dim);
}

.post-btn-back {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border) !important;
}

.post-btn-back:hover {
  border-color: var(--border-accent) !important;
  color: var(--accent);
}

/* ── Panel personalizar componentes ─────────────────────────── */
.personalize-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.personalize-panel {
  background: #fff;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.personalize-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
}

.personalize-header h3 {
  margin: 0;
  font-size: 15px;
}

.personalize-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
}

.personalize-body {
  padding: 14px 18px;
  overflow-y: auto;
  max-height: 60vh;
}

.personalize-item {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}

.personalize-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.personalize-current {
  font-size: 13px;
  margin-bottom: 8px;
  color: #333;
}

.personalize-alts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.personalize-alt-btn {
  font-size: 11px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
}

.personalize-alt-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.personalize-no-alts {
  font-size: 12px;
  color: #888;
}

/* ── Addon mini-card (verde) ───────────────────────────────── */
.addon-mini-card {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background: #e8f5e9;
  border: 1px solid #81c784;
  border-radius: 8px;
  font-size: 12px;
  color: #2e7d32;
  font-weight: 600;
}

/* ── Toast de confirmación ─────────────────────────────────── */
.straka-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: var(--accent, #333);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  z-index: 1000001;
  animation: straka-toast-in 0.3s ease;
}

@keyframes straka-toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ── AFK nudge ──────────────────────────────────────────────── */
.afk-nudge {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ── Addon confirm card (reemplaza addon-mini-card básico) ── */
.addon-confirm-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--green-dim);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--radius);
  margin-top: 6px;
  font-size: 13px;
}

.addon-confirm-icon {
  font-size: 20px;
}

.addon-confirm-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.addon-confirm-info strong {
  font-size: 12px;
  color: var(--green);
}

.addon-confirm-info span {
  font-size: 11px;
  color: var(--text-secondary);
}

.addon-confirm-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ── Pre-confirm button variants ────────────────────────── */
.guided-btn-confirm {
  background: var(--green-dim) !important;
  border-color: var(--green) !important;
  color: var(--green) !important;
}

.guided-btn-confirm:hover {
  background: var(--green) !important;
  color: #fff !important;
}

.guided-btn-cancel {
  background: #fff0f0 !important;
  border-color: rgba(240, 50, 10, 0.4) !important;
  color: var(--accent) !important;
}

/* ── 5° sales button: Volver atrás ──────────────────────── */
.sales-btn-back {
  background: #f5f5f5;
  color: var(--text-secondary);
  border: 1px solid var(--border) !important;
  font-size: 11px;
}

.sales-btn-back:hover {
  border-color: var(--border-accent) !important;
  color: var(--accent);
}

/* ── Chat input nudge ───────────────────────────────────── */
.chat-input-nudge {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 0 2px;
  opacity: 1;
  transition: opacity 0.4s ease;
  font-style: italic;
}

/* ── Chat notification card ──────────────────────────────── */
.chat-callout {
  position: fixed;
  bottom: 168px;
  right: 20px;
  min-width: 210px;
  background: var(--bg-card, #1c1c2e);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.10));
  border-radius: 12px;
  padding: 14px 18px 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  z-index: 999999;
  pointer-events: none;
  animation: callout-in 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.chat-callout::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 22px;
  border: 7px solid transparent;
  border-top-color: var(--border, rgba(255, 255, 255, 0.10));
  border-bottom: 0;
}

.chat-callout::before {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 23px;
  border: 6px solid transparent;
  border-top-color: var(--bg-card, #1c1c2e);
  border-bottom: 0;
  z-index: 1;
}

.chat-callout__header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}

.chat-callout__dot {
  width: 7px;
  height: 7px;
  background: var(--green, #22c55e);
  border-radius: 50%;
  flex-shrink: 0;
}

.chat-callout__name {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted, #888);
  text-transform: uppercase;
}

.chat-callout__msg {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-primary, #f0f0f0);
  line-height: 1.45;
  margin: 0;
}

.chat-callout--out {
  animation: callout-out 0.38s ease both;
}

@keyframes callout-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes callout-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ── Diagnóstico rápido — ejemplos de rubro ─────────────── */
.diagnostic-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.diagnostic-label {
  width: 100%;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.diagnostic-btn {
  font-size: 11.5px;
  flex: 0 0 calc(50% - 3px);
}

.diagnostic-nudge {
  width: 100%;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  animation: nudgePulse 2s ease-in-out infinite;
}

@keyframes nudgePulse {

  0%,
  100% {
    opacity: 0.6
  }

  50% {
    opacity: 1
  }
}

#chat-input.input-nudge-pulse {
  box-shadow: 0 0 0 2px var(--accent);
  transition: box-shadow 0.3s;
}

/* ── Rating Widget ──────────────────────────────────────── */
.rating-widget {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  margin-top: 8px;
  text-align: center;
}

.rating-question {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  margin: 0 0 12px;
}

.rating-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin: 6px 0 0;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 0 4px;
}

.star {
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  user-select: none;
}

.star.active {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(242, 104, 41, 0.5);
}

.rating-feedback {
  width: 100%;
  margin-top: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  padding: 8px 10px;
  resize: none;
  min-height: 60px;
  box-sizing: border-box;
  transition: var(--transition);
}

.rating-feedback::placeholder {
  color: var(--text-muted);
}

.rating-feedback:focus {
  border-color: var(--accent);
  outline: none;
}

.rating-send-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}

.rating-send-btn:hover {
  background: var(--accent-hover);
}

.rating-restart-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 11px;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}

.rating-restart-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.rating-thanks {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
}

/* ── Lead Capture Form ─────────────────────────────────────── */
.wa-capture-bubble {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-capture-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #f0f0f0);
  line-height: 1.4;
}

.wa-capture-subtitle {
  font-size: 13px;
  color: var(--text-secondary, #aaa);
  line-height: 1.4;
}

.wa-capture-input-row {
  display: flex;
  gap: 8px;
}

.wa-input {
  flex: 1;
  background: var(--bg-input, rgba(255, 255, 255, 0.07));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary, #f0f0f0);
  outline: none;
  transition: border-color 0.2s;
}

.wa-input:focus {
  border-color: var(--accent, #F26829);
}

.wa-btn-send {
  background: var(--accent, #F26829);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.wa-btn-send:hover {
  opacity: 0.88;
}

.wa-btn-skip {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-secondary, #888);
  cursor: pointer;
  padding: 2px 0;
  text-align: left;
  text-decoration: underline;
}

.wa-capture-done {
  font-size: 13px;
  padding: 4px 0;
  line-height: 1.5;
}

/* ── Lead Ticket ───────────────────────────────────────────── */
.wa-capture-ticket {
  background: rgba(242, 104, 41, 0.08);
  border: 1px solid rgba(242, 104, 41, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.ticket-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary, #f0f0f0);
}

.ticket-row span:first-child {
  font-size: 15px;
  flex-shrink: 0;
}

.ticket-status {
  font-size: 12px;
  color: var(--accent, #F26829);
  font-weight: 600;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(242, 104, 41, 0.2);
}