/**
 * B2B Access Control – Front-end styles
 *
 * Applied only when the current visitor does not have validated B2B access.
 * The CSS is the visual layer. Server-side blocking (CartController override,
 * checkout redirect) is the security layer and works regardless of the theme.
 *
 * Primary target: Hummingbird (PrestaShop 9 default theme).
 * Standard PS class names are also included as fallback for other themes.
 */

/* ─────────────────────────────────────────────────────────────────────────────
   Hide prices
   ───────────────────────────────────────────────────────────────────────────── */

/* Hummingbird – product listing (miniatures / featured / new products) */
.product-miniature__price,
.product-miniature__discount-price {
    display: none !important;
}

/* Hummingbird – product detail page
   NOTE: verified against the real rendered markup — the actual classes are
   .product__price (not .product__current-price) and .product__tax-infos
   (plural, not .product__tax-info). Those two never matched anything. */
.product__price,
.product__regular-price,
.product__discount-percentage,
.product__discount-amount,
.product__tax-infos,
.product__unit-price,
.product__pack-price,
.product__taxless-price,
.product__ecotax-price {
    display: none !important;
}

/* Classic / standard PS fallback – product detail */
.product-prices .current-price,
.product-prices .regular-price,
.product-prices .price,
.product-prices .product-discount,
.product-prices .discount-amount,
.product-prices .discount-percentage,
.product-prices .tax-shipping-line {
    display: none !important;
}

/* Classic / standard PS fallback – product listing */
.product-miniature .price-wrapper,
.product-miniature .product-price-wrapper,
.product-miniature .price {
    display: none !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Hide add-to-cart button, quantity selector and related controls
   ───────────────────────────────────────────────────────────────────────────── */

/* Hummingbird – product detail add-to-cart area */
.product-add-to-cart__quantity,
.product-add-to-cart .product__quantity {
    display: none !important;
}

/* Standard PS / Hummingbird – add-to-cart button (data attribute is reliable) */
button[data-button-action="add-to-cart"],
.add-to-cart {
    display: none !important;
}

/* Quantity input wrapper (classic theme) */
.product-add-to-cart .product-quantity,
.product-add-to-cart .qty,
.product-add-to-cart .input-group,
.product-add-to-cart label[for="quantity_wanted"],
.product-add-to-cart .bootstrap-touchspin {
    display: none !important;
}

/* Quick add-to-cart on miniatures */
button[data-button-action="quick-add-to-cart"],
.quick-add-to-cart,
.product-miniature__cart-btn,
/* Hummingbird – quantity + add-to-cart wrapper on product grid */
.quantity-button,
.js-quantity-button {
    display: none !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Message element styles
   ───────────────────────────────────────────────────────────────────────────── */

.b2b-price-message,
.b2b-cart-message {
    padding: 0.4rem 0;
    font-size: 0.875rem;
}

.b2b-pending-notice {
    margin: 1rem 0;
}
