/* Customer order history, details and payment results; scoped to retail. */
.storefront .customer-orders-page { margin-bottom: 48px; color: #212529; }
.storefront .orders-page-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin: 24px 0 16px; }
.storefront .orders-page-heading .storefront-page-title { margin: 0; }
.storefront .orders-count, .storefront .order-card-date, .storefront .orders-notice { color: #756b71; font-size: .875rem; }
.storefront .orders-notice { margin-bottom: 20px; line-height: 1.6; }
.storefront .orders-notice i { margin-right: 4px; }
.storefront .order-panel { min-width: 0; padding: 24px; border: 1px solid var(--ff-border); border-radius: 14px; background: #fff; }
.storefront .customer-orders-page .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: normal; }
.storefront .orders-empty { max-width: 680px; margin: 24px auto; padding: 40px 24px; text-align: center; }
.storefront .orders-empty > i { display: block; margin-bottom: 16px; color: var(--ff-burgundy); font-size: 2rem; }
.storefront .orders-empty p { color: #756b71; }
.storefront .orders-list { display: grid; gap: 16px; }
.storefront .order-history-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.storefront .order-card-main { min-width: 0; }
.storefront .order-card-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.storefront .order-card-title { margin: 0; font-family: inherit; font-size: 1.05rem; font-weight: 600; line-height: 1.5; text-transform: none; }
.storefront .order-card-title a { color: var(--ff-plum); text-decoration: none; }
.storefront .order-card-title a:hover { color: var(--ff-burgundy); text-decoration: underline; }
.storefront .order-card-date { margin: 6px 0 12px; }
.storefront .order-card-items { max-width: 65ch; margin-bottom: 12px; overflow-wrap: anywhere; }
.storefront .order-card-delivery { display: flex; flex-wrap: wrap; gap: 4px 16px; color: #756b71; font-size: .875rem; }
.storefront .order-card-side { display: grid; justify-items: end; gap: 16px; }
.storefront .order-card-total { color: var(--ff-plum); font-size: 1.25rem; white-space: nowrap; }
.storefront .order-actions { display: flex; justify-content: flex-start; flex-wrap: wrap; align-items: center; gap: 10px; }
.storefront .order-actions-stack { flex-direction: column; align-items: stretch; }
.storefront .order-status { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 10px; border: 1px solid currentColor; border-radius: 20px; font-size: .8rem; line-height: 1.4; }
.storefront .order-status::before { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.storefront .order-status-attention { color: #80611d; background: #fbf8f0; }
.storefront .order-status-success { color: #35634d; background: #f3f8f5; }
.storefront .order-status-progress { color: var(--ff-burgundy); background: var(--ff-soft); }
.storefront .order-status-neutral { color: #756b71; background: #faf9f9; }
.storefront .orders-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; color: #756b71; }
.storefront .order-back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; text-decoration: none; }
.storefront .order-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 24px; align-items: start; }
.storefront .order-detail-main { display: grid; gap: 24px; min-width: 0; }
.storefront .order-products { margin: 0; padding: 0; list-style: none; }
.storefront .order-product { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--ff-border); }
.storefront .order-product:first-child { padding-top: 0; }
.storefront .order-product:last-child { padding-bottom: 0; border-bottom: 0; }
.storefront .order-product > div { min-width: 0; }
.storefront .order-product-name { color: #212529; font-weight: 500; overflow-wrap: anywhere; }
.storefront .order-product-unit { margin: 6px 0 0; color: #756b71; font-size: .875rem; }
.storefront .order-product > strong { color: var(--ff-plum); font-weight: 600; white-space: nowrap; }
.storefront .order-facts { margin: 0; }
.storefront .order-facts > div { display: grid; grid-template-columns: minmax(100px, 145px) minmax(0, 1fr); gap: 8px 20px; margin-bottom: 12px; }
.storefront .order-facts > div:last-child { margin-bottom: 0; }
.storefront .order-facts dt { color: #756b71; font-weight: 400; }
.storefront .order-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.storefront .order-money > div { display: flex; justify-content: space-between; gap: 16px; }
.storefront .order-money dd { text-align: right; white-space: nowrap; }
.storefront .order-money .order-total { margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--ff-border); font-size: 1.2rem; }
.storefront .order-total dt, .storefront .order-total dd { color: var(--ff-plum); font-weight: 600; }
.storefront .order-detail-main .orders-notice { margin: 16px 0 0; }
.storefront .order-note-title { margin: 20px 0 8px; color: #756b71; font-family: inherit; font-size: .875rem; font-weight: 500; text-transform: none; }
.storefront .order-note-text { margin-bottom: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.storefront .order-cancel-panel { max-width: 680px; margin: 0 auto; }
.storefront .order-cancel-panel .order-facts { margin: 24px 0; }
.storefront .order-result-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 0 20px; border-radius: 50%; color: var(--ff-burgundy); background: var(--ff-soft); font-size: 2rem; }
.storefront .order-result-success { color: #35634d; background: #f3f8f5; }
.storefront .order-result-warning { color: #80611d; background: #fbf8f0; }
.storefront .order-result-error { color: #a02e43; background: #fcf3f5; }
.storefront .payment-result-panel { max-width: 760px; margin: 32px auto; padding: 40px; text-align: center; }
.storefront .payment-result-panel .order-result-icon { margin-inline: auto; }
.storefront .payment-result-panel .storefront-page-title { margin: 12px 0 20px; }
.storefront .payment-order-number { margin: 0; color: #756b71; font-size: .9rem; }
.storefront .payment-result-amount { display: flex; flex-direction: column; gap: 4px; color: #756b71; }
.storefront .payment-result-amount strong { color: var(--ff-plum); font-size: 1.5rem; font-weight: 600; }
.storefront .payment-result-description { max-width: 55ch; margin: 20px auto 24px; line-height: 1.7; }
.storefront .payment-result-panel .order-actions { justify-content: center; }
@media (max-width: 991.98px) {
    .storefront .order-detail-layout { grid-template-columns: 1fr; }
    .storefront .order-history-card { grid-template-columns: 1fr; gap: 16px; }
    .storefront .order-card-side { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
}
@media (max-width: 575.98px) {
    .storefront .customer-orders-page { margin-bottom: 32px; }
    .storefront .order-panel { padding: 18px 16px; border-radius: 12px; }
    .storefront .orders-page-heading { gap: 8px 12px; }
    .storefront .order-card-delivery { flex-direction: column; }
    .storefront .order-card-side { align-items: stretch; flex-direction: column; }
    .storefront .order-actions .btn { flex: 1 1 130px; }
    .storefront .order-actions-stack .btn { flex-basis: auto; }
    .storefront .order-facts > div { grid-template-columns: 1fr; gap: 3px; }
    .storefront .order-money > div { gap: 12px; }
    .storefront .order-product { grid-template-columns: 1fr; gap: 6px; }
    .storefront .order-detail-main, .storefront .order-detail-layout { gap: 16px; }
    .storefront .payment-result-panel { margin: 24px auto; padding: 28px 16px; }
}
