/* 
 Theme Name:   puca-child
 Theme URI:    
 Description:  the child theme
 Author:       admin
 Author URI:   https://www.addisdirectselling.co.za
 Template:     puca
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/


.wc-order-bulk-actions .refund-items {
    display: none !important;
}



dokan-panel .dokan-panel-body td.refunded-total, .dokan-product-edit-form #dokan-product-title-area #edit-slug-box #sample-permalink a {
    color: #E4C920 !important;
    display: none !important;
}

.dokan-panel:has(.order_download_permissions) {
    display: none !important;
}


.dokan-order-shipping-address {
    display: none !important;
}

.wc-order-data-row .wc-order-totals tr:nth-child(2) {
  display: none;
}

.wc-order-data-row .wc-order-totals tr:nth-child(4) {
  display: none;
}

#dokan-add-tracking-number {
    display: none;
}

/* A simple rule to hide the description text */
.wc-block-components-checkout-step_description {
    display: none !important;
}



/* Hide the original SVG and background image for the invoice button */
a.wpo_wcpdf.invoice.pdf {
    background-image: none !important;
    font-size: 0 !important;
}

/* Set the new SVG as the background image for the invoice button */
a.wpo_wcpdf.invoice.pdf {
    background-image: url('https://www.addisforyou.co.za/wp-content/uploads/2025/08/invoice-receipt-svgrepo-com-1.svg') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px !important; /* Adjust the size as needed */
    padding-left: 25px !important; /* Adjust this to create space for the icon */
}


 font-weight: normal !important;
}


/* Remove original background and text for the packing slip button */
a.button.tips.wpo_wcpdf.packing-slip.pdf {
    background-image: none !important;
    font-size: 0 !important;
}

/* Set the new SVG as the background image for the packing slip button */
a.button.tips.wpo_wcpdf.packing-slip.pdf {
    background-image: url('https://www.addisforyou.co.za/wp-content/uploads/2025/08/packing-box-package-svgrepo-com.svg') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px !important; /* Adjust the size as needed */
    padding-left: 25px !important; /* Adjust this to create space for the icon */
}


/* Hide filter button on dokan filter customer dashboard*/
/*span#select2-dokan-filter-customer-container.select2-selection__rendered {
    display: none;
}

*/

/*.select2-selection__arrow {
    display: none;
}
*/

/*.select2-container--default .select2-selection--single {
   pointer-events: none;
}
*/


.vendor-notes {
    position: absolute;
    bottom: 25mm; 
    left: 15mm;
    width: 45%; 
    font-size: 10px;
}



/* Hides price on dokan dashboard*/
.dokan-form-group.dokan-clearfix.dokan-price-container {
    display: none;
}




/* This hides all rows with the bundle class, *except* for the very first one. 
   Assuming the main product bundle is the first item (the parent) and 
   the components follow it, this will hide all components. */
.woocommerce-order-details .shop_table.order_details tbody tr.asnp-wepb-cart-item:not(:first-child) {
    display: none !important;
}

/* Hides bundled sub-products using the confirmed selector */
tr.wc-block-cart-items__row.wepb-bundle-item {
    display: none !important;
}



/* 1. Hides bundled sub-products on the main Cart Page */
tr.wc-block-cart-items__row.wepb-bundle-item {
    display: none !important;
}

/* 2. Hides bundled sub-products on the Checkout Order Summary (Order Review) */
div.wc-block-components-order-summary-item.wepb-bundle-item {
    display: none !important;
}


/* 1. Hides bundled sub-products on the main Cart Page (tr element) */
tr.wc-block-cart-items__row.wepb-bundle-item {
    display: none !important;
}

/* 2. Hides bundled sub-products on the Checkout Order Summary (div element) */
div.wc-block-components-order-summary-item.wepb-bundle-item {
    display: none !important;
}

/* 3. Hides bundled sub-products in the Mini-Cart/Sidebar Cart (li or generic element) */
li.wepb-bundle-item,
.widget_shopping_cart .wepb-bundle-item {
    display: none !important;
}



/* --- WEPB BUNDLE HIDING CSS (Final) --- */

/* 1. Main Cart Page: Hides child rows using the plugin's class (tr element) */
tr.wc-block-cart-items__row.wepb-bundle-item {
    display: none !important;
}

/* 2. Checkout Summary: Hides child divs using the plugin's class (div element) */
div.wc-block-components-order-summary-item.wepb-bundle-item {
    display: none !important;
}

/* 3. Mini-Cart/Sidebar Cart: Targets the parent li elements. 
   **This is the crucial final rule.** It targets all li elements that DON'T have the remove button, 
   which based on your HTML, are the sub-products.
*/
.cart_list li:not(:has(.remove_from_cart_button)),
.mini_cart_inner .cart_list li:not(:has(.remove_from_cart_button)) {
    display: none !important;
}



/*
 * Hide elements from logged-out users
 */

/* Hide Desktop Header Cart */
body:not(.logged-in) .tbay-topcart {
    display: none !important;
}

/* Hide Desktop Sticky Header Cart */
body:not(.logged-in) .tbay-cart.top-cart {
    display: none !important;
}

/* Hide Desktop Header Wishlist */
body:not(.logged-in) .text-skin.wishlist-icon {
    display: none !important;
}

/* Hide Mobile Footer Cart */
body:not(.logged-in) .mobile-view-cart {
    display: none !important;
}

/* Hide Mobile Footer Wishlist */
body:not(.logged-in) .mobile-view-wishlist {
    display: none !important;
}

/* Hide Main Desktop Search Bar */
body:not(.logged-in) .tbay-search-form {
    display: none !important;
}

/* --- ADD THIS NEW BLOCK --- */
/* Hide Mobile Search Icon/Bar */
body:not(.logged-in) .search-device-mobile {
    display: none !important;
}



































