/* ECC Product Labels
 * Same size and shape as the old Acowebs labels: 30px high, 10px bold white
 * text, 3px corners. IN STOCK is the ECC green, NO STOCK dark grey, SALE the
 * highlight green.
 */

.ecc-pl {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 5;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 6px;
	pointer-events: none;
}

.ecc-pl__label {
	box-sizing: border-box;
	display: inline-block;
	height: 30px;
	min-width: 100px;
	padding: 0 15px;
	border-radius: 3px;
	background: #046C63;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 30px;
	text-align: center;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.ecc-pl__label--no-stock {
	background: #54595F;
}

.ecc-pl__label--sale {
	min-width: 80px;
	margin-left: auto;
	background: #23A455;
}

/* Product page: both labels on the left, clear of the zoom icon on the right. */
.ecc-pl--single {
	top: 10px;
	left: 10px;
	right: auto;
	justify-content: flex-start;
}

.ecc-pl--single .ecc-pl__label--sale {
	margin-left: 0;
}

/* Product cards (Elementor loop item): sit over the top of the card photo.
 * The shortcode widget is lifted out of the card's flow so it does not push
 * the photo down, and stretched across the top of the card. */
.elementor-widget-shortcode:has(.ecc-pl) {
	position: absolute !important;
	top: 0;
	left: 0;
	right: 0;
	width: auto !important;
	margin: 0 !important;
	z-index: 5;
}

.e-con:has(> .elementor-widget-shortcode .ecc-pl),
.e-con:has(> .e-con-inner > .elementor-widget-shortcode .ecc-pl) {
	position: relative;
}

/* Product page photos. */
.elementor-widget-woocommerce-product-images {
	position: relative;
}

/* Standard WooCommerce product lists. */
.woocommerce ul.products li.product {
	position: relative;
}

.woocommerce ul.products li.product .ecc-pl {
	top: 8px;
	left: 8px;
	right: 8px;
}
