/* Shared WCAG 2.2 AA fixes for Astra, Elementor and WooCommerce UI. */
:where(a[href], button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid #ffffff !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 5px #111827 !important;
}

/* Text accent must remain darker than the decorative Ecocarbo green. */
.skip-link:focus,
.ec-home-section-label,
.ec-home-delivery__kicker,
.ec-shop-content__label,
.single-product .woocommerce-breadcrumb a,
.ec-single-product__afterbox-prose a,
body.woocommerce-account:not(.logged-in) #customer_login .lost_password a,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-privacy-policy-link,
body.woocommerce-account:not(.logged-in) #customer_login .ec-registration-privacy-consent a {
	color: #2f6f1f !important;
}

/* WCAG 2.2 SC 2.5.8: author-controlled targets are at least 24×24 CSS px. */
body.woocommerce-account:not(.logged-in) #customer_login .show-password-input,
.ast-search-menu-icon .search-submit,
.ast-search-box .search-submit,
.search-form .search-submit {
	min-width: 32px !important;
	min-height: 32px !important;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
