/* SweetAlert2 above WP admin bar (99999) and the add-question modal. */
/* Above the full-screen exam (#eev-exam-app in exam mode: 2147483000–1). */
.eev-swal { z-index: 2147483002 !important; }
.eev-swal .swal2-popup { font-size: 15px; }
.eev-swal .eev-swal-guide { margin: 0 0 12px; }
.eev-swal .eev-swal-guide svg { display: block; width: 100%; height: auto; border-radius: 10px; }
.eev-swal .eev-swal-steps { margin: 8px 0 0; padding-left: 1.4em; text-align: left; list-style: decimal outside; }
.eev-swal .eev-swal-steps li { margin: 0 0 6px; }

/* ── Buttons: neutralise theme (Flatsome) button styles and balance the row ── */
.eev-swal .swal2-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 20px auto 0;
  padding: 0;
}

.eev-swal .swal2-actions .swal2-styled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 128px;
  min-height: 42px;
  height: 42px;
  margin: 0;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
  box-shadow: none;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}

.eev-swal .swal2-actions .swal2-styled:focus,
.eev-swal .swal2-actions .swal2-styled:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .3);
}

/* Confirm (primary) — colour comes from confirmButtonColor (blue, or red for danger). */
.eev-swal .swal2-actions .swal2-confirm { background-color: var(--swal2-confirm-button-background-color, #2563eb); color: #fff; }
.eev-swal .swal2-actions .swal2-confirm:hover { filter: brightness(.92); }

/* Cancel (secondary) — outline style so the primary action stands out. */
.eev-swal .swal2-actions .swal2-cancel {
  background-color: #fff;
  border-color: #cbd5e1;
  color: #334155;
}

.eev-swal .swal2-actions .swal2-cancel:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  background-image: none;
}

.eev-swal .swal2-actions .swal2-cancel:focus-visible { box-shadow: 0 0 0 3px rgba(148, 163, 184, .35); }

/* SweetAlert's darken-on-hover overlay conflicts with the outline cancel button. */
.eev-swal .swal2-actions:not(.swal2-loading) .swal2-cancel:hover { background-image: none; }

/* Danger confirm: matching focus ring. */
.eev-swal--danger .swal2-actions .swal2-confirm:focus-visible { box-shadow: 0 0 0 3px rgba(220, 38, 38, .3); }

/* Small screens: full-width stacked buttons. */
@media (max-width: 480px) {
  .eev-swal .swal2-actions { flex-direction: column-reverse; align-items: stretch; padding: 0 16px; }
  .eev-swal .swal2-actions .swal2-styled { width: 100%; }
}

/* ══ Form radius system (SweetAlert) — field/button 6px · child 4px ══ */
.eev-swal { --eev-r-field: 6px; --eev-r-child: 4px; }
.eev-swal .swal2-actions .swal2-styled,
.eev-swal .swal2-input,
.eev-swal .swal2-textarea,
.eev-swal .swal2-select,
.eev-swal .swal2-file { border-radius: var(--eev-r-field); }
.eev-swal .swal2-checkbox input,
.eev-swal .swal2-validation-message { border-radius: var(--eev-r-child); }
