/* My orders (/myorders) - redesigned 2026-09-18. Standalone, cache-busted by mtime. */
.mo { background: #f2f2f2; padding: 24px 0 48px; }
.mo-wrap { max-width: 760px; margin: 0 auto; }
.mo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.mo-title { font-size: 26px; font-weight: 700; margin: 0; }
.mo-sub { color: #666; margin: 2px 0 0; }
.mo-help { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; color: #1f5f23;
	font-weight: 600; text-decoration: none; border: 1px solid #d7e6d8; white-space: nowrap; }
.mo-help:hover { background: #e8f3e9; color: #1f5f23; }
.mo-muted { color: #777; font-size: 13.5px; }
.mo-card { background: #fff; border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }

.mo-due { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
	background: #fff4dc; border: 1px solid #f0d596; color: #5c3b00; border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }

.mo-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; -webkit-overflow-scrolling: touch; }
.mo-chip { flex: 0 0 auto; border: 1px solid #d5dbe3; background: #fff; color: #333; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.mo-chip span { color: #888; font-weight: 500; margin-left: 2px; }
.mo-chip.is-on { background: #1f2933; border-color: #1f2933; color: #fff; }
.mo-chip.is-on span { color: #cfd6df; }

.mo-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mo-order-id { font-size: 16px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mo-tag { font-size: 12px; font-weight: 600; background: #eef1f5; color: #3e4c59; padding: 2px 8px; border-radius: 999px; }
.mo-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.mo-pill.is-good { background: #e8f3e9; color: #1f5f23; }
.mo-pill.is-warn { background: #fff4dc; color: #7a4f00; }
.mo-pill.is-info { background: #e7effb; color: #174c99; }
.mo-pill.is-bad  { background: #fdeceb; color: #b42318; }
.mo-pill.is-muted{ background: #eef1f5; color: #6b7785; }

/* progress: four steps on one line */
.mo-steps { list-style: none; display: flex; padding: 0; margin: 16px 0 6px; counter-reset: s; }
.mo-steps li { flex: 1; position: relative; text-align: center; font-size: 12px; color: #9aa5b1; padding-top: 18px; }
.mo-steps li span { position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #d5dbe3; z-index: 1; }
.mo-steps li::before { content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px; background: #d5dbe3; }
.mo-steps li:first-child::before { display: none; }
.mo-steps li.done, .mo-steps li.now { color: #1f2933; }
.mo-steps li.done span, .mo-steps li.now span { background: #2f7d32; }
.mo-steps li.done::before, .mo-steps li.now::before { background: #2f7d32; }
.mo-steps li.now { font-weight: 700; }
.mo-steps li.now span { box-shadow: 0 0 0 4px rgba(47,125,50,.18); }
.mo-steps li.fail { color: #b42318; font-weight: 700; }
.mo-steps li.fail span { background: #b42318; }

.mo-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 4px; padding: 12px 0; border-top: 1px solid #eef1f5; border-bottom: 1px solid #eef1f5; }
.mo-fact { display: flex; flex-direction: column; min-width: 0; }
.mo-fact strong { font-size: 15px; }
.mo-ok { color: #1f5f23; }
.mo-bad { color: #b42318; }
.mo-muted-strong { color: #9aa5b1; }
.mo-note { margin: 10px 0 0; font-size: 14px; }
.mo-note.is-bad { color: #b42318; }

.mo-items { margin-top: 10px; }
.mo-items summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; padding: 4px 0; }
.mo-items summary::-webkit-details-marker { display: none; }
.mo-thumbs { display: flex; gap: 6px; min-width: 0; overflow: hidden; }
.mo-thumb { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 8px; background: #f2f2f2; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #999; }
.mo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mo-thumb-more { font-size: 13px; font-weight: 700; color: #555; }
.mo-items-toggle { white-space: nowrap; font-weight: 600; font-size: 14px; color: #1f2933; }
.mo-items-toggle i { display: inline-block; transition: transform .15s; }
.mo-items[open] .mo-items-toggle i { transform: rotate(180deg); }
.mo-lines { list-style: none; padding: 0; margin: 10px 0 0; }
.mo-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #eef1f5; font-size: 14px; }
.mo-lines li:last-child { border-bottom: 0; }
.mo-line-name { min-width: 0; }
.mo-line-name small { display: block; color: #777; font-size: 12.5px; }
.mo-line-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mo-lines li.is-off .mo-line-name { color: #9aa5b1; text-decoration: line-through; }
.mo-lines li.is-off small { text-decoration: none; }
.mo-sums { border-top: 1px solid #eef1f5; margin-top: 4px; }
.mo-sums li { border-bottom: 0; padding: 4px 0; color: #555; }
.mo-sums li.mo-total { color: #1f2933; font-weight: 700; }
.mo-sums li.mo-paidby { font-size: 13px; }

.mo-complaint { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px;
	border-radius: 10px; background: #f7f8fa; color: #1f2933; text-decoration: none; font-size: 14px; }
.mo-complaint:hover { background: #eef1f5; color: #1f2933; }
.mo-complaint small { display: block; color: #1f5f23; margin-top: 2px; }

.mo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.mo-actions .btn { border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.mo-actions .mo-wa { margin-left: auto; color: #1f5f23; text-decoration: none; }
.mo-empty { text-align: center; padding: 34px 18px; }
.mo-empty i { font-size: 34px; color: #9aa5b1; }
.mo-empty p { margin: 10px 0 16px; }
.mo-foot { margin-top: 6px; }
.mo-order[hidden] { display: none; }

@media (max-width: 575px) {
	.mo { padding-top: 14px; }
	.mo-title { font-size: 22px; }
	.mo-card { padding: 14px; }
	.mo-facts { grid-template-columns: 1fr 1fr; }
	.mo-facts .mo-fact:first-child { grid-column: 1 / -1; }
	.mo-actions .btn { flex: 1 1 auto; justify-content: center; }
	.mo-actions .mo-wa { margin-left: 0; flex-basis: 100%; }
}
