/*
 * OH Wholesale Ordering - Hidden Prices
 * Only enqueued for users/guests configured to hide prices.
 */

/* Classic WooCommerce product / loop price output. */
body.ohwo-hide-prices .woocommerce .price,
body.ohwo-hide-prices .woocommerce-Price-amount,
body.ohwo-hide-prices .wc-block-grid__product-price,
body.ohwo-hide-prices .wp-block-woocommerce-product-price,
body.ohwo-hide-prices .wc-block-components-product-price,
body.ohwo-hide-prices .wc-block-components-product-badge,
body.ohwo-hide-prices .wc-block-components-sale-badge,
body.ohwo-hide-prices .ohwo-block-price {
	display: none !important;
}

/* Classic cart: remove the unused Price/Subtotal columns completely. */
body.ohwo-hide-prices .woocommerce-cart-form th.product-price,
body.ohwo-hide-prices .woocommerce-cart-form td.product-price,
body.ohwo-hide-prices .woocommerce-cart-form th.product-subtotal,
body.ohwo-hide-prices .woocommerce-cart-form td.product-subtotal {
	display: none !important;
}

/* Classic cart / checkout monetary summary rows. Keep shipping controls visible. */
body.ohwo-hide-prices .cart_totals .cart-subtotal,
body.ohwo-hide-prices .cart_totals .order-total,
body.ohwo-hide-prices .cart_totals .cart-discount,
body.ohwo-hide-prices .cart_totals .fee,
body.ohwo-hide-prices .cart_totals .tax-total,
body.ohwo-hide-prices .woocommerce-checkout-review-order-table tfoot .cart-subtotal,
body.ohwo-hide-prices .woocommerce-checkout-review-order-table tfoot .order-total,
body.ohwo-hide-prices .woocommerce-checkout-review-order-table tfoot .cart-discount,
body.ohwo-hide-prices .woocommerce-checkout-review-order-table tfoot .fee,
body.ohwo-hide-prices .woocommerce-checkout-review-order-table tfoot .tax-total,
body.ohwo-hide-prices .woocommerce-mini-cart__total,
body.ohwo-hide-prices .woocommerce-order-overview__total {
	display: none !important;
}

/* Checkout item total column (classic). */
body.ohwo-hide-prices .woocommerce-checkout-review-order-table td.product-total,
body.ohwo-hide-prices .woocommerce-checkout-review-order-table th.product-total {
	display: none !important;
}

/* My Account / order details. */
body.ohwo-hide-prices .woocommerce-orders-table__header-order-total,
body.ohwo-hide-prices .woocommerce-orders-table__cell-order-total,
body.ohwo-hide-prices .woocommerce-table--order-details th.product-total,
body.ohwo-hide-prices .woocommerce-table--order-details td.product-total {
	display: none !important;
}

/* WooCommerce Cart/Checkout Blocks. Prices stay available internally for checkout logic, but are not rendered to the user. */
body.ohwo-hide-prices .wc-block-cart-item__prices,
body.ohwo-hide-prices .wc-block-cart-item__total,
body.ohwo-hide-prices .wc-block-components-order-summary-item__individual-price,
body.ohwo-hide-prices .wc-block-components-order-summary-item__total-price,
body.ohwo-hide-prices .wc-block-order-summary-item__individual-price,
body.ohwo-hide-prices .wc-block-order-summary-item__total-price,
body.ohwo-hide-prices .wc-block-components-totals-item__value,
body.ohwo-hide-prices .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.ohwo-hide-prices .wc-block-components-product-price__value,
body.ohwo-hide-prices [class*="product-price"] .wc-block-formatted-money-amount,
body.ohwo-hide-prices [class*="item-price"] .wc-block-formatted-money-amount,
body.ohwo-hide-prices [class*="total-price"] .wc-block-formatted-money-amount {
	display: none !important;
}

/* Shipping method names remain visible, but any formatted monetary amount beside them is hidden. */
body.ohwo-hide-prices .wc-block-components-shipping-rates-control .wc-block-formatted-money-amount,
body.ohwo-hide-prices .wc-block-components-shipping-rates-control .woocommerce-Price-amount {
	display: none !important;
}

/* Avoid awkward empty price labels left by some themes. */
body.ohwo-hide-prices .summary .price:empty,
body.ohwo-hide-prices .product .price:empty {
	display: none !important;
}
