/* 确认订单 / 支付 / 支付结果 / 订单列表 / 订单详情 */

/* 确认订单 */
.fulfill-tabs { display: flex; gap: 10px; padding: 12px; background: #fff; }
.fulfill-tabs .chip { flex: 1; height: 36px; justify-content: center; font-size: 14px; }
.fulfill-tabs .chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.day-toggle { display: flex; gap: 8px; padding: 0 12px 10px; }
.day-toggle .chip { height: 28px; font-size: 12px; padding: 0 12px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 12px 12px; }
.slot-grid .chip { height: 34px; justify-content: center; font-size: 13px; padding: 0; }
.store-card { display: flex; gap: 10px; padding: 12px; align-items: center; cursor: pointer; }
.store-card img { width: 72px; height: 54px; border-radius: 6px; object-fit: cover; flex: none; }
.store-card .bd { flex: 1; min-width: 0; }
.store-card h4 { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.store-card p { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.store-card > .ic { color: var(--text-3); width: 16px; height: 16px; }
.addr-card { display: flex; align-items: center; gap: 10px; padding: 14px 12px; cursor: pointer; }
.addr-card .ic { width: 22px; height: 22px; color: var(--primary); }
.addr-card .bd { flex: 1; min-width: 0; }
.addr-card .row { display: flex; gap: 10px; font-size: 15px; font-weight: 600; }
.addr-card p { font-size: 13px; color: var(--text-2); margin-top: 3px; line-height: 1.4; }
.addr-empty { display: flex; align-items: center; justify-content: center; gap: 6px; height: 64px; color: var(--primary); font-size: 14px; font-weight: 600; cursor: pointer; }
.goods { padding: 0 12px; }
.goods-item { display: flex; gap: 10px; padding: 10px 0; align-items: center; }
.goods-item + .goods-item { border-top: 1px solid var(--divider); }
.goods-item img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; flex: none; background: var(--bg); }
.goods-item .bd { flex: 1; min-width: 0; }
.goods-item .t { font-size: 14px; }
.goods-item .s { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.goods-item .r { text-align: right; font-size: 12px; color: var(--text-3); flex: none; }
.goods-item .r .price { font-size: 15px; display: flex; margin-bottom: 2px; }
.points-row .cell-value small { display: block; font-size: 11px; color: var(--text-3); }
.points-row .cell-value b { color: var(--accent); }
.remark-box { padding: 12px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.remark-box span { width: 64px; color: var(--text-2); flex: none; }
.remark-box input { flex: 1; border: 0; outline: none; font-size: 14px; background: none; }
.amount-rows { padding: 4px 12px 10px; }
.amount-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; color: var(--text-2); }
.amount-row b { color: var(--text); font-weight: 500; }
.amount-row b.off { color: var(--accent); }
.amount-row.total { font-size: 14px; color: var(--text); padding-top: 10px; border-top: 1px solid var(--divider); }
.amount-row.total .price { font-size: 18px; }
.checkout-foot .total { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.checkout-foot .total .row { display: flex; align-items: baseline; gap: 4px; font-size: 13px; }
.checkout-foot .total .price { font-size: 22px; }
.checkout-foot .total small { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.checkout-foot .btn { min-width: 130px; }

/* 优惠券选择弹层 */
.coupon-pick { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--divider); border-radius: var(--r-md); margin-bottom: 10px; align-items: center; cursor: pointer; }
.coupon-pick.on { border-color: var(--primary); background: var(--primary-light); }
.coupon-pick .amt { width: 84px; text-align: center; flex: none; }
.coupon-pick .amt .price { font-size: 22px; }
.coupon-pick .amt small { display: block; font-size: 10px; color: var(--text-3); }
.coupon-pick .bd { flex: 1; min-width: 0; }
.coupon-pick .bd b { font-size: 14px; }
.coupon-pick .bd p { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.coupon-pick.disabled { opacity: .5; }

/* 模拟微信支付 */
.pay-sheet { padding: 0 16px 20px; text-align: center; }
.pay-sheet .amt { margin: 8px 0 16px; }
.pay-sheet .amt .price { font-size: 40px; }
.pay-rows { text-align: left; background: var(--bg); border-radius: var(--r-md); padding: 4px 12px; margin-bottom: 14px; }
.pay-rows div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; }
.pay-rows div b { font-weight: 500; max-width: 220px; text-align: right; }
.pay-rows span { color: var(--text-3); flex: none; }
.pay-method {
  display: flex; align-items: center; gap: 10px; padding: 12px 4px;
  border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); margin-bottom: 16px; font-size: 15px; text-align: left;
}
.pay-method .wx { width: 24px; height: 24px; border-radius: 6px; background: #09BB07; color: #fff; display: flex; align-items: center; justify-content: center; }
.pay-method .wx .ic { width: 16px; height: 16px; }
.pay-method small { color: var(--text-3); font-size: 11px; }
.pay-method .radio { margin-left: auto; }

/* 支付结果 */
.pay-result-hd { background: linear-gradient(180deg, var(--primary), #1DB56F); color: #fff; padding: 20px 16px 44px; text-align: center; }
.pay-result-hd .ok { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.pay-result-hd .ok .ic { width: 32px; height: 32px; stroke-width: 2.6; }
.pay-result-hd h2 { font-size: 22px; }
.pay-result-hd p { font-size: 13px; opacity: .9; margin-top: 4px; }
.result-card { margin-top: -26px; padding: 14px 16px; }
.pickup-code { text-align: center; padding: 4px 0 10px; }
.pickup-code span { font-size: 12px; color: var(--text-3); }
.pickup-code b { display: flex; justify-content: center; gap: 10px; margin-top: 8px; font-size: 44px; font-weight: 800; line-height: 1; }
.pickup-code b i {
  font-style: normal; width: 54px; height: 64px; border-radius: var(--r-sm); background: var(--primary-light);
  color: var(--primary-dark); display: flex; align-items: center; justify-content: center;
}
.qr {
  display: grid; grid-template-columns: repeat(21, 1fr); grid-template-rows: repeat(21, 1fr); gap: 2px; width: 176px; height: 176px; margin: 8px auto 6px; padding: 8px;
  background: #fff; border: 1px solid var(--divider); border-radius: var(--r-sm); box-sizing: content-box;
}
.qr i { display: block; border-radius: 1px; }
.qr i.b { background: var(--text); }
.qr-hint { text-align: center; font-size: 11px; color: var(--text-3); padding-bottom: 6px; }
.result-rows { padding: 0 16px 12px; }
.result-rows div { display: flex; gap: 10px; font-size: 13px; padding: 6px 0; }
.result-rows span { color: var(--text-3); width: 64px; flex: none; }
.result-rows b { font-weight: 500; }
.steps { display: flex; padding: 16px 8px 10px; position: relative; }
.step { flex: 1; text-align: center; position: relative; font-size: 11px; color: var(--text-3); }
.step::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--divider); z-index: 0; }
.step:first-child::before { display: none; }
.step.done::before, .step.cur::before { background: var(--primary); }
.step i {
  width: 24px; height: 24px; border-radius: 50%; background: var(--divider); display: inline-flex;
  align-items: center; justify-content: center; position: relative; z-index: 1; color: #fff;
}
.step i .ic { width: 14px; height: 14px; }
.steps .step i { display: flex; margin: 0 auto 6px; }
.step.done i, .step.cur i { background: var(--primary); }
.step.cur i { box-shadow: 0 0 0 4px var(--primary-light); }
.step.done { color: var(--text-2); }
.step.cur { color: var(--primary); font-weight: 600; }
.step em { display: block; font-size: 10px; margin-top: 4px; font-style: normal; color: var(--text-3); }
.result-foot .btn { flex: 1; }

/* 订单列表 */
.order-card { padding: 0; }
.order-hd { display: flex; align-items: center; justify-content: space-between; padding: 12px; font-size: 13px; }
.order-hd b { font-size: 14px; display: flex; align-items: center; gap: 4px; }
.order-hd b .ic { width: 16px; height: 16px; color: var(--text-2); }
.order-hd .st { color: var(--primary); font-weight: 600; }
.st.warn { color: var(--warning); }
.st.muted { color: var(--text-3); }
.st.error { color: var(--error); }
.st.accent { color: var(--accent); }
.order-thumbs { display: flex; gap: 6px; padding: 0 12px 10px; overflow: hidden; }
.order-thumbs img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; flex: none; background: var(--bg); }
.order-thumbs .more { width: 64px; height: 64px; border-radius: 6px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-3); flex: none; text-align: center; }
.order-total { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 10px; font-size: 12px; color: var(--text-3); }
.order-total .price { font-size: 16px; }
.order-pickup { margin: 0 12px 10px; background: var(--primary-light); color: var(--primary-dark); border-radius: var(--r-sm); padding: 8px 10px; font-size: 12px; display: flex; justify-content: space-between; align-items: center; }
.order-pickup b { font-size: 15px; letter-spacing: 2px; }
.order-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--divider); flex-wrap: wrap; }
.order-actions .btn { min-width: 84px; }

/* 订单详情 */
.order-status { background: linear-gradient(135deg, var(--primary), #1DB56F); color: #fff; padding: 16px 16px 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-status h2 { font-size: 20px; }
.order-status p { font-size: 12px; opacity: .9; margin-top: 4px; }
.order-status .code { font-size: 28px; font-weight: 800; letter-spacing: 4px; }
.order-status.unpaid { background: linear-gradient(135deg, #FF7A2F, #FF3D1F); }
.timeline { margin: -38px 12px 0; background: #fff; border-radius: var(--r-md); padding: 14px 16px 10px; }
/* 订单详情的竖向时间线：圆点 + 标签 + 状态，圆点之间用竖线连接 */
.timeline .step { display: flex; align-items: center; gap: 10px; text-align: left; font-size: 14px; padding: 9px 0; }
.timeline .step::before { display: none; }
.timeline .step:not(:first-child)::after { content: ""; position: absolute; left: 11px; top: -50%; height: 100%; width: 2px; background: var(--divider); }
.timeline .step.done::after, .timeline .step.cur::after { background: var(--primary); }
.timeline .step i { flex: none; }
.timeline .step em { margin: 0 0 0 auto; font-size: 11px; }
.order-section { padding: 12px; }
.order-section h3 { font-size: 15px; margin-bottom: 4px; }
.info-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--text-2); }
.info-rows b { color: var(--text); font-weight: 500; text-align: right; }
.info-rows b.off { color: var(--accent); }
.copy { display: inline-flex; align-items: center; gap: 3px; color: var(--primary); font-size: 12px; margin-left: 6px; cursor: pointer; }
.copy .ic { width: 13px; height: 13px; }
.store-info { padding: 12px; display: flex; gap: 10px; align-items: flex-start; }
.store-info img { width: 72px; height: 54px; border-radius: 6px; object-fit: cover; flex: none; }
.store-info .bd { flex: 1; min-width: 0; }
.store-info h4 { font-size: 15px; }
.store-info p { font-size: 12px; color: var(--text-2); margin-top: 4px; display: flex; gap: 6px; align-items: flex-start; }
.store-info p .ic { width: 14px; height: 14px; color: var(--text-3); margin-top: 2px; flex: none; }
.store-btns { display: flex; gap: 8px; padding: 0 12px 12px; }
.store-btns .btn { flex: 1; }
.order-foot .btn { flex: 1; }
.order-foot .btn-ghost { flex: none; padding: 0 14px; }
