/* Order confirmation and tracking; intentionally scoped to avoid changing the storefront shell. */
.order-details-card { margin: 22px 0; padding: clamp(16px, 2.4vw, 28px); border: 1px solid rgba(126,151,183,.25); border-radius: 20px; background: rgba(255,255,255,.76); color: #14223a; text-align: left; }
.order-details-statuses { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.order-detail-status { min-width: 0; padding: 12px; border: 1px solid rgba(126,151,183,.20); border-radius: 13px; background: rgba(237,244,252,.7); }
.order-detail-status > span { display: block; margin-bottom: 7px; color: #62728a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; }
.order-detail-status > strong { display: block; overflow-wrap: anywhere; color: #14223a; font-size: 13px; }
.order-number-value { color: #075ed7 !important; font-size: 15px !important; letter-spacing: .02em; }
.order-status-pill { display: inline-flex !important; width: fit-content; padding: 5px 8px; border-radius: 999px; background: #e2e8f0; font-size: 11px !important; }
.order-status-pill.status-confirmed, .order-status-pill.status-paid, .order-status-pill.status-delivered { color: #11643b; background: #dff7e9; }
.order-status-pill.status-shipped, .order-status-pill.status-processing, .order-status-pill.status-authorized { color: #154d93; background: #e0efff; }
.order-status-pill.status-cancelled, .order-status-pill.status-failed, .order-status-pill.status-refunded { color: #8e2626; background: #fde8e8; }
.order-test-notice, .order-review-notice { margin: 14px 0 0; padding: 11px 13px; border-radius: 11px; font-size: 13px; }
.order-test-notice { color: #65480a; background: #fff4cf; }
.order-review-notice { color: #8d2525; background: #ffe8e8; }
.order-details-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.order-detail-section { min-width: 0; padding: 16px; border: 1px solid rgba(126,151,183,.2); border-radius: 14px; background: rgba(255,255,255,.68); }
.order-detail-section h3, .order-delivery-estimate h3 { margin: 0 0 12px; color: #14223a; font-size: 15px; }
.order-detail-section dl { display: grid; gap: 10px; margin: 0; }
.order-detail-section dl > div { min-width: 0; }
.order-detail-section dt { color: #687990; font-size: 11px; font-weight: 700; }
.order-detail-section dd { margin: 2px 0 0; overflow-wrap: anywhere; color: #17263f; font-size: 13px; }
.order-detail-section address { display: grid; gap: 3px; color: #17263f; font-size: 13px; font-style: normal; }
.order-detail-products { margin-top: 14px; }
.order-detail-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(126,151,183,.19); }
.order-detail-item-copy, .order-detail-item-prices { display: grid; gap: 5px; min-width: 0; }
.order-detail-item-copy strong, .order-detail-item-prices strong { color: #17263f; font-size: 13px; overflow-wrap: anywhere; }
.order-detail-item-copy small, .order-detail-item-prices small { color: #687990; font-size: 11px; }
.order-detail-item-prices { text-align: right; white-space: nowrap; }
.order-detail-totals { display: grid; gap: 8px; margin-top: 14px; padding: 16px; border-radius: 14px; background: #edf4fc; }
.order-detail-totals > div { display: flex; justify-content: space-between; gap: 12px; color: #52627a; font-size: 13px; }
.order-detail-totals strong { color: #17263f; }
.order-detail-totals .order-detail-grand-total { padding-top: 10px; border-top: 1px solid rgba(126,151,183,.3); color: #14223a; font-size: 15px; font-weight: 800; }
.order-delivery-estimate { margin-top: 14px; padding: 16px; border: 1px solid rgba(8,116,255,.2); border-radius: 14px; background: rgba(8,116,255,.06); }
.order-delivery-estimate p { margin: 0; color: #415674; font-size: 13px; line-height: 1.6; }
.order-detail-help { margin: 13px 0 0; color: #687990; font-size: 12px; line-height: 1.6; }
.order-success-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.order-success-actions .button { text-decoration: none; }
body.legal-page--tracking .order-tracking-layout { width: min(980px, calc(100% - 36px)); margin: 28px auto 60px; }
body.legal-page--tracking .order-tracking-card { padding: clamp(20px, 3vw, 34px); border: 1px solid rgba(136,159,188,.22); border-radius: 20px; background: rgba(255,255,255,.82); box-shadow: 0 15px 45px rgba(8,29,62,.07); }
body.legal-page--tracking .order-tracking-card h2 { margin: 0 0 8px; color: #14223a; font-size: clamp(21px,2vw,28px); }
body.legal-page--tracking .order-tracking-card > p { color: #5e6f86; line-height: 1.65; }
.order-tracking-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.order-tracking-form label { display: grid; gap: 7px; color: #253650; font-size: 13px; font-weight: 700; }
.order-tracking-form input { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #cbd7e6; border-radius: 11px; color: #17263f; background: #fff; font: inherit; }
.order-tracking-form input:focus { outline: 3px solid rgba(8,116,255,.14); border-color: #0874ff; }
.order-tracking-form button { grid-column: 1 / -1; justify-self: start; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(135deg,#0878f9,#0759d7); font-weight: 800; cursor: pointer; }
.order-tracking-message { margin: 14px 0 0; color: #52627a; font-size: 13px; }
.order-tracking-message[data-state="error"] { color: #a52b2b; }
.order-tracking-result { margin-top: 22px; }
html[data-theme="dark"] .order-details-card, html[data-theme="dark"] body.legal-page--tracking .order-tracking-card { color: #e5edf9; background: rgba(10,24,42,.91); border-color: rgba(162,189,220,.16); }
html[data-theme="dark"] .order-detail-status, html[data-theme="dark"] .order-detail-section { background: rgba(255,255,255,.035); border-color: rgba(162,189,220,.15); }
html[data-theme="dark"] .order-detail-status > strong, html[data-theme="dark"] .order-detail-section h3, html[data-theme="dark"] .order-detail-section dd, html[data-theme="dark"] .order-detail-section address, html[data-theme="dark"] .order-detail-item-copy strong, html[data-theme="dark"] .order-detail-item-prices strong, html[data-theme="dark"] .order-detail-totals strong, html[data-theme="dark"] body.legal-page--tracking .order-tracking-card h2 { color: #e7effb; }
html[data-theme="dark"] .order-detail-status > span, html[data-theme="dark"] .order-detail-section dt, html[data-theme="dark"] .order-detail-item-copy small, html[data-theme="dark"] .order-detail-item-prices small, html[data-theme="dark"] .order-detail-help, html[data-theme="dark"] body.legal-page--tracking .order-tracking-card > p { color: #aabbd2; }
html[data-theme="dark"] .order-detail-totals { background: rgba(255,255,255,.045); }
html[data-theme="dark"] .order-delivery-estimate { background: rgba(8,116,255,.09); border-color: rgba(78,153,255,.22); }
html[data-theme="dark"] .order-delivery-estimate p { color: #c3d3e8; }
html[data-theme="dark"] .order-tracking-form label { color: #d6e3f6; }
html[data-theme="dark"] .order-tracking-form input { border-color: #344a67; color: #edf4ff; background: #0f1b2b; }
@media (max-width: 720px) {
  .order-details-statuses { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .order-details-columns { grid-template-columns: 1fr; }
  .order-detail-item { gap: 10px; }
  body.legal-page--tracking .order-tracking-layout { width: min(calc(100% - 24px), 980px); margin-top: 18px; }
  body.legal-page--tracking .order-tracking-card { border-radius: 15px; }
  .order-tracking-form { grid-template-columns: 1fr; }
  .order-tracking-form button { grid-column: 1; width: 100%; }
}
