/* Scoped customer history, not the Admin order UI. */
.orders-main { align-items: start; padding: 44px 0 64px; }
.orders-layout { width: min(1100px, calc(100% - 40px)); margin: auto; min-width: 0; }
.orders-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-bottom: 32px; font-size: 14px; }
.orders-nav a, .orders-nav button { min-height: 44px; display: inline-flex; align-items: center; }
.orders-nav button { margin-left: auto; color: var(--text-secondary); }
.orders-nav [aria-current] { color: var(--primary-color); }
.orders-nav :focus-visible, .orders-filter select:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 4px; }
.orders-heading { margin-bottom: 28px; }
.orders-heading h1, .orders-detail-heading h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; letter-spacing: -1px; margin: 10px 0; }
.orders-muted, .orders-date, .orders-method, .orders-values dt { color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.orders-toolbar { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.orders-filter { display: grid; gap: 8px; max-width: 100%; font-size: 13px; }
.orders-filter select { min-height: 44px; max-width: 100%; padding: 0 34px 0 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: #0a0a0a; color: #f4f4f4; font: inherit; }
.orders-toolbar .account-secondary-button, .orders-pagination .account-secondary-button, .orders-nav button { min-height: 44px; font-size: 13px; }
.orders-list { display: grid; gap: 18px; }
.orders-list-card, .orders-section { min-width: 0; padding: 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(10,10,10,.9); }
.orders-card-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; }
.orders-card-heading h2 { font-size: 20px; }
.orders-statuses { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.orders-badge { display: inline-flex; padding: 6px 10px; border-radius: 8px; color: #c9d0d6; background: rgba(255,255,255,.06); font-size: 12px; line-height: 1.4; }
.orders-badge.is-confirmed { color: #9ce6bd; background: rgba(65,196,126,.09); }
.orders-badge.is-cancelled { color: #ffb1b4; background: rgba(229,95,100,.08); }
.orders-preview { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 18px 0; list-style: none; }
.orders-preview li { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 14px; }
.orders-preview .orders-image { width: 44px; height: 54px; flex-basis: 44px; }
.orders-image { width: 72px; height: 90px; flex: 0 0 72px; display: grid; place-items: center; background: #12171b; border-radius: 10px; color: #7e8790; overflow: hidden; }
.orders-image img, .orders-image svg { grid-area: 1 / 1; }
.orders-image img { width: 100%; height: 100%; object-fit: cover; }
.orders-image svg { width: 26px; height: 26px; }
.orders-card-footer { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); }
.orders-amount { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.orders-amount strong { font-size: 22px; }
.orders-card-footer .account-secondary-button { min-height: 44px; font-size: 13px; }
.orders-pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 28px; }
.orders-pagination button:disabled { cursor: not-allowed; }
.orders-empty { text-align: center; padding: 56px 20px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; }
.orders-empty h2 { font-size: 24px; }
.orders-empty p { max-width: 480px; margin: 16px auto 24px; color: var(--text-secondary); line-height: 1.7; }
.orders-detail-heading { margin: 0 0 28px; }
.orders-detail-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 24px; align-items: start; }
.orders-detail-main, .orders-detail-aside { min-width: 0; display: grid; gap: 24px; }
.orders-section h2 { font-size: 19px; line-height: 1.4; margin-bottom: 20px; }
.orders-items { display: grid; gap: 22px; list-style: none; }
.orders-item { display: flex; align-items: start; gap: 16px; min-width: 0; }
.orders-item-info { min-width: 0; overflow-wrap: anywhere; }
.orders-item h3 { font-size: 15px; line-height: 1.5; margin-bottom: 5px; }
.orders-item-subtotal { display: block; margin-top: 8px; font-size: 15px; }
.orders-values { display: grid; gap: 16px; }
.orders-value-row { display: grid; gap: 4px; }
.orders-value-row dd { font-size: 14px; line-height: 1.65; white-space: pre-line; }
.orders-totals .orders-value-row { grid-template-columns: minmax(0,1fr) minmax(0,auto); gap: 16px; }
.orders-totals dd { text-align: right; }
.orders-total { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; }
.orders-total dt, .orders-total dd { font-size: 18px; color: #f4f4f4; font-weight: 800; }
.orders-note { margin-top: 20px; padding: 14px; border-radius: 10px; color: #c2ddec; background: rgba(0,168,255,.07); font-size: 13px; line-height: 1.7; }
.orders-timeline { display: grid; gap: 22px; list-style: none; padding-left: 20px; border-left: 1px solid rgba(0,168,255,.25); }
.orders-timeline li { position: relative; }
.orders-timeline li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary-color); }
.orders-timeline p { font-size: 14px; line-height: 1.5; margin-bottom: 4px; }
.orders-section > .account-secondary-button { margin-top: 20px; width: 100%; min-height: 48px; font-size: 13px; padding: 12px; }
.orders-feedback { display: grid; gap: 18px; padding: 24px; }
.orders-feedback button { justify-self: start; }
.orders-layout h1, .orders-layout h2, .orders-layout h3, .orders-layout dd, .orders-preview span { overflow-wrap: anywhere; }
@media (max-width: 767px) {
    .orders-main { padding: 28px 0 42px; }
    .orders-layout { width: calc(100% - 30px); }
    .orders-nav { gap: 8px 18px; margin-bottom: 24px; }
    .orders-nav button { margin-left: 0; }
    .orders-list-card, .orders-section { padding: 20px 18px; }
    .orders-card-heading { display: grid; }
    .orders-preview { display: grid; gap: 12px; }
    .orders-detail-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .orders-detail-main, .orders-detail-aside { gap: 18px; }
    .orders-pagination { gap: 10px; flex-wrap: wrap; }
    .orders-pagination .account-secondary-button { padding: 0 14px; }
    .orders-item { gap: 12px; }
    .orders-image { width: 60px; height: 78px; flex-basis: 60px; }
    .orders-totals .orders-value-row { grid-template-columns: minmax(0,1fr) minmax(0,auto); }
}
