/* v169: regular flow avoids fieldset/legend intrinsic grid sizing on mobile. */
body .km-member-form .km-billing-panel{display:block;min-width:0;width:100%;max-width:100%;height:auto;max-height:none;margin:8px 0;padding:20px;box-sizing:border-box;border:1px solid #c3ceda;border-radius:12px;background:#f7f9fb;position:static;overflow:visible}
body .km-member-form .km-billing-panel .km-billing-heading{display:block;margin:0 0 18px;padding:0 0 14px;border:0;border-bottom:1px solid #d1dbe4;position:static}
body .km-member-form .km-billing-panel .km-billing-heading h3{font:700 16px/1.5 system-ui,sans-serif;letter-spacing:0;color:#20374c;margin:0 0 6px;white-space:normal;word-break:normal}
body .km-member-form .km-billing-panel .km-billing-heading p{font-size:12px;line-height:1.7;color:#5c7386;margin:0;white-space:normal}
body .km-member-form .km-billing-panel .km-billing-fields{display:block;min-width:0;width:100%}
body .km-member-form .km-billing-panel .km-billing-fields label{display:block;min-width:0;width:100%;max-width:100%;margin:0 0 16px;font-size:12px;font-weight:600;line-height:1.6;white-space:normal;word-break:normal}
body .km-member-form .km-billing-panel .km-billing-fields label>small{display:block;font-size:11px;font-weight:400;line-height:1.7;margin:6px 0}
body .km-member-form .km-billing-panel .km-billing-fields :is(input,select){display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:auto;min-height:48px;padding:12px;margin:8px 0 0;font-size:16px;line-height:1.5;background:#fff}
body .km-member-form .km-billing-panel .km-billing-business{display:block;grid-template-columns:none;min-width:0;width:100%;margin:0;padding:0}
body .km-member-form .km-billing-panel [hidden]{display:none!important}
body .km-member-form .km-billing-panel .km-billing-help{display:block;clear:both;font-size:11px;font-weight:400;line-height:1.8;margin:12px 0 0;padding:12px 0 0;border-top:1px solid #d1dbe4;white-space:normal;word-break:normal;overflow-wrap:break-word}
@media(max-width:760px){
 body[data-store-page="account.php"] .km-member-shell-premium{display:block}
 body[data-store-page="account.php"] .km-member-shell-premium>.km-member-intro{position:static;margin:0 0 18px}
 body[data-store-page="account.php"] .km-member-shell-premium>.km-member-card{display:block;min-width:0;width:100%;max-width:100%;height:auto;max-height:none;overflow:visible;box-sizing:border-box;padding:20px 16px}
 body[data-store-page="account.php"] .km-member-shell-premium .km-member-form{display:flex;flex-direction:column;align-items:stretch;gap:18px;min-width:0;width:100%;max-width:100%;height:auto}
 body[data-store-page="account.php"] .km-member-shell-premium .km-member-form>*{flex:0 0 auto;min-width:0;max-width:100%;box-sizing:border-box}
 body .km-member-form .km-billing-panel{padding:16px;margin:0}
 body .km-member-form .km-billing-panel .km-billing-heading h3{font-size:15px}
}

/* Invoice checkbox: visible touch target with normal-sized checkbox on phones. */
body .km-member-form label.km-invoice-toggle{display:flex!important;align-items:center;gap:12px;min-height:48px;width:100%;max-width:100%;padding:12px;border:1px solid #c3ceda;border-radius:10px;background:#fff;cursor:pointer;box-sizing:border-box}
body .km-member-form label.km-invoice-toggle>input[type="checkbox"]{display:block!important;appearance:auto;width:20px!important;min-width:20px!important;max-width:20px!important;height:20px!important;min-height:20px!important;padding:0!important;margin:0!important;flex:0 0 20px;accent-color:#20374c}
body .km-member-form label.km-invoice-toggle>span{min-width:0;font-size:14px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
body .km-member-form [data-member-business][hidden],body .km-member-form [data-guest-business][hidden]{display:none!important}
