/*
 * Default state is unrestricted: every cart control renders as usual, so the full page cache
 * serves one HTML for guests, regular customers and company users alike. The
 * .duruo-cart-restricted class is added by JS only for company roles without add-to-cart.
 *
 * Two bootstraps add that class, one per theme:
 *   Luma  - Duruo_CompanyCart/js/cart-permission (customer-data subscription)
 *   Hyva  - Duruo_CompanyCart::cart-permission.phtml theme override (private-content-loaded)
 */

/* Luma markup */
.duruo-cart-restricted .box-tocart,
.duruo-cart-restricted form[data-role="tocart-form"],
.duruo-cart-restricted .action.tocart,
.duruo-cart-restricted button.tocart,
.duruo-cart-restricted .product-item-actions .actions-primary,
.duruo-cart-restricted .minicart-wrapper,
.duruo-cart-restricted .action.showcart,
.duruo-cart-restricted .checkout-methods-items,

/*
 * Hyva markup. Every add-to-cart control in the Hyva base theme carries data-addto="cart"
 * (PDP, wishlist page/sidebar/shared, compare list, reorder sidebar), which also covers the
 * Alpine-rendered ones that only appear after private content arrives. #menu-cart-icon and
 * #cart-drawer are the minicart entry points, matching what .minicart-wrapper hides on Luma.
 */
.duruo-cart-restricted [data-addto="cart"],
.duruo-cart-restricted #menu-cart-icon,
.duruo-cart-restricted #cart-drawer {
    display: none !important;
}
