/* MAXIMUS PAY merchant checkout — local assets only; uses app.css tokens and .btn classes. */
.mco { width: min(1120px, 100%); margin: 0 auto; padding: 24px 16px 48px; color: var(--ink); overflow-wrap: anywhere; }
.mco-header { margin-bottom: 20px; }
.mco-eyebrow { margin: 0 0 6px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mco-env { display: inline-block; margin: 10px 0 0; padding: 6px 10px; border: 1px solid #dfc992; border-radius: 8px; background: #fffaf0; color: var(--amber); font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1.4; }
.mco-heading { margin: 0; font-size: clamp(24px, 6vw, 34px); line-height: 1.15; letter-spacing: -.02em; }
.mco-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.mco-card { min-width: 0; padding: 20px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.mco-card h2 { margin: 0 0 12px; font-size: 18px; line-height: 1.3; }
.mco-facts { display: grid; grid-template-columns: minmax(84px, .7fr) minmax(0, 1.3fr); gap: 0 12px; margin: 0; }
.mco-facts dt, .mco-facts dd { min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mco-facts dt { color: var(--muted); }
.mco-facts dd { margin: 0; font-weight: 550; white-space: pre-wrap; }
.mco-ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; word-break: break-all; }
.mco-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 16px; }
.mco-total span { color: var(--muted); }
.mco-total strong { font-size: clamp(24px, 7vw, 30px); line-height: 1.2; font-variant-numeric: tabular-nums; }
.mco-note, .mco-fine, .mco-meta, .mco-empty { color: var(--muted); font-size: 13px; line-height: 1.6; }
.mco-note { margin: 10px 0 0; }
.mco-empty { margin: 0; }
.mco-state { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mco-state h2 { margin-bottom: 8px; }
.mco-state h2:focus { outline: none; }
.mco-state h2:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.mco-state p { margin: 0 0 8px; }
.mco-state p:last-child { margin-bottom: 0; }
.mco-state .mco-next { font-weight: 600; }
.mco-state[data-kind="warning"] { border-color: #dfc992; background: #fffaf0; }
.mco-state[data-kind="warning"] h2 { color: var(--amber); }
.mco-state[data-kind="success"] { border-color: #b9d4be; background: #eef7ef; }
.mco-state[data-kind="success"] h2 { color: var(--green); }
.mco-state[data-kind="error"] { border-color: #ebc9c3; background: #fff1ef; }
.mco-state[data-kind="error"] h2 { color: var(--red); }
.mco-refund { margin-top: 12px; }
.mco-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.mco-actions .btn { width: 100%; min-height: 48px; font-size: 15px; white-space: normal; text-align: center; justify-content: center; }
.mco-fine { margin: 12px 0 0; }
.mco[aria-busy="true"] .mco-state { opacity: .92; }
.mco-orders { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mco-order-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; width: 100%; min-height: 56px; padding: 14px 16px; text-align: left; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.mco-order-option:hover:not(:disabled) { border-color: var(--muted); }
.mco-order-option:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.mco-order-merchant { min-width: 0; font-weight: 650; }
.mco-order-amount { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mco-order-desc, .mco-order-ref { grid-column: 1 / -1; min-width: 0; color: var(--muted); font-size: 13px; }
.mco-offline { margin: 0 0 12px; padding: 12px 14px; border: 1px solid #dfc992; border-left-width: 4px; border-radius: 10px; background: #fffaf0; color: var(--ink); font-size: 14px; line-height: 1.5; }
.mco-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (min-width: 390px) {
  .mco { padding-left: 18px; padding-right: 18px; }
  .mco-card { padding: 22px 20px; }
}
@media (max-width: 359px) {
  .mco-order-option { grid-template-columns: minmax(0, 1fr); }
  .mco-order-amount { white-space: normal; }
}
@media (min-width: 900px) {
  .mco { padding: 40px 32px 64px; }
  .mco-header { margin-bottom: 28px; }
  .mco-grid { grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); gap: 24px; }
  .mco-card { padding: 28px; }
  .mco-card h2 { font-size: 20px; }
  .mco-facts { grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr); gap: 0 20px; }
  .mco-actions .btn { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .mco * { transition: none !important; } }

/* Stage 8: seller terms, recorded consent, refund terms; repeated taps on mobile. */
.mco-actions .btn { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.mco-terms { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mco-terms > summary { min-height: 44px; padding: 12px 14px; cursor: pointer; font-weight: 650; line-height: 1.4; }
.mco-terms > summary:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.mco-terms[open] > summary { border-bottom: 1px solid var(--line); }
.mco-terms-section, .mco-terms > .mco-fine { padding: 0 14px; }
.mco-terms-section h3 { margin: 12px 0 4px; font-size: 14px; }
.mco-terms-section p, .mco-refund-terms p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.mco-terms > .mco-fine:last-child { padding-bottom: 12px; }
.mco-refund-terms { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.mco-refund-terms h3 { margin: 0 0 6px; font-size: 16px; }
