/*
 * GÉNÉRÉ par scripts/sync-app-ui.mjs depuis faxradar-app 61c191d.
 * Ne pas modifier à la main : changer l'application, puis relancer le script.
 * Styles réels de l'application, cloisonnés pour les visuels de l'accueil.
 */


:host { display: block; position: relative; overflow: hidden; }
.ax-screen {
  container: ax / inline-size;
  position: absolute;
  top: 0;
  left: 0;
  width: var(--ax-w);
  height: var(--ax-h);
  overflow: hidden;
  transform: scale(var(--ax-scale, 1));
  transform-origin: top left;
}
.ax { box-sizing: border-box; height: 100%; text-align: left; }

/* FaxRadar app — shared tokens and base styles.
   Colours, type and radii are the app design's (FaxRadar App v5, from
   Claude Design), which takes them from faxradar.com so both read as one
   brand. Component styles live in CSS modules. */

/* Inter, self-hosted (SIL Open Font License), same files as faxradar.com. */

.ax {
  --navy: #0a2342;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --good: #059669;
  --warn-soft: rgba(217, 119, 6, 0.07);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.06);

  --band: #f6f8fb;
  --surface: #eff2f6;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --line-strong: #cbd5e1;
  --text: #475569;
  --ink: #334155;
  --muted: #64748b;
  --faint: #94a3b8;

  --soft: #fbfcfd;
  --danger-text: #b91c1c;
  --accent-busy: #60a5fa;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  /* Inputs and menus 4px, cards and buttons 6px, page thumbnails 3–4px. */
  --r: 3px;
  --r-lg: 4px;
  --r-md: 6px;
  --ring: 0 0 0 3px rgba(37, 99, 235, 0.12);
  --ring-danger: 0 0 0 3px rgba(220, 38, 38, 0.1);
  --popover-shadow: 0 10px 28px -12px rgba(15, 23, 42, 0.28);
  --gutter: 28px;
}

:where(.ax) *,
:where(.ax) *::before,
:where(.ax) *::after {
  box-sizing: border-box;
}

