/* Scoped receipt review and mobile commands; shared enterprise theme loads last. */
body.af-ux #payment-dialog .payment-mode-tabs{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;margin:0!important}
body.af-ux #payment-dialog .payment-mode-tabs button{min-height:46px!important;font-size:14px!important;white-space:normal!important;line-height:1.4!important}
body.af-ux #payment-dialog .payment-amount-section{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;margin:0!important}
body.af-ux #payment-dialog #payment-amount-hint{display:block!important;font-size:13px!important;line-height:1.5!important;color:#52697c!important;white-space:normal!important}
body.af-ux #payment-dialog .payment-fill-button{justify-self:start;min-height:44px;padding:10px 14px;border:1px solid #bad3ed;border-radius:12px;background:#edf5ff;color:#145da9;font:650 14px system-ui;cursor:pointer}
body.af-ux #payment-dialog .payment-fill-button:disabled{opacity:.6;cursor:default}
body.af-ux #payment-dialog #payment-validation:not([hidden]){display:block!important;margin:0!important;padding:10px 12px;border:1px solid #e8bdc5;border-radius:12px;background:#fff3f5;color:#a22137;font-size:14px!important;line-height:1.5!important;font-weight:600!important;white-space:normal!important}
body.af-ux #payment-dialog #payment-validation[hidden]{display:none!important}
body.af-ux #payment-dialog .payment-review{display:grid!important;gap:10px!important;padding:14px!important;border:1px solid #d4e2ed!important;border-radius:16px!important;background:#f6f9fc!important;color:#183650!important;min-width:0!important}
body.af-ux #payment-dialog .payment-review>strong{font-size:16px!important;line-height:1.4!important}
body.af-ux #payment-dialog .payment-review dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
body.af-ux #payment-dialog .payment-review dl>div{min-width:0;display:grid;gap:4px}
body.af-ux #payment-dialog .payment-review .payment-review-who{grid-column:1/-1}
body.af-ux #payment-dialog .payment-review dt{font-size:12px!important;line-height:1.5;color:#52697c!important}
body.af-ux #payment-dialog .payment-review dd{margin:0;font-size:15px!important;font-weight:700!important;line-height:1.4!important;overflow-wrap:anywhere}
body.af-ux #payment-dialog #payment-review-amount{color:#1263cf!important;font-size:18px!important;font-variant-numeric:tabular-nums}
body.af-ux #payment-dialog #payment-review-after{color:#a22137!important;font-variant-numeric:tabular-nums}
body.af-ux #payment-dialog .payment-review>small{font-size:13px!important;line-height:1.5!important;color:#52697c!important}
body.af-ux #payment-dialog .payment-review[data-state="ready"]{border-color:#b3d8cb!important;background:#f3fbf7!important}
body.af-ux #payment-dialog .payment-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
@media(max-width:640px){
  body.af-ux #payment-dialog .payment-meta-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  /* Restore the existing compact command sizes and single-line descriptions. */
  body.af-ux.staff-mode .staff-command-bar .staff-command small{color:#46647e!important;opacity:1!important}
  body.af-ux.staff-mode .staff-command-bar .staff-command.staff-command-primary small{color:#fff!important}
}
