/* Address entry and order layout: scoped to checkout, preserving other pages. */
body #modal-root :is(.checkout-form,.checkout-address-editor,.checkout-region-picker,.checkout-address-paste){font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;font-size:15px;line-height:1.6;letter-spacing:0;min-width:0}
.mobile-detail:has(.checkout-form) .modal-body{padding:12px 14px 24px}
.mobile-detail:has(:is(.checkout-address-editor,.checkout-region-picker,.checkout-address-paste)){background:#fff}
.mobile-detail:has(:is(.checkout-address-editor,.checkout-region-picker,.checkout-address-paste)) .mobile-page-head{background:#fff}
.mobile-detail:has(:is(.checkout-form,.checkout-address-editor,.checkout-region-picker)) .mobile-page-head h1{font-size:17px;font-weight:600}
.checkout-member{font-size:12px;margin:0 2px 12px}
body #modal-root .checkout-form :is(.checkout-address,.form-section,.checkout-arrangement){padding:17px 16px;margin:0 0 14px;border:1px solid #e8ebed;border-radius:14px;background:#fff}
body #modal-root .checkout-form h3{font-size:16px;font-weight:600;margin:0 0 14px;line-height:1.5}
body #modal-root .checkout-address-card{display:flex;align-items:center;gap:10px;padding:0;width:100%;border:0;background:transparent;text-align:left;font:inherit;cursor:pointer}
.checkout-address-icon{font-size:25px;flex:none;align-self:flex-start;line-height:1.3}
.checkout-address-copy{display:block;flex:1;min-width:0}.checkout-address-copy>strong{display:block;font-size:15px;line-height:1.6;margin-top:5px;font-weight:500;overflow-wrap:anywhere}
.checkout-recipient{display:block;font-size:15px;font-weight:600}.checkout-recipient>span{font-size:13px;font-weight:400;margin-left:7px}.checkout-recipient small{font-size:11px;border-radius:4px;background:#f0f1f2;padding:2px 5px;margin-left:6px;font-weight:400}.checkout-region{display:block;margin-top:7px;font-size:12px}.checkout-address-change{font-size:12px;white-space:nowrap;font-weight:400;flex:none}
body #modal-root .checkout-form .field-row{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:12px;margin:0;padding:11px 0;min-height:50px;border:0;border-bottom:1px solid #f0f1f2;font-size:14px}
body #modal-root .checkout-form .field-row>:is(label,.label){width:auto!important;font-size:14px;line-height:1.5;margin:0;float:none}
body #modal-root .checkout-form .field-row .value{width:100%;min-width:0;font-size:15px}
body #modal-root .checkout-form .field-row :is(input,select){box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:42px;border:1px solid #e4e6e8;border-radius:8px;background:#f7f8f9;padding:8px 10px;font:inherit;font-size:15px;text-align:left}
body #modal-root .checkout-form .field-row input[type=number]{text-align:center;font-size:17px}
body #modal-root .checkout-form .field-row:has(select[name=product]){grid-template-columns:1fr;gap:6px}
body #modal-root .checkout-form .fix-choices{display:flex;gap:20px;margin:16px 0;font-size:14px}
body #modal-root .checkout-form :is(.fix-choices label,.v12-urgent){display:flex;align-items:center;gap:7px;line-height:1.6;font-size:14px}
body #modal-root .checkout-form input:is([type=checkbox],[type=radio]){width:17px;height:17px;min-height:0;flex:none;margin:0;accent-color:#333}
body #modal-root .checkout-form .v12-promotion-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:12px 0;margin:0;border:0;border-top:1px solid #f0f1f2}
body #modal-root .checkout-form .v12-promotion-choice{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0}
body #modal-root .checkout-form .v12-promotion-help{font-size:13px;line-height:1.5;font-weight:500;padding:9px 0;min-height:40px;white-space:nowrap;border:0;background:transparent;text-decoration:none}
body #modal-root .checkout-form .v12-total{margin-top:5px;padding-top:7px;border-top:1px solid #e7eaed}
body #modal-root .checkout-form .v12-total .field-row{border:0;min-height:34px;padding:5px 0}.checkout-form .v12-total .value{text-align:right}
body #modal-root .checkout-form .v12-total .field-row:last-child{font-size:16px;font-weight:600;border-top:1px solid #e7eaed;margin-top:8px;padding-top:12px}
.checkout-extra{margin-top:10px}.checkout-extra>summary{font-size:13px;padding:6px 0;cursor:pointer}.checkout-station-actions{display:flex;gap:8px;margin:10px 0}.checkout-station-actions button{font:inherit;font-size:12px;padding:7px 10px;border:1px solid #e4e6e8;border-radius:7px;background:#f7f8f9;cursor:pointer}
body #modal-root .checkout-form :is(.fix-form-note,.modal-note){font-size:12px;line-height:1.8;font-weight:400;margin:12px 2px}
body #modal-root .checkout-form>.buttons{display:block;margin:16px 0 10px;padding:0}
body #modal-root :is(.checkout-form>.buttons>.btn,.address-save){display:block;box-sizing:border-box;width:100%;border:1px solid #ead0b5!important;border-radius:10px;background:#ffdec2!important;min-height:48px;padding:12px 16px;font:inherit;font-size:16px;font-weight:600;cursor:pointer}
.address-entry-intro h2{font-size:22px;font-weight:600;margin:0 0 5px}.address-entry-intro p{font-size:13px;margin:0 0 22px;line-height:1.7}
.address-paste-entry{display:block;width:100%;min-height:48px;font:inherit;font-size:14px;text-align:left;padding:12px 14px;border:0;border-radius:10px;background:#f4f5f6;margin-bottom:17px;cursor:pointer}
.address-region-entry{display:flex;align-items:center;width:100%;min-height:68px;gap:12px;padding:16px 0;text-align:left;font:inherit;background:#fff;border:0;border-bottom:1px solid #eceeef;cursor:pointer}.address-region-entry>span:first-child{flex:none;font-size:14px}.address-region-entry strong{font-size:15px;flex:1;min-width:0;font-weight:400}.address-region-entry>span:last-child{font-size:22px}
body #modal-root .address-entry-field{display:block;padding:18px 0;border-bottom:1px solid #eceeef;margin:0;font-size:14px;font-weight:400}
body #modal-root .address-entry-field>span{display:block;margin-bottom:9px;font-size:14px}
body #modal-root .address-entry-field :is(input,textarea){display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;border:0;border-radius:0;padding:3px 0;background:#fff;min-height:32px;line-height:1.7;font:inherit;font-size:16px;resize:vertical}
body #modal-root .address-entry-field textarea{min-height:85px}
.address-entry-tags{padding:20px 0;border-bottom:1px solid #eceeef}.address-entry-tags h3{font-size:15px;margin:0 0 12px}.address-entry-tags>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.address-entry-tags button{border:1px solid transparent;border-radius:7px;background:#f5f5f5;padding:9px 8px;font:inherit;font-size:14px;cursor:pointer}.address-entry-tags button.selected{border-color:#bb8f68;background:#fff1e5}
body #modal-root .address-entry-tags>input{box-sizing:border-box;max-width:100%;width:100%;font:inherit;font-size:14px;padding:9px 10px;border:1px solid #e4e6e8;border-radius:7px;margin-top:10px;background:#fff}
.address-extra{padding:16px 0}.address-extra>summary{font-size:13px;cursor:pointer}.address-entry-error{font-size:13px;line-height:1.7;margin:12px 0}.address-entry-error:empty{display:none}.address-save{margin:20px 0 max(12px,env(safe-area-inset-bottom))}
.address-region-tabs{display:flex;gap:6px;border-bottom:1px solid #eceeef;margin-bottom:16px}.address-region-tabs button{flex:1;min-width:0;min-height:46px;padding:8px 2px;border:0;border-bottom:2px solid transparent;background:transparent;font:inherit;font-size:14px;cursor:pointer}.address-region-tabs button.active{border-bottom-color:#222;font-weight:600}
.region-search{display:block;font-size:13px}.region-search>span{display:block;margin-bottom:7px}
body #modal-root :is(.region-search input,.region-manual input,.checkout-address-paste textarea){box-sizing:border-box;width:100%;max-width:100%;min-width:0;border:1px solid #e4e6e8;background:#f7f8f9;border-radius:9px;padding:12px;font:inherit;font-size:15px}
.region-common{margin:20px 0}.region-common h3{font-size:16px;margin:0 0 10px}.region-common>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.region-common button{font:inherit;font-size:14px;border:0;border-radius:8px;background:#f4f5f6;padding:10px 4px;cursor:pointer}.region-options{margin-top:14px}.region-options button{display:block;width:100%;text-align:left;font:inherit;font-size:16px;border:0;border-bottom:1px solid #f0f1f2;padding:15px 4px;background:#fff;cursor:pointer}.region-manual{font-size:13px;margin:24px 0}.region-manual p{margin:12px 0}.region-manual button{font:inherit;background:#f0f1f2;border:0;border-radius:7px;padding:10px 12px;margin-top:10px;cursor:pointer}.checkout-address-paste>p{font-size:14px;margin:0 0 16px}
@media(max-width:350px){body #modal-root .checkout-form :is(.checkout-address,.form-section,.checkout-arrangement){padding:14px 12px}body #modal-root .checkout-form .field-row{grid-template-columns:88px minmax(0,1fr);gap:8px}body #modal-root .checkout-form .v12-promotion-help{font-size:12px}.checkout-recipient>span{display:block;margin:3px 0 0}.checkout-address-change{font-size:11px}}

/* v14: expanded address, compact rows and visible required markers. */
body #modal-root .checkout-required,
body #modal-root .checkout-form .field-row:has(:required)>label::before{color:#c52626!important;font-weight:600}
body #modal-root .checkout-form .field-row:has(:required)>label::before{content:'*';margin-right:3px}
.checkout-required{margin-right:3px}
.mobile-detail:has(.checkout-form) .modal-body{padding:6px 10px 4px}
.checkout-member{display:flex;justify-content:space-between;margin:0 2px 5px;line-height:20px}
body #modal-root .checkout-form :is(.checkout-address,.form-section,.checkout-arrangement){padding:7px 10px;margin:0 0 7px;border-radius:9px}
body #modal-root .checkout-form h3{font-size:15px;margin:0 0 4px;line-height:24px}
.checkout-address-heading{display:flex;align-items:center;justify-content:space-between;min-height:28px}
body #modal-root .checkout-address-heading h3{margin:0}
body #modal-root .address-paste-entry{width:auto;min-height:28px;margin:0;padding:2px 8px;font-size:12px;border:1px solid #ddd;border-radius:5px;background:#fafafa}
body #modal-root .address-entry-field{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;gap:5px;padding:3px 0;min-height:38px;box-sizing:border-box}
body #modal-root .address-entry-field>span{display:block;margin:0;font-size:14px}
body #modal-root .address-entry-field :is(input,textarea){font-size:15px;line-height:22px;min-height:30px;padding:4px 0;resize:vertical}
body #modal-root .address-entry-field textarea{field-sizing:content;height:auto;min-height:32px;max-height:110px}
body #modal-root .address-region-control{display:flex;align-items:center;min-width:0}
body #modal-root .address-region-control input{flex:1;width:0}
.address-region-control button{flex:none;width:32px;height:32px;border:0;background:#f6f6f6;border-radius:5px;font-size:22px;cursor:pointer}
.address-entry-tags{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:5px;padding:4px 0;font-size:13px}
.address-entry-tags>div{display:flex;gap:3px}
.address-entry-tags button{flex:1;white-space:nowrap;padding:4px 2px;min-height:30px;font-size:12px;border-radius:5px}
body #modal-root .address-entry-tags>input{grid-column:2;margin:0;padding:4px 6px;min-height:30px}
body #modal-root .address-entry-tags>input[hidden]{display:none}
.address-extra{padding:2px 0}.address-extra>summary{font-size:12px;line-height:24px}
.address-entry-error{margin:4px 0}
body #modal-root .checkout-form .field-row{grid-template-columns:80px minmax(0,1fr);gap:5px;padding:3px 0;min-height:38px}
body #modal-root .checkout-form .field-row :is(input,select){min-height:32px;height:32px;padding:3px 6px;font-size:14px;border-radius:5px}
body #modal-root .checkout-form .field-row input[type=number]{font-size:16px}
body #modal-root .checkout-form .field-row:has(select[name=product]){grid-template-columns:50px minmax(0,1fr)}
.checkout-quantities{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body #modal-root .checkout-quantities .field-row{grid-template-columns:74px minmax(0,1fr)}
body #modal-root .checkout-form .fix-choices{gap:18px;margin:5px 0;min-height:26px;align-items:center}
body #modal-root .checkout-form .v12-promotion-choices{padding:2px 0;gap:3px}
body #modal-root .checkout-form .v12-promotion-help{min-height:32px;padding:4px 0;font-size:13px}
body #modal-root .checkout-form .v12-total{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;margin:2px 0 0;padding:3px 0 0}
body #modal-root .checkout-form .v12-total .field-row{grid-template-columns:auto minmax(0,1fr);min-height:26px;padding:1px 0;font-size:13px}
body #modal-root .checkout-form .v12-total .field-row :is(label,.label,.value){font-size:13px}
body #modal-root .checkout-form .v12-total .field-row:last-child{margin:0;padding:1px 0;border:0;font-weight:600}
.checkout-extra{margin:1px 0 0}
body #modal-root .checkout-form .checkout-extra>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:3px 0;font-size:14px;line-height:24px;color:#111;list-style:none}
.checkout-extra>summary::-webkit-details-marker{display:none}
.checkout-extra>summary::after{content:'展开⌄';flex:none;font-size:14px;white-space:nowrap}
.checkout-extra[open]>summary::after{content:'收起⌃'}
.checkout-extra>summary:focus-visible{outline:2px solid #617a50;outline-offset:3px;border-radius:3px}
body #modal-root .checkout-form :is(.fix-form-note,.modal-note){font-size:12px;line-height:1.5;margin:5px 0}
body #modal-root .checkout-form .v12-urgent{font-size:13px;min-height:24px}
body #modal-root .checkout-form>.buttons{margin:6px 0;padding:0}
body #modal-root .checkout-form>.buttons>.btn{min-height:40px;padding:7px 12px;font-size:15px;border-radius:7px}
body #modal-root .checkout-form>.fix-error:empty{display:none}
@media(max-width:350px){
  body #modal-root .checkout-form :is(.checkout-address,.form-section,.checkout-arrangement){padding:6px 8px}
  body #modal-root .checkout-form .v12-promotion-help{font-size:12px}
  .checkout-quantities{gap:8px}
  body #modal-root .checkout-quantities .field-row{grid-template-columns:68px minmax(0,1fr)}
  body #modal-root .checkout-quantities .field-row>label{font-size:13px}
  body #modal-root .checkout-form .v12-total{gap:0 8px}
}

body #modal-root .address-entry-field>.address-region-control{display:flex}
.checkout-arrangement-heading{display:flex;align-items:center;justify-content:space-between}
body #modal-root .checkout-form .checkout-arrangement-heading h3{margin:0}
body #modal-root .checkout-form .v12-urgent{margin:0;min-height:28px}
body #modal-root .checkout-form .v12-promotion-choice{min-height:32px}

/* Purchase drawer: the original shop remains visible beneath a real modal shade. */
body #modal-root .purchase-sheet-shade{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.58);border:0;border-radius:0;width:100%;height:100%;cursor:default}
body #modal-root .purchase-sheet{position:fixed;z-index:101;left:50%;bottom:0;transform:translateX(-50%);width:100%;max-width:430px;height:min(730px,85dvh);min-height:0;max-height:calc(100dvh - 56px);margin:0;border-radius:16px 16px 0 0;background:#fff;overflow:visible;display:flex;flex-direction:column;box-shadow:0 -5px 30px #0001;animation:purchase-rise .2s ease-out}
@keyframes purchase-rise{from{translate:0 35px;opacity:.7}to{translate:0 0;opacity:1}}
@media(prefers-reduced-motion:reduce){body #modal-root .purchase-sheet{animation:none}}
.purchase-sheet-head{height:0;flex:none}
.purchase-sheet-head h1{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body #modal-root .purchase-sheet-close{position:absolute;right:12px;top:-44px;width:34px;height:34px;min-height:34px;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:7px;background:#202327;font-size:32px;font-weight:300;line-height:1;color:#fff!important}
body #modal-root .purchase-sheet>.modal-body{padding:0;display:flex;flex:1;min-height:0}
body #modal-root .purchase-drawer-form{width:100%;display:flex;flex-direction:column;min-height:0;font-size:15px;line-height:1.5}
.purchase-sheet-scroll{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 17px}
.purchase-drawer-form summary{cursor:pointer;list-style:none}.purchase-drawer-form summary::-webkit-details-marker{display:none}
.purchase-address-details{border-bottom:1px solid #f1f1f1}
.purchase-address-details>summary{min-height:65px;display:flex;align-items:center;gap:9px;padding:13px 0}
.purchase-address-details>summary>svg{width:21px;height:25px;flex:none}
.purchase-address-details>summary>span:nth-child(2){display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 8px;flex:1;min-width:0}
.purchase-address-person{font-size:15px;white-space:nowrap}.purchase-address-text{font-size:14px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:600}
.purchase-address-edit{font-size:12px;white-space:nowrap;flex:none}
body #modal-root .purchase-drawer-form .checkout-member{margin:2px 0 4px}
body #modal-root .purchase-drawer-form .checkout-address{border:0;border-radius:0;padding:0 0 8px;margin:0}
.purchase-product-summary{display:flex;gap:14px;padding:17px 0 12px;align-items:center}
.purchase-product-image{width:94px;height:113px;flex:none;object-fit:contain;border-radius:9px;background:#f5f7f6;padding:8px;box-sizing:border-box}
.purchase-product-copy{min-width:0;flex:1}
body #modal-root .purchase-pay-amount,body #modal-root .purchase-pay-amount .purchase-amount{color:#d93b0b!important;font-size:17px;font-weight:600;line-height:1.2;white-space:nowrap}
body #modal-root .purchase-pay-amount .purchase-amount{font-size:32px;font-variant-numeric:tabular-nums}
.purchase-product-name{font-size:13px;margin:6px 0}
.purchase-stepper{display:flex;align-items:center;background:#f6f6f7;border-radius:5px;width:116px;height:32px}
body #modal-root .purchase-stepper button{width:33px;height:32px;min-height:32px;flex:none;padding:0;background:transparent;border:0;font-size:22px}
body #modal-root .purchase-stepper input{width:50px;min-width:0;height:23px;padding:0 3px;border:0;border-inline:1px solid #dce0e2;border-radius:0;background:transparent;text-align:center;font-size:17px;appearance:textfield}
.purchase-stepper input::-webkit-inner-spin-button,.purchase-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.purchase-price-breakdown{margin:0 0 8px;background:#fafafa;border-radius:6px}
body #modal-root .purchase-drawer-form .purchase-price-breakdown>h3{font-size:14px;font-weight:500;line-height:24px;margin:0;padding:5px 8px 0}
body #modal-root .purchase-drawer-form .v12-total{padding:2px 8px 8px}
body #modal-root .purchase-product-select .field-row{grid-template-columns:42px minmax(0,1fr);padding:4px 0 10px}
body #modal-root .purchase-product-select select{height:36px!important;background:#f5f5f6!important;border:0!important}
.purchase-order-options{padding:8px 0 5px;border-top:1px solid #eee}
.purchase-delivery-count{display:flex;align-items:center;gap:12px}
body #modal-root .purchase-delivery-count>.field-row{grid-template-columns:75px 48px;flex:1;min-width:0}
body #modal-root .purchase-delivery-count .fix-choices{gap:10px;flex:none;margin:0}
body #modal-root .purchase-delivery-count .fix-choices label{font-size:13px;gap:4px}
body #modal-root .purchase-drawer-form .v12-promotion-choices{border:0;margin:5px 0 3px;padding:0}
body #modal-root .purchase-drawer-form .checkout-arrangement{border:0;border-radius:0;padding:0;margin:0}
body #modal-root .purchase-drawer-form .checkout-arrangement-heading h3{font-size:14px;font-weight:500}
body #modal-root .purchase-drawer-form .checkout-extra{margin-top:2px}
.purchase-notes{padding:12px 0;border-top:1px solid #eee;margin-top:5px}
.purchase-notes>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;min-height:24px}
.purchase-notes>summary>span:last-child{font-size:12px}
.purchase-remark-label{display:block;font-size:13px;margin-top:9px}
body #modal-root .purchase-remark-label textarea{display:block;box-sizing:border-box;min-width:0;width:100%;border:1px solid #ddd;border-radius:6px;margin:5px 0;padding:7px;font:inherit;resize:vertical}
.purchase-payment-methods{border:0;border-top:7px solid #f6f6f7;margin:0 -17px;padding:4px 17px 8px;min-width:0}
.purchase-payment-methods legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.purchase-payment-methods>label{display:flex;align-items:center;gap:10px;min-height:57px;position:relative;cursor:pointer;font-size:17px}
.purchase-payment-methods>label+label{border-top:1px solid #f5f5f5}
body #modal-root .purchase-payment-icon{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:21px;color:#fff!important;flex:none}
.purchase-payment-icon.wechat{background:#09b85a}.purchase-payment-icon svg{width:24px;height:24px}
body #modal-root .purchase-payment-methods input{position:absolute;right:0;width:25px;height:25px;opacity:0;cursor:pointer}
.purchase-payment-check{margin-left:auto;flex:none;width:22px;height:22px;border:2px solid #d5d8da;box-sizing:border-box;border-radius:50%;display:grid;place-items:center}
.purchase-payment-methods input:checked+.purchase-payment-check{background:#ff750c;border-color:#ff750c}
body #modal-root .purchase-payment-methods input:checked+.purchase-payment-check:after{content:'✓';font-weight:700;color:white!important;font-size:15px}
.purchase-payment-methods input:focus-visible+.purchase-payment-check{outline:2px solid #111;outline-offset:3px}
.purchase-sheet-footer{flex:none;padding:10px 17px max(9px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #f5f5f5}
body #modal-root .purchase-pay-button{width:100%;height:46px;min-height:46px;border:0;border-radius:7px;background:#ff6b00;font-size:19px;font-weight:700;color:#fff!important;padding:7px 8px;letter-spacing:0}
body #modal-root .purchase-pay-button .purchase-button-amount{color:#fff!important;font-size:19px}
body #modal-root .purchase-demo-note{font-size:11px;text-align:center;margin:6px 0 0;line-height:1.4}
.purchase-sheet-footer .fix-error:empty{display:none}.purchase-sheet-footer .fix-error{margin:0 0 7px;font-size:12px}
@media(max-width:350px){.purchase-sheet-scroll{padding:0 12px}.purchase-payment-methods{margin:0 -12px;padding-inline:12px}.purchase-sheet-footer{padding-inline:12px}.purchase-product-image{width:83px;height:105px}.purchase-product-summary{gap:11px}.purchase-delivery-count{gap:7px}.purchase-address-details>summary{gap:6px}body #modal-root .purchase-delivery-count>.field-row{grid-template-columns:69px 40px}body #modal-root .purchase-pay-amount .purchase-amount{font-size:29px}}
.purchase-sheet-underlay{position:fixed;inset:0;z-index:99;isolation:isolate;pointer-events:none}
html:has(#modal-root>.purchase-sheet){overflow:hidden}
.purchase-sheet-underlay .purchase-sheet-close{visibility:hidden}
body #modal-root .purchase-product-summary{padding-top:14px;padding-bottom:10px}
body #modal-root .purchase-notes{padding-top:9px;padding-bottom:9px}
body #modal-root .purchase-payment-methods>label{min-height:53px}
body #modal-root .purchase-address-summary{width:100%;min-height:60px;display:flex;align-items:center;gap:9px;padding:11px 0;text-align:left;border:0;background:transparent;font:inherit}
.purchase-address-summary>svg{width:21px;height:25px;flex:none}.purchase-address-summary>span:nth-child(2){display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 8px;flex:1;min-width:0}
body #modal-root .purchase-sheet:has(>.modal-body>.address-drawer-form){height:min(755px,87dvh)}
.address-drawer-form{width:100%;display:flex;flex-direction:column;min-height:0}
.address-drawer-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;border-radius:16px 16px 0 0}
.address-map-placeholder{min-height:135px;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#f0f3f2;padding:15px;text-align:center;box-sizing:border-box}
.address-map-placeholder>svg{width:32px;height:34px;margin-bottom:8px}.address-map-placeholder strong{font-size:15px;font-weight:500}.address-map-placeholder p{font-size:12px;margin:6px 0 0}
.address-drawer-tools{display:flex;gap:12px;padding:16px 17px 4px;align-items:center}
body #modal-root .address-drawer-tools button{font:inherit;border:0;background:transparent;min-height:42px;padding:0;font-size:12px;flex:none}
body #modal-root .address-drawer-tools button:first-child{background:#f5f5f6;border-radius:10px;text-align:left;padding:6px 12px;font-size:15px;flex:1}
.address-drawer-tools button>span{font-size:24px;vertical-align:middle}.address-drawer-tools button:last-child>span{display:block;line-height:24px}
body #modal-root .address-drawer-form .checkout-address-editor{padding:8px 17px 15px;font-size:15px}
.address-drawer-form .checkout-address-heading{display:none}
body #modal-root .address-drawer-form .address-entry-field{grid-template-columns:92px minmax(0,1fr);gap:7px;min-height:57px;padding:10px 0;border-bottom:1px solid #eee;font-size:15px;align-items:center}
body #modal-root .address-drawer-form .address-entry-field>span{font-size:15px}
body #modal-root .address-drawer-form .address-entry-field :is(input,textarea){font-size:15px;line-height:24px;min-height:32px}
body #modal-root .address-drawer-form .address-detail-field{grid-template-columns:1fr;gap:1px;min-height:68px}
.address-drawer-form .address-entry-field:has(input[name=phone])>span:before{content:'+86  ';font-weight:500;margin-right:4px}
body #modal-root .address-drawer-form .address-entry-field:has(input[name=phone]){grid-template-columns:132px minmax(0,1fr)}
.address-drawer-form .address-entry-tags{display:block;border-top:7px solid #f6f6f7;margin:12px -17px 0;padding:12px 17px 10px}
.address-drawer-form .address-entry-tags>span{font-size:0;font-weight:600}.address-drawer-form .address-entry-tags>span:after{content:'地址标签';font-size:16px}
.address-drawer-form .address-entry-tags>div{margin-top:10px;gap:5px}
body #modal-root .address-drawer-form .address-entry-tags button{font-size:14px;min-height:37px;border:1px solid transparent;border-radius:5px;background:#f5f5f6;padding:4px 6px}
body #modal-root .address-drawer-form .address-entry-tags button.selected{border-color:#e9b99a;background:#fff0e6}
.address-drawer-form .address-extra{border-top:1px solid #eee;padding-top:7px}
.address-drawer-footer{padding:12px 17px max(14px,env(safe-area-inset-bottom));flex:none;background:#fff}
body #modal-root .address-drawer-save{width:100%;height:44px;background:#ffdbc2;border:0;border-radius:6px;font-size:17px;font-weight:600}
body #modal-root .purchase-sheet:has(>.modal-body>.checkout-region-picker){height:74dvh}
.purchase-sheet:has(>.modal-body>:is(.checkout-region-picker,.checkout-address-paste)) .purchase-sheet-head{height:58px;display:flex;align-items:center;justify-content:center;flex:none}
.purchase-sheet:has(>.modal-body>:is(.checkout-region-picker,.checkout-address-paste)) .purchase-sheet-head h1{position:static;width:auto;height:auto;clip-path:none;font-size:19px;font-weight:650;margin:0}
body #modal-root .purchase-sheet:has(>.modal-body>:is(.checkout-region-picker,.checkout-address-paste)) .purchase-sheet-close{top:12px;right:12px;background:transparent;color:#111!important}
body #modal-root .purchase-sheet:has(>.modal-body>:is(.checkout-region-picker,.checkout-address-paste))>.modal-body{display:block;overflow-y:auto;overscroll-behavior:contain;padding:0 17px 20px}
.region-area-tabs{display:flex;gap:8px;margin-bottom:18px}.region-area-tabs>button{font:inherit;font-size:15px;flex:1;min-height:40px;border:0;border-bottom:2px solid transparent;background:white}
.region-area-tabs>button.active{border-color:#edb28d;background:#fff7f1}
body #modal-root .checkout-region-picker .region-common h3,body #modal-root .checkout-region-picker .region-list-title{font-size:17px;font-weight:600;margin:15px 0 12px}
body #modal-root .checkout-region-picker .region-common>div{display:flex;flex-wrap:wrap;gap:10px 8px}
body #modal-root .checkout-region-picker .region-common button{flex:none;border:0;border-radius:22px;background:#f7f7f7;padding:7px 12px;min-height:36px;font-size:15px}
body #modal-root .checkout-region-picker .region-options{display:flex;flex-direction:column;gap:0}
body #modal-root .checkout-region-picker .region-options button{width:100%;text-align:left;border:0;border-radius:0;background:#fff;min-height:46px;padding:9px 12px;font-size:16px}
.checkout-region-picker .region-search{margin:7px 0}.checkout-region-picker .region-search>span{font-size:13px}
.checkout-region-picker .address-region-tabs{margin-bottom:9px}
.checkout-region-picker[data-level="0"] .address-region-tabs{display:none}
@media(max-width:350px){body #modal-root .address-drawer-form .address-entry-tags button{font-size:13px;padding-inline:4px}.address-drawer-tools{gap:8px}body #modal-root .address-drawer-tools button:first-child{font-size:14px;padding-inline:8px}.region-area-tabs>button{font-size:14px}}
