.mo-wrap { max-width: 760px; margin: 0 auto; padding: 34px 16px 56px; }
.mo-wrap h1 { font: 300 34px/1.15 var(--sans); letter-spacing: .02em; }
.mo-sub { color: var(--dust); margin: 6px 0 22px; }
.mo-nav a.btn { color: #111; }
.mo-form { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--lineg); border-radius: 14px; background: var(--lacquer); }
.mo-form[hidden], #moList[hidden] { display: none; }
.mo-help { font-size: 13px; color: var(--dust); }
.mo-help a { color: var(--brass-hi); }
.mo-err { color: var(--ember); font-size: 14px; }
.mo-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; color: var(--dust); font-size: 14px; }
.mo-acts { display: flex; gap: 8px; }
.mo-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.mo-tab { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--lineg); background: transparent; color: var(--ivory); font: inherit; font-size: 14px; }
.mo-tab small { margin-left: 6px; color: var(--dust); }
.mo-tab[aria-selected="true"] { background: var(--brass); color: #111; border-color: var(--brass); }
.mo-tab[aria-selected="true"] small { color: #111; }
.mo-card { border: 1px solid var(--lineg); border-radius: 14px; background: var(--lacquer); padding: 18px; margin-bottom: 14px; }
.mo-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mo-no { font-size: 18px; letter-spacing: .06em; }
.mo-pill { padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #111; }
.mo-pill.st-New { background: #e9c46a; }
.mo-pill.st-Confirmed { background: #8fc7e8; }
.mo-pill.st-Paid { background: #86d39d; }
.mo-pill.st-Completed { background: #c9c2b0; }
.mo-pill.st-Cancelled { background: #e8806d; }
.mo-when { color: var(--dust); font-size: 13px; margin-top: 2px; }
.mo-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; padding: 0; margin: 16px 0 6px; }
.mo-steps li { position: relative; text-align: center; font-size: 12px; color: var(--dust); padding-top: 18px; }
.mo-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 3px; background: var(--line); }
.mo-steps li.done::before { background: var(--brass); }
.mo-steps li.done { color: var(--brass-hi); }
.mo-steps li.now { color: var(--ivory); font-weight: 500; }
.mo-msg { margin: 8px 0 12px; font-size: 15px; }
.mo-ev { font-size: 15px; line-height: 1.5; border-top: 1px solid var(--lineg); padding-top: 12px; }
.mo-ev b { font-weight: 500; }
.mo-items { margin-top: 10px; }
.mo-items summary { cursor: pointer; color: var(--brass-hi); min-height: 36px; display: flex; align-items: center; }
.mo-items ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; }
.mo-items li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--lineg); }
.mo-items li span:last-child { color: var(--dust); white-space: nowrap; }
.mo-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.mo-total { font-size: 15px; }
.mo-total b { font-size: 18px; font-weight: 500; }
.mo-empty { text-align: center; color: var(--dust); padding: 34px 10px; }
@media (max-width: 520px) { .mo-wrap h1 { font-size: 28px; } .mo-steps li { font-size: 11px; } }
@media (max-width: 860px) { .mo-nav a.btn { display: inline-flex !important; min-height: 38px; font-size: 13px; letter-spacing: .04em; } }
.mo-emptybox { text-align: center; padding: 40px 16px; border: 1px solid var(--lineg); border-radius: 14px; background: var(--lacquer); }
.mo-emptybox[hidden] { display: none; }
.mo-emptybox p { color: var(--dust); margin-bottom: 18px; }
.mo-load { text-align: center; color: var(--dust); padding: 30px 10px; }

.mo-trackrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: -4px 0 16px; padding: 12px; border: 1px solid var(--lineg); border-radius: 12px; background: var(--lacquer); }
.mo-trackrow[hidden] { display: none; }
.mo-trackrow input { flex: 1 1 200px; min-width: 0; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--lineg); background: var(--ebony); letter-spacing: .08em; text-transform: uppercase; }
.mo-trackrow input::placeholder { text-transform: none; letter-spacing: 0; }
.mo-trackrow .btn { min-height: 42px; }
.mo-trackrow .mo-err, .mo-trackrow .mo-help { flex: 1 1 100%; margin: 0; font-size: 13px; }
.mo-trackrow .mo-help { color: var(--dust); }
.mo-trackrow .mo-help a { color: var(--brass-hi); }
.mo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mo-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* v5: on phones the top button takes the customer back to the catalogue (same look in light and dark) */
.mo-l-mob { display: none; }
@media (max-width: 860px) {
  .mo-l-desk { display: none; }
  .mo-l-mob { display: inline; }
  .topbar .mo-nav a.btn.mo-back { background: #0a0907; border: 1px solid rgba(212, 162, 76, .55); color: #f2ead8; font-weight: 500; letter-spacing: .04em; padding: 0 16px; }
}
@media (max-width: 500px) {
  .topbar:has(.mo-back) { padding-left: 16px; padding-right: 16px; }
  .topbar:has(.mo-back) .brand { gap: 8px; }
  .topbar:has(.mo-back) .brand img { height: 34px; }
  .topbar:has(.mo-back) .brand b { letter-spacing: .08em; font-size: 13px; }
  .topbar .mo-nav a.btn.mo-back { padding: 0 12px; font-size: 12.5px; letter-spacing: .02em; }
  .mo-theme + .mo-nav { margin-left: 6px; }
}
@media (max-width: 390px) { .topbar:has(.mo-back) .brand b { letter-spacing: .03em; } }
@media (max-width: 385px) { .topbar:has(.mo-back) .brand b { display: none; } }   /* the smallest phones: logo only, so the buttons never touch */
.topbar .mo-nav a.btn.mo-back { white-space: nowrap; }

/* v7 phones: Refresh and Track by code on their own row, then the three tabs together on one line below */
@media (max-width: 860px) {
  .mo-bar { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
  .mo-acts { gap: 10px; }
  .mo-acts .btn { min-height: 40px; padding: 0 18px; }
  .mo-tabs { flex-wrap: nowrap; gap: 6px; margin-bottom: 18px; padding-top: 18px; border-top: 1px solid var(--lineg); }
  .mo-tab { flex: 1 1 0; min-width: 0; padding: 0 6px; font-size: 13px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
  .mo-tab small { margin-left: 5px; }
}
@media (max-width: 360px) { .mo-tab { font-size: 12px; padding: 0 4px; letter-spacing: 0; } .mo-tab small { margin-left: 3px; } }
@media (max-width: 860px) { .mo-tab { flex: 1 1 auto; } }
@media (max-width: 340px) { .mo-tab { font-size: 11.5px; padding: 0 5px; } .mo-tabs { gap: 4px; } }
/* v8 phones: a small "← Back" button, and the name MOMENTRA always shown with clear space around it */
@media (max-width: 860px) {
  .topbar .mo-nav a.btn.mo-back { min-height: 40px; padding: 0 14px; font-size: 13px; letter-spacing: .04em; }
}
@media (max-width: 385px) { .topbar:has(.mo-back) .brand b { display: inline; } }
@media (max-width: 330px) { .topbar:has(.mo-back) .brand b { display: none; } }

/* Stop the footer jumping while orders load */
.mo-wrap { min-height: 80vh; }

