/* iDanny 1.0.86: standard product-card cart control for related/upsells. */

/*
 * The card itself keeps its existing clipping for images and rounded corners.
 * Only the bottom action row must allow the cart control to animate outside
 * its 52px box. This prevents the rightmost button from being cut off without
 * moving it or changing card geometry.
 */
html body.single-product #page section.related.products ul.products > li.product .cmsmasters_product_info_wrap,
html body.single-product #page section.related.products ul.products > li.product .cmsmasters_product_add_wrap,
html body.single-product #page section.related.products ul.products > li.product .cmsmasters_product_add_inner,
html body.single-product #page section.upsells.products ul.products > li.product .cmsmasters_product_info_wrap,
html body.single-product #page section.upsells.products ul.products > li.product .cmsmasters_product_add_wrap,
html body.single-product #page section.upsells.products ul.products > li.product .cmsmasters_product_add_inner {
	overflow: visible !important;
}

body.single-product #page section.related.products .cmsmasters_product_add_wrap,
body.single-product #page section.related.products .cmsmasters_product_add_inner,
body.single-product #page section.upsells.products .cmsmasters_product_add_wrap,
body.single-product #page section.upsells.products .cmsmasters_product_add_inner {
	display: block !important;
	position: static !important;
	width: 52px !important;
	height: 52px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	overflow: visible !important;
}

body.single-product #page section.related.products .cmsmasters_product_add_wrap::before,
body.single-product #page section.related.products .cmsmasters_product_add_wrap::after,
body.single-product #page section.related.products .cmsmasters_product_add_inner::before,
body.single-product #page section.related.products .cmsmasters_product_add_inner::after,
body.single-product #page section.upsells.products .cmsmasters_product_add_wrap::before,
body.single-product #page section.upsells.products .cmsmasters_product_add_wrap::after,
body.single-product #page section.upsells.products .cmsmasters_product_add_inner::before,
body.single-product #page section.upsells.products .cmsmasters_product_add_inner::after {
	display: none !important;
	content: none !important;
}

body.single-product #page section.related.products a.cmsmasters_product_button.add_to_cart_button,
body.single-product #page section.related.products a.cmsmasters_add_to_cart_button,
body.single-product #page section.upsells.products a.cmsmasters_product_button.add_to_cart_button,
body.single-product #page section.upsells.products a.cmsmasters_add_to_cart_button {
	position: static !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	overflow: hidden !important;
	width: 52px !important;
	min-width: 52px !important;
	height: 52px !important;
	min-height: 52px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	outline: 0 !important;
	border-radius: 14px !important;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 4.5h2l1.9 8.2a2 2 0 0 0 2 1.6h7.5a2 2 0 0 0 2-1.6L20 7.2H7'/%3E%3Cpath d='M11.8 8.2v4M9.8 10.2h4'/%3E%3Ccircle cx='10' cy='18.5' r='1.25'/%3E%3Ccircle cx='17' cy='18.5' r='1.25'/%3E%3C/svg%3E") center / 27px 27px no-repeat,
		linear-gradient(135deg, #4368ff 0%, #7139ef 100%) !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	box-shadow: 0 7px 17px rgba(83, 61, 235, .27) !important;
	transform: translateY(0) scale(1) !important;
	transform-origin: center center !important;
	will-change: transform;
	transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease !important;
}

@media (hover: hover) and (pointer: fine) {
	html body.single-product #page section.related.products ul.products > li.product a.cmsmasters_product_button.add_to_cart_button:hover,
	html body.single-product #page section.related.products ul.products > li.product a.cmsmasters_add_to_cart_button:hover,
	html body.single-product #page section.upsells.products ul.products > li.product a.cmsmasters_product_button.add_to_cart_button:hover,
	html body.single-product #page section.upsells.products ul.products > li.product a.cmsmasters_add_to_cart_button:hover,
	html body.single-product #page section.related.products ul.products > li.product a.cmsmasters_product_button.add_to_cart_button:focus-visible,
	html body.single-product #page section.related.products ul.products > li.product a.cmsmasters_add_to_cart_button:focus-visible,
	html body.single-product #page section.upsells.products ul.products > li.product a.cmsmasters_product_button.add_to_cart_button:focus-visible,
	html body.single-product #page section.upsells.products ul.products > li.product a.cmsmasters_add_to_cart_button:focus-visible {
		transform: translateY(-2px) scale(1.06) !important;
		filter: brightness(1.04) !important;
		box-shadow: 0 10px 22px rgba(83, 61, 235, .32) !important;
	}
}

html body.single-product #page section.related.products ul.products > li.product a.cmsmasters_product_button.add_to_cart_button:active,
html body.single-product #page section.related.products ul.products > li.product a.cmsmasters_add_to_cart_button:active,
html body.single-product #page section.upsells.products ul.products > li.product a.cmsmasters_product_button.add_to_cart_button:active,
html body.single-product #page section.upsells.products ul.products > li.product a.cmsmasters_add_to_cart_button:active {
	transform: translateY(0) scale(.94) !important;
	filter: brightness(.98) !important;
}

body.single-product #page section.related.products a.cmsmasters_product_button.add_to_cart_button.added,
body.single-product #page section.related.products a.cmsmasters_add_to_cart_button.added,
body.single-product #page section.upsells.products a.cmsmasters_product_button.add_to_cart_button.added,
body.single-product #page section.upsells.products a.cmsmasters_add_to_cart_button.added {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 24px 24px no-repeat,
		linear-gradient(135deg, #4368ff 0%, #7139ef 100%) !important;
}

body.single-product #page section.related.products a.added_to_cart.wc-forward,
body.single-product #page section.upsells.products a.added_to_cart.wc-forward {
	display: none !important;
}

@media only screen and (max-width: 767px) {
	body.single-product #page section.related.products .cmsmasters_product_add_wrap,
	body.single-product #page section.related.products .cmsmasters_product_add_inner,
	body.single-product #page section.upsells.products .cmsmasters_product_add_wrap,
	body.single-product #page section.upsells.products .cmsmasters_product_add_inner,
	body.single-product #page section.related.products a.cmsmasters_product_button.add_to_cart_button,
	body.single-product #page section.related.products a.cmsmasters_add_to_cart_button,
	body.single-product #page section.upsells.products a.cmsmasters_product_button.add_to_cart_button,
	body.single-product #page section.upsells.products a.cmsmasters_add_to_cart_button {
		width: 36px !important;
		min-width: 36px !important;
		height: 36px !important;
		min-height: 36px !important;
	}

	body.single-product #page section.related.products a.cmsmasters_product_button.add_to_cart_button,
	body.single-product #page section.related.products a.cmsmasters_add_to_cart_button,
	body.single-product #page section.upsells.products a.cmsmasters_product_button.add_to_cart_button,
	body.single-product #page section.upsells.products a.cmsmasters_add_to_cart_button {
		border-radius: 10px !important;
		background-size: 23px 23px, auto !important;
		box-shadow: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.single-product #page section.related.products a.cmsmasters_product_button.add_to_cart_button,
	body.single-product #page section.related.products a.cmsmasters_add_to_cart_button,
	body.single-product #page section.upsells.products a.cmsmasters_product_button.add_to_cart_button,
	body.single-product #page section.upsells.products a.cmsmasters_add_to_cart_button {
		transition: none !important;
	}
}
