/**
 * Affinite Customer Pricing — frontend.
 *
 * Body class `acpr-no-prices` is added when the current user has no custom prices.
 * In that case we hide the price column, "Add to cart" button, and quantity controls
 * on cable variants tables. Standard WC price HTML is already hidden via the
 * woocommerce_get_price_html filter.
 */

body.acpr-no-prices .acp-variants-table .acp-col-price,
body.acpr-no-prices .acp-variants-table th[data-sort="price"],
body.acpr-no-prices .acp-variants-table .acp-price-cell,
body.acpr-no-prices .acp-variants-table .acp-add-to-cart,
body.acpr-no-prices .acp-variants-table .acp-row-expander,
body.acpr-no-prices .acp-variants-table .acp-quantity-cell {
    display: none !important;
}

/* Show a small notice instead. */
body.acpr-no-prices .acp-variants-table::after {
    content: attr(data-no-prices-text);
}

/* Standard WC price hide on cable product pages for unauthorised users. */
body.acpr-no-prices .product-type-cable .price,
body.acpr-no-prices .product-type-cable .woocommerce-Price-amount {
    display: none !important;
}
