/**
 * Product Labels (hash d7b3a9).
 *
 * A wrapper holding one pill per active label (On Sale, Out of stock). Placement over the image
 * is done with Elementor's own Advanced > Position controls on the widget. Every property here
 * has a fallback so the labels look right before any control CSS loads.
 */

/* Hide the widget wrapper too when the widget prints nothing, so it adds no gap. */
.elementor-widget-product_labels_d7b3a9:not(:has(.pl-d7b3a9)) {
	display: none;
}

.pl-d7b3a9 {
	--pl-blur: 30px;
	--pl-bright: 15%;

	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 8px;
	box-sizing: border-box;
}

.pl-d7b3a9 *,
.pl-d7b3a9 *::before,
.pl-d7b3a9 *::after {
	box-sizing: border-box;
}

/* The pill. Colours, radius, padding and typography come from the controls. */
.pl-d7b3a9 .pl-d7b3a9__label {
	display: inline-block;
	max-width: 100%;
	margin: 0;
	padding: 9px 18px;
	border-radius: 20px;
	background-color: rgba(255, 255, 255, 0.15);
	color: #fcf9f4;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
	-webkit-backdrop-filter: blur(var(--pl-blur)) brightness(var(--pl-bright));
	backdrop-filter: blur(var(--pl-blur)) brightness(var(--pl-bright));
}

/* Backdrop effect switched off in the controls. */
.pl-d7b3a9.pl-d7b3a9--nobackdrop .pl-d7b3a9__label {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* Browsers without backdrop-filter get a solid dark pill so the text stays readable. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.pl-d7b3a9:not(.pl-d7b3a9--nobackdrop) .pl-d7b3a9__label {
		background-color: rgba(37, 35, 34, 0.85);
	}
}
