/* Hoomall purchasing flow */
.commerce-page{font-size:14px;color:#333}.commerce-page button,.commerce-page input,.commerce-page textarea{border-radius:0}.commerce-page input[type=checkbox],.commerce-page input[type=radio]{accent-color:#f47721;width:16px;height:16px;flex-shrink:0;margin:0;vertical-align:middle}.commerce-heading{display:flex;align-items:center;justify-content:space-between;gap:30px;margin:6px 0 25px}.commerce-heading h1{font-size:25px;letter-spacing:0;margin:0}.commerce-eyebrow{font-size:10px;letter-spacing:1.8px;color:#8c8c8c;margin:0 0 8px}.commerce-steps{display:flex;list-style:none;padding:0;margin:0;gap:50px}.commerce-steps li{display:flex;align-items:center;gap:9px;color:#aaa;position:relative;font-size:12px;white-space:nowrap}.commerce-steps li+li:before{position:absolute;content:"";width:30px;border-top:1px solid #ddd;left:-40px;top:50%}.commerce-steps li span{display:grid;place-items:center;background:#e6e6e6;width:25px;height:25px;border-radius:50%;font-size:13px}.commerce-steps b{font-weight:400}.commerce-steps .current{color:#e86b18}.commerce-steps .current span{background:#f47721;color:white}.commerce-steps .complete{color:#ce874d}.commerce-steps .complete span{background:#ffecde;color:#e86b18}.commerce-notice{border:1px solid #ffe2ca;background:#fff9f3;color:#947754;line-height:1.7;padding:10px 15px;font-size:12px;margin-bottom:23px}.commerce-notice>span{font-weight:bold;padding-right:12px;color:#d66b24}.commerce-cart-tabs{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #e8e8e8;margin-bottom:14px}.commerce-cart-tabs>b{font-size:17px;border-bottom:2px solid #f47721;padding:0 4px 13px;margin-bottom:-2px}.commerce-cart-tabs em{font-style:normal;font-size:14px;color:#f47721;margin-left:5px}.commerce-cart-tabs>span{font-size:12px;color:#888}.commerce-cart-table{background:#fff;border:1px solid #e6e6e6}.commerce-cart-head,.commerce-cart-row{display:grid;grid-template-columns:55px minmax(220px,1fr) 132px 128px 112px 200px 55px;align-items:center;gap:12px}.commerce-cart-head{background:#f5f5f5;color:#777;min-height:44px;padding:0 20px;font-size:12px}.commerce-cart-head label,.commerce-cart-actions label{display:flex;align-items:center;gap:7px;white-space:nowrap}.commerce-seller{display:flex;align-items:center;gap:9px;font-size:13px;padding:16px 20px;border-bottom:1px solid #eee}.commerce-seller>b{display:grid;place-items:center;width:20px;height:20px;background:#f47721;color:#fff;font-size:12px}.commerce-seller>span{margin-left:10px;font-size:12px;color:#999}.commerce-cart-row{padding:24px 20px;min-height:140px;border-bottom:1px solid #eee}.commerce-cart-row:last-child{border-bottom:0}.commerce-cart-row.is-selected{background:#fffdfa}.commerce-row-check{display:flex;align-items:center}.commerce-item{display:flex;align-items:center;gap:16px;min-width:0}.commerce-item>img{width:74px;height:74px;object-fit:contain;background:#fff;border:1px solid #eee;flex-shrink:0;padding:5px}.commerce-item>div{min-width:0}.commerce-item-title{display:block;font-size:14px;font-weight:600;line-height:1.6;padding:0;text-align:left}.commerce-item-title:hover{color:#f47721}.commerce-item p{font-size:12px;color:#777;margin:6px 0;line-height:1.5}.commerce-item p span{color:#ddd;margin:0 2px}.commerce-item small{font-size:11px;line-height:1.5;color:#aaa}.commerce-unit-price{font-size:14px}.commerce-unit-price small{display:block;color:#aaa;font-size:11px;margin-top:4px}.commerce-quantity{display:flex;width:116px;height:31px;border:1px solid #ddd;background:#fff}.commerce-quantity button{width:29px;padding:0;background:#fafafa;font-size:16px}.commerce-quantity input{min-width:0;width:56px;border:0;border-right:1px solid #ddd;border-left:1px solid #ddd;text-align:center;font-size:13px;appearance:textfield;-moz-appearance:textfield;padding:0}.commerce-quantity input::-webkit-inner-spin-button,.commerce-quantity input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.commerce-quantity-cell>small{display:block;font-size:11px;color:#999;margin-top:8px;line-height:1.6}.commerce-line-total{color:#e86b18;font-size:15px}.commerce-remove{font-size:12px;color:#888;padding:9px 0;text-align:left}.commerce-remove:hover{color:#e86b18}.commerce-cart-bottom{position:sticky;bottom:0;z-index:4;display:flex;justify-content:space-between;align-items:center;gap:12px;background:white;border:1px solid #e6e6e6;margin-top:18px;min-height:78px;box-shadow:0 -2px 10px #00000003;padding-left:20px}.commerce-cart-actions{display:flex;align-items:center;gap:20px;color:#777;font-size:12px}.commerce-cart-actions>button{padding:8px 0;font-size:12px}.commerce-cart-total{display:flex;align-items:center;gap:23px}.commerce-cart-total>span{font-size:12px;color:#888;white-space:nowrap}.commerce-cart-total>span b{color:#f47721;font-weight:500;padding:0 3px}.commerce-cart-total>div{white-space:nowrap}.commerce-cart-total>div>span{font-size:12px}.commerce-cart-total strong{font-size:25px;font-family:Arial,sans-serif;color:#ee6a16}.commerce-cart-total small{display:block;text-align:right;color:#aaa;font-size:11px;margin-top:5px}.commerce-cart-total .primary{height:77px;min-width:140px;font-size:18px;white-space:nowrap}.commerce-cart-total .primary>span{padding-left:16px}.commerce-bottom-note{font-size:11px;color:#999;margin:15px 0 0}.commerce-mobile-label{display:none}.commerce-empty{text-align:center;background:#fff;border:1px solid #e5e5e5;padding:65px 20px}.commerce-empty-icon{font-size:50px;color:#d6c3af;margin-bottom:15px}.commerce-empty h2{font-size:20px;margin-bottom:12px}.commerce-empty p{font-size:13px;color:#999;margin-bottom:25px}.commerce-empty .primary{font-size:14px;min-width:150px}.commerce-back{display:block;margin:15px auto;color:#b96525;font-size:13px}.commerce-section{background:#fff;border:1px solid #e7e7e7;margin-bottom:18px;padding:23px 25px}.commerce-section-title{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:20px}.commerce-section-title h2{font-size:17px;margin:0;font-weight:600}.commerce-section-title h2 em{font-size:12px;color:#999;font-style:normal;font-weight:400;margin-left:10px}.commerce-section-title>span{font-size:11px;color:#999}.commerce-addresses{display:grid;grid-template-columns:1fr 1fr;gap:18px}.commerce-address{position:relative;display:flex;align-items:flex-start;gap:11px;border:1px solid #ddd;padding:19px 20px;cursor:pointer;min-height:126px;overflow:hidden}.commerce-address.is-active{border:2px solid #f47721;padding:18px 19px;background:#fffdfa}.commerce-address>input{margin-top:2px!important}.commerce-address b{font-size:14px;font-weight:600}.commerce-address em{font-size:10px;font-style:normal;background:#f3f3f3;color:#999;margin-left:10px;padding:2px 5px;white-space:nowrap}.commerce-address p{font-size:12px;color:#777;margin:14px 0 8px}.commerce-address p span{color:#ddd;margin:0 4px}.commerce-address small{font-size:12px;color:#999;line-height:1.7}.commerce-address-tick{display:none}.commerce-address.is-active .commerce-address-tick{display:block;position:absolute;right:0;bottom:0;background:#f47721;color:#fff;line-height:20px;width:24px;text-align:center;font-size:12px;clip-path:polygon(100% 0,100% 100%,0 100%);padding-left:8px;padding-top:3px}.commerce-choices{display:flex;gap:14px;flex-wrap:wrap}.commerce-choice{display:flex;align-items:flex-start;gap:10px;border:1px solid #ddd;min-width:210px;padding:14px 17px;cursor:pointer;flex:1;max-width:330px}.commerce-choice input{margin-top:1px!important}.commerce-choice.is-active{border-color:#f47721;background:#fffdfa}.commerce-choice b{display:block;font-size:13px;font-weight:400}.commerce-choice small{display:block;font-size:11px;color:#999;line-height:1.5;margin-top:7px}.commerce-invoice-detail{display:flex;align-items:center;flex-wrap:wrap;gap:14px;background:#fafafa;padding:14px 18px;font-size:12px;margin-top:16px}.commerce-invoice-detail>span{color:#999}.commerce-invoice-detail>b{font-weight:400;margin-right:22px;color:#666}.commerce-link{font-size:12px;color:#c76a2a;padding:5px 0}.commerce-goods-section{padding-bottom:0}.commerce-goods-section .commerce-seller{padding:12px 14px;background:#fafafa;border:1px solid #eee}.commerce-goods-head,.commerce-goods-row{display:grid;grid-template-columns:minmax(210px,1fr) 128px 112px 120px 190px;align-items:center;gap:15px;padding:13px 15px}.commerce-goods-head{font-size:12px;background:#f8f8f8;color:#999}.commerce-goods-head>span:not(:first-child){text-align:right}.commerce-goods-row{border-bottom:1px solid #eee;padding-top:20px;padding-bottom:20px;font-size:13px}.commerce-goods-row>div:not(:first-child),.commerce-goods-row>strong{text-align:right}.commerce-goods-row>strong{font-weight:600}.commerce-goods-row small{display:block;color:#999;font-size:11px;margin-top:5px}.commerce-purchase-note{display:flex;position:relative;align-items:flex-start;gap:20px;margin:22px 0;font-size:12px}.commerce-purchase-note>b{font-weight:400;padding-top:12px;white-space:nowrap}.commerce-purchase-note textarea{border:1px solid #ddd;border-radius:5px;min-height:73px;resize:vertical;flex:1;min-width:0;line-height:1.7;padding:11px 60px 11px 14px;font-size:13px}.commerce-purchase-note textarea::placeholder{color:#aaa}.commerce-purchase-note>span{position:absolute;bottom:10px;right:12px;color:#aaa;font-size:11px}.commerce-purchase-note i{font-style:normal}.commerce-checkout-footer{background:#fff;border:1px solid #e7e7e7}.commerce-order-summary{padding:23px 27px 18px;margin-left:auto;width:330px}.commerce-order-summary p{display:flex;justify-content:space-between;margin:0 0 14px;font-size:12px;color:#777}.commerce-order-summary b{font-weight:400;color:#333}.commerce-order-summary .commerce-pay-total{align-items:center;border-top:1px solid #eee;padding-top:17px;margin-bottom:0}.commerce-pay-total strong{font-size:28px;font-family:Arial,sans-serif;color:#ee6a16}.commerce-submit-area{border-top:1px solid #eee;background:#fffdfa;padding:20px 27px;text-align:right}.commerce-deliver-summary{font-size:12px;color:#888;line-height:1.9;margin-bottom:17px}.commerce-confirm{display:flex;align-items:flex-start;justify-content:flex-end;gap:8px;font-size:12px;color:#666;line-height:1.6;margin-bottom:20px}.commerce-confirm input{margin-top:2px!important}.commerce-submit-actions{display:flex;align-items:center;justify-content:flex-end;gap:28px}.commerce-submit-actions .primary{font-size:16px;min-width:188px;height:48px}.commerce-success{display:flex;align-items:flex-start;gap:24px;background:#fff;border:1px solid #e7e7e7;padding:40px 45px;margin-bottom:20px}.commerce-success-mark{background:#eff7f0;border:1px solid #d3ead6;width:55px;height:55px;border-radius:50%;font-size:29px;display:grid;place-items:center;color:#589766;flex-shrink:0}.commerce-success-eyebrow{font-size:10px;letter-spacing:2px;color:#8b9b8a;margin:0 0 9px}.commerce-success h2{font-size:24px;margin:0 0 12px}.commerce-success p:not(.commerce-success-eyebrow){color:#999;font-size:13px;margin-bottom:20px}.commerce-success-reference{font-size:12px;color:#999;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.commerce-success-reference>b{color:#555;font-weight:500;letter-spacing:.5px}.commerce-success-reference>span{margin-left:25px}.commerce-success-reference strong{font-size:20px;color:#ee6a16;margin-left:10px}.commerce-success-details{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:20px;border-bottom:1px solid #eee;padding-bottom:20px;margin:0 0 12px}.commerce-success-details dt{font-size:12px;color:#999;margin-bottom:12px}.commerce-success-details dd{font-size:12px;margin:0;line-height:1.7;color:#555}.commerce-success-actions{display:flex;justify-content:center;gap:15px;margin:30px 0 15px}.commerce-success-actions button{font-size:14px;min-width:150px}
@media(max-width:1100px){.commerce-cart-head,.commerce-cart-row{grid-template-columns:25px minmax(170px,1fr) 92px 116px 92px 150px 32px;gap:10px;padding-left:15px;padding-right:15px}.commerce-cart-head label{gap:3px;font-size:0}.commerce-item{gap:10px}.commerce-item>img{width:63px;height:63px}.commerce-cart-actions{gap:12px}.commerce-cart-total{gap:13px}.commerce-cart-total .primary{min-width:115px}.commerce-cart-total>span{display:none}.commerce-cart-total strong{font-size:23px}.commerce-goods-head,.commerce-goods-row{grid-template-columns:minmax(200px,1fr) 95px 95px 95px;gap:12px}.commerce-steps{gap:35px}.commerce-steps li+li:before{left:-27px;width:20px}.commerce-section{padding:20px}.commerce-address{padding:16px 13px}.commerce-address.is-active{padding:15px 12px}.commerce-address em{display:inline-block;margin:7px 0 0 8px}.commerce-choice{min-width:180px}}
@media(max-width:760px){.commerce-heading{gap:16px;align-items:flex-start;flex-direction:column;margin-bottom:18px}.commerce-heading h1{font-size:24px}.commerce-steps{width:100%;justify-content:space-between;gap:10px;margin-top:5px}.commerce-steps li{font-size:11px;gap:6px}.commerce-steps li+li:before{display:none}.commerce-steps li span{width:23px;height:23px}.commerce-notice{font-size:11px;padding:9px 11px;margin-bottom:18px}.commerce-cart-tabs>span{display:none}.commerce-cart-tabs>b{font-size:16px;padding-bottom:12px}.commerce-cart-head{display:none}.commerce-seller{padding:12px 14px;font-size:12px}.commerce-seller>span{font-size:10px;margin-left:auto}.commerce-cart-row{display:grid;grid-template-columns:19px 1fr auto;gap:13px 11px;padding:18px 13px;align-items:start}.commerce-row-check{grid-column:1;grid-row:1;padding-top:24px}.commerce-cart-row>.commerce-item{grid-column:2/4;grid-row:1}.commerce-item>img{width:66px;height:66px}.commerce-item-title{font-size:13px}.commerce-item p{font-size:11px;margin:4px 0}.commerce-item small{font-size:10px}.commerce-unit-price{grid-column:2;grid-row:2;font-size:13px;padding-top:7px}.commerce-unit-price small{display:inline;margin-left:3px}.commerce-mobile-label{display:inline;font-size:11px;color:#aaa;margin-right:8px}.commerce-quantity-cell{grid-column:3;grid-row:2}.commerce-quantity{width:105px;height:30px}.commerce-quantity button{width:29px}.commerce-quantity input{width:45px}.commerce-quantity-cell>small{font-size:10px;text-align:right;margin-top:6px}.commerce-line-total{grid-column:3;grid-row:3;text-align:right;font-size:15px}.commerce-remove{grid-column:2;grid-row:3;justify-self:start;font-size:11px;padding:2px 0}.commerce-cart-bottom{display:block;padding:0;margin-top:14px}.commerce-cart-actions{padding:12px 14px;border-bottom:1px solid #eee;gap:18px;font-size:11px}.commerce-cart-actions>button{padding:0;font-size:11px}.commerce-cart-actions>button:last-child{margin-left:auto}.commerce-cart-total{justify-content:flex-end;gap:12px}.commerce-cart-total>span{display:block;margin-right:auto;margin-left:14px;font-size:11px}.commerce-cart-total>div>span{font-size:11px}.commerce-cart-total strong{font-size:21px}.commerce-cart-total small{font-size:10px;margin-top:3px}.commerce-cart-total .primary{height:67px;min-width:97px;padding:10px 15px;font-size:16px}.commerce-cart-total .primary>span{display:none}.commerce-bottom-note{font-size:10px}.commerce-empty{padding:45px 15px}.commerce-section{padding:17px 14px;margin-bottom:13px}.commerce-section-title{align-items:flex-start;gap:10px;margin-bottom:16px}.commerce-section-title h2{font-size:15px;white-space:nowrap}.commerce-section-title>span{font-size:10px;text-align:right;line-height:1.6}.commerce-addresses{grid-template-columns:1fr;gap:10px}.commerce-address{min-height:110px;padding:16px}.commerce-address.is-active{padding:15px}.commerce-address b{font-size:13px}.commerce-address em{margin:0 0 0 9px}.commerce-address p{margin:10px 0 5px;font-size:11px}.commerce-address small{font-size:11px}.commerce-choices{gap:10px}.commerce-choice{padding:12px;min-width:140px;max-width:none}.commerce-choice b{font-size:12px}.commerce-choice small{font-size:10px}.commerce-payment .commerce-choice{flex-basis:100%}.commerce-invoice-detail{display:grid;grid-template-columns:auto 1fr;gap:10px;font-size:11px;padding:12px}.commerce-invoice-detail>b{margin:0}.commerce-goods-head{display:none}.commerce-goods-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:13px;padding:17px 0}.commerce-goods-row>.commerce-item{grid-column:1/-1}.commerce-goods-row>div:not(:first-child){text-align:left;font-size:12px}.commerce-goods-row>strong{text-align:right;font-size:14px;color:#e86b18}.commerce-goods-row small{font-size:10px;margin-top:4px}.commerce-purchase-note{display:block;margin:18px 0 0}.commerce-purchase-note>b{display:block;padding:0;margin-bottom:10px}.commerce-purchase-note textarea{width:100%;min-height:85px;font-size:13px;padding:10px 12px 28px}.commerce-order-summary{width:100%;padding:20px 16px}.commerce-submit-area{padding:17px 16px}.commerce-deliver-summary{font-size:11px;text-align:left}.commerce-confirm{justify-content:flex-start;text-align:left;font-size:11px;margin-bottom:17px}.commerce-submit-actions{justify-content:space-between;gap:15px}.commerce-submit-actions .primary{font-size:14px;min-width:165px;height:44px}.commerce-submit-actions>.commerce-link{font-size:11px}.commerce-success{padding:25px 17px;gap:14px}.commerce-success-mark{width:36px;height:36px;font-size:21px}.commerce-success h2{font-size:21px}.commerce-success p:not(.commerce-success-eyebrow){font-size:12px;margin-bottom:15px}.commerce-success-reference{font-size:11px;gap:8px}.commerce-success-reference>span{margin:5px 0 0;width:100%}.commerce-success-details{grid-template-columns:1fr 1fr;gap:20px 15px}.commerce-success-details>div:first-child{grid-column:1/-1}.commerce-success-details dt{font-size:11px;margin-bottom:7px}.commerce-success-details dd{font-size:11px}.commerce-success-actions{gap:10px;margin-top:22px}.commerce-success-actions button{min-width:0;flex:1;font-size:13px;padding:12px}.commerce-page .primary:disabled{background:#c6c6c6;opacity:1}}
@media(max-width:380px){.commerce-cart-total>span{display:none}.commerce-cart-total>div{margin-left:auto}.commerce-cart-actions{gap:13px}.commerce-choice{min-width:100%;}.commerce-address em{display:block;margin:6px 0 0;width:max-content}.commerce-steps li{font-size:10px;gap:4px}}

.commerce-expected-date{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:12px;color:#777;margin-top:18px}.commerce-expected-date input{padding:8px 12px;border:1px solid #ddd;border-radius:5px;background:white;color:#555;font-size:13px;line-height:1.5}.commerce-expected-date span{font-size:11px;color:#999}.commerce-saved-note{padding:14px 20px;background:#fafafa;margin-bottom:18px;font-size:12px}.commerce-saved-note p{white-space:pre-wrap;margin:6px 0 0;color:#777;overflow-wrap:anywhere}

/* 确认订单：地址新增 / 工厂自提 / 支付渠道 / 开票信息 */
.commerce-address-add{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;border:1px dashed #e0b184;background:#fffaf4;color:#c46a23;padding:19px 20px;cursor:pointer;min-height:126px;font-size:13px;text-align:center}
.commerce-address-add span{font-size:22px;line-height:1}
.commerce-address-add b{font-weight:600}
.commerce-address-add small{font-size:11px;color:#a98b73;line-height:1.6}
.commerce-address-add:hover{border-color:#f47721;background:#fff5ec}
.commerce-address-empty{grid-column:1/-1;border:1px dashed #ddd;padding:24px;text-align:center;color:#999;font-size:13px;margin:0}
.commerce-choice.is-disabled{opacity:.55;cursor:not-allowed;background:#fafafa}
.commerce-choice.is-disabled input{cursor:not-allowed}
.commerce-pickup-note{margin:14px 0 0;padding:10px 14px;border-left:3px solid #f47721;background:#fff7f0;color:#8a5a2b;font-size:12px;line-height:1.7}
.commerce-pay-note{margin:14px 0 0;color:#999;font-size:12px;line-height:1.7}
.commerce-channels{display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin-top:16px;padding-top:16px;border-top:1px dashed #eee}
.commerce-channels>span{font-size:12px;color:#666;flex:0 0 60px}
.commerce-channels .commerce-choice{min-width:180px;padding:11px 14px}
.commerce-invoice-form{margin-top:18px;border:1px solid #eee;background:#fbfbfb;padding:16px 18px}
.commerce-invoice-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.commerce-invoice-head b{font-size:13px}
.commerce-invoice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px}
.commerce-invoice-field{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#666;min-width:0}
.commerce-invoice-field input{border:1px solid #ddd;border-radius:5px;background:#fff;padding:8px 10px;font-size:13px;line-height:1.5;color:#333;min-width:0}
.commerce-invoice-field input:focus{border-color:#f47721;outline:0}
.commerce-invoice-note{margin:12px 0 0;font-size:11px;color:#aaa;line-height:1.6}
@media(max-width:760px){.commerce-addresses{grid-template-columns:1fr}.commerce-invoice-grid{grid-template-columns:1fr}.commerce-channels{display:block}.commerce-channels .commerce-choice{margin-top:10px;max-width:none}}

/* 运费待确认：不计入应付总额，避免显示为确定的 0 元 */
.commerce-freight-note{margin:6px 0 0;padding:7px 10px;background:#fff8ef;border:1px solid #f6dfc6;border-radius:6px;font-size:11.5px;color:#a15a16;line-height:1.6}
.commerce-order-summary .commerce-freight-note{grid-column:1/-1}

.pp-banner { max-width:1200px; margin:20px auto; padding:16px 20px; display:flex; align-items:center; justify-content:space-between; gap:20px; background:#fff8f2; border:1px solid #f3d8bf; border-radius:8px; }
.pp-banner>div { min-width:0; flex:1; }
.pp-banner label { display:flex; align-items:center; gap:12px; font-size:13px; font-weight:600; }
.pp-banner select { max-width:600px; width:100%; min-width:0; padding:9px 12px; border:1px solid #dededb; border-radius:6px; background:white; color:#333; font:inherit; }
.pp-banner p { margin:9px 0 0; font-size:13px; line-height:1.7; color:#69717a; }
.pp-banner>a { color:#b94c00; white-space:nowrap; padding:12px 0; font-size:13px; }
.pp-banner .pp-error { color:#b34028; }
.pp-desk-context { background:#fff8f2; border-bottom:1px solid #f0dfce; padding:14px 20px; }
.pp-desk-context p { margin:7px 0 0; font-size:12px; color:#6b737b; }
@media(max-width:640px){ .pp-banner{margin:14px 12px;padding:13px;align-items:flex-start;flex-direction:column;gap:8px;} .pp-banner label{align-items:flex-start;flex-direction:column;gap:8px;} .pp-banner select{min-height:44px;max-width:100%;} .pp-banner>a{min-height:40px;display:flex;align-items:center;padding:0;} }

.pp-order-context { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 18px; border:1px solid #e4e7eb; border-radius:7px; background:#fafbfc; margin:12px 0; }
.pp-order-context p { font-size:12px; color:#6d7780; margin:6px 0 0; }
.pp-order-context a { color:#b94c00; font-size:13px; white-space:nowrap; min-height:40px; display:flex; align-items:center; }
@media(max-width:640px){ .pp-order-context{align-items:flex-start;flex-direction:column;padding:12px;} .pp-order-context strong{overflow-wrap:anywhere;font-size:13px;} }

/* 购物车：含税 / 未税、含税小计与行需求描述 */
.commerce-cart-head>span:nth-child(3){font-size:11.5px;line-height:1.3}
.commerce-unit-price em{font-style:normal;font-size:11px;color:#999;margin-right:4px;letter-spacing:.5px}
.commerce-unit-price .cu-price{display:flex;align-items:baseline;white-space:nowrap}
.commerce-unit-price .cu-price b{font-size:14px;font-weight:600;color:#333}
.commerce-unit-price .cu-price.is-net b{font-size:13px;font-weight:500;color:#666}
.commerce-unit-price .cu-price small{display:inline;margin:0 0 0 3px;color:#aaa;font-size:11px}
.commerce-unit-price .cu-price-note{margin-top:5px}
.commerce-line-total b{font-weight:600;font-variant-numeric:tabular-nums}
.commerce-line-note{min-width:0}
.commerce-line-note textarea{width:100%;min-height:54px;max-height:120px;border:1px solid #e3e3e3;border-radius:2px;padding:7px 8px;font-size:12px;line-height:1.55;color:#444;background:#fff;resize:vertical}
.commerce-line-note textarea::placeholder{color:#b8b8b8;font-size:11px;line-height:1.5}
.commerce-line-note textarea:focus{border-color:#f47721;outline:0;box-shadow:0 0 0 2px #f4772114}
.commerce-line-note>small{display:block;text-align:right;font-size:10px;color:#bbb;margin-top:3px}
.commerce-cart-total small b{font-weight:500;color:#8a939a}
.commerce-item-note{color:#c96a1c!important}
.commerce-goods-unit b{font-weight:600}
.commerce-goods-unit small.is-net{color:#999}
@media(max-width:760px){
 .commerce-line-note{grid-column:2/4;grid-row:4;margin-top:4px}
 .commerce-line-note textarea{min-height:48px}
 .commerce-line-note>small{text-align:right}
}

/* 中等宽度：单价列收窄后只保留数字，避免与数量列重叠 */
@media(max-width:1100px){
 .commerce-unit-price .cu-price b{font-size:12.5px}
 .commerce-unit-price .cu-price.is-net b{font-size:12px}
 .commerce-unit-price .cu-price small{display:none}
 .commerce-cart-head>span:nth-child(3){font-size:11px}
}

/* ===== 确认订单：紧凑收货人信息 ===== */
.commerce-section-title .commerce-section-links{display:flex;align-items:center;gap:9px}
.commerce-section-links .commerce-link{font-size:12px;color:#666;padding:0}
.commerce-section-links .commerce-link:hover{color:#f47721}
.commerce-section-links .is-sep{font-style:normal;color:#e3e3e3;font-size:11px;line-height:1}
.commerce-addresses{grid-template-columns:1fr 1fr;gap:14px}
.commerce-address{min-height:0;padding:12px 14px;gap:9px;align-items:flex-start;border-color:#e6e6e6;background:#fff}
.commerce-address.is-active{border:1px solid #f47721;padding:12px 14px;box-shadow:inset 0 0 0 1px #f47721;background:#fffdfa}
.commerce-address>input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.commerce-address-mark{flex:none;width:16px;height:16px;border:1px solid #cfd3d6;border-radius:50%;margin-top:2px;position:relative;background:#fff}
.commerce-address.is-active .commerce-address-mark{border-color:#f47721;background:#f47721}
.commerce-address.is-active .commerce-address-mark::after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:10px;line-height:1}
.commerce-address-tick{display:none!important}
.commerce-address-main{min-width:0;flex:1}
.commerce-address .commerce-address-line{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;color:#333;line-height:1.55}
.commerce-address-line em{flex:none;font-style:normal;font-size:10px;color:#c76a2a;border:1px solid #ffd9bb;background:#fff5ec;padding:1px 4px;margin:0}
.commerce-address-line span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.commerce-address .commerce-address-contact{margin:5px 0 0;font-size:12px;color:#8a939a}
.commerce-address-contact span{margin-left:10px}
.commerce-address-more{margin-top:12px;font-size:12px;color:#888;padding:0}
.commerce-address-more i{font-style:normal;font-size:10px;margin-left:2px}
.commerce-address-more:hover{color:#f47721}

/* ===== 确认订单：发票摘要与编辑 ===== */
.commerce-invoice-summary{display:flex;align-items:center;gap:9px;padding:12px 14px;border:1px solid #f0f0f0;background:#fbfbfb;min-height:44px}
.commerce-invoice-summary>b{font-size:13px;font-weight:500;color:#333;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.commerce-invoice-summary .commerce-link{margin-left:auto;flex:none;font-size:12px;color:#c76a2a;padding:0}
.commerce-invoice-default{flex:none;font-style:normal;font-size:10px;color:#e05252;border:1px solid #ffd2d2;background:#fff5f5;padding:1px 4px;line-height:1.4}
.commerce-invoice-warn{flex:none;font-size:11px;color:#c76a2a}
.commerce-help-dot{display:inline-grid;place-items:center;width:13px;height:13px;border:1px solid #bbb;border-radius:50%;font-size:9px;font-style:normal;color:#999;margin-left:3px;line-height:1;vertical-align:1px}
.commerce-invoice-title h2{display:flex;align-items:baseline;flex-wrap:wrap;gap:0}
.commerce-invoice-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}
.commerce-invoice-type{position:relative;display:flex;border:1px solid #e3e3e3;padding:10px 12px;cursor:pointer;background:#fff}
.commerce-invoice-type input{position:absolute;opacity:0;pointer-events:none}
.commerce-invoice-type span{display:flex;flex-direction:column;gap:3px}
.commerce-invoice-type b{font-size:12.5px;font-weight:500;color:#333}
.commerce-invoice-type small{font-size:10.5px;color:#999}
.commerce-invoice-type:has(input:checked){border-color:#f47721;background:#fff8f1;box-shadow:inset 0 0 0 1px #f47721}
.commerce-invoice-type:has(input:checked) b{color:#c76a2a}
#checkout-invoice-form:has(input[value="none"]:checked) .commerce-invoice-form{display:none}
.checkout-invoice-help ul{margin:0 0 18px;padding-left:18px;color:#555;font-size:12.5px;line-height:1.9}
.checkout-invoice-help li+li{margin-top:6px}
.checkout-invoice-help b{color:#333}

/* ===== 确认订单：贵司标准采购订单号 ===== */
.commerce-purchase-order{display:flex;align-items:center;gap:20px;margin:22px 0 0;font-size:12px}
.commerce-purchase-order>b{font-weight:400;white-space:nowrap;padding-top:0}
.commerce-purchase-order input{flex:1;min-width:0;border:1px solid #ddd;border-radius:5px;padding:9px 12px;font-size:13px;line-height:1.6;color:#333}
.commerce-purchase-order input:focus{border-color:#f47721;outline:0}
.commerce-purchase-order>span{font-size:11px;color:#aaa;white-space:nowrap}
.commerce-purchase-order+ .commerce-purchase-note{margin-top:12px}
@media(max-width:760px){
 .commerce-addresses{grid-template-columns:1fr}
 .commerce-invoice-title h2 em{display:none}
 .commerce-invoice-types{grid-template-columns:1fr}
 .commerce-invoice-summary{flex-wrap:wrap}
 .commerce-invoice-summary>b{white-space:normal}
 .commerce-invoice-summary .commerce-link{margin-left:0}
}
@media(max-width:560px){
 .commerce-purchase-order{flex-wrap:wrap;gap:6px}
 .commerce-purchase-order input{flex-basis:100%}
 .commerce-purchase-order>span{display:none}
}

/* 发票编辑弹窗：抬头独占一行，其余两列，避免长企业名被截断 */
#checkout-invoice-form .commerce-invoice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#checkout-invoice-form .commerce-invoice-field:first-child{grid-column:1/-1}

/* 移动端：覆盖 mobile.css 里为旧版大卡片设置的尺寸 */
@media(max-width:760px){
 .hm-mobile .commerce-page .commerce-address{min-height:0;padding:12px 14px}
 .hm-mobile .commerce-page .commerce-address.is-active{padding:12px 14px}
 .hm-mobile .commerce-page .commerce-address .commerce-address-line{margin:0;font-size:13px;line-height:1.55}
 .hm-mobile .commerce-page .commerce-address .commerce-address-contact{margin:5px 0 0;font-size:12px}
}

/* 结算页：含税小计后的需求描述列 */
.commerce-goods-head>span:last-child{text-align:left}
.commerce-goods-note{text-align:left!important;font-size:12px;color:#666;line-height:1.6;min-width:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.commerce-goods-note b{display:none}
.commerce-goods-note i{font-style:normal;color:#bfbfbf}
@media(max-width:760px){
 .commerce-goods-note{grid-column:1/-1;display:block;overflow:visible;border-top:1px dashed #eee;padding-top:8px;margin-top:2px}
 .commerce-goods-note b{display:inline;font-size:11px;color:#999;font-weight:400;margin-right:6px}
}

/* 需求列与金额列之间留出间距 */
.commerce-goods-head>span:last-child{padding-left:14px}
.commerce-goods-note{padding-left:14px}
@media(max-width:760px){
 .commerce-goods-note{padding-left:0}
}
