.wcpcl-label {
	display: inline-block;
	padding: .35em .7em;
	border-radius: 50px;
	background: var(--wcpcl-bg, #2271b1);
	color: var(--wcpcl-color, #fff);
	line-height: 1.2;
}

.wcpcl-loop-label {
	position: absolute;
	z-index: 5;
	top: .75rem;
	left: .75rem;
}

.wcpcl-media {
	display: block;
	position: relative;
}

.wcpcl-media > img {
	display: block;
}

.wcpcl-image-label {
	position: absolute;
	z-index: 6;
	top: .75rem;
	left: .75rem;
	pointer-events: none;
}

/* When the image filter is available, hide the duplicate from the classic hook. */
.product:has(.wcpcl-media) > .wcpcl-hook-label,
.product:has(.wcpcl-media) .wcpcl-hook-label {
	display: none;
}

/* WoodMart renders its own label stack; prefer it when it is present. */
.product:has(.wcpcl-woodmart-label) .wcpcl-image-label,
.product:has(.wcpcl-woodmart-label) .wcpcl-hook-label,
.wd-product:has(.wcpcl-woodmart-label) .wcpcl-image-label,
.wd-product:has(.wcpcl-woodmart-label) .wcpcl-hook-label {
	display: none;
}

.wcpcl-woodmart-label.product-label {
	width: auto;
	min-width: 0;
	height: auto;
	padding: .35em .7em;
	line-height: 1.2;
	white-space: nowrap;
}

.woocommerce ul.products li.product {
	position: relative;
}

.wcpcl-single-label {
	margin: 0 0 .75rem;
}
