/**
 * AEAT Billing-Data Confirmation Modal
 *
 * Shared modal shown before submitting billing data to a payment gateway
 * (used by course registration, nameplate request, etc).
 *
 * Buttons rely on the theme's .coem-btn / .coem-btn-primary /
 * .coem-btn-white-primary styles — no per-modal color overrides here.
 */

.coem-aeat-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.coem-aeat-confirm-modal[hidden] {
  display: none;
}

.coem-aeat-confirm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.coem-aeat-confirm-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 6px;
  max-width: 480px;
  width: 100%;
  padding: 28px 28px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
  outline: none;
}

.coem-aeat-confirm-modal__message {
  margin: 0 0 18px 0;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

.coem-aeat-confirm-modal__data {
  margin: 0 0 22px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.coem-aeat-confirm-modal__data dt,
.coem-aeat-confirm-modal__data dd {
  display: inline;
  margin: 0;
}

.coem-aeat-confirm-modal__data dt {
  font-weight: 600;
}

/* Force a line break after each <dd> except the last one (localidad), so
   each label/value pair shows on its own line. */
.coem-aeat-confirm-modal__data dd::after {
  content: "";
  display: block;
}

.coem-aeat-confirm-modal__data dd[data-localidad]::after {
  content: none;
}

.coem-aeat-confirm-modal__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.coem-aeat-confirm-modal__actions .coem-btn {
  min-width: 110px;
}

/* Visually-hidden helper for the localidad <dt> (kept for screen readers
   only — it has no visible label since the legacy/UX shows just the value). */
.coem-aeat-confirm-modal .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
