/*
 * Armond Dalton child theme: fixes found in the WP 7 / Woo 11.3 assessment (ADWP-21).
 * Loaded by functions.php with a file-modified-time version, so each edit busts browser/CDN caches.
 */

/* S23: Stripe prepends client-side card errors ("Your card number is incomplete.") to the
   first .woocommerce-notices-wrapper on the page. Divi 4.27.7's checkout module CSS hides
   every .woocommerce-notices-wrapper, so Place order appeared to do nothing.
   Show a wrapper only while it actually contains an error. */
.et_pb_wc_checkout_billing .woocommerce-notices-wrapper:has(.woocommerce-error),
.et_pb_wc_checkout_shipping .woocommerce-notices-wrapper:has(.woocommerce-error),
.et_pb_wc_checkout_additional_info .woocommerce-notices-wrapper:has(.woocommerce-error),
.et_pb_wc_checkout_order_details .woocommerce-notices-wrapper:has(.woocommerce-error),
.et_pb_wc_checkout_payment_info .woocommerce-notices-wrapper:has(.woocommerce-error) { display:block !important; }

/* PUB-09: the Divi Theme Builder product template gives the Woo Images module a fixed 300px
   height. On tablet/phone the gallery is taller than that, so the product title was drawn
   over the bottom of the cover image. Let the module grow with its image below 981px. */
@media (max-width: 980px) {
	.single-product .et_pb_wc_images { height:auto !important; }
}
