/* 统一用户端结算、支付与订单视觉；金额及状态均使用原业务数据。 */
body.hejuo-ui :is(#maieCheckout,#heroCheckoutDialog,#trxCheckout,#cryptoPaymentDialog,#trxDepositDialog){box-sizing:border-box;width:calc(100% - 28px)!important;max-width:420px!important;max-height:82dvh!important;height:auto!important;inset:0!important;margin:auto!important;padding:20px!important;border:1px solid #dce6e9!important;border-radius:22px!important;background:#fff!important;color:#173747!important;overflow:auto!important;overscroll-behavior:contain;box-shadow:0 20px 70px #102e4033}
body.hejuo-ui :is(#maieCheckout,#heroCheckoutDialog,#trxCheckout,#cryptoPaymentDialog,#trxDepositDialog)::backdrop{background:#102e4066;backdrop-filter:blur(3px)}
body.hejuo-ui :is(#maieCheckout,#heroCheckoutDialog,#trxCheckout) form{margin:0;padding:0;background:transparent}
body.hejuo-ui :is(#maieCheckout,#heroCheckoutDialog,#trxCheckout) header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;padding:0 0 14px;border-bottom:1px solid #e5ecef;background:#fff}
body.hejuo-ui :is(#maieCheckout,#heroCheckoutDialog,#trxCheckout) :is(h1,h2){margin:0;font-size:19px;font-weight:700;color:#173747}
body.hejuo-ui :is(#maieCheckout,#heroCheckoutDialog,#trxCheckout) h3{font-size:17px;line-height:1.6;color:#173747;overflow-wrap:anywhere}
body.hejuo-ui :is(#maieCheckout,#heroCheckoutDialog,#trxCheckout) footer{position:static;margin-top:18px;padding:16px 0 0;border-top:1px solid #e5ecef;background:#fff}
body.hejuo-ui :is(#maieConfirm,#heroCheckoutConfirm,#trxConfirm,.confirm-pay){width:100%;min-height:48px;border:0;border-radius:13px;background:#173e4b;color:white;font-size:15px;font-weight:650;box-shadow:none}
body.hejuo-ui :is(#maieConfirm,#heroCheckoutConfirm,#trxConfirm,.confirm-pay):disabled{opacity:.5;cursor:not-allowed}
body.hejuo-ui :is(#maieCheckout,#heroCheckoutDialog,#trxCheckout) :is(.maie-total,.trx-total,.checkout-lines>div){display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 0;line-height:1.6;border-bottom:1px solid #edf1f3}
body.hejuo-ui :is(.checkout-lines,.payment-list,#maieCheckoutSummary,#heroCheckoutSummary,#trxCheckoutSummary){border-radius:14px;color:#173747;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body.hejuo-ui :is(.maie-confirm,.trx-confirm){display:flex;align-items:flex-start;gap:10px;margin:16px 0;font-size:13px;line-height:1.8;color:#405d6b}
body.hejuo-ui :is(.maie-confirm,.trx-confirm) input{flex:0 0 auto;margin-top:5px;accent-color:#21806d}
body.hejuo-ui :is(#maieCheckoutNotice,#heroCheckoutNotice,#trxCheckoutNotice):not(:empty){padding:12px 14px;border-radius:12px;background:#fff8ee;color:#8b5926;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
body.hejuo-ui :is(#checkoutPage,#rechargePage,#paymentSuccessPage){background:#f4f8f9;color:#173747}
body.hejuo-ui #checkoutPage :is(.checkout-product,.checkout-lines,.payment-list){box-sizing:border-box;margin:14px 16px;padding:18px;border:1px solid #dce6e9;background:#fff;border-radius:16px}
body.hejuo-ui #checkoutPage .checkout-product{padding:22px 18px;text-align:center}
body.hejuo-ui :is(#checkoutPage,#heroCheckoutDialog) .orange{color:#176b5b!important}
body.hejuo-ui :is(.user-order-card,.trx-order){padding:18px!important;border:1px solid #dce6e9!important;border-radius:16px!important;background:#fff!important;color:#173747!important;box-shadow:none!important;line-height:1.65}
body.hejuo-ui :is(.user-order-card,.trx-order) :is(small,p){color:#4d6675;overflow-wrap:anywhere}
body.hejuo-ui :is(.user-order-card,.trx-order) button{min-height:38px;border-radius:10px;font-size:13px}
body.hejuo-ui :is(.user-order-head,.user-order-foot){gap:12px}
body.hejuo-ui .user-order-head em{flex-shrink:0;border-radius:7px;padding:4px 8px;background:#eaf4f1;color:#226b5a;font-style:normal;font-size:12px}
body.hejuo-ui [data-order-state="refunded"] .user-order-head em{background:#f1f3f5;color:#52616c}
body.hejuo-ui [data-order-state="processing"] .user-order-head em,body.hejuo-ui [data-order-state="submitting"] .user-order-head em{background:#fff4df;color:#805b20}
body.hejuo-ui .payment-success-content{margin:24px 16px;padding:28px 20px;border:1px solid #dce6e9;border-radius:20px;background:white;text-align:center}
body.hejuo-ui .payment-success-content p{font-size:14px;line-height:1.85;color:#4d6675}
body.hejuo-ui .field-error{margin:6px 0 12px!important;color:#a23b30!important;font-size:13px;line-height:1.6}
body.hejuo-ui [aria-invalid="true"]{border-color:#b65046!important;outline-color:#b65046!important}
body.hejuo-ui .toast{box-sizing:border-box;max-width:min(420px,calc(100vw - 40px));padding:14px 18px!important;border:1px solid #d6e4e6!important;border-radius:13px!important;background:#173747!important;color:#fff!important;font-size:14px!important;line-height:1.7!important;box-shadow:0 10px 36px #102e4033;overflow-wrap:anywhere;text-align:center}
body.hejuo-ui .toast::before{content:none!important;display:none!important}
body.hejuo-ui .confirm-action-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:420px;max-height:80dvh;border:1px solid #dce6e9;border-radius:20px;padding:22px;background:#fff;color:#173747;overflow:auto}
body.hejuo-ui .confirm-action-dialog::backdrop{background:#102e4066;backdrop-filter:blur(3px)}
body.hejuo-ui .confirm-action-dialog p{line-height:1.8;color:#405d6b}
@media(prefers-reduced-motion:reduce){.toast,.admin-toast{transition:none!important}}

/* 旧样式存在 sticky!important，改为正常文档流，确认事项始终位于支付按钮前。 */
body.hejuo-ui :is(#maieCheckout,#heroCheckoutDialog,#trxCheckout) form{display:block!important;height:auto!important;min-height:0!important;gap:0!important}
body.hejuo-ui :is(#maieCheckout,#heroCheckoutDialog,#trxCheckout) footer{position:static!important;inset:auto!important;transform:none!important;margin:16px 0 0!important;padding:16px 0 0!important;box-shadow:none!important}
body.hejuo-ui :is(#maieCheckoutSummary,#heroCheckoutSummary,#trxCheckoutSummary){padding:14px!important;margin:12px 0!important;background:#f8fafb!important;border:1px solid #e1e9ed!important}
body.hejuo-ui :is(#maieCheckoutSummary,#heroCheckoutSummary,#trxCheckoutSummary) h3{margin:0 0 8px!important}
body.hejuo-ui :is(#maieCheckoutSummary,#heroCheckoutSummary,#trxCheckoutSummary) strong{font-size:18px!important}
body.hejuo-ui :is(#maieCheckout,#heroCheckoutDialog,#trxCheckout) .promo-picker{margin:12px 0!important;padding:12px!important}

/* TRX 自动到账：状态放在转账信息上方，二维码收紧，减少长弹窗滚动。 */
body.hejuo-ui #trxDepositNotice{margin:12px 0;padding:12px;border:1px solid #d4e7e0;border-radius:12px;background:#edf7f2;color:#24634f;font-size:13px;line-height:1.65}
body.hejuo-ui #trxDepositQr{box-sizing:border-box;display:block;width:144px;height:144px;padding:0!important;margin:12px auto!important;background:#fff;border:0!important}
body.hejuo-ui #trxDepositQr[hidden]{display:none!important}
body.hejuo-ui #trxDepositQr svg{display:block;width:144px!important;height:144px!important;max-width:100%}
body.hejuo-ui #trxDepositBody>.trx-help{font-size:12px;line-height:1.65;margin:8px 0}
body.hejuo-ui #trxDepositBody>code{font-size:12px;line-height:1.7;margin:8px 0;color:#173747;overflow-wrap:anywhere}
body.hejuo-ui #trxDepositBody>.trx-deposit-amount{display:inline-block;font-size:24px;margin:8px 10px 8px 0}
body.hejuo-ui #trxDepositBody>button{padding:7px 10px;font-size:12px}
body.hejuo-ui #trxDepositRefresh{display:block;width:100%;min-height:44px;margin-top:16px;border:0;border-radius:12px;background:#173e4b;color:#fff;font-size:14px}
body.hejuo-ui #trxDepositRefresh[hidden]{display:none!important}

body.hejuo-ui #trxDepositDialog{height:fit-content!important;min-height:0!important}

/* 用户端刷新操作统一使用同一图标，原按钮与事件保留；文字保留供无障碍访问。 */
body.hejuo-ui :is(#globalReload,#maieReload,#heroUserRefresh,#trxRefresh,#trxOrdersRefresh,#trxWalletRefresh,#trxDepositRefresh,.project-orders-refresh,[data-maie-refresh],[data-trx-order-refresh],[data-hero-action="refresh"],[data-support-refresh]){display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 42px!important;box-sizing:border-box!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;max-height:42px!important;padding:10px!important;gap:0!important;border:1px solid #d9e4e7!important;border-radius:13px!important;background:#fff!important;color:#175d50!important;font-size:0!important;line-height:0!important;letter-spacing:0!important;cursor:pointer;vertical-align:middle}
body.hejuo-ui :is(#globalReload,#maieReload,#heroUserRefresh,#trxRefresh,#trxOrdersRefresh,#trxWalletRefresh,#trxDepositRefresh,.project-orders-refresh,[data-maie-refresh],[data-trx-order-refresh],[data-hero-action="refresh"],[data-support-refresh])::before{content:"";display:block;flex:0 0 21px;width:21px;height:21px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%207v5h-5M4%2017v-5h5%22%2F%3E%3Cpath%20d%3D%22M6%207a7%207%200%200%201%2011-1l3%206M4%2012l3%206a7%207%200%200%200%2011-1%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%207v5h-5M4%2017v-5h5%22%2F%3E%3Cpath%20d%3D%22M6%207a7%207%200%200%201%2011-1l3%206M4%2012l3%206a7%207%200%200%200%2011-1%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
body.hejuo-ui :is(#globalReload,#maieReload,#heroUserRefresh,#trxRefresh,#trxOrdersRefresh,#trxWalletRefresh,#trxDepositRefresh,.project-orders-refresh,[data-maie-refresh],[data-trx-order-refresh],[data-hero-action="refresh"],[data-support-refresh])>*{display:none!important}
body.hejuo-ui :is(#globalReload,#maieReload,#heroUserRefresh,#trxRefresh,#trxOrdersRefresh,#trxWalletRefresh,#trxDepositRefresh,.project-orders-refresh,[data-maie-refresh],[data-trx-order-refresh],[data-hero-action="refresh"],[data-support-refresh])[hidden]{display:none!important}
body.hejuo-ui :is(#globalReload,#maieReload,#heroUserRefresh,#trxRefresh,#trxOrdersRefresh,#trxWalletRefresh,#trxDepositRefresh,.project-orders-refresh,[data-maie-refresh],[data-trx-order-refresh],[data-hero-action="refresh"],[data-support-refresh]):disabled{cursor:wait;opacity:.55}
body.hejuo-ui :is(#globalReload,#maieReload,#heroUserRefresh,#trxRefresh,#trxOrdersRefresh,#trxWalletRefresh,#trxDepositRefresh,.project-orders-refresh,[data-maie-refresh],[data-trx-order-refresh],[data-hero-action="refresh"],[data-support-refresh]):disabled::before,body.hejuo-ui :is(#globalReload,#maieReload,#heroUserRefresh,#trxRefresh,#trxOrdersRefresh,#trxWalletRefresh,#trxDepositRefresh,.project-orders-refresh,[data-maie-refresh],[data-trx-order-refresh],[data-hero-action="refresh"],[data-support-refresh]).is-loading::before{animation:project-refresh 1s linear infinite}
body.hejuo-ui :is(#globalReload,#maieReload,#heroUserRefresh,#trxRefresh,#trxOrdersRefresh,#trxWalletRefresh,#trxDepositRefresh,.project-orders-refresh,[data-maie-refresh],[data-trx-order-refresh],[data-hero-action="refresh"],[data-support-refresh]):focus-visible{outline:3px solid #67c5af;outline-offset:3px}
@media(prefers-reduced-motion:reduce){body.hejuo-ui :is(#globalReload,#maieReload,#heroUserRefresh,#trxRefresh,#trxOrdersRefresh,#trxWalletRefresh,#trxDepositRefresh,.project-orders-refresh,[data-maie-refresh],[data-trx-order-refresh],[data-hero-action="refresh"],[data-support-refresh])::before{animation:none!important}}

/* 点击后至少显示一个清楚可见的旋转周期，真实请求未结束时继续旋转。 */
body.hejuo-ui button.is-refreshing{pointer-events:none;cursor:wait!important;opacity:.7}
body.hejuo-ui button.is-refreshing::before{animation:project-refresh .65s linear infinite!important}
@media(prefers-reduced-motion:reduce){body.hejuo-ui button.is-refreshing::before{animation:none!important}body.hejuo-ui button.is-refreshing{outline:2px solid #67c5af;outline-offset:2px}}

/* 空数据统一为轻量虚线框；加载与请求失败仍使用原有状态提示。 */
body.hejuo-ui :is(.empty-state,.project-filter-empty,.agent-empty,.support-chat-empty,.invitation-history-empty,.chip-empty+p){display:grid!important;place-items:center;box-sizing:border-box;width:100%;min-height:84px!important;height:auto!important;padding:28px 18px!important;margin:12px 0!important;border:1px dashed #cadade!important;border-radius:16px!important;background:transparent!important;color:#526775!important;font-size:13px!important;font-weight:400;line-height:1.7!important;text-align:center!important;box-shadow:none!important;grid-column:1/-1}
body.hejuo-ui :is(.empty-state,.project-filter-empty,.agent-empty,.support-chat-empty,.invitation-history-empty,.chip-empty+p)::before,body.hejuo-ui :is(.empty-state,.project-filter-empty,.agent-empty,.support-chat-empty,.invitation-history-empty,.chip-empty+p)::after{display:none!important;content:none!important}
body.hejuo-ui .chip-empty{display:none!important}
body.hejuo-ui :is(.order-empty,.coupon-empty,.my-coupon-empty,.income-empty,.faq-empty,.notice-empty,.empty-plans):has(>.chip-empty){display:block!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.hejuo-ui .empty-state:empty{display:none!important}

body.hejuo-ui .brand-empty:not(.brand-loading)::before,body.hejuo-ui .brand-empty:not(.brand-loading)::after{content:none!important;display:none!important}

body.hejuo-ui #trxCountBindingUI[hidden]{display:none!important}
body.hejuo-ui #trxNext[hidden]{display:none!important}
body.hejuo-ui #trxCountPrice{padding:14px;border:1px solid #d8e8e3;border-radius:12px;background:#f0f8f5;font-size:14px;line-height:1.8;color:#235e50}
body.hejuo-ui #trxCountBindingUI .count-binding{margin:12px 0;padding:16px;border:1px solid #dce6e9;border-radius:14px;background:#fff}
body.hejuo-ui #trxCountBindingUI .count-binding header{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#526775}
body.hejuo-ui #trxCountBindingUI .count-binding strong{color:#173747;font-size:14px}
body.hejuo-ui #trxCountBindingUI .count-binding code{display:block;margin:12px 0;overflow-wrap:anywhere;color:#173747;font-size:12px}
body.hejuo-ui #trxCountBindingUI .count-binding p{font-size:13px;line-height:1.7;color:#526775}
body.hejuo-ui #trxCountBindingUI .count-binding button{min-height:40px;padding:9px 14px;border:1px solid #cbdeda;border-radius:10px;background:#f1f7f5;color:#22594e}
body.hejuo-ui #trxCountNotice:not(:empty){padding:12px;border-radius:12px;background:#fff5e8;color:#875d29;font-size:13px;line-height:1.7}
body.hejuo-ui #trxCountFields[hidden]{display:none!important}

body.hejuo-ui #trxCountPrice[hidden]{display:none!important}
body.hejuo-ui #trxCountPrice{margin:0 0 16px} body.hejuo-ui #trxCountPrice strong{display:block;font-size:20px;line-height:1.5;color:#174f46} body.hejuo-ui #trxCountPrice>div{font-size:12px;line-height:1.7;margin-top:6px}

body.hejuo-ui #trxCheckoutSummary .trx-address-value{white-space:pre-line;max-height:180px;overflow:auto} body.hejuo-ui #trxAddress{min-height:100px;line-height:1.7}

/* 图标按钮内部不能再显示一层文字，避免复制图标与“复制”叠在同一位置。 */
body.hejuo-ui :is(.copy-icon-btn,.invite-code button,#dialogCryptoCopy){position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;max-height:32px!important;margin:0!important;padding:0!important;font-size:0!important;line-height:0!important;vertical-align:middle;letter-spacing:0!important;text-shadow:none!important}
body.hejuo-ui :is(.copy-icon-btn,.invite-code button,#dialogCryptoCopy)>*{display:none!important}
body.hejuo-ui :is(.copy-icon-btn,.invite-code button,#dialogCryptoCopy)::before{position:absolute!important;inset:0!important;margin:auto!important;display:block!important;width:20px!important;height:20px!important;transform:none!important;grid-area:auto!important}
body.hejuo-ui :is(.copy-icon-btn,.invite-code button,#dialogCryptoCopy)::after{content:none!important;display:none!important}
/* 操作按钮内容按实际盒子居中，避免旧行高和图标基线造成偏移。 */
body.hejuo-ui :is(.primary-btn,.confirm-pay,.confirm-btn,.trx-primary,.maie-primary,.agent-dialog-primary,.app-download-action){display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;text-align:center;line-height:1.4;vertical-align:middle}
body.hejuo-ui :is(#trxCheckoutClose,#trxDepositClose,#cryptoPaymentClose,[data-maie-close]){display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;box-sizing:border-box;line-height:1;margin:0}
/* 所有切换栏保持可见；顶部偏移由实测高度累加，不随滚动方向隐藏。 */
body.hejuo-ui [data-persistent-tabs]{position:sticky!important;top:var(--persistent-tab-top,0px)!important;z-index:var(--persistent-tab-layer,40)!important;isolation:isolate;box-shadow:0 -8px 0 var(--soft,#f4f8f9),0 8px 0 var(--soft,#f4f8f9);background-color:#eaf0f2}
body.hejuo-ui :is(.project-order-filters,.order-status-tabs,.invitation-history-tabs)[data-persistent-tabs]{background-color:var(--soft,#f4f8f9)}
body.hejuo-ui [data-persistent-tabs]>button{display:inline-flex;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;text-align:center;vertical-align:middle;line-height:1.4}
body.hejuo-ui [data-persistent-head]{position:sticky!important;top:0!important;z-index:65!important;background:var(--soft,#f4f8f9)!important;box-shadow:0 -12px 0 var(--soft,#f4f8f9),0 8px 0 var(--soft,#f4f8f9)}
body.hejuo-ui [data-persistent-tabs][hidden]{display:none!important}
/* 固定标签栏只处理定位和布局，不能将业务开关隐藏的按钮重新显示。 */
body.hejuo-ui [data-persistent-tabs]>button[hidden],body.hejuo-ui #heroNumberTabs>button[hidden]{display:none!important}

/* 确认按钮：默认回到容器内；仅独立页面底部按钮保留固定定位。 */
body.hejuo-ui .confirm-pay{position:static!important;inset:auto!important;transform:none!important;box-sizing:border-box!important;width:100%;max-width:100%;margin:0;min-height:48px;height:auto;padding:12px 16px}
body.hejuo-ui :is(#checkoutPage,#rechargePage,#transferPage,#paymentSuccessPage)>.confirm-pay{position:fixed!important;left:max(16px,calc((100vw - 480px)/2 + 16px))!important;right:max(16px,calc((100vw - 480px)/2 + 16px))!important;top:auto!important;bottom:calc(14px + env(safe-area-inset-bottom,0px))!important;width:auto!important;max-width:none!important;min-height:48px;z-index:30}
body.hejuo-ui :is(#maieCheckout,#heroCheckoutDialog,#trxCheckout) footer{display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;left:auto!important;right:auto!important;transform:none!important}
body.hejuo-ui :is(#maieConfirm,#heroCheckoutConfirm,#trxConfirm){position:static!important;inset:auto!important;transform:none!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:48px!important;height:auto!important;margin:0!important;padding:12px 16px!important;line-height:1.4!important;white-space:normal;overflow-wrap:anywhere}
body.hejuo-ui .confirm-action-dialog>section{box-sizing:border-box;width:100%;margin:0;padding:0!important;background:transparent;box-shadow:none}
body.hejuo-ui .confirm-action-dialog>section>div{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0 0;padding:0;width:100%;box-sizing:border-box}
body.hejuo-ui .confirm-action-dialog>section>div>button{position:static!important;inset:auto!important;transform:none!important;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;height:auto;margin:0;padding:11px 12px;border-radius:11px;font-size:14px;line-height:1.5;text-align:center;white-space:normal;overflow-wrap:anywhere}
body.hejuo-ui :is(#checkoutPage,#rechargePage,#transferPage,#paymentSuccessPage){padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}

/* 结算按钮由独立操作栏定位，避免直接按钮的 static/fixed 规则互相覆盖。 */
body.hejuo-ui #checkoutPage{padding-bottom:calc(124px + env(safe-area-inset-bottom,0px))!important}
body.hejuo-ui #checkoutPage>.checkout-actions{
  position:fixed;left:max(0px,calc((100vw - 480px)/2));right:max(0px,calc((100vw - 480px)/2));
  bottom:0;z-index:70;box-sizing:border-box;padding:12px 16px calc(18px + env(safe-area-inset-bottom,0px));
  background:var(--soft,#f4f8f9);border-top:1px solid var(--line,#dce6e9);
}
body.hejuo-ui #checkoutPage>.checkout-actions>.confirm-pay{
  position:static!important;inset:auto!important;transform:none!important;
  display:flex;width:100%!important;max-width:none!important;margin:0!important;
  min-height:48px;height:auto;white-space:normal;overflow-wrap:anywhere;
}

/* 固定栏用不透明底色，避免移动端滚动时持续重算背景模糊。 */
@media(max-width:640px){body.hejuo-ui #homePage .tabbar,body.hejuo-ui .purchase-footer{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#fff!important}}

/* Payment dialog must shrink to content even with inset:0 modal positioning. */
body.hejuo-ui #cryptoPaymentDialog{height:fit-content!important;min-height:0!important;max-height:82dvh!important;}
body.hejuo-ui #cryptoPaymentDialog .crypto-payment-sheet{height:auto!important;min-height:0!important;}
