/**
 * Free-gift cart row: greyed quantity cell.
 *
 * ACFW's "Add Products" gift renders a bare "1" in the quantity cell. class-gift-cart-style.php
 * wraps it in .yb-gift-qty. The gift <tr> shares identical classes with the editable rows, so the
 * cell is selected by the marker span it contains (:has). The WHOLE td.product-quantity is greyed
 * edge-to-edge, with the locked number as plain centered muted text — no inner box.
 *
 * :has() is supported by all current evergreen browsers; where it is not, the cell simply is not
 * greyed and the centred number still shows (graceful degradation).
 */
.woocommerce-cart-form td.product-quantity:has(.yb-gift-qty),
.woocommerce-checkout td.product-quantity:has(.yb-gift-qty) {
	background: #ececec;
	text-align: center;
}

.woocommerce-cart-form td.product-quantity .yb-gift-qty,
.woocommerce-checkout td.product-quantity .yb-gift-qty {
	display: inline-block;
	color: #8f8f8f;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	cursor: not-allowed;
	user-select: none;
}
