/* Theme overrides - hand-authored, no SCSS source */

/* Add to cart button relief - SB-7592 */
/* Colors stay owned by the theme builder (global.add-to-cart.color): only depth is added here. */
.product-action--add-to-cart > .btn.btn-primary[data-cart-add-form] {
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .35),
		inset 0 -2px 0 rgba(0, 0, 0, .10),
		0 1px 2px rgba(0, 0, 0, .10),
		0 5px 10px rgba(0, 0, 0, .14),
		0 12px 22px rgba(0, 0, 0, .10);
	transform: translateZ(0);
	transition: box-shadow .18s ease-out, transform .18s ease-out;
}

.product-action--add-to-cart > .btn.btn-primary[data-cart-add-form]:hover {
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .45),
		inset 0 -2px 0 rgba(0, 0, 0, .10),
		0 2px 4px rgba(0, 0, 0, .12),
		0 8px 16px rgba(0, 0, 0, .16),
		0 18px 32px rgba(0, 0, 0, .12);
	transform: translateY(-2px);
}

/* Pressed: button sinks into its own shadow */
.product-action--add-to-cart > .btn.btn-primary[data-cart-add-form]:active {
	box-shadow:
		inset 0 2px 4px rgba(0, 0, 0, .20),
		0 1px 1px rgba(0, 0, 0, .10);
	transform: translateY(1px);
	transition-duration: .06s;
}

/* Theme focus style drops the relief - restore it and keep a visible ring */
.product-action--add-to-cart > .btn.btn-primary[data-cart-add-form]:focus-visible {
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .35),
		inset 0 -2px 0 rgba(0, 0, 0, .10),
		0 0 0 3px rgba(0, 0, 0, .35),
		0 5px 10px rgba(0, 0, 0, .14),
		0 12px 22px rgba(0, 0, 0, .10);
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.product-action--add-to-cart > .btn.btn-primary[data-cart-add-form],
	.product-action--add-to-cart > .btn.btn-primary[data-cart-add-form]:hover,
	.product-action--add-to-cart > .btn.btn-primary[data-cart-add-form]:active {
		transform: none;
		transition: none;
	}
}