.ax {
  margin: 0;
  min-height: var(--ax-h);
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(.ax) h1,
:where(.ax) h2,
:where(.ax) h3,
:where(.ax) p,
:where(.ax) ul,
:where(.ax) ol,
:where(.ax) dl,
:where(.ax) dd,
:where(.ax) figure {
  margin: 0;
}

/* The headings' tightened tracking suits Latin letters, not Japanese: there
   it would squeeze the characters together. Wins over the modules' rules. */
.ax:lang(ja) :is(h1, h2) {
  letter-spacing: normal;
}

:where(.ax) ul,
:where(.ax) ol {
  padding: 0;
  list-style: none;
}

:where(.ax) a {
  color: var(--accent);
  text-decoration: none;
}

:where(.ax) a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

:where(.ax) button,
:where(.ax) input,
:where(.ax) select,
:where(.ax) textarea {
  font: inherit;
  color: inherit;
}

:where(.ax) :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:where(.ax) .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The bare pages outside the locale layout (global-not-found, global-error). */
:where(.ax) .container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* A chevron that turns over while its list is open (components/ui/icons.tsx). */
:where(.ax) .chevron {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform 120ms;
}

:where(.ax) .chevron[data-open="true"] {
  transform: rotate(180deg);
}

@keyframes ax-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ax-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@container ax (max-width: 759px) {
  .ax {
    --gutter: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.ax) *,
  :where(.ax) *::before,
  :where(.ax) *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── components/shell/shell.module.css ── */
/* The app's frame, from the design (FaxRadar App v5): a 260px rail beside
   the page on wide screens, a sticky 56px header, a navy footer. Below
   760px the rail folds away: back arrow or logo, menu, sticky action bar. */

.ax-shell-skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.ax-shell-skip:focus {
  top: 12px;
}

.ax-shell-frame {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  flex: 1 0 auto;
  min-width: 0;
}

/* ── Rail ─────────────────────────────────────────────────────────────── */

.ax-shell-rail {
  position: sticky;
  top: 0;
  height: var(--ax-h);
  display: flex;
  flex-direction: column;
  background: var(--band);
  border-right: 1px solid var(--line);
}

.ax-shell-railLogo {
  flex: 0 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.ax-shell-logoLink {
  display: flex;
}

.ax-shell-logoLink img {
  display: block;
  width: auto;
}

.ax-shell-railNav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px;
}

.ax-shell-railLink {
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.ax-shell-railLink:hover {
  color: var(--navy);
  text-decoration: none;
}

.ax-shell-railLink[aria-current="page"] {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}

/* ── Header ───────────────────────────────────────────────────────────── */

.ax-shell-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: var(--ax-h);
}

.ax-shell-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.ax-shell-headerBar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 var(--gutter);
}

.ax-shell-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ax-shell-headerActions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ax-shell-headerLinks {
  display: flex;
  align-items: center;
}

.ax-shell-headerLink {
  padding: 7px 10px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.ax-shell-headerLink:hover {
  background: var(--band);
  color: var(--navy);
  text-decoration: none;
}

.ax-shell-stepCount {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ax-shell-backButton,
.ax-shell-menuButton {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.ax-shell-backButton {
  min-width: 44px;
  margin-left: -10px;
  color: var(--text);
}

.ax-shell-menuButton {
  width: 44px;
  margin-right: -10px;
  color: var(--navy);
}

.ax-shell-mobileLogo {
  display: flex;
}

.ax-shell-progress {
  height: 3px;
  background: var(--surface);
}

.ax-shell-progress > div {
  height: 100%;
  background: var(--accent);
  transition: width 200ms ease;
}

.ax-shell-mobileMenu {
  display: flex;
  flex-direction: column;
  padding: 4px var(--gutter) 10px;
  border-top: 1px solid var(--line-soft);
}

.ax-shell-mobileLink {
  min-height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.ax-shell-mobileLink[aria-current="page"] {
  color: var(--navy);
}

.ax-shell-mobileLink:hover {
  text-decoration: none;
}

.ax-shell-mobileLang {
  padding: 12px 0 4px;
}

.ax-shell-mobileLangLabel {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* ── Language switch ──────────────────────────────────────────────────── */

.ax-shell-lang {
  position: relative;
  flex: 0 0 auto;
}

.ax-shell-lang[data-variant="full"] {
  width: 100%;
}

.ax-shell-langButton {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 120ms, box-shadow 120ms;
}

.ax-shell-langButton:hover {
  border-color: var(--faint);
}

.ax-shell-langButton[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.ax-shell-lang[data-variant="full"] .ax-shell-langButton {
  width: 100%;
  height: 44px;
  font-size: 15px;
}

.ax-shell-langName {
  flex: 1 1 auto;
  text-align: left;
  white-space: nowrap;
}

.ax-shell-flag,
.ax-shell-flagLarge {
  flex: 0 0 auto;
  display: block;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.ax-shell-flag {
  width: 18px;
  height: 13px;
}

.ax-shell-flagLarge {
  width: 20px;
  height: 14px;
}

.ax-shell-langList {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  right: 0;
  min-width: 180px;
  padding: 4px 0;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--popover-shadow);
  outline: none;
}

.ax-shell-lang[data-variant="full"] .ax-shell-langList {
  left: 0;
}

.ax-shell-langOption {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  background: #fff;
  cursor: pointer;
}

.ax-shell-langOption[data-active="true"] {
  background: var(--band);
}

.ax-shell-langOptionName {
  flex: 1 1 auto;
  font-size: 14.5px;
  color: var(--navy);
  white-space: nowrap;
}

.ax-shell-langOption[aria-selected="true"] .ax-shell-langOptionName {
  font-weight: 600;
}

.ax-shell-langCheck {
  flex: 0 0 auto;
  width: 14px;
  display: flex;
  justify-content: center;
  color: var(--accent);
}

/* ── Page ─────────────────────────────────────────────────────────────── */

.ax-shell-testBanner {
  padding: 8px var(--gutter);
  background: var(--warn-soft);
  border-bottom: 1px solid rgba(217, 119, 6, 0.22);
  font-size: 12.5px;
  line-height: 1.5;
  color: #92400e;
}

.ax-shell-testBanner strong {
  font-weight: 700;
}

.ax-shell-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 24px var(--gutter) 40px;
}

.ax-shell-main:focus {
  outline: none;
}

.ax-shell-content {
  max-width: 1100px;
}

.ax-shell-content[data-narrow="true"] {
  max-width: 860px;
}

.ax-shell-bar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 16px -12px rgba(15, 23, 42, 0.25);
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.ax-shell-footer {
  padding: 22px var(--gutter) 20px;
  background: var(--navy);
  color: var(--faint);
}

.ax-shell-footerTop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ax-shell-footerTagline {
  font-size: 12.5px;
  color: var(--faint);
}

.ax-shell-footerLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 12.5px;
}

.ax-shell-footerLinks a {
  color: var(--line-strong);
}

.ax-shell-footerLinks a:hover {
  color: #fff;
}

.ax-shell-footerBase {
  padding-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--faint);
}

.ax-shell-footerBase a {
  color: var(--line-strong);
}

/* ── Widths ───────────────────────────────────────────────────────────── */

.ax-shell-narrowOnly {
  display: none;
}

@container ax (max-width: 759px) {
  .ax-shell-frame {
    grid-template-columns: minmax(0, 1fr);
  }

  .ax-shell-rail,
  .ax-shell-wideOnly {
    display: none;
  }

  .ax-shell-narrowOnly {
    display: flex;
  }

  .ax-shell-title {
    font-size: 15.5px;
  }

  .ax-shell-title[data-mobile="center"] {
    text-align: center;
  }

  /* The first send step shows the logo instead; the heading stays for screen readers. */
  .ax-shell-title[data-mobile="hidden"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .ax-shell-main {
    padding: 16px var(--gutter) 24px;
  }

  .ax-shell-bar.ax-shell-narrowOnly {
    display: block;
  }
}

/* ── components/ui/ui.module.css ── */
/* Shared controls, as the design draws them: 44px inputs with a 4px radius,
   6px buttons, 13px labels, blue focus ring, red alert boxes. */

/* ── Buttons ──────────────────────────────────────────────────────────── */

.ax-ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 120ms, border-color 120ms, color 120ms;
}

.ax-ui-btn:hover {
  text-decoration: none;
}

.ax-ui-primary {
  background: var(--accent);
  color: #fff;
}

.ax-ui-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* Waiting on the server: lighter, and not clickable twice. */
.ax-ui-primary[data-busy="true"],
.ax-ui-primary:disabled {
  background: var(--accent-busy);
  cursor: progress;
}

/* Both boxes not ticked yet: grey, still clickable to say why. */
.ax-ui-primary[data-muted="true"] {
  background: var(--faint);
  cursor: not-allowed;
}

.ax-ui-ghost {
  padding: 0 14px;
  background: transparent;
  color: var(--text);
}

.ax-ui-ghost:hover {
  color: var(--navy);
}

.ax-ui-large {
  height: 46px;
  font-size: 15px;
}

.ax-ui-full {
  width: 100%;
}

/* A wide call to action with the label on the left and the amount on the right. */
.ax-ui-split {
  justify-content: space-between;
  padding: 0 16px;
  font-weight: 700;
}

.ax-ui-iconButton {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--r-md);
  color: var(--text);
  cursor: pointer;
}

.ax-ui-iconButton:disabled {
  color: var(--line-strong);
  cursor: default;
}

.ax-ui-iconButton[data-danger="true"] {
  color: var(--muted);
}

.ax-ui-iconButton[data-danger="true"]:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.ax-ui-linkButton {
  padding: 0;
  background: transparent;
  border: none;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

.ax-ui-linkButton:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ── Fields ───────────────────────────────────────────────────────────── */

.ax-ui-field {
  min-width: 0;
}

.ax-ui-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.ax-ui-optional {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.ax-ui-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 16px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  transition: border-color 120ms, box-shadow 120ms;
}

textarea.ax-ui-input {
  height: auto;
  min-height: 88px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}

.ax-ui-input:hover {
  border-color: var(--faint);
}

.ax-ui-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.ax-ui-input::placeholder {
  color: var(--faint);
  opacity: 1;
}

.ax-ui-input:disabled {
  background: var(--band);
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
}

.ax-ui-hint {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.ax-ui-fieldError {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--danger-text);
}

.ax-ui-fieldError svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

.ax-ui-fieldError + .ax-ui-hint {
  margin-top: 4px;
}

.ax-ui-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
}

.ax-ui-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.ax-ui-check input:disabled + span {
  color: var(--muted);
}

/* ── Notices ──────────────────────────────────────────────────────────── */

.ax-ui-notice {
  display: flex;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid;
  border-radius: var(--r-md);
  font-size: 13.5px;
  line-height: 1.5;
}

.ax-ui-noticeMark {
  flex: 0 0 auto;
  font-weight: 700;
}

.ax-ui-notice strong {
  font-weight: 700;
}

.ax-ui-error {
  background: var(--danger-soft);
  border-color: rgba(220, 38, 38, 0.3);
  color: var(--danger-text);
}

.ax-ui-warn {
  background: var(--warn-soft);
  border-color: rgba(217, 119, 6, 0.22);
  color: #92400e;
}

/* ── Spinner ──────────────────────────────────────────────────────────── */

.ax-ui-spinner {
  flex: 0 0 auto;
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ax-spin 0.8s linear infinite;
}

.ax-ui-spinner[data-tone="dark"] {
  width: 14px;
  height: 14px;
  border-color: var(--line);
  border-top-color: var(--accent);
}

/* ── Text ─────────────────────────────────────────────────────────────── */

/* The small uppercase label above a block ("YOUR FAX", "PAYMENT"). */
.ax-ui-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ax-ui-messagePage {
  max-width: 560px;
  padding: 24px 0 8px;
}

/* The bare pages outside the frame (global-not-found, global-error) stack one message per language. */
main > .ax-ui-messagePage + .ax-ui-messagePage {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.ax-ui-messagePage h1,
.ax-ui-messagePage h2 {
  margin: 6px 0 8px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.ax-ui-messagePage p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.ax-ui-messageActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 22px;
}

.ax-ui-reference {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@container ax (max-width: 759px) {
  .ax-ui-messagePage h1,
.ax-ui-messagePage h2 {
    font-size: 22px;
  }
}

/* ── components/payment/payment.module.css ── */
/* The payment column of the review, as designed: a navy "Powered by"
   badge, the Secure Checkout row with the card marks, the provider's own
   form, and a wide pay button (the small screen pays from the action bar). */

/* The provider's official badge, as its owner supplies it (it carries its own colours). */
.ax-payment-poweredBy {
  display: block;
  height: 32px;
  width: auto;
}

.ax-payment-secureRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 4px 0 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.ax-payment-secureLabel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
}

.ax-payment-cards {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ax-payment-card {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 36px;
  background: var(--band);
  border: 1px solid #eef1f5;
  border-radius: var(--r-lg);
}

.ax-payment-card img {
  display: block;
  max-width: 38px;
  max-height: 24px;
  width: auto;
}

.ax-payment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ax-payment-testCard {
  font-size: 12px;
  line-height: 1.5;
  color: #92400e;
}

/* Stripe's frame measures itself; it stays in the page but unseen until it is ready. */
.ax-payment-element[data-ready="false"] {
  height: 0;
  overflow: hidden;
  opacity: 0;
}

.ax-payment-payButton {
  margin-top: 4px;
  height: 48px;
}

.ax-payment-payLabel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ax-payment-amount {
  font-variant-numeric: tabular-nums;
}

.ax-payment-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.ax-payment-skeletonRow,
.ax-payment-skeletonGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ax-payment-skeletonRow {
  gap: 6px;
}

.ax-payment-skeletonRow span,
.ax-payment-skeletonGrid span,
.ax-payment-skeletonBar {
  height: 40px;
  background: var(--surface);
  border-radius: var(--r-md);
  animation: ax-pulse 1.2s ease-in-out infinite;
}

.ax-payment-skeletonRow span {
  height: 34px;
}

.ax-payment-skeletonLabel {
  font-size: 12.5px;
  color: var(--muted);
}

@container ax (max-width: 759px) {
  .ax-payment-payButton {
    display: none;
  }
}

/* ── components/wizard/wizard.module.css ── */
/* The send flow, from the design (FaxRadar App v5, screens 01 and 03):
   steps in the rail, the step beside a sticky summary on wide screens,
   the review as one card in two columns, an action bar on small screens. */

.ax-wizard-sendLayout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
}

.ax-wizard-sendMain {
  flex: 999 1 520px;
  min-width: 0;
}

.ax-wizard-nums {
  font-variant-numeric: tabular-nums;
}

/* ── Rail: the three steps ────────────────────────────────────────────── */

.ax-wizard-rail {
  padding: 16px 12px 8px;
}

.ax-wizard-railTitle {
  padding: 0 10px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.ax-wizard-railSteps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ax-wizard-railStep {
  width: 100%;
  display: flex;
  gap: 10px;
  padding: 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  text-align: left;
  cursor: default;
}

.ax-wizard-railStep:not(:disabled) {
  cursor: pointer;
}

.ax-wizard-railStep:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.7);
}

.ax-wizard-railStep[data-state="current"] {
  background: #fff;
  border-color: var(--line);
}

.ax-wizard-railDot {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  color: var(--faint);
}

.ax-wizard-railStep[data-state="current"] .ax-wizard-railDot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.ax-wizard-railStep[data-state="done"] .ax-wizard-railDot {
  background: var(--good);
  border-color: var(--good);
  color: #fff;
}

.ax-wizard-railText {
  flex: 1 1 auto;
  min-width: 0;
}

.ax-wizard-railLabel {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.ax-wizard-railStep[data-state="current"] .ax-wizard-railLabel,
.ax-wizard-railStep[data-state="done"] .ax-wizard-railLabel {
  color: var(--navy);
}

.ax-wizard-railSub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.ax-wizard-railStep[data-state="current"] .ax-wizard-railSub {
  color: var(--accent);
}

.ax-wizard-railTotal {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.ax-wizard-railTotalLine {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ax-wizard-railTotalMain {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 6px;
}

.ax-wizard-railTotalMain span {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.ax-wizard-railTotalMain strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.ax-wizard-railTotal p {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Step headings and actions ────────────────────────────────────────── */

.ax-wizard-stepHead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 14px;
}

.ax-wizard-stepTitle {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.ax-wizard-stepTitle:focus {
  outline: none;
}

.ax-wizard-stepTitleAlone {
  margin-bottom: 14px;
}

.ax-wizard-stepHint {
  font-size: 12.5px;
  color: var(--muted);
}

.ax-wizard-stepError {
  margin-top: 12px;
}

.ax-wizard-stepActions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.ax-wizard-stepActionsSpaced {
  margin-top: 20px;
}

.ax-wizard-pagesCap {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ── Document: pages, files, cover page ───────────────────────────────── */

.ax-wizard-thumbGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.ax-wizard-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.ax-wizard-thumb[data-size="large"] {
  aspect-ratio: 0.77;
  gap: 4px;
  padding: 9px 8px;
  border-radius: var(--r-lg);
}

.ax-wizard-thumb[data-size="large"][data-cover="true"] {
  border-color: var(--line-strong);
}

.ax-wizard-thumb[data-size="mini"] {
  flex: 0 0 auto;
  width: 44px;
  height: 57px;
  gap: 3px;
  padding: 5px;
  border-radius: var(--r);
}

.ax-wizard-thumbFax {
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 2px;
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--navy);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.2;
}

.ax-wizard-thumb[data-size="mini"] .ax-wizard-thumbFax {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 6px;
  letter-spacing: 0.08em;
}

.ax-wizard-thumbHead,
.ax-wizard-thumbLine {
  flex: 0 0 auto;
  display: block;
}

.ax-wizard-thumbHead {
  height: 3px;
  background: var(--line-strong);
}

.ax-wizard-thumb[data-size="mini"] .ax-wizard-thumbHead {
  height: 2px;
}

.ax-wizard-thumbLine {
  height: 2px;
  background: var(--line);
}

.ax-wizard-thumbLabel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4px 8px;
  background: rgba(246, 248, 251, 0.95);
  border-top: 1px solid var(--line-soft);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ax-wizard-addTile {
  position: relative;
  aspect-ratio: 0.77;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--band);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-lg);
  text-align: center;
  cursor: pointer;
  transition: border-color 120ms, background-color 120ms;
}

.ax-wizard-addTile[data-empty="true"] {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  flex-direction: row;
}

.ax-wizard-addTile:hover,
.ax-wizard-addTile[data-active="true"] {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.04);
}

.ax-wizard-addTile:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ax-wizard-addIcon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
}

.ax-wizard-addText {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ax-wizard-addLabel {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}

.ax-wizard-addSub {
  font-size: 12px;
  color: var(--muted);
}

.ax-wizard-reading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.ax-wizard-errors {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.ax-wizard-files {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.ax-wizard-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 12px;
  background: var(--band);
  border: 1px solid #eef1f5;
  border-radius: var(--r-md);
}

.ax-wizard-fileExt {
  flex: 0 0 auto;
  width: 30px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--good);
}

.ax-wizard-fileExt[data-kind="pdf"] {
  color: var(--danger);
}

.ax-wizard-fileText {
  flex: 1 1 auto;
  min-width: 0;
}

.ax-wizard-fileName {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ax-wizard-fileMeta {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ax-wizard-fileActions {
  flex: 0 0 auto;
  display: flex;
}

.ax-wizard-fine {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.ax-wizard-coverCard {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.ax-wizard-coverHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.ax-wizard-coverText {
  min-width: 0;
}

.ax-wizard-coverTitle {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}

.ax-wizard-coverNote {
  font-size: 12px;
  color: var(--muted);
}

.ax-wizard-switch {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 24px;
  padding: 0;
  background: var(--line-strong);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 120ms;
}

.ax-wizard-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(10, 35, 66, 0.25);
  transition: left 120ms;
}

.ax-wizard-switch[aria-checked="true"] {
  background: var(--accent);
}

.ax-wizard-switch[aria-checked="true"] span {
  left: 19px;
}

.ax-wizard-coverFields {
  display: grid;
  /* Two columns at most (sender, receiver), one when they would be narrower than 240px. */
  grid-template-columns: repeat(auto-fit, minmax(max(240px, calc((100% - 16px) / 2)), 1fr));
  gap: 14px 16px;
  padding: 12px;
  border-top: 1px solid var(--line-soft);
}

/* The recipient's fields and the sender's, side by side when there is room, as on the printed sheet. */
.ax-wizard-coverParty {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ax-wizard-coverPartyNote {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.ax-wizard-coverLegend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
}

.ax-wizard-coverWide {
  grid-column: 1 / -1;
}

/* ── Destination: country, number, prices ─────────────────────────────── */

.ax-wizard-destGrid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px 12px;
  align-items: start;
}

.ax-wizard-field {
  min-width: 0;
}

.ax-wizard-fieldLabel {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.ax-wizard-fieldHint {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ax-wizard-flag {
  flex: 0 0 auto;
  display: block;
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.ax-wizard-picker {
  position: relative;
  min-width: 0;
}

.ax-wizard-pickerButton {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms, box-shadow 120ms;
}

.ax-wizard-pickerButton:hover {
  border-color: var(--faint);
}

.ax-wizard-pickerButton[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.ax-wizard-pickerText {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ax-wizard-pickerText[data-empty="true"] {
  color: var(--faint);
}

.ax-wizard-pickerDial {
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ax-wizard-pickerPopover {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--popover-shadow);
}

.ax-wizard-pickerSearch {
  position: relative;
  display: flex;
  align-items: center;
  padding: 6px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--faint);
}

.ax-wizard-pickerSearch svg {
  position: absolute;
  left: 16px;
  pointer-events: none;
}

.ax-wizard-pickerSearch input {
  width: 100%;
  height: 38px;
  padding: 0 10px 0 32px;
  font-size: 16px;
  color: var(--navy);
  background: var(--band);
  border: 1px solid transparent;
  border-radius: var(--r);
}

.ax-wizard-pickerSearch input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.ax-wizard-pickerSearch input::placeholder {
  color: var(--faint);
}

.ax-wizard-pickerSearch input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.ax-wizard-pickerList {
  max-height: 308px;
  overflow-y: auto;
  padding: 4px 0;
}

.ax-wizard-pickerOption {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  background: #fff;
  cursor: pointer;
}

.ax-wizard-pickerOption[data-active="true"] {
  background: var(--band);
}

.ax-wizard-pickerOptionName {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ax-wizard-pickerOption[aria-selected="true"] .ax-wizard-pickerOptionName {
  font-weight: 600;
}

.ax-wizard-pickerOptionDial {
  flex: 0 0 auto;
  min-width: 38px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ax-wizard-pickerCheck {
  flex: 0 0 auto;
  width: 14px;
  display: flex;
  justify-content: center;
  color: var(--accent);
}

.ax-wizard-pickerEmpty {
  padding: 12px;
  font-size: 14px;
  color: var(--muted);
}

.ax-wizard-numberGroup {
  height: 44px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  transition: border-color 120ms, box-shadow 120ms;
}

.ax-wizard-numberGroup:hover {
  border-color: var(--faint);
}

.ax-wizard-numberGroup:focus-within {
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.ax-wizard-numberGroup[data-invalid="true"] {
  border-color: var(--danger);
}

.ax-wizard-numberGroup[data-invalid="true"]:focus-within {
  box-shadow: var(--ring-danger);
}

.ax-wizard-numberGroup[data-busy="true"] {
  background: var(--band);
}

.ax-wizard-dialPrefix {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--band);
  border-right: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  cursor: text;
}

.ax-wizard-numberGroup input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 12px;
  font-size: 16px;
  color: var(--navy);
  background: transparent;
  border: none;
  outline: none;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.ax-wizard-numberGroup input:disabled {
  color: var(--muted);
}

.ax-wizard-numberState {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.ax-wizard-numberState[data-ok="true"] {
  color: var(--good);
}

.ax-wizard-chips {
  margin-top: 16px;
}

.ax-wizard-chipsLabel {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.ax-wizard-chipList {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ax-wizard-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.ax-wizard-chip[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.ax-wizard-chipFlag {
  display: block;
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

/* ── Review and pay ───────────────────────────────────────────────────── */

.ax-wizard-reviewCard {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.ax-wizard-reviewCol {
  flex: 1 1 320px;
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid var(--line-soft);
}

.ax-wizard-payCol {
  background: var(--soft);
  border-right: none;
}

.ax-wizard-colTitle {
  margin-bottom: 10px;
}

.ax-wizard-miniThumbs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}

.ax-wizard-moreThumbs {
  flex: 0 0 auto;
  width: 44px;
  height: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--r);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
}

/* The cover sheet as it will print: the page small, a note beside it, full size in a dialog. */
.ax-wizard-coverPreview {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}

.ax-wizard-coverPreviewPage {
  flex: 0 0 104px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 1px 3px rgb(10 35 66 / 0.12);
  cursor: zoom-in;
}

.ax-wizard-coverPreviewPage:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ax-wizard-coverPreviewCanvas {
  display: block;
  width: 100%;
  height: auto;
  /* Drawn at the page's own 8.5 : 11 (fax pixels are taller than wide); this keeps the space before it is. */
  aspect-ratio: 8.5 / 11;
  background: #ffffff;
}

.ax-wizard-coverPreviewText {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 13px;
  color: var(--text);
}

.ax-wizard-coverPreviewText strong {
  color: var(--navy);
}

.ax-wizard-coverPreviewActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.ax-wizard-coverDialog {
  width: min(680px, 94vw);
  max-height: 94vh;
  padding: 12px;
  overflow: auto;
  background: #ffffff;
  border: none;
  border-radius: var(--r-md);
}

.ax-wizard-coverDialog::backdrop {
  background: rgb(10 35 66 / 0.6);
}

.ax-wizard-coverDialog .ax-wizard-coverPreviewCanvas {
  border: 1px solid var(--line);
}

/* The dialog's title and Close button stay at the top while the page scrolls under them. */
.ax-wizard-coverDialogBar {
  position: sticky;
  top: -12px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -12px -12px 12px;
  padding: 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--line-soft);
  color: var(--navy);
}

.ax-wizard-reviewRows {
  font-size: 13.5px;
}

.ax-wizard-reviewRows > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}

.ax-wizard-reviewRows dt {
  flex: 0 0 auto;
  color: var(--muted);
}

.ax-wizard-reviewRows dd {
  min-width: 0;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
  overflow-wrap: anywhere;
}

.ax-wizard-reviewRows > .ax-wizard-reviewTotal {
  align-items: baseline;
  padding: 10px 0 2px;
  border-bottom: none;
}

.ax-wizard-reviewTotal dt {
  font-weight: 700;
  color: var(--navy);
}

.ax-wizard-reviewTotal dt span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.ax-wizard-reviewTotal dd {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ax-wizard-edit {
  padding-left: 6px;
}

.ax-wizard-infoBox {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--band);
  border-radius: var(--r-md);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text);
}

.ax-wizard-infoBox p + p {
  margin-top: 6px;
}

.ax-wizard-infoBox strong {
  color: var(--navy);
}

/* The side panel's send-only line, on the review step that has no panel. */
.ax-wizard-infoBox p.ax-wizard-infoSendOnly {
  display: flex;
  gap: 8px;
  color: var(--danger-text);
}

.ax-wizard-emailField {
  margin-top: 16px;
}

.ax-wizard-payHead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 12px;
  margin-bottom: 10px;
}

.ax-wizard-confirmations {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  border: none;
  min-width: 0;
}

.ax-wizard-payError {
  margin-bottom: 12px;
}

.ax-wizard-formHint {
  padding: 14px;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.ax-wizard-wideAction {
  margin-top: 12px;
}

.ax-wizard-secureNote {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Side panel ───────────────────────────────────────────────────────── */

.ax-wizard-side {
  position: sticky;
  top: 80px;
  flex: 1 1 280px;
  max-width: 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ax-wizard-sideCard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.ax-wizard-preview {
  display: flex;
  justify-content: center;
  padding: 18px;
  background: var(--band);
  border-bottom: 1px solid var(--line);
}

.ax-wizard-previewPage {
  position: relative;
  width: 120px;
  height: 156px;
}

.ax-wizard-previewBehind {
  position: absolute;
  inset: 0;
  transform: translate(8px, 6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.ax-wizard-previewFront {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: 0 4px 10px -6px rgba(15, 23, 42, 0.2);
}

.ax-wizard-previewFront > span {
  display: block;
  flex: 0 0 auto;
  height: 2px;
  background: var(--line);
}

.ax-wizard-previewFront > .ax-wizard-previewHead {
  width: 62%;
  height: 3px;
  background: var(--line-strong);
}

.ax-wizard-previewFront[data-empty="true"] > .ax-wizard-previewHead {
  background: var(--surface);
}

.ax-wizard-previewFront > .ax-wizard-previewFax {
  height: auto;
  margin-bottom: 3px;
  padding-bottom: 4px;
  background: none;
  border-bottom: 1.5px solid var(--navy);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--navy);
}

.ax-wizard-previewFront > .ax-wizard-previewCaption {
  height: auto;
  margin-top: auto;
  background: none;
  font-size: 9.5px;
  line-height: 1.4;
  color: var(--faint);
  text-align: center;
  overflow-wrap: anywhere;
}

.ax-wizard-sideRows {
  padding: 6px 16px 4px;
}

.ax-wizard-sideRows > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}

.ax-wizard-sideRows dt {
  color: var(--muted);
}

.ax-wizard-sideRows dd {
  min-width: 0;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ax-wizard-sideRows > .ax-wizard-sideTotal {
  align-items: baseline;
  padding: 10px 0 8px;
  border-bottom: none;
}

.ax-wizard-sideTotal dt {
  font-weight: 600;
  color: var(--navy);
}

.ax-wizard-sideTotal dd {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ax-wizard-reassurance {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.ax-wizard-reassurance li {
  display: flex;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
}

.ax-wizard-reassuranceCheck {
  flex: 0 0 auto;
  margin-top: 3px;
  display: flex;
  color: var(--good);
}

/* FaxRadar sends but can't receive: a cross, in red, after the checks. */
.ax-wizard-reassurance li.ax-wizard-sendOnly {
  color: var(--danger-text);
}

.ax-wizard-sendOnlyCross {
  flex: 0 0 auto;
  margin-top: 3px;
  display: flex;
  color: var(--danger);
}

.ax-wizard-sendOnlyNote {
  display: flex;
  gap: 9px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--danger-text);
}

/* ── Small screen's action bar ────────────────────────────────────────── */

.ax-wizard-barRow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ax-wizard-barFigure {
  flex: 0 0 auto;
  min-width: 64px;
}

.ax-wizard-barLabel {
  font-size: 11px;
  color: var(--muted);
}

.ax-wizard-barValue {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.ax-wizard-barButton {
  flex: 1 1 auto;
  min-width: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--accent);
  border: none;
  border-radius: var(--r-md);
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

.ax-wizard-barButton span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ax-wizard-barButton[data-busy="true"],
.ax-wizard-barButton:disabled {
  background: var(--accent-busy);
  cursor: progress;
}

.ax-wizard-barButton[data-muted="true"] {
  background: var(--faint);
}

.ax-wizard-barNote {
  margin-top: 6px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}

/* ── Widths ───────────────────────────────────────────────────────────── */

@container ax (max-width: 1079px) {
  .ax-wizard-side {
    display: none;
  }
}

@container ax (min-width: 1080px) {
  .ax-wizard-railTotal,
  .ax-wizard-sendOnlyNote {
    display: none;
  }
}

@container ax (max-width: 759px) {
  .ax-wizard-thumbGrid {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  }

  /* A 76px tile cannot hold "Add files" in every language: on a phone it
     takes the whole row, as it does before the first file. */
  .ax-wizard-addTile {
    grid-column: 1 / -1;
    aspect-ratio: auto;
    flex-direction: row;
  }

  .ax-wizard-destGrid {
    grid-template-columns: 1fr;
  }

  .ax-wizard-stepActions,
  .ax-wizard-wideAction {
    display: none;
  }

  .ax-wizard-reviewCol {
    padding: 14px;
  }

  .ax-wizard-pickerList {
    max-height: 240px;
  }
}

/* ── components/status/status.module.css ── */
/* The fax status page, from the design (screen 02), in cards: the reference
   line, then the state in large type with a coloured badge over a
   three-step timeline, the fax's details in two columns, and the payment or
   refund with what to do next. That last card sits beside the others on
   wide screens and after the details on narrow ones. */

.ax-status-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
}

.ax-status-reference {
  min-width: 0;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.ax-status-reference span {
  font-weight: 600;
  color: var(--navy);
}

.ax-status-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin-right: -10px;
  padding: 0 10px;
  background: transparent;
  border: none;
  border-radius: var(--r-lg);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.ax-status-copy:hover {
  background: var(--band);
  color: var(--navy);
}

.ax-status-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 28px 0;
  font-size: 14px;
  color: var(--muted);
}

/* ── Layout ───────────────────────────────────────────────────────────── */

/* Columns follow the page's own width, which the rail beside it changes. */
.ax-status-page {
  container: status / inline-size;
}

.ax-status-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "hero" "details" "side";
  gap: 20px;
  margin-top: 16px;
}

/* Framed as the send flow's summary card; the text fills each card. */
.ax-status-hero,
.ax-status-details,
.ax-status-side {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.ax-status-hero {
  grid-area: hero;
}

/* ── The state ────────────────────────────────────────────────────────── */

.ax-status-state {
  --tone: var(--accent);
  padding: 26px 28px 24px;
}

.ax-status-state[data-tone="good"] {
  --tone: var(--good);
}

.ax-status-state[data-tone="bad"] {
  --tone: var(--danger);
}

.ax-status-state[data-tone="quiet"] {
  --tone: var(--muted);
}

.ax-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tone);
}

.ax-status-dot {
  position: relative;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tone);
}

/* Still moving: a ring breathes around the dot. */
.ax-status-state[data-tone="busy"] .ax-status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--tone);
  border-radius: 50%;
  opacity: 0.35;
  animation: ax-pulse 1.6s ease-in-out infinite;
}

.ax-status-stateTitle {
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
  text-wrap: pretty;
}

.ax-status-stateBody {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* Why it failed: boxed and labelled so it isn't read as more of the refund text. Blue, not red: it's help. */
.ax-status-stateReason {
  margin: 14px 0 4px;
  padding: 12px 16px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--r-md);
}

.ax-status-stateReasonLabel {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
}

.ax-status-stateReasonText {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
}

.ax-status-stateMeta {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ax-status-unreachable {
  margin-top: 14px;
  max-width: 600px;
}

/* ── Timeline ─────────────────────────────────────────────────────────── */

.ax-status-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 22px 28px 24px;
  border-top: 1px solid var(--line-soft);
}

.ax-status-timeline li {
  display: grid;
  grid-template-columns: 1fr;
  /* A step with a longer text must not push the other steps' dots down. */
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.ax-status-track {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ax-status-stepDot {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
}

li[data-state="current"] .ax-status-stepDot {
  border-color: var(--accent);
}

li[data-state="done"] .ax-status-stepDot {
  background: var(--good);
  border-color: var(--good);
  color: #fff;
}

li[data-state="failed"] .ax-status-stepDot {
  border-color: var(--danger);
  color: var(--danger);
}

.ax-status-stepPulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: ax-pulse 1.4s ease-in-out infinite;
}

.ax-status-line {
  flex: 1 1 auto;
  height: 2px;
  margin: 0 8px;
  background: var(--line);
}

.ax-status-line[data-done="true"] {
  background: var(--good);
}

.ax-status-stepText {
  min-width: 0;
  padding: 0 12px 0 0;
}

.ax-status-stepLabel {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

li[data-state="todo"] .ax-status-stepLabel {
  color: var(--faint);
}

li[data-state="failed"] .ax-status-stepLabel {
  color: var(--danger-text);
}

.ax-status-stepSub {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.ax-status-stepTime {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* ── Details and payment ──────────────────────────────────────────────── */

.ax-status-details {
  grid-area: details;
  padding: 20px 28px 8px;
}

.ax-status-blockTitle {
  margin-bottom: 6px;
}

/* The right column holds the long values (number, date, reference) and takes
   the room they need on one line; the left one, short values, the rest. */
.ax-status-detailGrid {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto;
  column-gap: 32px;
}

/* The card's edge closes the last row. */
.ax-status-detailGrid > div:nth-last-child(-n + 2) {
  border-bottom-color: transparent;
}

.ax-status-detailGrid > div,
.ax-status-moneyRows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

/* A value too long to sit beside its label (the reference, beside the card)
   moves under it whole instead of breaking in the middle. */
.ax-status-detailGrid > div {
  flex-wrap: wrap;
  row-gap: 2px;
}

.ax-status-detailGrid dd {
  margin-left: auto;
}

.ax-status-detailGrid dt {
  flex: 0 0 auto;
  font-size: 13.5px;
  color: var(--muted);
}

.ax-status-detailGrid dd {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.ax-status-detailGrid dd[data-tone="good"] {
  color: var(--good);
}

.ax-status-detailGrid dd[data-tone="bad"] {
  color: var(--danger-text);
}

/* The payment or refund and what to do next. */
.ax-status-side {
  grid-area: side;
  padding: 20px 24px 22px;
}

.ax-status-moneyRows > div:last-child {
  border-bottom-color: transparent;
}

.ax-status-moneyRows dt,
.ax-status-moneyRows dd {
  font-size: 13.5px;
}

.ax-status-moneyRows dt {
  color: var(--text);
}

.ax-status-moneyRows dd {
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ax-status-moneyRows > div[data-strong="true"] dt,
.ax-status-moneyRows > div[data-strong="true"] dd {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.ax-status-moneyNote {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* ── Actions ──────────────────────────────────────────────────────────── */

.ax-status-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ax-status-another {
  width: 100%;
  padding: 0 22px;
  border-radius: var(--r-lg);
}

.ax-status-help {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.ax-status-bookmark {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--faint);
}

/* The Trustpilot link: quieter than "Send another fax", set apart from the refund. */
.ax-status-review {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ax-status-reviewText {
  flex: 1 1 260px;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.ax-status-reviewLink {
  max-width: 100%;
  height: auto;
  min-height: 42px;
  padding: 8px 14px;
  border-color: var(--line);
  text-align: center;
}

@container ax (max-width: 759px) {
  .ax-status-state {
    padding: 20px 18px 18px;
  }

  .ax-status-details {
    padding: 16px 18px 6px;
  }

  .ax-status-side {
    padding: 18px;
  }

  .ax-status-stateTitle {
    font-size: 24px;
  }

  .ax-status-timeline {
    grid-template-columns: 1fr;
    padding: 18px 18px 20px;
  }

  .ax-status-timeline li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
  }

  .ax-status-track {
    flex-direction: column;
  }

  .ax-status-line {
    width: 2px;
    height: auto;
    min-height: 26px;
    margin: 4px 0;
  }

  .ax-status-stepText {
    padding: 1px 0 14px;
  }

  .ax-status-timeline li:last-child .ax-status-stepText {
    padding-bottom: 0;
  }

  .ax-status-detailGrid {
    grid-template-columns: 1fr;
  }

  /* One column: only the very last row is closed by the card's edge. */
  .ax-status-detailGrid > div:nth-last-child(2) {
    border-bottom-color: var(--line-soft);
  }
}

/* Wide enough for the timeline's three steps beside the card. */
@container status (min-width: 860px) {
  .ax-status-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    /* The last row takes whatever height the card needs beyond the left column. */
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "hero side"
      "details side"
      ". side";
    column-gap: 24px;
  }

  .ax-status-side {
    grid-row: 1 / -1;
    align-self: start;
  }
}

/* Kept in view while scrolling, under the 56px header, when the window is tall enough to show all of it. */
@container status (min-width: 860px) {
  @media (min-height: 760px) {
    .ax-status-side {
      position: sticky;
      top: 80px;
    }
  }
}
