/* One stock label for Woodmart and the custom homepage cards. */
.product-grid-item .product-element-top,
.woocommerce ul.products li.product,
.lb-product-card,
.lb-rail-card {
	position: relative;
}

.lb-stock-badge {
	position: absolute;
	z-index: 5;
	inset-block-start: 10px;
	inset-inline-start: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: calc(100% - 20px);
	padding: 5px 12px;
	border: 1px solid #7f1d1d;
	border-radius: 6px;
	background: #fff1f2;
	color: #881337;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	pointer-events: none;
}

/* Stock takes visual priority over promotional labels on unavailable cards. */
.product-grid-item.outofstock .product-labels,
.woocommerce ul.products li.product.outofstock .onsale {
	display: none;
}
