.wsp-modal .wsp-modal__panel {
  max-width: min(100% - 1.5rem, 30rem);
}

.wsp-modal__preview {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: rgba(var(--bs-brand-tertiary-rgb, 255, 152, 0), 0.08);
  border: 1px solid rgba(var(--bs-brand-tertiary-rgb, 255, 152, 0), 0.22);
  white-space: pre-wrap;
  line-height: 1.45;
  max-height: 12rem;
  overflow: auto;
}

.wsp-modal__preview:empty::before {
  content: "El mensaje aparecerá aquí al completar los datos.";
  color: var(--bs-secondary-color);
  font-style: italic;
}

.wsp-modal__form .form-label {
  margin-bottom: 0.25rem;
}

.wsp-modal__choice-list {
  display: grid;
  gap: 0.55rem;
}

.wsp-modal__choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(var(--bs-brand-tertiary-rgb, 255, 152, 0), 0.35);
  border-radius: 0.85rem;
  background: var(--bs-body-bg);
  color: var(--bs-brand-secondary-dark);
  text-align: left;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.wsp-modal__choice:hover,
.wsp-modal__choice:focus-visible {
  border-color: var(--bs-brand-tertiary);
  background-color: rgba(var(--bs-brand-tertiary-rgb, 255, 152, 0), 0.1);
  box-shadow: 0 0.25rem 0.65rem rgba(15, 23, 42, 0.08);
}

.wsp-modal__choice.is-selected {
  border-color: var(--bs-brand-primary);
  background-color: rgba(var(--bs-brand-primary-rgb, 0, 150, 136), 0.08);
  box-shadow: 0 0 0 1px rgba(var(--bs-brand-primary-rgb, 0, 150, 136), 0.25);
}

.wsp-modal__choice-icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: rgba(var(--bs-brand-tertiary-rgb, 255, 152, 0), 0.18);
  color: var(--bs-brand-tertiary);
  font-size: 1.05rem;
}

.wsp-modal__choice-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.wsp-modal__choice-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
}

.wsp-modal__choice-desc {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--bs-secondary-color);
}

.wsp-modal__choice-arrow {
  flex-shrink: 0;
  font-size: 0.7rem;
  opacity: 0.45;
}

.wsp-modal__chip-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
}

.wsp-modal__chip {
  width: 100%;
  min-width: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  text-align: center;
  border: 1px solid rgba(var(--bs-brand-tertiary-rgb, 255, 152, 0), 0.4);
  background: var(--bs-body-bg);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bs-brand-secondary-dark);
  transition:
    background-color 0.14s ease,
    border-color 0.14s ease;
}

.wsp-modal__chip:hover,
.wsp-modal__chip:focus-visible {
  border-color: var(--bs-brand-tertiary);
  background: rgba(var(--bs-brand-tertiary-rgb, 255, 152, 0), 0.12);
}

.wsp-modal__chip.is-selected {
  border-color: var(--bs-brand-primary);
  background: rgba(var(--bs-brand-primary-rgb, 0, 150, 136), 0.12);
  color: var(--bs-brand-primary-dark, var(--bs-brand-secondary-dark));
}

body.wsp-modal-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .wsp-modal .wsp-modal__panel {
    max-width: min(100% - 2rem, 40rem);
  }

}

@media (min-width: 992px) {
  .wsp-modal .wsp-modal__panel {
    max-width: min(100% - 2rem, 44rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wsp-modal__choice,
  .wsp-modal__chip {
    transition: none;
  }
}
