 .js-decision-card { display: none; }
 .js-decision-card.is-active { display: block; }

/*
 * Estilo tipo chat para el árbol de decisión.
 * Pégalo en Advanced -> Custom CSS del webform (junto con las reglas de
 * .js-decision-card que ya tenías), o en el CSS del tema.
 *
 * Solo cubre la presentación de la card activa: la pregunta como burbuja
 * con avatar, y las opciones como botones-píldora. El histórico de
 * preguntas ya respondidas queda fuera, tal como se pidió.
 */

/* --- Burbuja de la pregunta (elemento 'item') ------------------------ */
.chat-bubble-question {
  position: relative;
  display: block;
  max-width: 60ch;
  margin: 0 0 12px 52px; /* deja sitio al avatar (40px + 12px) */
  padding: 16px 35px;
  background: #14345c;
  color: #ffffff;
  border-radius: 4px 16px 16px 16px;
  line-height: 1.5;
}

.chat-bubble-question::before {
  content: '';
  position: absolute;
  left: -52px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #2f74c0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 12c2.7 0 4.9-2.2 4.9-4.9S14.7 2.2 12 2.2 7.1 4.4 7.1 7.1 9.3 12 12 12zm0 2.4c-3.3 0-9.8 1.6-9.8 4.9v2.5h19.6v-2.5c0-3.3-6.5-4.9-9.8-4.9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}

.chat-bubble-question > * {
  background: none;
  padding: 0;
  margin: 0;
  max-width: none;
}

.chat-bubble-question * {
  color: inherit;
}

.chat-bubble-question p {
  margin: 0 0 12px;
}

.chat-bubble-question p:last-child {
  margin-bottom: 0;
}

/* --- Opciones (elemento 'radios'), como botones-píldora -------------- */

.chat-bubble-options {
  /*margin: 0 0 24px 52px; /* alinea con el texto de la burbuja (40px avatar + 12px gap) */
  margin: 16px 0 16px 52px;
}

.chat-bubble-options legend {
  /* por si el título del fieldset se filtra pese a #title_display: none */
  display: none;
}

.chat-bubble-options .webform-options-display-buttons,
.chat-bubble-options .js-webform-radios-content,
.chat-bubble-options > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.chat-bubble-options .form-item,
.chat-bubble-options .js-form-item {
  margin: 0 0 25px !important;
}

.chat-bubble-options input[type='radio'] {
  /* oculto visualmente pero operable con teclado/lector de pantalla */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-bubble-options label {
 /*display: inline-block;*/
  padding: 10px 22px;
  border-radius: 20px;
  background: #2f74c0;
  color: #ffffff;
  /*font-weight: 600;*/
  line-height: 1.3;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease;
}

.chat-bubble-options label:hover {
  background: #1e5fa8;
}

.chat-bubble-options input[type='radio']:checked + label {
  background: #12233d;
  color: #ffffff !important;
}

.chat-bubble-options input[type='radio']:focus-visible + label {
  outline: 3px solid #0b3d91;
  outline-offset: 2px;
}