/*
 * Block Cart/Checkout order-summary tweaks for Excise Tax.
 *
 * 1. Visually group the Excise Tax line with the tax rows (the line is a real
 *    WooCommerce fee, so totals/refunds/charges stay correct — this only moves
 *    its display position via flexbox `order`).
 * 2. While totals recalculate, hide the Excise Tax line entirely (toggled by
 *    summary.js via .tbs-fee-loading) so it never shows a stale value next to
 *    rows that are loading; it reappears with its new value afterwards.
 *
 * If WooCommerce renames these block classes, the rules simply stop applying —
 * they can never affect any amount.
 */

.wp-block-woocommerce-checkout-order-summary-totals-block,
.wp-block-woocommerce-cart-order-summary-totals-block {
	display: flex;
	flex-direction: column;
}

.wp-block-woocommerce-checkout-order-summary-subtotal-block,
.wp-block-woocommerce-cart-order-summary-subtotal-block {
	order: 10;
}

.wp-block-woocommerce-checkout-order-summary-discount-block,
.wp-block-woocommerce-cart-order-summary-discount-block,
.wp-block-woocommerce-checkout-order-summary-totals-block > .slot-wrapper,
.wp-block-woocommerce-cart-order-summary-totals-block > .slot-wrapper {
	order: 20;
}

.wp-block-woocommerce-checkout-order-summary-shipping-block,
.wp-block-woocommerce-cart-order-summary-shipping-block {
	order: 30;
}

.wp-block-woocommerce-checkout-order-summary-taxes-block,
.wp-block-woocommerce-cart-order-summary-taxes-block {
	order: 40;
}

/* Excise Tax (fee) renders right after the tax rows. */
.wp-block-woocommerce-checkout-order-summary-fee-block,
.wp-block-woocommerce-cart-order-summary-fee-block {
	order: 50;
}

/* While recalculating, collapse the Excise Tax line until its value resolves. */
.wp-block-woocommerce-checkout-order-summary-fee-block.tbs-fee-loading,
.wp-block-woocommerce-cart-order-summary-fee-block.tbs-fee-loading {
	display: none !important;
}




