/* Scoped visual enhancement only; native payment controls and calculation remain authoritative. */
.checkout-page { --checkout-blue:#2868f4; --checkout-ink:#24364e; --checkout-line:#e5ebf4; }
.checkout-page #payform { padding-bottom:100px; }
.checkout-page .checkout-grid { display:grid; grid-template-columns:minmax(0,1fr) 370px; gap:22px; align-items:start; padding:0 !important; background:transparent !important; box-shadow:none !important; }
.checkout-products,.checkout-description,.checkout-panel { min-width:0; background:#fff; border:1px solid var(--checkout-line); border-radius:20px; box-shadow:0 8px 28px rgba(34,63,110,.055); }
.checkout-products { grid-column:1; grid-row:1; padding:20px 24px; }
.checkout-description { grid-column:1; grid-row:2; padding:20px 24px; overflow-wrap:anywhere; }
.checkout-description > hr:first-child { display:none; }
.checkout-description #remark { max-width:100%; line-height:1.85; }
.checkout-description #remark img { max-width:100%; height:auto; }
.checkout-description #remark pre { white-space:pre-wrap; overflow-wrap:anywhere; }
.checkout-page .checkout-panel { grid-column:2; grid-row:1 / span 2; margin:0 !important; padding:22px 20px; position:sticky; top:86px; }
.checkout-panel #order_box { padding:0; min-width:0; }
.checkout-page .section--first { padding-top:94px; }
.checkout-page #fk-buyer-order-recovery { max-width:1280px !important; margin:0 auto 16px !important; padding:8px 16px !important; }
.checkout-page #fk-buyer-order-recovery p { margin:0 !important; }
.checkout-products .section__title-wrap { margin-top:0; }
.checkout-products .section__title { margin-bottom:12px; font-size:18px; }
.checkout-products .mt-4 { margin-top:18px !important; }
.checkout-products .card { margin-bottom:0; border-radius:14px; }
.checkout-products .category .card__title { padding:12px 16px 0; }
.checkout-products .category .card__content { padding:6px 16px 12px; }
.checkout-products .card__title h3 { font-size:15px; margin:0; }
.checkout-products .goods_box { flex:0 0 50%; max-width:50%; }
.checkout-products .card__wrap { padding:14px; }
.checkout-products .card__detail h3 { white-space:normal; overflow-wrap:anywhere; line-height:1.55; }
.checkout-products .goods_list,.checkout-products .category_list { overscroll-behavior:contain; }
.checkout-page #order_box .ure_info_box .ure_info { padding-top:14px; padding-bottom:14px; }
.checkout-page #order_box .ure_info_box .ure_info .ure_info_input_box { margin-left:0; margin-top:12px; }
.checkout-page #order_box .ure_info_box .ure_info .ure_info_input_box .input { width:100%; height:44px; margin-top:6px; border-radius:12px; border-color:#dce4ef; box-shadow:none; }
.checkout-page #order_box .ure_info_box .ure_info .ure_info_input_box .input input { padding:0 12px; font-size:14px; min-width:0; }
.checkout-page #order_box .ure_info_box .ure_info .ure_info_input_box .msg { margin:6px 0 0; font-size:12px; line-height:1.5; }
.checkout-panel .ure_info_input_box.d-flex { flex-wrap:wrap; gap:6px; }
.checkout-panel .btn-type > div { margin:0; padding:5px 9px; border-radius:20px; font-size:12px; }
.checkout-panel .btn-type > div label { padding:4px 8px; font-size:12px; }
.checkout-panel .ure_info_input_box_hide p { margin-bottom:0; }
.checkout-page #order_box .ure_info_box .pay_type .pay_type_hide { margin:0; padding-top:16px; font-size:15px; color:var(--checkout-ink); }
.checkout-page #order_box .ure_info_box .pay_type .pay_type_box { display:grid; grid-template-columns:1fr; gap:8px; margin:10px 0 0; }
.checkout-page #order_box .ure_info_box .pay_type .pay_type_box .pay_type_leng { display:flex; align-items:center; text-align:left; gap:9px; width:100%; min-height:48px; margin:0; padding:10px 12px; border:1.5px solid #e4eaf3; border-radius:13px; background:#f8fafd; line-height:1.5; box-sizing:border-box; }
.checkout-page #order_box .ure_info_box .pay_type .pay_type_box .pay_type_leng span { margin:0; flex:1; min-width:0; font-size:13px; overflow-wrap:anywhere; }
.checkout-page #order_box .ure_info_box .pay_type .pay_type_box .pay_type_leng_xz { border-color:var(--checkout-blue); background:#edf4ff; box-shadow:0 0 0 2px rgba(40,104,244,.07); }
.checkout-page .pay_type_leng .xiadui { width:18px; }
.checkout-page input:focus-visible,.checkout-page [role=radio]:focus-visible,.checkout-method-button:focus-visible,.checkout-jump:focus-visible { outline:3px solid #99baff; outline-offset:3px; }
.checkout-summary { margin-top:16px; padding-top:14px; border-top:1px solid var(--checkout-line); color:#52647d; font-size:12px; line-height:1.6; }
.checkout-summary strong { display:block; color:var(--checkout-ink); font-size:14px; }
.checkout-summary .checkout-total { display:block; color:var(--checkout-blue); font-size:25px; font-weight:750; font-variant-numeric:tabular-nums; }
.checkout-summary .checkout-fee { display:block; color:#6b7b93; font-size:12px; }
.checkout-jump { display:block; border:0; border-radius:12px; color:var(--checkout-blue); background:#eff5ff; padding:10px 12px; margin-top:12px; width:100%; font:inherit; font-size:13px; cursor:pointer; }
.checkout-page .section_buttom { height:auto; min-height:70px; z-index:98; padding:9px 0 calc(9px + env(safe-area-inset-bottom,0px)); border-top:1px solid var(--checkout-line); background:rgba(255,255,255,.97); }
.checkout-page .section_buttom > .container > .d-flex { gap:16px; }
.checkout-page .section_buttom .goods_name { min-width:0; flex:1 1 180px; line-height:1.5; display:flex; align-items:center; }
.checkout-page .section_buttom .goods_name span { margin-left:10px; }
.checkout-page .section_buttom .shuliang_box { flex-shrink:0; }
.checkout-page .section_buttom .shuliang_box .input { width:52px; margin:0 10px; }
.checkout-page .section_buttom .jiage { margin-left:20px; flex-wrap:wrap; gap:3px; max-width:290px; }
.checkout-page .section_buttom .jiage s { margin-left:4px; }
.checkout-page .section_buttom .jiage span:last-child { font-size:12px; }
.checkout-page .section_buttom .queding_btn { flex:0 0 130px; min-height:44px; border-radius:14px; }
.checkout-page .section_buttom #check_pay { width:100%; min-height:44px; background:transparent; border:0; cursor:pointer; }
.checkout-method-button { flex-shrink:0; display:block; max-width:180px; min-height:42px; border:1px solid #d9e6ff; background:#eef5ff; color:#245fc4; border-radius:12px; padding:7px 12px; font-size:12px; line-height:1.4; cursor:pointer; text-align:left; }
.checkout-method-button small { display:block; font-size:11px; opacity:.8; }
.checkout-page .checkout-method-missing .checkout-method-button { background:var(--checkout-blue); color:white; }
.checkout-page .checkout-payment-focus { box-shadow:0 0 0 4px rgba(40,104,244,.15); border-radius:14px; }
.checkout-page .pay_type,.checkout-page .pay,.checkout-page [name=contact] { scroll-margin-top:105px; }
.checkout-page .ewm { top:auto; bottom:100px; opacity:.9; }
.checkout-qr { border-top:1px solid var(--checkout-line); margin-top:18px; padding-top:12px; color:#62728a; font-size:13px; }
.checkout-qr summary { cursor:pointer; width:fit-content; padding:8px 10px; border-radius:10px; background:#f2f6fc; }
.checkout-page .checkout-qr .ewm { display:block; position:static; width:180px; margin:12px 0 0; padding:10px; opacity:1; background:white; border:1px solid var(--checkout-line); border-radius:12px; }
.checkout-page .pay_type_leng,.checkout-page .pay_box,.checkout-jump,.checkout-method-button,.checkout-page #check_pay { transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .18s cubic-bezier(.2,.8,.2,1); -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.checkout-page .pay_type_leng:active,.checkout-page .pay_box:active,.checkout-jump:active,.checkout-method-button:active { transform:scale(.985); }
@keyframes checkout-reveal { from { opacity:.35; translate:0 5px; } to { opacity:1; translate:0 0; } }
.checkout-products,.checkout-description { animation:checkout-reveal .32s cubic-bezier(.22,1,.36,1) both; }
@media (max-width:1199px) { .checkout-page .checkout-grid { grid-template-columns:minmax(0,1fr) 340px; gap:18px; } .checkout-page .section_buttom .goods_name { display:none; } .checkout-page .ewm { display:none; } }
@media (max-width:991px) {
 .checkout-page .checkout-grid { grid-template-columns:minmax(0,1fr); }
 .checkout-products { grid-column:1; grid-row:1; }
 .checkout-page .checkout-panel { grid-column:1; grid-row:2; position:static; padding:20px; }
 .checkout-description { grid-column:1; grid-row:3; }
 .checkout-page #order_box .ure_info_box .pay_type .pay_type_box { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .checkout-summary { display:none; }
 .checkout-page .section_buttom .jiage { max-width:220px; }
 .checkout-page .section_buttom > .container { max-width:100%; }
}
@media (max-width:767px) {
 .checkout-page .section--first { padding-top:18px; padding-bottom:20px; }
 .checkout-page .checkout-grid { width:calc(100% - 24px); gap:14px; }
 .checkout-products,.checkout-description { padding:16px; border-radius:16px; }
 .checkout-products .goods_box { flex-basis:100%; max-width:100%; }
 .checkout-products .category .card__content { padding-bottom:8px; }
 .checkout-page #fk-buyer-order-recovery { width:calc(100% - 24px); padding:10px 12px !important; font-size:12px !important; }
 .checkout-page #order_box .ure_info_box .pay_type .pay_type_box { grid-template-columns:1fr; }
 .checkout-page .section_buttom > .container > .d-flex { display:grid !important; grid-template-columns:minmax(0,1fr) 112px; gap:8px; }
 .checkout-page .section_buttom .shuliang_box { grid-column:1/-1; display:flex; justify-content:space-between; min-width:0; }
 .checkout-page .section_buttom .jiage { margin-left:auto; max-width:190px; justify-content:flex-end; }
 .checkout-page .section_buttom .jiage span:first-child { display:none; }
 .checkout-page .section_buttom .jiage span:nth-child(2) { margin-left:0; font-size:21px; }
 .checkout-page .section_buttom .shuliang_box .input { width:42px; margin:0 7px; }
 .checkout-page .section_buttom .queding_btn { width:112px; min-height:42px; }
 .checkout-method-button { max-width:100%; width:100%; min-width:0; }
 .checkout-page .section_buttom { padding:8px 0 calc(8px + env(safe-area-inset-bottom,0px)); }
 .checkout-page #payform { padding-bottom:140px; }
 .checkout-page .pay_type,.checkout-page .pay { scroll-margin-top:18px; }
}
/* Real mobile template: keep all native sections and controls, reduce ornamental space. */
.checkout-mobile #payform > section { box-sizing:border-box; }
.checkout-mobile .category .category_title,.checkout-mobile .goods .goods_title { padding-top:12px; }
.checkout-mobile .category_list { max-height:240px !important; }
.checkout-mobile .category_box_bak,.checkout-mobile .category_box { padding-top:10px; padding-bottom:10px; }
.checkout-mobile .order_info { margin-top:14px; border:1px solid var(--checkout-line); border-radius:16px; padding:6px 14px; background:#fff; }
.checkout-mobile .order_info .info_box { margin:12px 0; }
.checkout-mobile .order_info .input_right { min-width:0; }
.checkout-mobile .order_info .input_right input,.checkout-mobile .order_info .input_coupon input { box-sizing:border-box; max-width:100%; border-radius:10px; font-size:16px; }
.checkout-mobile .pay { margin-top:14px; padding:14px; border:1px solid var(--checkout-line); border-radius:16px; background:#fff; }
.checkout-mobile .pay .pay_title { margin:0 0 12px; font-size:16px; }
.checkout-mobile .pay .pay_list { display:grid; grid-template-columns:1fr; gap:8px; }
.checkout-mobile .pay .pay_list .pay_box { width:100%; min-height:48px; margin:0; line-height:1.5; padding:11px 12px; box-sizing:border-box; border-radius:12px; text-align:left; font-size:13px; }
.checkout-mobile .pay .pay_list .pay_box > div { display:flex; align-items:center; gap:8px; }
.checkout-mobile .pay .pay_list .pay_box span { margin:0; min-width:0; overflow-wrap:anywhere; }
.checkout-mobile .pay .pay_list .pay_box .buy_type { width:22px; flex:0 0 22px; }
.checkout-mobile .desc { margin-top:18px; padding-top:12px; border-top:1px solid var(--checkout-line); overflow-wrap:anywhere; }
.checkout-mobile .desc #remark img { max-width:100%; height:auto; }
.checkout-mobile .footer { box-sizing:border-box; align-items:center; gap:10px; padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px)); z-index:40; }
.checkout-mobile .footer .to_pay { min-width:0; min-height:48px; border-radius:13px; padding:8px; }
.checkout-mobile .footer .to_pay span:first-child { font-size:15px; }
.checkout-mobile .footer .to_pay span p { font-size:11px; }
.checkout-mobile .footer .checkout-method-button { width:38%; max-width:160px; min-height:48px; }
.checkout-mobile #payform > .border { display:none; }
@media (prefers-reduced-motion:reduce) { .checkout-page *, .checkout-page *::before,.checkout-page *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }
