/* ==========================================================================
   Xin Woo Free Gifts – Frontend (cart / checkout) styles
   ========================================================================== */

.xwfg-gift-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 3px 8px;
	border-radius: 50px;
	background: var(--dark, #000);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.6;
	vertical-align: middle;
	white-space: nowrap;
	text-transform: uppercase;
}

.xwfg-gift-qty {
	display: inline-block;
	font-weight: 600;
}

/* ==========================================================================
   Cart / Checkout Blocks (Store API)
   The classic woocommerce_cart_item_name filter doesn't run in the blocks, so
   the badge is rendered here via ::after on gift lines tagged by our JS filter.
   The label text comes from the --xwfg-gift-label custom property, set inline
   from the translated string in XWFG_Cart::enqueue_frontend_assets().
   ========================================================================== */
.xwfg-gift-item .wc-block-components-product-name::after {
	content: var(--xwfg-gift-label, "Free gift");
	display: inline-block;
	margin-left: 6px;
	padding: 3px 8px;
	border-radius: 50px;
	background: var(--dark, #000);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.6;
	vertical-align: middle;
	white-space: nowrap;
	text-transform: uppercase;
}

/* Gift lines are auto-managed — hide the block remove link. */
.xwfg-gift-item .wc-block-cart-item__remove-link {
	display: none;
}
