/* Shared layout for translated storefront pages; keep long labels in normal flow. */
html.mall-ui #app { width: 100%; max-width: 1000px; min-height: 100vh; margin: 0 auto; }
html.mall-ui body { margin: 0; }
html.mall-ui .van-nav-bar__content { height: auto; min-height: 46px; }
html.mall-ui .van-nav-bar__title { max-width: calc(100% - 88px); padding: 10px 0; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
html.mall-ui .zc_list:has(> .zc_name) { height: auto; min-height: 50px; padding: 12px 0; line-height: 1.5; box-sizing: border-box; }
html.mall-ui .zc_list > .zc_name { position: static; width: auto; height: auto; margin: 0 0 6px; line-height: 1.5; overflow-wrap: anywhere; }
html.mall-ui .zc_list > .zc_text { margin-left: 0; height: auto; min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }
html.mall-ui .zc_text input:not([type=hidden]):not([type=checkbox]):not([type=radio]),
html.mall-ui .zc_text select { display: block; width: 100%; height: 42px; box-sizing: border-box; padding: 8px 0; line-height: 24px; font-size: 14px; border: 0; background-color: #fff; color: #555; }
html.mall-ui .zc_text textarea { display: block; box-sizing: border-box; width: 100%; min-height: 90px; height: auto; padding: 8px 0; line-height: 1.5; resize: vertical; }
html.mall-ui .sk_box:has(> a) { height: auto; min-height: 50px; line-height: 1.5; }
html.mall-ui .sk_box > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 12px 0; box-sizing: border-box; }
html.mall-ui .sk_box > a .sk_name { position: static; width: auto; max-width: 60%; flex: 0 1 auto; line-height: 1.5; overflow-wrap: anywhere; }
html.mall-ui .sk_box > a .info_tt { flex: 1; min-width: 0; margin: 0; height: auto; line-height: 1.5; overflow-wrap: anywhere; }
html.mall-ui .van-button { white-space: normal; height: auto; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
html.mall-ui .van-button__text, html.mall-ui .van-tabbar-item__text { white-space: normal; line-height: 1.35; overflow-wrap: anywhere; text-align: center; }
html.mall-ui .van-tabbar-item { min-width: 0; }
html.mall-ui .van-tabs__nav--card { height: auto; min-height: 36px; }
html.mall-ui .van-tab--card { min-height: 36px; padding: 8px; }
html.mall-ui .van-tab--card .van-tab__text { white-space: normal; line-height: 1.35; overflow: visible; -webkit-line-clamp: unset; }
html.mall-ui .mall-auth [class~="min-h-[100vh]"] { min-height: 100vh; min-height: 100dvh; }
@media (max-width: 639px) {
 html.mall-ui .mall-auth .van-cell { display: block; }
 html.mall-ui .mall-auth .van-field__label { width: auto; margin: 0 0 6px; line-height: 1.5; }
 html.mall-ui .mall-auth .van-field__body { min-height: 36px; }
 html.mall-ui .mall-auth .van-field__control { font-size: 14px; text-align: left; }
}

html.mall-ui .mall-cashout .van-tabs--card > .van-tabs__wrap,
html.mall-ui .mall-cashout .van-tabs__nav--card { height: auto !important; min-height: 40px; }
html.mall-ui .mall-cashout .van-swipe__track { width: 100% !important; transform: none !important; }
html.mall-ui .mall-cashout .van-swipe-item { width: 100% !important; float: none; }
html.mall-ui .mall-cashout [class~="w-[50%]"] { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 639px) {
 html.mall-ui .mall-auth #form .items-center.justify-between { flex-direction: column; align-items: stretch; gap: 6px; }
 html.mall-ui .mall-auth #form .text-sm, html.mall-ui .mall-auth #form .text-base { font-size: 14px; line-height: 1.5; }
 html.mall-ui .mall-auth #form .van-cell { padding: 4px 0; }
}

html.mall-ui .mall-product-nav .van-nav-bar__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; padding: 0; margin-top: 10px; margin-bottom: 10px; }
html.mall-ui .mall-cashout [style*="bg3.png"] { background-color: #6940d9; }
@media (max-width: 639px) {
 html.mall-ui .mall-cashout .van-field__body:has(input[name="paypwd"]) { flex-wrap: wrap; gap: 8px; }
 html.mall-ui .mall-cashout input[name="paypwd"] { flex-basis: 100%; min-height: 36px; }
 html.mall-ui .mall-cashout .van-field__body:has(input[name="paypwd"]) .van-field__button { padding-left: 0; }
}

@media (max-width: 639px) {
 html.mall-ui .mall-auth #form .items-center.justify-between > div { width: 100%; min-width: 0; }
}

html.mall-ui .mall-recovery .zc_smsyzm { position: static; display: inline-block; width: auto; height: auto; min-height: 32px; padding: 6px 0; line-height: 1.5; margin-top: 4px; }

/* Legacy mobile headers reduced translated text to 9px; restore readable sizes. */
html.mall-ui .text-xs { font-size: 12px; line-height: 1.5; }
html.mall-ui .text-sm { font-size: 13px; line-height: 1.5; }
html.mall-ui .text-base { font-size: 14px; line-height: 1.5; }
html.mall-ui .text-lg { font-size: 16px; line-height: 1.5; }
html.mall-ui .text-xl { font-size: 20px; line-height: 1.4; }
html.mall-ui .text-2xl { font-size: 24px; line-height: 1.35; }
html.mall-ui .text-3xl { font-size: 30px; line-height: 1.3; }
