/**
 * WoodMart / Cuvys Commerce theme-compatible New product labels.
 * Works when Product Labels module is off (theme sale badges still use .product-label).
 */

.new-item.product-label.cuvys-ec-new-label {
	background-color: #e21e1d;
	color: #fff;
}

/* Stack below theme sale badge (sale hooks at 7, new at 8). */
.woocommerce-image__wrapper .sale-item.product-label + .new-item.product-label.cuvys-ec-new-label,
li.product .sale-item.product-label + .new-item.product-label.cuvys-ec-new-label,
.onsale + .new-item.product-label.cuvys-ec-new-label {
	top: 36px;
}

.theme-shoptimizer .woocommerce-image__wrapper .sale-item.product-label + .new-item.product-label.cuvys-ec-new-label {
	top: 50px;
}

/* Gallery / image overlay wrapper */
.cuvys-ec-new-label-gallery-wrap {
	position: absolute;
	z-index: 2;
	top: 10px;
	left: 10px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	pointer-events: none;
}

#cuvys-pdp-gallery-wrapper .cuvys-ec-new-label-gallery-wrap,
.woocommerce-product-gallery .cuvys-ec-new-label-gallery-wrap {
	top: 10px;
	left: 10px;
}

.cuvys-ec-new-label-gallery-wrap .new-item.product-label {
	position: relative;
	top: auto;
	left: auto;
}

.cuvys-ec-new-label--summary {
	display: inline-block;
	position: relative;
	top: -1px;
	left: 0;
	margin-left: 8px;
	vertical-align: middle;
}

.rtl .cuvys-ec-new-label-gallery-wrap {
	left: auto;
	right: 10px;
}
