/*
 * Freight rate (tsixlis_freight): 0 at checkout, but the cost is agreed by phone, so it must not read "free".
 * The cart/checkout blocks print "Free" for every 0 rate: show --tsixlis-freight-price instead
 * (text set inline by includes/shipping.php). Store pickup keeps its "Free" label.
 */

/* Checkout block, shipping options: price column of the freight rate. */
.wc-block-components-radio-control__option:has(> input[value^="tsixlis_freight:"]) .wc-block-checkout__shipping-option--free {
	display: none;
}

.wc-block-components-radio-control__option:has(> input[value^="tsixlis_freight:"]) .wc-block-components-radio-control__secondary-label::after {
	content: var(--tsixlis-freight-price);
}

/* Order summary (cart and checkout) while the freight rate is selected: body class set by checkout.js. */
.tsixlis-freight-selected .wc-block-components-totals-shipping .wc-block-components-totals-item__value > strong {
	display: none;
}

.tsixlis-freight-selected .wc-block-components-totals-shipping .wc-block-components-totals-item__value::after {
	content: var(--tsixlis-freight-price);
	font-weight: 600;
}
