/* Customer forms only. Native visibility, validation, CAPTCHA and payment controls are not replaced. */
body.woocommerce-account .woocommerce-MyAccount-content,
body.woocommerce-account .login-content,
body.woocommerce-checkout form.checkout.woocommerce-checkout{counter-reset:gmb-customer-step}
body.woocommerce-account .woocommerce-MyAccount-content .element:has(>.pf-body>form.woocommerce-EditAccountForm),
body.woocommerce-account .login-content>.sign-in-box.login-form-wrap,
body.woocommerce-account .login-content>.sign-in-box.register-form-wrap,
body.woocommerce-account form.lost_reset_password,
body.woocommerce-account .woocommerce-MyAccount-content form:has(>.woocommerce-address-fields),
body.woocommerce-checkout form.checkout.woocommerce-checkout>.ts-billing-details.element{box-sizing:border-box;min-width:0;border:1px solid #dde1e5;border-top:3px solid #ffcc00;border-radius:12px;background:#fff;box-shadow:0 3px 14px #17212b05}
body.woocommerce-account .woocommerce-MyAccount-content .element:has(>.pf-body>form.woocommerce-EditAccountForm){padding:0!important}
body.woocommerce-account .woocommerce-MyAccount-content .element:has(>.pf-body>form.woocommerce-EditAccountForm)>.pf-head{padding:14px 18px!important;margin:0;border-bottom:1px solid #e9ecef;background:#f7f8fa;border-radius:9px 9px 0 0}
body.woocommerce-account .woocommerce-MyAccount-content .element:has(>.pf-body>form.woocommerce-EditAccountForm)>.pf-head .title-style-1{margin:0;padding:0}
body.woocommerce-account .woocommerce-MyAccount-content .element:has(>.pf-body>form.woocommerce-EditAccountForm)>.pf-head .title-style-1:after{display:none}
body.woocommerce-account .woocommerce-MyAccount-content .element:has(>.pf-body>form.woocommerce-EditAccountForm)>.pf-body{padding:18px!important}
body.woocommerce-account .login-content>.sign-in-box.login-form-wrap,
body.woocommerce-account .login-content>.sign-in-box.register-form-wrap,
body.woocommerce-account form.lost_reset_password,
body.woocommerce-account .woocommerce-MyAccount-content form:has(>.woocommerce-address-fields),
body.woocommerce-checkout form.checkout.woocommerce-checkout>.ts-billing-details.element{padding:18px}
body.woocommerce-account .woocommerce-MyAccount-content .element:has(>.pf-body>form.woocommerce-EditAccountForm)>.pf-head h5,
body.woocommerce-account form.woocommerce-EditAccountForm>fieldset>legend,
body.woocommerce-account .woocommerce-MyAccount-content form:has(>.woocommerce-address-fields)>:is(h2,h3),
body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields,.woocommerce-shipping-fields,.woocommerce-additional-fields)>h3{color:#24282e!important;font-size:17px!important;line-height:1.4!important;font-weight:700;margin:0 0 14px!important}
body.woocommerce-account .woocommerce-MyAccount-content .element:has(>.pf-body>form.woocommerce-EditAccountForm)>.pf-head h5:before,
body.woocommerce-account form.woocommerce-EditAccountForm>fieldset>legend:before,
body.woocommerce-account .woocommerce-MyAccount-content form:has(>.woocommerce-address-fields)>:is(h2,h3):before,
body.woocommerce-checkout form.checkout.woocommerce-checkout .woocommerce-billing-fields>h3:before,
body.woocommerce-checkout form.checkout.woocommerce-checkout .woocommerce-additional-fields>h3:before{counter-increment:gmb-customer-step;content:counter(gmb-customer-step);display:inline-grid;place-items:center;box-sizing:border-box;width:25px;height:25px;margin-right:9px;border-radius:50%;background:#ffcc00;color:#242424;font-size:12px;font-weight:700;vertical-align:middle}
body.woocommerce-account form.woocommerce-EditAccountForm>fieldset{min-width:0;padding:14px!important;margin:18px 0 0;border:1px solid #e4e6e9;border-radius:8px;background:#f7f8fa}
body.woocommerce-account form.woocommerce-EditAccountForm>fieldset>legend{width:auto;padding:0 6px}
/* Account labels follow the input in native MyListing markup. Preserve visual label-first order. */
body.woocommerce-account form.woocommerce-EditAccountForm .form-group:has(>input:is([type=text],[type=email],[type=password])),
body.woocommerce-account form.sign-in-form.woocommerce-form-login>.form-group:not(.form-row):not(.hide):not([hidden]):has(>input:is([type=text],[type=email],[type=password])),
body.woocommerce-account form.sign-in-form.mylisting-register>.form-group:not(.form-row):not(.hide):not([hidden]):has(>input:is([type=text],[type=email],[type=password])),
body.woocommerce-account form.mylisting-register>.primary-role-fields>.fields-wrapper>.form-group:not(.form-row):not(.hide):not([hidden]):has(>input:is([type=text],[type=email],[type=password])){display:flex;flex-direction:column;gap:6px;margin:0 0 14px}
body.woocommerce-account :is(form.woocommerce-EditAccountForm,form.woocommerce-form-login,form.mylisting-register) .form-group:has(>input:is([type=text],[type=email],[type=password]))>label:not(.checkbox):not(.woocommerce-form__label-for-checkbox){position:static!important;order:-1;display:block;margin:0!important;color:#24282e!important;font-size:13px;line-height:1.5;transform:none!important}
body.woocommerce-account :is(form.woocommerce-EditAccountForm,form.woocommerce-form-login,form.mylisting-register,form.lost_reset_password,.woocommerce-address-fields__field-wrapper) :is(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number]),
body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper,.woocommerce-additional-fields__field-wrapper) :is(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number]),
body.woocommerce-cart form.woocommerce-cart-form .coupon input[name=coupon_code],
body.woocommerce-checkout form.checkout_coupon input[name=coupon_code]{box-sizing:border-box;width:100%;max-width:100%;min-width:0;height:44px;min-height:44px;margin:0;padding:10px 12px!important;border:1px solid #b9c1c8!important;border-radius:6px;background:#fff!important;color:#24282e!important;font-family:inherit;font-size:14px;line-height:22px;box-shadow:none}
body.woocommerce-account :is(form.woocommerce-EditAccountForm,form.woocommerce-form-login,form.mylisting-register) .toggle-password input[type=password],
body.woocommerce-account :is(form.woocommerce-EditAccountForm,form.woocommerce-form-login,form.mylisting-register) .toggle-password input[type=text]{height:48px;min-height:48px;padding-right:48px!important}
body.woocommerce-account :is(form.lost_reset_password,.woocommerce-address-fields__field-wrapper) label,
body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper,.woocommerce-additional-fields__field-wrapper) label{font-size:13px;line-height:1.5;margin-bottom:6px;color:#24282e}
body.woocommerce-account :is(form.woocommerce-EditAccountForm,form.woocommerce-form-login,form.mylisting-register,form.lost_reset_password,.woocommerce-address-fields__field-wrapper) :is(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number]):focus-visible,
body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper,.woocommerce-additional-fields__field-wrapper) :is(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],textarea#order_comments):focus-visible,
body.woocommerce-cart form.woocommerce-cart-form .coupon input[name=coupon_code]:focus-visible,
body.woocommerce-checkout form.checkout_coupon input[name=coupon_code]:focus-visible{outline:2px solid #915a00;outline-offset:2px}
body.woocommerce-checkout form.checkout.woocommerce-checkout .woocommerce-additional-fields__field-wrapper textarea#order_comments{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:120px;height:120px;padding:10px 12px!important;border:1px solid #b9c1c8!important;border-radius:6px;background:#fff;color:#24282e;font-size:14px;line-height:1.5;resize:vertical}
/* Country/state widgets remain native Select2. Do not target payment widgets or their iframes. */
body.woocommerce-account .woocommerce-address-fields__field-wrapper select:not(.select2-hidden-accessible),
body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper) select:not(.select2-hidden-accessible){box-sizing:border-box;width:100%;max-width:100%;min-width:0;height:44px;min-height:44px;padding:10px 12px!important;border:1px solid #b9c1c8!important;border-radius:6px;background-color:#fff;color:#24282e;font-size:14px;line-height:22px}
body.woocommerce-account .woocommerce-address-fields__field-wrapper .select2-container,
body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper) .select2-container{width:100%!important;max-width:100%;min-width:0}
body.woocommerce-account .woocommerce-address-fields__field-wrapper .select2-selection--single,
body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper) .select2-selection--single{box-sizing:border-box;height:44px;min-height:44px;border:1px solid #b9c1c8!important;border-radius:6px;background:#fff}
body.woocommerce-account .woocommerce-address-fields__field-wrapper .select2-selection--single .select2-selection__rendered,
body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper) .select2-selection--single .select2-selection__rendered{padding:0 36px 0 12px;line-height:42px}
body.woocommerce-account .woocommerce-address-fields__field-wrapper .select2-selection--single .select2-selection__arrow,
body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper) .select2-selection--single .select2-selection__arrow{top:1px;right:10px;height:42px}
body.woocommerce-account :is(form.woocommerce-EditAccountForm,form.woocommerce-form-login,form.mylisting-register,form.lost_reset_password) button[type=submit],
body.woocommerce-account .woocommerce-MyAccount-content form:has(>.woocommerce-address-fields) button[type=submit],
body.woocommerce-cart form.woocommerce-cart-form .coupon button[name=apply_coupon],
body.woocommerce-checkout form.checkout_coupon button[name=apply_coupon]{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:auto!important;max-width:100%;min-height:44px;height:auto;margin-top:14px;padding:10px 18px!important;border:1px solid #ffcc00;border-radius:6px;background:#ffcc00;color:#171717!important;font-size:14px;line-height:22px;white-space:normal;text-transform:none;box-shadow:none}
body.woocommerce-account :is(form.woocommerce-EditAccountForm,form.woocommerce-form-login,form.mylisting-register,form.lost_reset_password) button[type=submit]:focus-visible,
body.woocommerce-account .woocommerce-MyAccount-content form:has(>.woocommerce-address-fields) button[type=submit]:focus-visible,
body.woocommerce-cart form.woocommerce-cart-form .coupon button[name=apply_coupon]:focus-visible,
body.woocommerce-checkout form.checkout_coupon button[name=apply_coupon]:focus-visible{outline:2px solid #24282e;outline-offset:3px}
body.woocommerce-cart form.woocommerce-cart-form .coupon{display:flex;align-items:flex-start;flex-wrap:wrap;gap:10px;max-width:100%}
body.woocommerce-cart form.woocommerce-cart-form .coupon input[name=coupon_code]{flex:1 1 180px;width:auto}
body.woocommerce-cart form.woocommerce-cart-form .coupon button[name=apply_coupon]{margin:0;flex:0 0 auto}
/* MyListing uses native tabs above its two auth forms, not a heading inside each form. */
body.woocommerce-account .login-content ul.login-tabs>li>h3,
body.woocommerce-account .login-content ul.login-tabs>li>h3>a[data-form]{display:inline-flex;align-items:center;gap:9px;color:#24282e!important;font-size:17px!important;line-height:1.4!important}
body.woocommerce-account .login-content ul.login-tabs>li.active>h3>a:is([data-form=login],[data-form=register]):before{content:"1";display:inline-grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:50%;background:#ffcc00;color:#242424;font-size:12px;font-weight:700;vertical-align:middle}
/* Confirmed native password-recovery layout has an existing outer card. */
body.woocommerce-account .element:has(>.pf-body>form.woocommerce-ResetPassword.lost_reset_password){counter-reset:gmb-customer-step;min-width:0;padding:0!important;border:1px solid #dde1e5;border-top:3px solid #ffcc00;border-radius:12px;background:#fff;box-shadow:0 3px 14px #17212b05}
body.woocommerce-account .element:has(>.pf-body>form.woocommerce-ResetPassword.lost_reset_password)>.pf-head{padding:14px 18px!important;margin:0;border-bottom:1px solid #e9ecef;border-radius:9px 9px 0 0;background:#f7f8fa}
body.woocommerce-account .element:has(>.pf-body>form.woocommerce-ResetPassword.lost_reset_password)>.pf-head .title-style-1{margin:0;padding:0}
body.woocommerce-account .element:has(>.pf-body>form.woocommerce-ResetPassword.lost_reset_password)>.pf-head .title-style-1:after{display:none}
body.woocommerce-account .element:has(>.pf-body>form.woocommerce-ResetPassword.lost_reset_password)>.pf-head h5{color:#24282e!important;font-size:17px!important;line-height:1.4!important;margin:0!important}
body.woocommerce-account .element:has(>.pf-body>form.woocommerce-ResetPassword.lost_reset_password)>.pf-head h5:before{counter-increment:gmb-customer-step;content:counter(gmb-customer-step);display:inline-grid;place-items:center;width:25px;height:25px;margin-right:9px;border-radius:50%;background:#ffcc00;color:#242424;font-size:12px;font-weight:700;vertical-align:middle}
body.woocommerce-account .element:has(>.pf-body>form.woocommerce-ResetPassword.lost_reset_password)>.pf-body{padding:18px!important}
body.woocommerce-account .element>.pf-body>form.woocommerce-ResetPassword.lost_reset_password{padding:0!important;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
@media(max-width:767px){
 body.woocommerce-account .woocommerce-MyAccount-content .element:has(>.pf-body>form.woocommerce-EditAccountForm)>.pf-body,
 body.woocommerce-account .login-content>.sign-in-box.login-form-wrap,
 body.woocommerce-account .login-content>.sign-in-box.register-form-wrap,
 body.woocommerce-account form.lost_reset_password,
 body.woocommerce-account .woocommerce-MyAccount-content form:has(>.woocommerce-address-fields),
 body.woocommerce-checkout form.checkout.woocommerce-checkout>.ts-billing-details.element{padding:14px!important}
 body.woocommerce-account .element:has(>.pf-body>form.woocommerce-ResetPassword.lost_reset_password)>.pf-body{padding:14px!important}
 body.woocommerce-account :is(form.woocommerce-EditAccountForm,form.woocommerce-form-login,form.mylisting-register,form.lost_reset_password,.woocommerce-address-fields__field-wrapper) :is(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number]),
 body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper,.woocommerce-additional-fields__field-wrapper) :is(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],textarea#order_comments),
 body.woocommerce-cart form.woocommerce-cart-form .coupon input[name=coupon_code],
 body.woocommerce-checkout form.checkout_coupon input[name=coupon_code]{font-size:16px}
 body.woocommerce-account .woocommerce-address-fields__field-wrapper select:not(.select2-hidden-accessible),
 body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper) select:not(.select2-hidden-accessible){font-size:16px}
}

/* Keep the guest entry form close to the header too. */
body.woocommerce-account .sign-in-wrapper>.login-container{padding-top:24px;padding-bottom:32px}
/* Native registration wraps only its password group inside the visibility control. */
body.woocommerce-account form.mylisting-register>.primary-role-fields>.fields-wrapper>.toggle-password>.form-group:has(>input:is([type=password],[type=text])){display:flex;flex-direction:column;gap:6px;margin:0 0 14px}
body.woocommerce-account :is(form.woocommerce-form-login,form.mylisting-register,form.lost_reset_password) .g-recaptcha{max-width:100%;overflow-x:auto}

/* Native address fields only: leave conditional display, Select2 events and checkout payment fragments intact. */
body.woocommerce-account .woocommerce-address-fields__field-wrapper,
body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper){display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px 16px;min-width:0}
body.woocommerce-account .woocommerce-address-fields__field-wrapper>* ,
body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper)>*{grid-column:1/-1;min-width:0}
body.woocommerce-account .woocommerce-address-fields__field-wrapper>.form-row,
body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper)>.form-row{box-sizing:border-box;width:auto!important;max-width:100%;min-width:0;float:none!important;margin:0!important;padding:0}
body.woocommerce-account .woocommerce-address-fields__field-wrapper::before,
body.woocommerce-account .woocommerce-address-fields__field-wrapper::after,
body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper)::before,
body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper)::after{display:none}
body.woocommerce-account .woocommerce-address-fields__field-wrapper .woocommerce-invalid :is(.input-text,.select2-selection),
body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper) .woocommerce-invalid :is(.input-text,.select2-selection){border-color:#b42318!important}
@media(min-width:768px){
 body.woocommerce-account .woocommerce-address-fields__field-wrapper>:is(#billing_first_name_field,#billing_last_name_field,#billing_company_field,#billing_country_field,#billing_address_1_field,#billing_address_2_field,#billing_email_field,#billing_phone_field,#shipping_first_name_field,#shipping_last_name_field,#shipping_company_field,#shipping_country_field,#shipping_address_1_field,#shipping_address_2_field,#shipping_email_field,#shipping_phone_field),
 body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper)>:is(#billing_first_name_field,#billing_last_name_field,#billing_company_field,#billing_country_field,#billing_address_1_field,#billing_address_2_field,#billing_email_field,#billing_phone_field,#shipping_first_name_field,#shipping_last_name_field,#shipping_company_field,#shipping_country_field,#shipping_address_1_field,#shipping_address_2_field,#shipping_email_field,#shipping_phone_field){grid-column:span 6}
}
@media(min-width:1200px){
 body.woocommerce-account .woocommerce-address-fields__field-wrapper>:is(#billing_city_field,#billing_state_field,#billing_postcode_field,#shipping_city_field,#shipping_state_field,#shipping_postcode_field),
 body.woocommerce-checkout form.checkout.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper)>:is(#billing_city_field,#billing_state_field,#billing_postcode_field,#shipping_city_field,#shipping_state_field,#shipping_postcode_field){grid-column:span 4}
}

/* Keep the native account icon, number and title on one shared centre line. */
body.woocommerce-account .woocommerce-MyAccount-content .element:has(>.pf-body>form.woocommerce-EditAccountForm)>.pf-head>.title-style-1{display:flex;align-items:center;gap:9px}
body.woocommerce-account .woocommerce-MyAccount-content .element:has(>.pf-body>form.woocommerce-EditAccountForm)>.pf-head>.title-style-1>i{display:inline-flex;align-items:center;justify-content:center;align-self:center;flex:0 0 28px;position:static!important;float:none!important;margin:0!important;padding:0!important;line-height:1}
body.woocommerce-account .woocommerce-MyAccount-content .element:has(>.pf-body>form.woocommerce-EditAccountForm)>.pf-head>.title-style-1>h5{display:inline-flex;align-items:center;gap:9px;min-width:0;margin:0!important;text-transform:capitalize}
body.woocommerce-account .woocommerce-MyAccount-content .element:has(>.pf-body>form.woocommerce-EditAccountForm)>.pf-head>.title-style-1>h5::before{flex:0 0 25px;margin-right:0}
body.woocommerce-account form.woocommerce-EditAccountForm>fieldset>legend{text-transform:capitalize}
/* The native 48px inner underline must not protrude from the 44px address control. */
body.woocommerce-account .woocommerce-address-fields__field-wrapper .select2-selection--single>.select2-selection__rendered{min-height:0;height:42px;border:0!important;box-shadow:none}
