/* Motion layers onto the restored theme without changing its layout or palette. */
@media (prefers-reduced-motion: no-preference) {
	body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(#main, #header) .button:not(.is-link):not(.minus):not(.plus) {
		transition: translate 200ms cubic-bezier(.16, 1, .3, 1), scale 150ms ease-out, background-color 180ms ease, color 180ms ease;
	}
	body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(#main, #header) .button:not(.is-link):not(.minus):not(.plus):active:not(:disabled):not(.disabled):not(.loading) {
		scale: .97;
	}
	@media (hover: hover) and (pointer: fine) {
		body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(#main, #header) .button:not(.is-link):not(.minus):not(.plus):hover:not(:disabled):not(.disabled):not(.loading) {
			translate: 0 -2px;
		}
		#main .product-small .box-image img:not(.back-image) {
			transition: transform 450ms cubic-bezier(.16, 1, .3, 1), opacity 200ms ease;
		}
	}
}

/* Keep useful color/focus feedback while removing spatial motion. */
@media (prefers-reduced-motion: reduce) {
	#main .product-small .box,
	#main .product-small .box-image img,
	#main .product-small:hover .box,
	#main .product-small.has-hover:hover .box-image img {
		transform: none !important;
		transition: opacity 150ms ease, border-color 150ms ease !important;
	}
	:is(#main, #header) .button {
		translate: none !important;
		scale: none !important;
		transition: background-color 150ms ease, color 150ms ease;
	}
}
