/* Force Guest Checkout for WooCommerce - front end. */

.wcfgc-hidden {
	display: none !important;
}

/* Notices whose text was blanked server side leave an empty box behind. */
.woocommerce-error:empty,
.woocommerce-info:empty,
.woocommerce-message:empty,
.woocommerce-error li:empty,
.woocommerce-info li:empty,
.woocommerce-message li:empty,
.wc-block-components-notice-banner:empty,
.wc-block-components-validation-error:empty {
	display: none !important;
}

.woocommerce-error:has(li:only-child:empty),
.woocommerce-info:has(li:only-child:empty),
.woocommerce-message:has(li:only-child:empty) {
	display: none !important;
}

/* Optional email: the address is filled in behind the scenes. */
.wcfgc-hide-email #billing_email_field,
.wcfgc-hide-email .woocommerce-billing-fields #billing_email_field,
.wcfgc-hide-email #contact-fields,
.wcfgc-hide-email .wc-block-checkout__contact-fields,
.wcfgc-hide-email .wc-block-components-address-form__email,
.wcfgc-hide-email .wc-block-components-text-input:has( #email ),
.wcfgc-hide-email .wc-block-components-text-input:has( #billing-email ) {
	display: none !important;
}
