/* typed-confirm.css — typed-confirm-comparison-modal
   (frontend-typed-confirm-contract 1.0.0) — the typed-confirm form
   (`.enr-typed*`, `{% ui_typed_confirm %}`).

   Layout only. The comparison inside it is `.enr-compare--stacked`
   (compare.css); the typed control's skin, size and coarse-pointer type floor
   are `.fld`'s (shell.css, mobile.css), never restated here. The status
   region is `.visually-hidden` (app-shell.css): clipped, not `display: none`,
   so it is still announced. Tokens only. */

.enr-typed {
  position: relative; /* keeps the clipped status region inside the form */
  display: flex;
  gap: var(--space-4);
  margin: 0;
}
/* JJ's variant A: the comparison, the consumer's fields, the typed field and
   the recap, one under the other in DOM order (the reading order is fixed). */
.enr-typed--comparison-above { flex-direction: column; }

.enr-typed__compare,
.enr-typed__gate { min-width: 0; }
.enr-typed__fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.enr-typed__fields:empty { display: none; }
.enr-typed__recap {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--fg-2);
}
.enr-typed__status { margin: 0; }

/* `ui_modal_footer variant="stacked"` (frontend-overlays-contract 3.2.0):
   the canonical typed-confirm footer, open to any modal. At the narrow-phone
   edge the controls stack in DOM order (Cancel, then Confirm), each full
   width, so focus order and visual order agree; above it, the ordinary
   right-justified row from overlays.css. Loaded after overlays.css. */
@media (max-width: 520px) {
  .enr-modal__foot--stacked { flex-direction: column; align-items: stretch; }
  .enr-modal__foot--stacked .btn { justify-content: center; }
}
