/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.1.0
 Text Domain:  woodmart
*/

/* --- Accessibility remediation (Lighthouse color-contrast, 2026-07-06) --- */

/*
 * Sale badge: white on --wd-primary-color (#1b9aca) is 3.22:1, below the 4.5:1
 * WCAG AA threshold for its 20px normal-weight text. Darken the badge only —
 * the primary colour stays the brand blue everywhere else.
 * #0F6E96 on #fff = 5.69:1.
 *
 * Two theme rules paint this badge, both in stylesheets enqueued *after*
 * child-style, so we have to out-specify rather than out-order them:
 *   `.product-label.onsale`      (0,2,0) — woo-mod-product-labels-default.css
 *   `.wd .product-label.onsale`  (0,3,0) — the generated xts-theme_settings_*.css
 * Hence `.wd span.onsale.product-label` at 0,3,1. The bare `span.onsale`
 * selectors (0,2,1) cover the WooCommerce-native badge in any markup that the
 * theme's `.wd` wrapper does not enclose.
 */
.wd span.onsale.product-label,
span.onsale.product-label,
.woocommerce span.onsale {
	background-color: #0F6E96;
}

/*
 * Struck-through regular price on sale products: --color-gray-300 (#bbbbbb) is
 * 1.92:1 on white. #767676 = 4.54:1, the darkest grey that still reads as
 * "de-emphasised" next to the active price.
 */
.price del,
.price del .amount,
.price del bdi {
	color: #767676;
}
