/* Shared product labels, campaign seals and add-to-cart hover treatment. */
.product,
.product-card,
.ay-flash-card,
.woocommerce-product-gallery {
	position: relative;
}

.ayrisoo-product-labels {
	pointer-events: none;
	position: absolute;
	z-index: 12;
	inset: 0;
}

.ay-product-standard-labels {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
}

.ay-product-standard-labels span {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 5px 10px;
	border-radius: 5px;
	color: #fff;
	background: #00aebe;
	font: 800 12px/1.15 Arial, sans-serif;
	letter-spacing: .01em;
	text-align: center;
	text-transform: uppercase;
}

.ay-product-standard-labels .label-new { background: var(--ay-demo-accent, var(--ay-demo-primary, #ef476f)); }
.ay-product-standard-labels .label-hot { background: var(--ay-demo-secondary, #ff9f1c); }
.ay-product-standard-labels .label-sale {
	background: var(--ay-demo-primary, #00aebe);
	flex-direction: column;
	justify-content: center;
	min-width: 54px;
	min-height: 44px;
	padding: 5px 7px;
	font-family: Arial, "Helvetica Neue", sans-serif;
	font-weight: 500;
	line-height: 1;
}
.ay-product-standard-labels .label-sale strong {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.05;
}
.ay-product-standard-labels .label-sale small {
	margin-top: 2px;
	font-size: 9px;
	font-weight: 500;
	letter-spacing: .01em;
	line-height: 1;
}

.ay-product-campaign-badge {
	--ay-badge-size: 108px;
	position: absolute;
	display: block;
	width: var(--ay-badge-size);
	height: var(--ay-badge-size);
	filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .14));
}

.ay-product-campaign-badge.is-top-left { top: 58px; left: 12px; }
.ay-product-campaign-badge.is-top-right { top: 58px; right: 12px; }
.ay-product-campaign-badge.is-bottom-left { bottom: 12px; left: 12px; }
.ay-product-campaign-badge.is-bottom-right { right: 12px; bottom: 12px; }

.ay-product-campaign-badge__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.ay-product-campaign-badge__ring circle {
	fill: #fff;
	stroke: var(--ay-badge-color, #00aebe);
	stroke-width: 15px;
}

.ay-product-campaign-badge__ring text {
	fill: #fff;
	font: 500 8.8px/1 Arial, "Helvetica Neue", sans-serif;
	letter-spacing: .28px;
	text-transform: uppercase;
}

.ay-product-campaign-badge__ring .ay-product-campaign-badge__top {
	font-size: var(--ay-badge-top-font, 9.5px);
	letter-spacing: .5px;
}

.ay-product-campaign-badge__ring .ay-product-campaign-badge__bottom {
	font-size: var(--ay-badge-bottom-font, 9.5px);
	letter-spacing: .4px;
}

.ay-product-campaign-badge__ring .ay-product-campaign-badge__separator {
	font-size: 7px;
	font-weight: 400;
	text-anchor: middle;
}

.ay-product-campaign-badge__center {
	position: absolute;
	inset: 23px;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 50%;
	background: #fff;
}

.ay-product-campaign-badge__center img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.single-product .ay-product-labels-context-single {
	top: 0;
	right: auto;
	bottom: 0;
	left: 0;
	width: min(50%, 680px);
}

.woocommerce a.button.add_to_cart_button,
.woocommerce a.button.product_type_simple,
.ay-flash-card .button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	overflow: hidden;
	border: 1px solid currentColor;
	color: #292929;
	background: transparent;
	transition: color .22s ease, background-color .22s ease, border-color .22s ease, gap .22s ease, transform .22s ease;
}

.woocommerce a.button.add_to_cart_button::after,
.woocommerce a.button.product_type_simple::after,
.ay-flash-card .button::after {
	content: "→";
	display: inline-block;
	width: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateX(-7px);
	transition: width .22s ease, opacity .22s ease, transform .22s ease;
}

.woocommerce a.button.add_to_cart_button:hover,
.woocommerce a.button.product_type_simple:hover,
.ay-flash-card .button:hover,
.woocommerce a.button.add_to_cart_button:focus-visible,
.ay-flash-card .button:focus-visible {
	gap: 10px;
	color: #fff;
	border-color: var(--ay-color-primary, #ef476f);
	background: var(--ay-color-primary, #ef476f);
	transform: translateY(-1px);
}

.woocommerce a.button.add_to_cart_button:hover::after,
.woocommerce a.button.product_type_simple:hover::after,
.ay-flash-card .button:hover::after,
.woocommerce a.button.add_to_cart_button:focus-visible::after,
.ay-flash-card .button:focus-visible::after {
	width: 16px;
	opacity: 1;
	transform: none;
}

@media (max-width: 767px) {
	.ay-product-campaign-badge { --ay-badge-size: 86px; }
	.ay-product-campaign-badge__ring text { font-size: 8px; }
	.ay-product-campaign-badge__center { inset: 21px; }
}
