/* Assistente diagnosi / routine — chat premium BMS Selection */

.wa-diag-page {
  max-width: 42rem;
  margin: 0 auto;
}

.wa-diag-hero {
  margin-bottom: 1.25rem;
}

.wa-diag-hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wa-lx-gold, #c9a962);
  margin-bottom: 0.35rem;
}

.wa-diag-hero__title {
  font-family: var(--wa-lx-font-serif, Georgia, 'Times New Roman', serif);
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--wa-lx-text-on-dark, #f6f1ea);
}

.wa-diag-hero__lead {
  color: var(--wa-lx-text-muted, #b8b0a6);
  font-size: 0.95rem;
  margin: 0;
}

.wa-diag-chat {
  border-radius: var(--wa-lx-radius-lg, 20px);
  border: 1px solid rgba(212, 184, 150, 0.28);
  background: linear-gradient(165deg, rgba(42, 36, 32, 0.95) 0%, rgba(26, 23, 21, 0.98) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  min-height: 22rem;
  display: flex;
  flex-direction: column;
}

.wa-diag-chat__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(212, 184, 150, 0.18);
  background: rgba(0, 0, 0, 0.18);
}

.wa-diag-chat__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a3548 0%, #1a2433 100%);
  color: var(--wa-lx-gold, #c9a962);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.wa-diag-chat__meta strong {
  display: block;
  font-size: 0.92rem;
  color: var(--wa-lx-text-on-dark, #f6f1ea);
}

.wa-diag-chat__meta span {
  font-size: 0.78rem;
  color: var(--wa-lx-text-muted, #b8b0a6);
}

.wa-diag-chat__thread {
  flex: 1;
  padding: 1rem 1rem 0.5rem;
  overflow-y: auto;
  max-height: min(52vh, 28rem);
  scroll-behavior: smooth;
}

.wa-diag-msg {
  display: flex;
  margin-bottom: 0.85rem;
  animation: waDiagFadeIn 0.35s ease;
}

@keyframes waDiagFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wa-diag-msg--bot {
  justify-content: flex-start;
}

.wa-diag-msg--user {
  justify-content: flex-end;
}

.wa-diag-msg__bubble {
  max-width: 92%;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.wa-diag-msg--bot .wa-diag-msg__bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 184, 150, 0.2);
  color: var(--wa-lx-text-on-dark, #f6f1ea);
  border-bottom-left-radius: 4px;
}

.wa-diag-msg--user .wa-diag-msg__bubble {
  background: linear-gradient(135deg, #d4bc7a 0%, #c9a962 100%);
  color: #1a1816;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

.wa-diag-msg--insight .wa-diag-msg__bubble {
  border-left: 3px solid var(--wa-lx-gold, #c9a962);
  background: rgba(201, 169, 98, 0.08);
}

.wa-diag-msg--typing .wa-diag-msg__bubble {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  min-width: 3.5rem;
}

.wa-diag-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--wa-lx-gold, #c9a962);
  animation: waDiagDot 1.2s infinite ease-in-out;
}

.wa-diag-dot:nth-child(2) { animation-delay: 0.15s; }
.wa-diag-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes waDiagDot {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

.wa-diag-chat__choices {
  padding: 0.65rem 1rem 1rem;
  border-top: 1px solid rgba(212, 184, 150, 0.15);
  background: rgba(0, 0, 0, 0.12);
}

.wa-diag-choices__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wa-lx-text-muted, #b8b0a6);
  margin-bottom: 0.55rem;
}

.wa-diag-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.wa-diag-choice {
  border: 1px solid rgba(212, 184, 150, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: var(--wa-lx-text-on-dark, #f6f1ea);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.wa-diag-choice:hover,
.wa-diag-choice:focus-visible {
  background: rgba(201, 169, 98, 0.14);
  border-color: var(--wa-lx-gold, #c9a962);
  outline: none;
}

.wa-diag-choice:active {
  transform: scale(0.98);
}

.wa-diag-results {
  margin-top: 1.25rem;
}

.wa-diag-results__title {
  font-family: var(--wa-lx-font-serif, Georgia, serif);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.wa-diag-product {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(212, 184, 150, 0.15);
}

.wa-diag-product:last-child {
  border-bottom: 0;
}

.wa-diag-product__img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(212, 184, 150, 0.2);
  background: #fff;
  flex-shrink: 0;
}

.wa-diag-product__body {
  flex: 1;
  min-width: 0;
}

.wa-diag-product__level {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wa-lx-gold, #c9a962);
}

.wa-diag-product__name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0.15rem 0;
  color: var(--wa-lx-text-on-dark, #f6f1ea);
}

.wa-diag-product__price {
  font-size: 0.88rem;
  color: var(--wa-lx-text-muted, #b8b0a6);
}

.wa-diag-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.wa-diag-product__actions .btn {
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
}

.wa-diag-results__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
