/**
 * Front-end price suppression.
 *
 * The PHP filters already replace every amount with "Op aanvraag". This file
 * removes the now-pointless price columns and totals rows so the tables read
 * as products-and-quantities rather than as a price list with the numbers
 * blanked out.
 *
 * Belt and braces on purpose: Elementor Pro's Checkout widget renders the
 * order review through its own partial in some versions, and a PHP filter that
 * covers the stock template can miss it.
 */

/* ---------------------------------------------------------------------------
   Placeholder
   --------------------------------------------------------------------------- */

.wcaf-op-aanvraag {
	font-style: italic;
	opacity: 0.75;
}

/* ---------------------------------------------------------------------------
   Cart page
   --------------------------------------------------------------------------- */

.woocommerce-cart-form .product-price,
.woocommerce-cart-form .product-subtotal,
.woocommerce-cart table.shop_table th.product-price,
.woocommerce-cart table.shop_table th.product-subtotal {
	display: none !important;
}

.woocommerce-cart .cart_totals h2,
.woocommerce-cart .cart-subtotal,
.woocommerce-cart .order-total,
.woocommerce-cart .cart-discount,
.woocommerce-cart .woocommerce-shipping-totals .amount,
.woocommerce-cart .coupon {
	display: none !important;
}

/* ---------------------------------------------------------------------------
   Checkout — order review
   --------------------------------------------------------------------------- */

.woocommerce-checkout-review-order-table th.product-total,
.woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout-review-order-table tfoot,
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .checkout_coupon {
	display: none !important;
}

/* Keep the totals row visible on the pay page: prices are agreed by then. */
.woocommerce-order-pay .woocommerce-checkout-review-order-table tfoot,
.woocommerce-order-pay .woocommerce-checkout-review-order-table th.product-total,
.woocommerce-order-pay .woocommerce-checkout-review-order-table td.product-total,
.woocommerce-order-pay .shop_table tfoot {
	display: table-row-group !important;
}

.woocommerce-order-pay .woocommerce-checkout-review-order-table th.product-total,
.woocommerce-order-pay .woocommerce-checkout-review-order-table td.product-total {
	display: table-cell !important;
}

/* ---------------------------------------------------------------------------
   WPC Fly Cart
   --------------------------------------------------------------------------- */

/**
 * VERIFY THESE AGAINST THE LIVE DOM BEFORE TRUSTING THEM.
 *
 * WPC Fly Cart renders through AJAX fragments and its markup has changed
 * between versions, so these selectors are a starting point rather than a
 * guarantee. Open the side cart, inspect an item row, and confirm the class
 * names match. The PHP filters in class-wcaf-price-visibility.php already
 * replace the amounts themselves, so a miss here shows "Op aanvraag" rather
 * than leaking a real price — but the layout will look wrong.
 */
.woofc-item-price,
.woofc-item-total,
.woofc-total,
.woofc-subtotal,
.woofc-area .woofc-inner .woofc-total,
.woofc-action .woofc-action-checkout .woofc-total {
	display: none !important;
}

/* ---------------------------------------------------------------------------
   Mini cart widget
   --------------------------------------------------------------------------- */

.widget_shopping_cart .quantity .amount,
.widget_shopping_cart .total,
.woocommerce-mini-cart__total {
	display: none !important;
}

/* ---------------------------------------------------------------------------
   My Account
   --------------------------------------------------------------------------- */

.woocommerce-MyAccount-content .woocommerce-table--order-details tfoot tr:not(:last-child) {
	display: none;
}
