/* WCAG AA contrast fixes */

/* Strikethrough prices: #595959 on white = 7.02:1 (was ~2.85:1) */
.price del,
.price del .woocommerce-Price-amount,
del .woocommerce-Price-amount {
	color: #595959 !important;
	opacity: 1 !important;
}

/* Breadcrumbs: #595959 on white = 7.02:1 */
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a,
.woocommerce-breadcrumb span {
	color: #595959 !important;
}

/* Footer widget text: #595959 on white = 7.02:1 */
.site-footer .widget-area,
.site-footer .widget-area a {
	color: #595959;
}

/* Testimonial author names + counter titles: #595959 on #e9e9e9 = 5.24:1 (was 3.74:1, need 4.5:1) */
.elementor-testimonial-name,
.elementor-counter-title {
	color: #595959 !important;
}

/*
 * Promo-banner content overlay: rgba(0,0,0,0.3) composited over any banner background.
 * Green  #5ab046 → effective L≈0.177 → 4.63:1 with white (was 2.71:1, need 4.5:1)
 * Orange #da5514 → effective L≈0.115 → 6.36:1 with white (was 3.96:1, need 4.5:1)
 */
.promo-banner .content-banner {
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 10px;
	padding: 12px 18px 14px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
	box-sizing: border-box;
}

/* Touch target fix: banner buttons are 16-18px tall (need ≥24px) */
.promo-banner .banner-btn-wrapper .btn {
	min-height: 24px;
	display: inline-flex;
	align-items: center;
}

/*
 * LCP fix: homepage hero background images (Elementor page 20287).
 *
 * WP Rocket RUCSS replaces background-image: url() with var(--wpr-bg-HASH) and
 * scopes the variable definition to .elementor-motion-effects-layer — a div that
 * Elementor JS adds to the DOM only at TTI (~5 s). Before JS runs the variable is
 * undefined on the container, so the background is invisible and LCP = TTI.
 *
 * Fix A (:root vars) — makes the var resolve immediately via cascade:
 *   The container's background-image:var(--wpr-bg-HASH) rule inherits the value from
 *   :root, so the background paints at FCP. After JS the motion-effects-layer
 *   redefines the var on itself (higher specificity), keeping parallax intact.
 * Fix B (direct url fallback) — also resolves if RUCSS strips the var() rule.
 */
:root {
	--wpr-bg-6ff54f26-fcf8-42e6-8588-47bd7714d8d0: url('https://elektro-mar.pl/wp-content/uploads/2024/08/Szlifierki-Katowe.jpg');
	--wpr-bg-ae12b615-cb12-4435-b47c-abbbce1b2138: url('https://elektro-mar.pl/wp-content/uploads/2024/06/pilarka-aku.jpg');
}

.elementor-20287 .elementor-element-699e097:not(.elementor-motion-effects-element-type-background) {
	background-image: url('https://elektro-mar.pl/wp-content/uploads/2024/08/Szlifierki-Katowe.jpg');
}

.elementor-20287 .elementor-element-fefe9c7:not(.elementor-motion-effects-element-type-background) {
	background-image: url('https://elektro-mar.pl/wp-content/uploads/2024/06/pilarka-aku.jpg');
}
