/* LVL human shopping assistant widget */
.lvl-sa-root {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99990;
  font-family: Inter, system-ui, sans-serif;
}
.lvl-sa-fab {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
}
.lvl-sa-fab:hover { filter: brightness(1.06); }
.lvl-sa-panel {
  width: min(400px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  background: #0b1220;
  color: #e8eefc;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.lvl-sa-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.95);
}
.lvl-sa-header strong { font-size: 0.98rem; }
.lvl-sa-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.lvl-sa-x {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.lvl-sa-msgs {
  flex: 1;
  overflow: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lvl-sa-bubble-user {
  align-self: flex-end;
  background: rgba(99, 102, 241, 0.35);
  padding: 0.55rem 0.75rem;
  border-radius: 12px 12px 4px 12px;
  max-width: 92%;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.lvl-sa-bubble-bot {
  align-self: flex-start;
  background: rgba(30, 41, 59, 0.9);
  padding: 0.55rem 0.75rem;
  border-radius: 12px 12px 12px 4px;
  max-width: 95%;
  font-size: 13.5px;
  line-height: 1.5;
  border: 1px solid rgba(148, 163, 184, 0.12);
  white-space: pre-wrap;
}
.lvl-sa-proactive {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #a5b4fc;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.lvl-sa-cards { display: flex; flex-direction: column; gap: 8px; }
.lvl-sa-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font-size: 13px;
}
.lvl-sa-card strong { display: block; }
.lvl-sa-price { color: #86efac; font-size: 12px; margin-top: 2px; }
.lvl-sa-sum { color: #cbd5e1; margin: 0.35rem 0; line-height: 1.4; }
.lvl-sa-trade { color: #94a3b8; margin: 0; font-size: 12px; }
.lvl-sa-card a { color: #93c5fd; font-size: 12px; }
.lvl-sa-form {
  display: flex;
  gap: 6px;
  padding: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}
.lvl-sa-form input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #020617;
  color: #f1f5f9;
  padding: 0.55rem 0.65rem;
  font-size: 14px;
}
.lvl-sa-form button {
  border: none;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  background: #6366f1;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.lvl-sa-form button:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 480px) {
  .lvl-sa-root { right: 10px; bottom: 10px; }
  .lvl-sa-panel { height: min(70vh, 520px); }
}
