/*
 * WyCart Builder — shared base styles.
 * Loaded as the 'wycb-theme' handle; pulled as a dependency by individual modules.
 *
 * @package Wycan\WYCB
 * @since   1.0.0
 */

/*
 * CSS custom properties will be set here as the plugin grows.
 * Modules override via selectors + {{WRAPPER}} variables in their widget controls.
 */

/*
 * Cart Discount Total tag — hide the whole block (prefix/suffix included) when
 * there is no discount, i.e. when the synced amount is empty. The sync engine
 * empties .wycb-cart-discount__value, and :has() collapses the wrapper.
 */
.wycb-cart-discount:has(.wycb-cart-discount__value:empty) {
   display: none;
}

/*
 * Cart Tax Total tag — hide the whole block (prefix/suffix included) when there is
 * no tax, i.e. when the synced amount is empty. Style the amount via the host widget.
 */
.wycb-cart-tax:has(.wycb-cart-tax__value:empty) {
   display: none;
}
