.checkout-dialog{box-sizing:border-box;width:min(1040px,calc(100% - 48px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid #dce5f0;border-radius:8px;background:#fff;color:#25344a;box-shadow:0 24px 80px #102d532b;letter-spacing:0;color-scheme:light}
.checkout-dialog::backdrop{background:rgba(19,35,57,.5)}
.checkout-dialog *{box-sizing:border-box;letter-spacing:0}
.checkout-dialog [hidden]{display:none!important}
.checkout-dialog #checkoutForm{display:flex;flex-direction:column;max-height:calc(100dvh - 50px);margin:0;padding:0;gap:0}
.checkout-dialog .checkout-heading{display:flex;flex:none;align-items:center;gap:24px;padding:22px 28px;border-bottom:1px solid #e2e9f2}
.checkout-dialog .checkout-eyebrow{margin:0 0 5px;color:#64758b;font-size:12px;line-height:1.5}
.checkout-dialog h2{margin:0;color:#1f3048;font-size:22px;line-height:1.4;font-weight:650}
.checkout-dialog .checkout-steps{display:flex;align-items:center;gap:14px;margin-left:auto;color:#7c8799;font-size:13px;white-space:nowrap}
.checkout-dialog .checkout-steps [aria-current]{color:#2169d4;font-weight:600}
.checkout-dialog .checkout-steps svg{width:16px;height:16px}
.checkout-dialog .icon-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;min-height:36px;margin:0;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;color:#6a7b91;cursor:pointer}
.checkout-dialog .icon-button svg{width:18px;height:18px;pointer-events:none}
.checkout-dialog .icon-button:hover{border-color:#dce5f0;background:#f0f5fc;color:#2266c7}
.checkout-dialog .checkout-remove:hover{color:#bd3440;background:#fff2f3;border-color:#f3d2d6}
.checkout-dialog button:focus-visible{outline:2px solid #286edd;outline-offset:3px}
.checkout-workspace{display:grid;grid-template-columns:minmax(0,1fr) 270px;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;background:#fff}
.checkout-items{min-width:0;padding:24px 28px 28px}
.checkout-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:4px}
.checkout-dialog h3{margin:0;font-size:15px;line-height:1.5;font-weight:600;color:#25344a}
.checkout-section-heading>span{font-size:12px;color:#7b8798}
.checkout-lines{min-width:0}
.checkout-line{min-width:0;padding:22px 0;border-bottom:1px solid #e5ebf3}
.checkout-line:last-child{padding-bottom:0;border-bottom:0}
.checkout-product{display:flex;align-items:flex-start;gap:14px;min-width:0}
.checkout-product-image{display:block;flex:none;width:72px;height:72px;object-fit:contain;border:1px solid #e4eaf3;border-radius:6px;background:#fff}
.checkout-product-name{flex:1;min-width:0;padding-top:2px}
.checkout-line h3{overflow-wrap:anywhere}
.checkout-product-name p{margin:7px 0 0;color:#6c7b90;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.checkout-line-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 0;padding:12px 0;border-top:1px solid #edf1f7;border-bottom:1px solid #edf1f7;font-variant-numeric:tabular-nums}
.checkout-line-amounts>div{min-width:0}
.checkout-line-amounts dt{font-size:12px;line-height:1.5;color:#788598}
.checkout-line-amounts dd{margin:5px 0 0;font-size:14px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.checkout-line-amounts>div:last-child{text-align:right}
.checkout-line-amounts>div:last-child dd{color:#2269d5;font-weight:650}
.checkout-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 0;padding:0;border:0;min-width:0}
.checkout-fields legend{padding:0 0 14px;color:#52647c;font-size:13px;font-weight:600}
.checkout-fields label{display:flex;flex-direction:column;gap:7px;min-width:0;margin:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.checkout-fields label b{color:#c53d4b;font-weight:500}
.checkout-field-wide{grid-column:1/-1}
.checkout-fields input,.checkout-fields textarea,.checkout-fields select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:0;padding:10px 12px;border:1px solid #cfdaea;border-radius:5px;background:#fff;color:#25344a;font:inherit;font-size:16px;line-height:1.5;box-shadow:none}
.checkout-fields textarea{resize:vertical;max-height:180px}
.checkout-fields :is(input,select,textarea):focus{outline:2px solid #6ca4f4;outline-offset:1px;border-color:#367ddd}
.checkout-fields :is(input,textarea):read-only,.checkout-fields :disabled{background:#f3f6fa;color:#6c7b90}
.checkout-fields small{color:#7b8798;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.checkout-summary{align-self:start;min-width:0;margin:24px 0;padding:0 26px;border-left:1px solid #e5ebf3}
.checkout-summary dl{margin:22px 0 0}
.checkout-summary dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:15px;font-size:13px;line-height:1.6}
.checkout-summary dt{flex:none;color:#6c7b90}
.checkout-summary dd{margin:0;overflow-wrap:anywhere;text-align:right;font-variant-numeric:tabular-nums}
.checkout-summary dl>.checkout-summary-amount{display:block;margin-top:24px;padding-top:20px;border-top:1px solid #e2e9f2}
.checkout-summary-amount dd{margin:6px 0 0;text-align:left;color:#2169d4;font-size:28px;font-weight:650;line-height:1.35}
.checkout-availability{margin:18px 0 0;color:#b63442;font-size:13px;line-height:1.6}
.checkout-error{flex:none;margin:0;padding:12px 28px;border-top:1px solid #f0d9dd;background:#fff3f4;color:#ad2e3e;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.checkout-error a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.checkout-line>.checkout-error{margin-top:14px;padding:10px 12px;border:1px solid #f0d9dd;border-radius:4px}
.checkout-dialog #checkoutForm>footer{display:flex;flex:none;align-items:center;justify-content:space-between;gap:20px;margin:0;padding:18px 28px;border-top:1px solid #dce5f0;background:#fff;box-shadow:0 -4px 18px #233f6605}
.checkout-total{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 14px;min-width:0;line-height:1.4}
.checkout-total span{color:#62748b;font-size:13px}
.checkout-total strong{color:#2169d4;font-size:24px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.checkout-actions{display:flex;flex:none;gap:10px}
.checkout-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:128px;min-height:44px;margin:0;padding:11px 16px;border-radius:5px;cursor:pointer;font:inherit;font-size:14px;font-weight:500;line-height:1.5}
.checkout-actions button svg{flex:none;width:17px;height:17px;pointer-events:none}
.checkout-actions .primary-action{min-width:156px;border:1px solid #236cdb;background:#236cdb;color:#fff}
.checkout-actions .primary-action:hover{border-color:#185bbe;background:#185bbe}
.checkout-actions .secondary-action{border:1px solid #cfdaea;background:#fff;color:#526781}
.checkout-actions .secondary-action:hover{background:#f3f7fe;border-color:#8eafe2;color:#2266c7}
.checkout-dialog button:disabled{opacity:.5;cursor:not-allowed}
.checkout-snapshot{display:grid;gap:6px;grid-column:1/-1;min-width:0;margin:6px 0 0;padding-top:8px;border-top:1px solid #e2e5e5;font-size:12px}
.checkout-snapshot>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px}
.checkout-snapshot dt{color:#687679;overflow-wrap:anywhere}
.checkout-snapshot dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#293338}
@media(max-width:760px){
  .checkout-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}
  .checkout-dialog #checkoutForm{max-height:calc(100dvh - 26px)}
  .checkout-workspace{grid-template-columns:minmax(0,1fr)}
  .checkout-summary{margin:0 22px 24px;padding:22px 0 0;border:0;border-top:1px solid #e2e9f2}
  .checkout-summary dl{margin-top:12px}
  .checkout-summary dl>.checkout-summary-amount{display:flex;margin-top:16px;padding-top:16px}
  .checkout-summary-amount dd{margin:0;text-align:right;font-size:22px}
  .checkout-items{padding:22px}
  .checkout-dialog .checkout-heading{padding:18px 22px}
  .checkout-dialog .checkout-steps{display:none}
  .checkout-dialog [data-checkout-close]{margin-left:auto}
  .checkout-dialog #checkoutForm>footer{padding:16px 22px}
}
@media(max-width:480px){
  .checkout-dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}
  .checkout-dialog #checkoutForm{height:100%;max-height:100dvh}
  .checkout-dialog .checkout-heading{padding:16px 18px}
  .checkout-dialog .checkout-eyebrow{margin-bottom:3px}
  .checkout-dialog h2{font-size:20px}
  .checkout-workspace{flex:1}
  .checkout-items{padding:20px 18px 24px}
  .checkout-fields{grid-template-columns:minmax(0,1fr);gap:14px}
  .checkout-product{gap:12px}
  .checkout-product-image{width:60px;height:60px}
  .checkout-product-name{padding-top:0}
  .checkout-line{padding:20px 0}
  .checkout-summary{margin:0 18px 24px;padding-top:20px}
  .checkout-dialog #checkoutForm>footer{align-items:stretch;flex-direction:column;gap:12px;padding:12px 18px max(14px,env(safe-area-inset-bottom))}
  .checkout-total{justify-content:space-between;gap:8px}
  .checkout-total strong{font-size:22px}
  .checkout-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:10px}
  .checkout-actions button,.checkout-actions .primary-action{min-width:0;padding:10px 8px}
  .checkout-error{padding:10px 18px;max-height:120px;overflow:auto}
  .checkout-snapshot>div{grid-template-columns:80px minmax(0,1fr)}
}
/* 电脑确认订单承接商品页：通栏面包屑、商品信息、购买信息和价格计算。 */
.checkout-quantity { display:flex; flex:none; width:180px; height:42px; overflow:hidden; border:1px solid #ddd; border-radius:5px; }
.checkout-quantity button { width:42px; flex:none; margin:0; border:0; background:#dedede; color:#444; font-size:20px; cursor:pointer; }
.checkout-quantity-input { width:94px; min-width:0; margin:0; padding:8px; border:0; border-radius:0; background:#fff; color:#111; text-align:center; font:inherit; appearance:textfield; }
.checkout-quantity-input::-webkit-inner-spin-button,.checkout-quantity-input::-webkit-outer-spin-button { margin:0; appearance:none; }
.checkout-payment-hint { margin:20px 0 0; font-size:12px; color:#8b919a; }
@media(min-width:761px) {
  .checkout-dialog { inset:0; width:100%; height:100dvh; max-height:100dvh; margin:0; border:0; border-radius:0; background:#f2f2f2; box-shadow:none; overflow:auto; }
  .checkout-dialog::backdrop { background:#f2f2f2; }
  .checkout-dialog #checkoutForm { display:block; width:calc(100% - 40px); max-width:1360px; max-height:none; margin:8px auto 24px; background:#fff; border-radius:10px; overflow:hidden; }
  .checkout-dialog .checkout-heading { min-height:48px; padding:0 12px; gap:18px; border:0; background:linear-gradient(100deg,#24b3f4,#1677ff); color:#fff; }
  .checkout-dialog .checkout-heading > div:first-child { display:flex; align-items:center; gap:5px; }
  .checkout-dialog .checkout-eyebrow,.checkout-dialog .checkout-heading h2 { display:inline; margin:0; color:#fff; font-size:15px; line-height:1.5; font-weight:400; }
  .checkout-dialog .checkout-steps,.checkout-dialog .checkout-steps [aria-current],.checkout-dialog .checkout-heading .icon-button { color:#fff; }
  .checkout-dialog .checkout-heading .icon-button:hover { background:rgb(255 255 255 / 15%); }
  .checkout-workspace { display:block; overflow:visible; }
  .checkout-items { padding:24px 14px 0; }
  .checkout-dialog .checkout-section-heading { margin-bottom:18px; }
  .checkout-dialog .checkout-section-heading h3,.checkout-dialog .checkout-fields legend,.checkout-dialog .checkout-summary h3 { position:relative; padding-left:14px; color:#111; font-size:18px; line-height:24px; font-weight:650; }
  .checkout-dialog .checkout-section-heading h3::before,.checkout-dialog .checkout-fields legend::before,.checkout-dialog .checkout-summary h3::before { content:""; position:absolute; left:0; top:4px; width:4px; height:18px; border-radius:3px; background:#1681ff; }
  .checkout-line { padding:0 0 20px; border:0; }
  .checkout-line + .checkout-line { padding-top:26px; border-top:1px solid #eee; }
  .checkout-product { align-items:center; min-height:202px; padding:24px 28px; gap:28px; border-radius:10px 10px 0 0; background:#f8f8fa; }
  .checkout-product-image { width:148px; height:148px; border:0; border-radius:5px; background:#f2f2f2; }
  .checkout-product-name h3 { font-size:20px; font-weight:650; color:#111; }
  .checkout-product-name p { margin-top:10px; color:#777; }
  .checkout-product .checkout-remove { align-self:flex-start; margin-left:-10px; }
  .checkout-line-amounts { margin:0; padding:12px 28px; border:0; border-top:1px solid #eee; border-radius:0 0 10px 10px; background:#f8f8fa; }
  .checkout-line-amounts > div { display:flex; gap:12px; align-items:baseline; }
  .checkout-line-amounts > div:last-child { justify-content:flex-end; }
  .checkout-line-amounts dd { margin:0; }
  .checkout-line-amounts > div:last-child dd { color:#f00; }
  .checkout-fields { position:relative; margin-top:22px; padding:20px 28px; gap:18px 32px; border-radius:10px; background:#fafafa; }
  .checkout-fields legend { margin-left:-28px; margin-bottom:4px; padding-bottom:0; }
  .checkout-fields label { display:grid; grid-template-columns:112px minmax(0,1fr); column-gap:12px; align-items:start; }
  .checkout-fields label > span { padding-top:10px; text-align:right; color:#111; }
  .checkout-fields label > small { grid-column:2; }
  .checkout-fields input,.checkout-fields select,.checkout-fields textarea { min-height:36px; padding:7px 10px; border-color:#ddd; font-size:14px; }
  .checkout-fields textarea { min-height:100px; }
  .checkout-summary { margin:22px 14px 0; padding:0 0 18px; border:0; }
  .checkout-summary dl { display:flex; align-items:center; justify-content:flex-end; gap:30px; margin:18px 0 0; padding:22px 28px; border-radius:10px; background:#fafafa; }
  .checkout-summary dl > div { gap:10px; margin:0; }
  .checkout-summary dl > .checkout-summary-amount { display:flex; align-items:baseline; gap:12px; margin:0; padding:0; border:0; }
  .checkout-summary-amount dd { margin:0; color:#f00; font-size:22px; }
  .checkout-payment-hint { text-align:right; }
  .checkout-dialog #checkoutForm > footer { justify-content:flex-end; gap:32px; padding:0 28px 24px; border:0; box-shadow:none; }
  .checkout-total strong { color:#f00; }
  .checkout-actions .primary-action { min-width:220px; border-color:#1677ff; background:#1677ff; }
  .checkout-actions .secondary-action { min-width:140px; }
}
@media(min-width:761px) and (max-width:1100px) {
  .checkout-product { padding:22px 20px; gap:18px; }
  .checkout-product-image { width:115px; height:115px; }
  .checkout-product-name h3 { font-size:17px; }
  .checkout-quantity { width:142px; }
  .checkout-quantity-input { width:56px; }
  .checkout-fields { padding:20px; gap:16px 20px; }
  .checkout-fields legend { margin-left:-20px; }
  .checkout-fields label { grid-template-columns:84px minmax(0,1fr); }
}
@media(max-width:760px) {
  .checkout-product { flex-wrap:wrap; }
  .checkout-quantity { order:3; margin-left:auto; }
}
