.x-orders-page {
  --x-paper: #FFFDF8;
  --x-card: #FFFDF8;
  --x-ink: #22472C;
  --x-muted: #927d73;
  --x-line: #F3ECE0;
  --x-red: #22472C;
  --x-red-dark: #22472C;
  --x-gold: #2E5E3A;
  background: var(--x-paper);
  color: var(--x-ink);
}

.x-orders-page .x-page-main { padding-bottom: 96px; }
.x-orders-page .x-header-link { border: 0; background: transparent; color: var(--x-red); font-size: 12px; padding: 8px 0; }
.x-orders-page button, .x-orders-page input, .x-orders-page select, .x-orders-page textarea { font: inherit; }
.x-orders-page .x-card { border: 1px solid var(--x-line); background: var(--x-card); box-shadow: 0 8px 24px rgba(84, 48, 34, .045); }

.x-order-form, .x-orders-list, .x-order-detail, .x-review-page { padding: 10px 12px 26px; }
.x-order-product, .x-detail-product, .x-review-product { display: flex; align-items: center; gap: 12px; padding: 12px; }
.x-order-product img, .x-detail-product img, .x-review-product img { width: 78px; height: 72px; border-radius: 12px; object-fit: cover; background: #efe2d6; }
.x-order-product div, .x-detail-product div, .x-review-product div { min-width: 0; }
.x-order-product small, .x-detail-product small, .x-review-product small { color: var(--x-red); font-size: 10px; letter-spacing: .1em; }
.x-order-product h2, .x-detail-product h2, .x-review-product h2 { margin: 4px 0; font: 600 16px/1.35 "Songti SC", "STSong", serif; }
.x-order-product p, .x-detail-product p, .x-review-product p { margin: 0; color: var(--x-muted); font-size: 11px; }

.x-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.x-section-title h2 { margin: 0; font: 600 17px/1.3 "Songti SC", "STSong", serif; }
.x-section-title span { color: var(--x-muted); font-size: 10px; }
.x-order-form > .x-card, .x-review-page > .x-card, .x-order-detail > .x-card { margin-bottom: 10px; padding: 14px; border-radius: 16px; }
.x-order-form > .x-order-product, .x-review-page > .x-review-product, .x-order-detail > .x-detail-product { padding: 12px; }

.x-option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 12px; }
.x-option { min-height: 39px; border: 1px solid #e9dbd1; border-radius: 10px; background: #FFFDF8; color: #715d54; font-size: 12px; }
.x-option.active { border-color: var(--x-red); background: #f8ece8; color: var(--x-red); box-shadow: inset 0 0 0 1px rgba(159, 46, 41, .08); font-weight: 700; }
.x-field { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; min-height: 50px; border-top: 1px solid #F3ECE0; }
.x-field label { color: #22472C; font-size: 12px; }
.x-field label em { color: var(--x-red); font-style: normal; }
.x-field label span { color: var(--x-muted); font-size: 9px; }
.x-field input, .x-field select, .x-field textarea { width: 100%; border: 0; outline: 0; background: transparent; color: var(--x-ink); font-size: 13px; text-align: right; }
.x-field textarea { min-height: 70px; resize: vertical; padding: 12px 0; line-height: 1.55; text-align: left; }
.x-traveler-picks { margin: 0 0 8px; padding: 10px; border: 1px solid #efe1d7; border-radius: 12px; background: #FFFDF8; }
.x-traveler-picks > span { display: block; margin-bottom: 7px; color: #22472C; font-size: 11px; }
.x-traveler-picks > div { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; }
.x-traveler-picks button { flex: 0 0 auto; min-width: 86px; min-height: 42px; padding: 6px 10px; border: 1px solid #e4d3c7; border-radius: 10px; background: #FFFDF8; color: var(--x-ink); text-align: left; }
.x-traveler-picks button b, .x-traveler-picks button small { display: block; }
.x-traveler-picks button b { font-size: 11px; }
.x-traveler-picks button small { margin-top: 2px; color: var(--x-muted); font-size: 9px; }
.x-traveler-picks button.active { border-color: var(--x-red); background: #f8eae5; color: var(--x-red); }
.x-traveler-picks > small { display: block; margin-top: 6px; color: #aa968d; font-size: 8px; }
.x-order-quantity { border-top: 1px solid #F3ECE0; padding-top: 12px; margin-top: 2px; }
.x-order-quantity > div:first-child small { display: block; margin-top: 3px; color: var(--x-muted); font-size: 9px; }
.x-stepper { display: inline-flex; align-items: center; gap: 11px; }
.x-stepper button { width: 28px; height: 28px; border: 1px solid var(--x-line); border-radius: 50%; background: #FFFDF8; color: var(--x-red); }
.x-cost-card .x-row { min-height: 34px; border-bottom: 1px solid #f1e7e1; color: var(--x-muted); font-size: 12px; }
.x-cost-card .x-row b { color: var(--x-ink); }
.x-cost-card .x-cost-total { border-bottom: 0; padding-top: 6px; color: var(--x-ink); }
.x-cost-card .x-cost-total b { color: var(--x-red); font-size: 21px; }
.x-demo-note { margin: 10px 4px 14px; color: var(--x-muted); font-size: 9px; line-height: 1.6; }

.x-order-submit { position: fixed; z-index: 22; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 420px); min-height: 66px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; border-top: 1px solid #eadbd1; background: rgba(255, 253, 250, .96); box-shadow: 0 -8px 24px rgba(83, 45, 34, .06); backdrop-filter: blur(12px); }
.x-order-submit > div { min-width: 86px; }
.x-order-submit small { display: block; color: var(--x-muted); font-size: 9px; }
.x-order-submit b { color: var(--x-red); font-size: 20px; }
.x-order-submit .x-btn { flex: 1; min-height: 44px; }

.x-orders-list .x-tabs { position: sticky; top: 0; z-index: 4; display: flex; gap: 4px; margin: -10px -12px 10px; padding: 8px 10px; overflow-x: auto; background: rgba(248, 245, 242, .94); backdrop-filter: blur(10px); }
.x-orders-list .x-tabs button { flex: 1 0 auto; min-width: 56px; height: 34px; border: 0; border-radius: 17px; background: transparent; color: var(--x-muted); font-size: 11px; }
.x-orders-list .x-tabs button.active { background: #f1dfd8; color: var(--x-red); font-weight: 700; }
.x-order-card { margin-bottom: 10px; padding: 0; overflow: hidden; border-radius: 16px; }
.x-order-card-head { height: 37px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #F3ECE0; color: var(--x-muted); font-size: 10px; }
.x-demo-seed { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 10px; background: #f2e8d9; color: #2E5E3A; font-size: 8px; font-style: normal; font-weight: 500; letter-spacing: .04em; }
.x-status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 12px; font-size: 10px; }
.x-status.pending { background: #f9e9dc; color: #22472C; }
.x-status.upcoming { background: #eee8d9; color: #8B5A2B; }
.x-status.completed { background: #e7efe7; color: #536e55; }
.x-status.after-sale { background: #eee9e7; color: #7b6c65; }
.x-order-card-main { display: flex; gap: 11px; padding: 11px 12px; }
.x-order-card-main img { width: 72px; height: 68px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; background: #efe3d8; }
.x-order-card-main div { min-width: 0; }
.x-order-card-main h2 { margin: 2px 0 5px; font: 600 14px/1.35 "Songti SC", "STSong", serif; }
.x-order-card-main p, .x-order-card-main small { display: block; margin: 0; color: var(--x-muted); font-size: 10px; line-height: 1.55; }
.x-order-card-foot { min-height: 48px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #F3ECE0; font-size: 10px; }
.x-order-card-foot > div { display: flex; gap: 6px; }
.x-order-card-foot > span b { color: var(--x-red); font-size: 14px; }
.x-order-card-foot .x-btn-ghost { min-height: 30px; padding: 0 10px; font-size: 10px; }
.x-empty-card { margin-top: 28px; padding: 32px 20px; border-radius: 16px; text-align: center; }
.x-empty-card p { color: var(--x-muted); font-size: 11px; line-height: 1.7; }
.x-empty-card .x-btn { margin-top: 6px; }

.x-detail-hero { background: linear-gradient(135deg, #FFFDF8, #f5e4da); }
.x-detail-hero h2 { margin: 12px 0 5px; font: 600 19px/1.35 "Songti SC", "STSong", serif; }
.x-detail-hero p { margin: 0; color: var(--x-muted); font-size: 10px; line-height: 1.6; }
.x-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 0 !important; overflow: hidden; background: var(--x-line) !important; }
.x-detail-grid > div { min-height: 70px; padding: 13px; background: var(--x-card); }
.x-detail-grid small { display: block; margin-bottom: 6px; color: var(--x-muted); font-size: 9px; }
.x-detail-grid b { font-size: 12px; }
.x-detail-lines .x-row { min-height: 38px; border-top: 1px solid #F3ECE0; color: var(--x-muted); font-size: 11px; }
.x-detail-lines .x-row b { max-width: 65%; color: var(--x-ink); text-align: right; overflow-wrap: anywhere; }
.x-detail-actions { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 8px; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--x-paper) 18%); }
.x-detail-actions > button { flex: 1; }
.x-order-review p { margin-bottom: 0; font-size: 12px; line-height: 1.7; }
.x-review-stars { color: #2E5E3A; font-size: 19px; letter-spacing: .08em; }

.x-review-product { margin-bottom: 10px; }
.x-rating-picker { display: flex; justify-content: center; gap: 7px; padding: 10px 0 18px; }
.x-rating-picker button { border: 0; background: transparent; color: #d9cec8; font-size: 32px; line-height: 1; }
.x-rating-picker button.active { color: #2E5E3A; }
.x-review-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.x-review-tags button, .x-review-tags i { min-height: 28px; padding: 6px 10px; border: 1px solid var(--x-line); border-radius: 14px; background: #FFFDF8; color: var(--x-muted); font-size: 10px; font-style: normal; }
.x-review-tags button.active { border-color: #2E5E3A; background: #f7e9df; color: var(--x-red); }
.x-review-page .x-field { display: block; border-top: 1px solid #F3ECE0; padding-top: 12px; }
.x-review-page .x-field label { display: block; margin-bottom: 6px; }
.x-review-page .x-field textarea { min-height: 112px; padding: 11px; border: 1px solid var(--x-line); border-radius: 10px; background: #FFFDF8; }
.x-review-submit { width: 100%; margin-top: 12px; }
.x-review-done { text-align: center; }
.x-review-done > span { display: inline-block; margin-bottom: 10px; padding: 4px 9px; border-radius: 12px; background: #e7efe7; color: #536e55; font-size: 10px; }
.x-review-done .x-review-tags { justify-content: center; margin-top: 12px; }
.x-review-done p { color: #22472C; font-size: 12px; line-height: 1.75; text-align: left; }
.x-review-done .x-btn { margin-top: 10px; }
.x-review-picker { padding: 10px 12px 26px; }
.x-review-picker > .x-muted { margin: 2px 2px 12px; font-size: 10px; line-height: 1.65; }
.x-review-choice { width: 100%; margin-bottom: 9px; padding: 10px; display: flex; align-items: center; gap: 10px; border-radius: 14px; color: var(--x-ink); text-align: left; }
.x-review-choice img { width: 64px; height: 58px; flex: 0 0 auto; border-radius: 9px; object-fit: cover; background: #efe3d8; }
.x-review-choice span { min-width: 0; flex: 1; }
.x-review-choice span > * { display: block; }
.x-review-choice b { margin: 5px 0 3px; font: 600 13px/1.4 "Songti SC", "STSong", serif; }
.x-review-choice small { color: var(--x-muted); font-size: 9px; }
.x-review-choice em { flex: 0 0 auto; color: var(--x-red); font-size: 10px; font-style: normal; }

.x-local-modal { position: fixed; z-index: 999; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 18px; background: rgba(37, 25, 21, .42); }
.x-local-modal-card { width: min(100%, 388px); padding: 20px; border: 1px solid #ead6c8; border-radius: 20px; background: #FFFDF8; box-shadow: 0 22px 60px rgba(45, 25, 18, .22); }
.x-local-modal-card h2 { margin: 0 0 12px; font: 600 20px/1.3 "Songti SC", "STSong", serif; }
.x-local-modal-card p { color: var(--x-muted, #927d73); font-size: 12px; line-height: 1.7; }
.x-local-modal-actions { display: flex; gap: 8px; margin-top: 16px; }
.x-local-modal-actions button { flex: 1; }
.x-voucher { padding: 14px; border: 1px dashed #2E5E3A; border-radius: 14px; background: linear-gradient(135deg, #FFFDF8, #f5e4d8); text-align: center; }
.x-voucher small, .x-voucher span, .x-voucher em { display: block; }
.x-voucher small { color: #2E5E3A; font-size: 9px; letter-spacing: .14em; }
.x-voucher > b { display: block; margin: 12px 0 7px; color: #22472C; font-size: 24px; letter-spacing: .08em; }
.x-voucher p { margin: 4px 0; color: #22472C; font: 600 14px/1.45 "Songti SC", "STSong", serif; }
.x-voucher span { color: #2E5E3A; font-size: 11px; }
.x-voucher em { margin-top: 12px; color: #a28f86; font-size: 9px; font-style: normal; }

@media (max-width: 360px) {
  .x-option-grid { grid-template-columns: 1fr; }
  .x-order-card-foot { align-items: flex-end; flex-direction: column; }
  .x-order-card-foot > div { width: 100%; }
  .x-order-card-foot > div button { flex: 1; }
}
