.orders-shell { max-width: 900px; }
.orders-shell .panel { padding: 26px; }
.orders-shell .panel h2 { font-size: 1.14rem; margin-bottom: 18px; }
.orders-list { display: grid; gap: 14px; }
.order-card { border: 1px solid var(--line); border-radius: 13px; padding: 18px; background: #fff; }
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.order-reference { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1rem; font-weight: 800; overflow-wrap: anywhere; }
.order-date { display: block; margin-top: 4px; color: var(--muted); font-size: .79rem; }
.order-state { display: inline-block; border-radius: 999px; padding: 5px 10px; background: #eaf0eb; color: #315044; font-size: .77rem; font-weight: 800; text-align: center; }
.order-state.cancelled { background: #fff0eb; color: #862a1b; }
.order-detail { margin: 14px 0; color: var(--muted); font-size: .88rem; }
.order-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.order-actions button, .order-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: .83rem; font-weight: 750; text-decoration: none; text-align: center; }
.order-actions button, .order-actions a { min-height: 44px; }
.order-actions button:hover:not(:disabled), .order-actions a:hover { border-color: var(--orange); color: var(--orange-dark); }
.order-actions .order-help { color: #06633d; border-color: #a9cdbb; }
.order-actions .order-remove { color: #862a1b; }
.order-actions button:disabled { opacity: .55; cursor: wait; }
.order-actions button:focus-visible, .order-actions a:focus-visible, .order-products summary:focus-visible { outline: 3px solid rgb(243 109 11 / 24%); outline-offset: 2px; }
.order-summary { border-block: 1px solid var(--line); margin: 16px 0; padding: 14px 0; }
.order-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.order-total span { font-size: .88rem; font-weight: 750; }
.order-total strong { font-size: 1.45rem; white-space: nowrap; }
.order-facts { display: grid; grid-template-columns: 130px 1fr; gap: 7px 14px; margin: 12px 0 0; font-size: .85rem; }
.order-facts dt { color: var(--muted); }
.order-facts dd { margin: 0; font-weight: 650; }
.order-products { margin-top: 14px; }
.order-products summary { cursor: pointer; font-size: .88rem; font-weight: 750; padding: 8px 0; }
.order-products ul { padding: 0; margin: 8px 0; list-style: none; }
.order-product { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.order-product strong { display: block; overflow-wrap: anywhere; }
.order-product small { display: block; color: var(--muted); margin-top: 4px; }
.order-product > span { font-weight: 750; white-space: nowrap; }
.order-shipping, .order-legacy { color: var(--muted); font-size: .82rem; margin: 10px 0 0; }
.order-next-step { background: #f3f7f3; border-radius: 9px; padding: 12px 14px; font-size: .86rem; line-height: 1.55; color: #315044; }
.order-summary[hidden], .order-next-step[hidden] { display: none; }
.orders-empty { padding: 12px 0 4px; }
.orders-shell .orders-empty h2 { margin-bottom: 9px; }
.orders-empty p { max-width: 720px; line-height: 1.6; }
.orders-empty p, .orders-note { color: var(--muted); font-size: .87rem; }
.orders-empty .primary-button, .orders-empty .secondary-button { margin: 6px 6px 0 0; text-decoration: none; }
.orders-undo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 13px 16px; margin: -8px 0 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .85rem; }
.orders-undo span { flex: 1 1 250px; }
.order-remove-note { margin: 10px 0 0; color: var(--muted); font-size: .77rem; }
.orders-note { margin: 19px 0 0; }
@media (max-width: 560px) {
  .orders-shell .panel { padding: 18px; }
  .order-card-head { display: block; }
  .order-state { margin-top: 10px; }
  .order-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .order-actions .order-remove { grid-row: 3; grid-column: 1 / -1; border: 0; padding-bottom: 0; font-size: .77rem; }
  .order-actions .order-help { grid-column: 1 / -1; }
  .orders-empty .primary-button, .orders-empty .secondary-button { width: 100%; margin-right: 0; }
  .order-facts { grid-template-columns: 1fr; gap: 3px; }
  .order-facts dd + dt { margin-top: 6px; }
}
