/* Hide asterisk from all fields by default */
.woocommerce-address-fields label .required,
.woocommerce form .form-row label .required {
    display: none !important;
}

/* Show asterisk only for required fields */
.woocommerce-address-fields label[for="billing_postcode"] .required,
.woocommerce-address-fields label[for="billing_country"] .required {
    display: inline !important;
    color: #111926;
}

/* Alternative selector for postcode field */
#billing_postcode_field label .required {
    display: inline !important;
    color: #111926;
}

/* Hide company and email fields */
.woocommerce-address-fields p:has(#billing_company),
.woocommerce-address-fields p:has(#billing_email),
.woocommerce-address-fields p:has(#shipping_company),
.woocommerce-address-fields p:has(#shipping_email) {
    display: none !important;
}

/* Alternative selector for older browsers */
.woocommerce-address-fields #billing_company_field,
.woocommerce-address-fields #billing_email_field,
.woocommerce-address-fields #shipping_company_field,
.woocommerce-address-fields #shipping_email_field {
    display: none !important;
}

/* Remove optional text */
.woocommerce-address-fields .optional {
    display: none !important;
}
