/* Opt-in catalogue stock replacement; not enqueued unless an adapter enables it. */
li.product .star-rating,
.wc-block-grid__product .wc-block-grid__product-rating,
.wc-block-grid__product .wc-block-grid__product-rating-counter,
.wc-block-product .wc-block-components-product-rating,
.wc-block-product .wc-block-components-product-rating-counter,
.wc-block-components-product-card .wc-block-components-product-rating,
.wc-block-components-product-card .wc-block-components-product-rating-counter {
	display: none !important;
}

.wootomic-stock-tag {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 0.45em;
	max-width: 100%;
	margin: 0.25rem 0 0.55rem;
	padding: 0.35rem 0.65rem;
	border: 1px solid #b7dfc5;
	border-radius: 999px;
	background: #eefaf2;
	color: #176b39;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: normal;
}

.wootomic-stock-tag__label {
	font-weight: 700;
}

/* Stock belongs to the action decision: keep it directly above the primary
 * card CTA even when a theme rearranges the action rail with flexbox. */
.woocommerce .product .hover-area > .wootomic-stock-tag,
.wc-block-grid__product .wootomic-stock-tag,
.wc-block-components-product-card .wootomic-stock-tag {
	order: -1;
	width: fit-content;
	margin-top: 0;
	margin-bottom: 0.15rem;
}

.wootomic-stock-tag__dot {
	flex: 0 0 auto;
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	background: currentColor;
}

.wootomic-stock-tag--on-backorder {
	border-color: #f1cf82;
	background: #fff8e7;
	color: #8a5a00;
}

.wootomic-stock-tag--out-of-stock {
	border-color: #d9dde3;
	background: #f4f5f7;
	color: #596474;
}
