/* My Orders follows the Flutter orders overview and receipt screens. */
#sectionOrders { --orders-surface: #fcf8ff; --orders-outline: #d1c8d8; --orders-muted: #625c69; padding: 24px; }
#sectionOrders .profile-orders-list { padding: 0; }
#sectionOrders .profile-section-header { flex-direction: row; align-items: center; text-align: left; margin-bottom: 24px; padding: 0; border: 0; }
#sectionOrders .profile-section-header h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.7px; margin: 0; }
.orders-subtitle { color: #625c69; margin: 6px 0 0; font-size: 16px; }
.orders-refresh { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border: 0; border-radius: 50%; background: #e9ddff; color: #513b80; font: inherit; cursor: pointer; }
.orders-refresh:disabled { opacity: .5; cursor: wait; }
.orders-refresh .ud-ui-icon { width: 24px; height: 24px; }
.orders-refresh[aria-busy="true"] .ud-ui-icon { animation: orders-refresh-spin .8s linear infinite; transform-origin: center; }
@keyframes orders-refresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orders-refresh[aria-busy="true"] .ud-ui-icon { animation: none; } }
.orders-overview { background: var(--ud-primary); color: #fff; border-radius: 26px; padding: 28px; margin-bottom: 24px; }
.orders-hero-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.orders-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1px; margin: 0 0 18px; }
.orders-overview h3 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; letter-spacing: -1px; margin: 0; color: inherit; }
.orders-hero-icon { flex-shrink: 0; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #ffffff66; background: #ffffff1a; border-radius: 18px; transform: rotate(-9deg); }
.orders-hero-icon svg { width: 42px; height: 42px; }
.orders-hero-summary { margin: 20px 0 24px; font-size: 16px; }
.orders-statistics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #ffffff14; border-radius: 22px; padding: 20px 8px; gap: 8px; }
.orders-statistics > div { display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.orders-statistics strong { font-size: 28px; line-height: 1.1; }
.orders-stat-icon { display: grid; place-items: center; width: 42px; height: 42px; background: #ffffff1c; border-radius: 14px; }
#sectionOrders .status-filter-chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 10px; padding: 2px 0 12px; margin: 0 0 16px; }
#sectionOrders .status-chip { flex-shrink: 0; font: inherit; font-size: 13px; font-weight: 600; border: 1px solid currentColor; border-radius: 30px; padding: 10px 16px; min-height: 42px; }
#sectionOrders .status-chip.active { outline: 2px solid currentColor; outline-offset: -2px; }
#sectionOrders .status-all { background: #f0edf2; color: #29262d; }
#sectionOrders .status-in-progress, #orderDetailsModal .status-in-progress { color: #0068a8; background: #e5eff9; }
#sectionOrders .status-completed, #orderDetailsModal .status-completed { color: #087526; background: #e4f0e6; }
.orders-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 16px; color: #625c69; }
.orders-list-heading h3 { margin: 0; font-size: 18px; color: #242127; }
#sectionOrders .master-order-card { background: var(--orders-surface); border: 1px solid var(--orders-outline); border-radius: 24px; padding: 22px; margin-bottom: 20px; box-shadow: none; cursor: default; overflow: hidden; }
#sectionOrders .master-order-card:hover { transform: none; box-shadow: none; }
#sectionOrders .order-card-header { align-items: flex-start; gap: 12px; margin-bottom: 22px; }
#sectionOrders .order-id { font-size: 20px; margin: 0 0 5px; }
#sectionOrders .order-meta { font-size: 13px; color: var(--orders-muted); }
#sectionOrders .status-pill, #orderDetailsModal .status-pill { border: 1px solid currentColor; border-radius: 20px; padding: 6px 12px; font-size: 12px; white-space: normal; line-height: 1.4; text-align: center; }
.orders-shop + .orders-shop { border-top: 1px dashed #d1c8d8; padding-top: 20px; margin-top: 20px; }
.orders-shop-heading { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; }
.orders-shop-heading > strong, .orders-shop-heading > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.orders-shop-heading h3 { font-size: 18px; margin: 0 0 4px; }
.orders-shop-heading > strong { font-size: 18px; }
.orders-shop-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; background: #e9ddff; color: #513b80; border-radius: 16px; }
.orders-shop-arrow { font-size: 25px; color: #625c69; }
.orders-item-summary { font-size: 14px; line-height: 1.65; color: #625c69; overflow-wrap: anywhere; margin: 8px 0 14px; }
#sectionOrders .order-timeline, #orderDetailsModal .order-timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #f6f0fa; padding: 18px 10px; border-radius: 18px; margin: 16px 0; align-items: flex-start; gap: 0; }
#sectionOrders .order-timeline > .status-pill, #orderDetailsModal .order-timeline > .status-pill { grid-column: 1 / -1; }
#sectionOrders .timeline-step, #orderDetailsModal .timeline-step { flex: 1; min-width: 0; position: relative; }
#sectionOrders .timeline-dot, #orderDetailsModal .timeline-dot { width: 22px; height: 22px; border: 2px solid #cec6d5; background: #fcf8ff; margin: 0 auto 8px; }
#sectionOrders .timeline-dot.filled, #orderDetailsModal .timeline-dot.filled { background: var(--ud-primary); border-color: var(--ud-primary); }
#sectionOrders .timeline-dot svg, #orderDetailsModal .timeline-dot svg { display: none; }
#sectionOrders .timeline-label, #orderDetailsModal .timeline-label { font-size: 10px; line-height: 1.4; white-space: normal; color: #625c69; }
#sectionOrders .timeline-step.filled .timeline-label, #orderDetailsModal .timeline-step.filled .timeline-label { color: var(--ud-primary); }
#sectionOrders .timeline-line, #orderDetailsModal .timeline-line { display: none; }
#sectionOrders .timeline-step:not(:first-child)::before, #orderDetailsModal .timeline-step:not(:first-child)::before { content: ''; position: absolute; height: 2px; background: #cec6d5; top: 10px; left: calc(-50% + 11px); width: calc(100% - 22px); }
#sectionOrders .timeline-step.filled::before, #orderDetailsModal .timeline-step.filled::before { background: var(--ud-primary); }
.orders-card-footer { border-top: 1px dashed #d1c8d8; margin-top: 24px; padding-top: 22px; }
.orders-total { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 20px; }
.orders-total > div { text-align: right; }
.orders-savings { display: block; color: var(--ud-primary); font-size: 14px; margin-top: 6px; }
.orders-details-button { display: block; box-sizing: border-box; width: 100%; border: 0; border-radius: 16px; padding: 14px 18px; margin: 18px 0 10px; background: var(--ud-primary); color: #fff; font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.orders-details-button:hover { filter: brightness(.94); }
.orders-details-button:focus-visible, .orders-refresh:focus-visible, #sectionOrders button:focus-visible { outline: 3px solid #a580e7; outline-offset: 3px; }
.orders-payment { display: flex; align-items: center; gap: 10px; color: #625c69; font-size: 13px; margin: 12px 0; }
.orders-payment svg { flex-shrink: 0; width: 20px; height: 20px; }
#sectionOrders .order-platform-badge { margin: 0; font-size: 11px; }
#sectionOrders .orders-cancel { display: block; width: auto; height: auto; border-radius: 8px; padding: 8px 0; margin-top: 10px; font: inherit; font-size: 13px; color: #b3261e; background: transparent; }
#orderDetailsModal .order-details-content { width: min(680px, 94vw); max-width: 680px; border-radius: 24px; background: #fff; }
#orderDetailsModal .order-details-header h3 { font-size: 24px; }
#orderDetailsModal .order-details-body { padding: 24px; }
.orders-detail-date { color: #625c69; margin: 0 0 20px; }
.orders-detail-status, .orders-information, .orders-menu-group { border: 1px solid #d1c8d8; background: #fcf8ff; border-radius: 24px; padding: 22px; margin-bottom: 18px; }
.orders-detail-status { background: #f6f0fa; }
.orders-detail-status h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.4; margin: 24px 0; }
.orders-information h3 { font-size: 19px; margin: 0 0 20px; }
.orders-information-row { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.orders-information-row > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.orders-information-row > div > span { font-size: 13px; color: #625c69; }
.orders-information-row strong { font-size: 16px; }
.orders-coupon { display: inline-block; padding: 9px 14px; border-radius: 20px; color: #513b80; background: #e9ddff; font-size: 13px; font-weight: 600; }
.orders-menu-item { padding: 20px 0 0; margin-top: 20px; border-top: 1px dashed #d1c8d8; }
.orders-menu-item h4 { font-size: 18px; margin: 0 0 12px; }
.orders-menu-item p { color: #625c69; font-size: 13px; }
.orders-summary-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 12px 0; color: #625c69; }
.orders-summary-row strong { color: #242127; }
.orders-summary-row > div { text-align: right; }
.orders-summary-row del { display: block; font-size: 13px; }
.orders-item-total { font-size: 18px; padding-top: 10px; }
.orders-information .orders-total { border-top: 1px dashed #d1c8d8; padding-top: 18px; margin-top: 18px; }
@media (max-width: 600px) {
    #sectionOrders { padding: 16px; }
    #sectionOrders .master-order-card { padding: 16px; border-radius: 20px; }
    .orders-overview { padding: 22px 18px; }
    .orders-eyebrow { font-size: 10px; }
    .orders-hero-icon { width: 46px; height: 46px; border-radius: 14px; }
    .orders-hero-icon svg { width: 30px; height: 30px; }
    .orders-statistics > div { font-size: 12px; }
    #sectionOrders .order-card-header { flex-wrap: wrap; }
    #sectionOrders .order-id { font-size: 18px; }
    #orderDetailsModal .order-details-content { width: 100%; max-height: 100dvh; border-radius: 20px 20px 0 0; }
    #orderDetailsModal .order-details-body { padding: 16px; }
    .orders-detail-status, .orders-information, .orders-menu-group { padding: 18px 14px; }
    .orders-shop-heading > strong { font-size: 16px; }
}
