/* Consumer order center; navigation and snapshot workspace keep their own layouts. */
body[data-site-page="my-orders"] { --paper: #fafaf8; --ink: #292622; --muted: #756f67; --line: #e9e6e1; background: var(--paper); }
body[data-site-page="my-orders"] > main { width: min(1280px, calc(100% - var(--site-gutter) * 2)); padding-block: 32px 56px; }
body[data-site-page="my-orders"] .page-heading { margin-bottom: 20px; align-items: center; }
body[data-site-page="my-orders"] .page-heading h1 { font-size: 28px; letter-spacing: 0; line-height: 1.3; }
body[data-site-page="my-orders"] .page-heading p { font-size: 15px; line-height: 1.7; }
.page-heading .secondary { min-height: 44px; font-size: 14px; border-color: #dfd8d0; color: #765139; }
body[data-site-page="my-orders"] .entry-notice { justify-content: space-between; flex-direction: row; gap: 12px; padding: 8px 12px 8px 16px; margin-bottom: 20px; border: 0; border-radius: 8px; background: #f5f0e8; }
.entry-notice > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
body[data-site-page="my-orders"] .entry-notice strong { font-size: 12px; color: #8b5d36; }
body[data-site-page="my-orders"] .entry-notice p { margin: 0; font-size: 12px; color: #807362; line-height: 1.6; }
#dismissSimulationNotice { width: 36px; height: 36px; flex-shrink: 0; border: 0; background: transparent; color: #8d8171; font-size: 22px; }
.orders-overview { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 24px 28px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 4px 16px #34291d04; }
.overview-copy { min-width: 0; flex: 1; }
.overview-eyebrow { margin: 0 0 7px; font-size: 12px; color: #8a8177; }
.overview-copy h2 { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 20px; line-height: 1.4; font-weight: 600; }
#overviewTotal { color: #a95024; font-size: 26px; font-variant-numeric: tabular-nums; }
.overview-copy h2 small { font-size: 13px; color: var(--muted); font-weight: 400; }
#overviewMessage { margin: 8px 0 0; font-size: 13px; line-height: 1.7; }
.overview-stats { display: flex; flex: 0 1 56%; justify-content: flex-end; gap: 4px; }
.overview-stats button { display: grid; gap: 7px; flex: 1; min-width: 70px; min-height: 72px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; text-align: center; }
.overview-stats button:hover { background: #f8f5f0; }
.overview-stats strong { color: #292622; font-size: 23px; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; }
.overview-stats button[data-attention="true"] strong { color: #a95024; }
body[data-site-page="my-orders"] .order-types { display: inline-flex; gap: 4px; width: max-content; max-width: 100%; padding: 4px; border-radius: 10px; background: #eeece7; }
body[data-site-page="my-orders"] .order-types > button { min-height: 44px; padding: 8px 20px; border: 0; border-radius: 7px; background: transparent; color: #777168; box-shadow: none; }
body[data-site-page="my-orders"] .order-types > button[aria-selected="true"] { background: #fff; color: #9c4b23; box-shadow: 0 1px 5px #3f332512; }
.type-title { font-size: 15px; gap: 10px; }
.type-title [data-type-count] { height: 22px; border-radius: 5px; background: #e6e3dc; color: #6c665d; font-size: 12px; }
.order-types > button[aria-selected="true"] [data-type-count] { background: #fbebdd; color: #a95024; }
body[data-site-page="my-orders"] .order-type-description { margin: 12px 0 16px; font-size: 13px; }
body[data-site-page="my-orders"] .orders-toolbar { align-items: flex-start; padding: 16px 0; gap: 16px 28px; }
body[data-site-page="my-orders"] .order-categories { display: flex; flex-wrap: wrap; gap: 4px 10px; width: auto; }
body[data-site-page="my-orders"] .order-categories button { justify-content: flex-start; gap: 7px; min-height: 44px; padding: 9px 10px; border: 0; border-radius: 0; font-size: 14px; color: #777168; position: relative; }
body[data-site-page="my-orders"] .order-categories button[aria-pressed="true"] { color: #a95024; background: transparent; font-weight: 600; }
.order-categories button[aria-pressed="true"]::after { position: absolute; bottom: 0; left: 10px; right: 10px; height: 2px; background: #b75a2c; content: ""; }
body[data-site-page="my-orders"] .order-categories span { font-size: 12px; }
body[data-site-page="my-orders"] .order-lookup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: 320px; }
.order-lookup input { min-height: 44px; font-size: 13px; border-color: #e1ddd7; }
.order-lookup button { min-height: 44px; padding-inline: 16px; font-size: 13px; border-color: #dbd3c9; color: #775238; }
.lookup-feedback { grid-column: 1 / -1; margin: 0; color: #a34a2d; font-size: 12px; line-height: 1.6; }
.lookup-feedback:empty { display: none; }
.order-lookup input[aria-invalid="true"] { border-color: #c58765; }
.list-heading { margin: 18px 0; }
.list-heading > div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.list-heading p { font-size: 13px; color: #807970; }
#lastUpdated { font-size: 12px; color: #91897e; }
#lastUpdated[data-stale="true"] { color: #a06a34; }
.list-status p { font-size: 13px; }
body[data-site-page="my-orders"] #orders { gap: 16px; }
body[data-site-page="my-orders"] .order-card { border-color: var(--line); border-radius: 12px; background: #fff; box-shadow: 0 3px 14px #34291d04; }
body[data-site-page="my-orders"] .order-main { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 20fr) minmax(0, 25fr); align-items: center; gap: 28px; padding: 24px; }
.order-product { gap: 20px; }
.order-cover { display: grid; place-items: center; flex: none; width: 96px; height: 112px; padding: 10px; overflow: hidden; border: 0; border-radius: 10px; background: #f5f1ea; color: #a8825e; }
.order-cover svg { width: 40px; height: 40px; }
.order-cover img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.order-cover .cover-fallback { display: grid; justify-items: center; gap: 6px; }
.cover-fallback small { font-size: 11px; color: #8a7c6b; }
body[data-site-page="my-orders"] .order-kind { display: block; margin-bottom: 5px; font-size: 12px; color: #8c8174; }
body[data-site-page="my-orders"] .order-copy h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.35; font-weight: 600; }
body[data-site-page="my-orders"] .order-spec { font-size: 14px; color: #777168; line-height: 1.7; }
.order-info { min-width: 0; font-size: 12px; line-height: 1.7; color: #8b8277; }
.order-created { display: block; margin-bottom: 10px; font-size: 13px; color: #746c62; }
.order-number-label { display: block; font-size: 11px; color: #91897e; }
.order-info .order-number { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8b8277; font-variant-numeric: tabular-nums; }
.order-settlement { margin: 12px 0 0; font-size: 13px; color: #76634e; line-height: 1.6; }
.order-side { display: grid; justify-items: end; gap: 10px; min-width: 0; }
body[data-site-page="my-orders"] .order-status { padding: 4px 12px; font-size: 12px; line-height: 1.6; background: #fff2de; color: #90611f; }
body[data-site-page="my-orders"] .order-card[data-category="production"] .order-status { background: #eaf2fb; color: #47719b; }
body[data-site-page="my-orders"] .order-card[data-category="delivery"] .order-status { background: #f0eef8; color: #726091; }
body[data-site-page="my-orders"] .order-card[data-category="completed"] .order-status { background: #eaf5ee; color: #46775a; }
body[data-site-page="my-orders"] .order-card[data-category="closed"] .order-status { background: #f0eeeb; color: #81796f; }
body[data-site-page="my-orders"] .order-card[data-review="awaiting-customer"] .order-status { background: #fff1f0; color: #d92d36; font-weight: 700; }
body[data-site-page="my-orders"] .order-amount strong { font-size: 24px; line-height: 1.3; color: #382e25; }
body[data-site-page="my-orders"] .order-amount span { font-size: 12px; color: #8b8176; }
body[data-site-page="my-orders"] .order-actions { flex-direction: row; justify-content: flex-end; flex-wrap: wrap; gap: 8px; width: 100%; }
.order-actions .secondary { min-height: 44px; min-width: 136px; color: #655444; border-color: #ded6cc; font-size: 13px; }
.order-actions .primary { min-height: 44px; min-width: 136px; font-size: 13px; }
.order-footer { padding: 0 24px 18px; }
.order-footer:not(:empty) { padding-top: 14px; margin-inline: 24px; padding-inline: 0; border-top: 1px solid #f0ece6; }
.order-expiry { padding: 0; border: 0; border-radius: 0; background: transparent; }
.order-expiry p { color: #98613c; font-size: 13px; }
.order-expiry small { color: #8a8175; font-size: 12px; }
.package-usage { padding: 0; border: 0; border-radius: 0; background: transparent; }
.package-usage strong { font-size: 13px; }
.package-usage p, .order-tracking, .snapshot-unavailable { font-size: 13px; }
.order-feedback { padding-inline: 24px; font-size: 13px; }
.empty-orders { border-color: var(--line); box-shadow: 0 3px 14px #34291d04; }
.empty-orders p { font-size: 14px; }
.orders-pagination p, .orders-pagination button { font-size: 13px; }
.orders-toast { position: fixed; z-index: 30; right: 24px; bottom: 24px; width: min(370px, calc(100% - 32px)); padding: 16px 18px; border: 1px solid #e1d8cc; border-radius: 12px; background: #fff; box-shadow: 0 8px 32px #30251a18; }
.orders-toast p { margin: 0 0 10px; font-size: 13px; line-height: 1.7; color: #65594b; }
.orders-toast > div { display: flex; gap: 12px; }
.orders-toast button { min-height: 36px; padding: 6px 10px; border: 0; border-radius: 6px; background: #f5eee5; color: #85552e; font-size: 13px; }
@media (max-width: 1100px) {
  .orders-overview { flex-direction: column; align-items: stretch; gap: 16px; }
  .overview-stats { flex-basis: auto; justify-content: flex-start; }
  body[data-site-page="my-orders"] .order-main { grid-template-columns: minmax(0, 48fr) minmax(0, 22fr) minmax(0, 30fr); gap: 20px; }
  body[data-site-page="my-orders"] .order-lookup { width: 100%; }
}
@media (max-width: 900px) {
  body[data-site-page="my-orders"] .order-main { grid-template-columns: minmax(0, 1fr) minmax(160px, .6fr); }
  .order-product { grid-column: 1 / -1; }
  .order-side { grid-column: 2; }
  .order-info { grid-column: 1; }
  body[data-site-page="my-orders"] .order-amount { text-align: right; }
  body[data-site-page="my-orders"] .order-actions .primary, body[data-site-page="my-orders"] .order-actions .secondary { width: auto; }
}
@media (max-width: 620px) {
  body[data-site-page="my-orders"] > main { padding-top: 24px; }
  body[data-site-page="my-orders"] .page-heading { align-items: flex-start; gap: 12px; }
  body[data-site-page="my-orders"] .page-heading h1 { font-size: 26px; }
  body[data-site-page="my-orders"] .page-heading p { font-size: 14px; }
  .page-heading .secondary { padding-inline: 12px; font-size: 12px; }
  .orders-overview { padding: 20px 18px; }
  .overview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .overview-stats button { min-width: 0; text-align: left; padding: 8px; }
  .overview-stats strong { font-size: 22px; }
  body[data-site-page="my-orders"] .order-types { width: 100%; }
  body[data-site-page="my-orders"] .order-types > button { flex: 1; padding-inline: 12px; }
  .type-title { font-size: 14px; justify-content: center; }
  body[data-site-page="my-orders"] .order-categories { gap: 2px 6px; }
  body[data-site-page="my-orders"] .order-categories button { font-size: 13px; padding-inline: 8px; }
  body[data-site-page="my-orders"] .order-main { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; gap: 16px; }
  .order-product { gap: 14px; }
  .order-cover { width: 76px; height: 90px; padding: 8px; }
  body[data-site-page="my-orders"] .order-copy h2 { font-size: 18px; }
  body[data-site-page="my-orders"] .order-spec { font-size: 13px; }
  .order-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding-top: 12px; border-top: 1px solid #f0ece6; }
  .order-created { margin-bottom: 4px; }
  .order-settlement { margin-top: 6px; }
  .order-side { grid-column: 1; grid-template-columns: auto minmax(0, 1fr); align-items: start; justify-items: start; gap: 12px; }
  .order-amount { justify-self: end; }
  body[data-site-page="my-orders"] .order-amount strong { font-size: 22px; }
  .order-actions { grid-column: 1 / -1; }
  body[data-site-page="my-orders"] .order-actions { justify-content: stretch; }
  body[data-site-page="my-orders"] .order-actions .primary, body[data-site-page="my-orders"] .order-actions .secondary { flex: 1; min-width: 110px; }
  .order-footer:not(:empty) { margin-inline: 18px; }
  .order-feedback { padding-inline: 18px; }
  .orders-toast { right: 16px; bottom: 16px; }
}

/* Customer review is an actionable category with its own deadline. */
.overview-stats { flex-basis: 65%; }
.overview-stats button[data-overview-category="review"][data-attention="true"] { background:#fff2e2; box-shadow:inset 0 0 0 1px #ebbd8e; color:#97481d; }
.overview-stats button[data-overview-category="review"][data-attention="true"] > span::before { content:"● "; font-size:10px; }
.overview-stats small { font-size:11px; line-height:1.6; overflow-wrap:anywhere; }
.order-review-deadline-notice { width:100%; padding:15px 18px; border:1px solid #ecc49d; border-radius:10px; background:#fff8ed; color:#874522; }
.order-review-deadline-notice strong { font-size:14px; }
.order-review-deadline-notice p { margin:6px 0; }
.order-review-deadline-notice .review-countdown { font-size:19px; font-weight:650; font-variant-numeric:tabular-nums; }
.order-review-deadline-notice small { display:block; font-size:12px; line-height:1.8; }
.order-review-deadline-notice[data-urgent="true"] { background:#fff1ef; border-color:#e7a89b; color:#a83327; }
@media (max-width:1000px) { .overview-stats { flex-basis:auto; } }
.overview-stats button { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; }
.overview-stats button > span { white-space:nowrap; }
@media (max-width:600px) {
  .overview-stats button { align-items:flex-start; }
  .overview-stats button > span { font-size:12px; }
}
