/**
 * WC Rental Plugin - WooCommerce Standard Overrides
 * Utilizza le classi standard di WooCommerce per massima compatibilità con i temi
 */

/* ===== BADGE RENTAL (usa classe .onsale standard) ===== */
/* Rimuovuti i colori personalizzati - ora usa i colori del tema */

/* ===== PREZZO RENTAL (usa classe .price standard) ===== */
/* Rimuovuti i colori personalizzati - ora usa i colori del tema */

/* ===== BOTTONE RENTAL (usa struttura WordPress standard) ===== */
/* Rimuovuti tutti gli stili personalizzati - ora eredita completamente dal tema */
/* Il bottone replica la struttura esatta di WordPress per massima compatibilità */

/* ===== BOTTONE "BOOK NOW" - COMPORTAMENTO CORRETTO ===== */
/* Assicura che il bottone "Prenota" porti alla pagina prodotto */
.rental-product-link[data-rental-link="true"] {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Disabilita completamente il comportamento add to cart sui bottoni rental */
.rental-product-link[data-rental-link="true"]:hover,
.rental-product-link[data-rental-link="true"]:focus,
.rental-product-link[data-rental-link="true"]:active {
    text-decoration: none !important;
}

/* Nascondi eventuali messaggi di "mostra carrello" che potrebbero apparire */
.wc-block-components-notices-container:has(.wc-block-components-notice--success) {
    display: none !important;
}

/* ===== BOTTONE ADD TO CART SPECIFICO PER RENTAL ===== */
/* Rimuovuto - questo bottone mantiene i suoi stili personalizzati */

/* ===== NASCONDI ELEMENTI WOOCOMMERCE STANDARD SUI PRODOTTI RENTAL ===== */
/* Nascondi solo i bottoni standard di WooCommerce nelle pagine prodotto singole */
body.rental-product.single-product button[name="add-to-cart"],
body.rental-product.single-product .single_add_to_cart_button,
body.rental-product .wc-block-components-quantity-selector,
body.rental-product .wp-block-woocommerce-product-add-to-cart-form .wc-block-components-quantity-selector,
body.rental-product .wp-block-woocommerce-product-add-to-cart-form button[type="submit"],
body.rental-product form.cart .quantity,
body.rental-product form.cart button[name="add-to-cart"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ===== NASCONDI PREZZI BARRATI E SCONTI WOOCOMMERCE SUI PRODOTTI RENTAL ===== */
body.rental-product .wp-block-woocommerce-product-price:empty,
body.rental-product .wc-block-components-product-price:empty,
body.rental-product .price:empty {
    display: none !important;
}

/* Forza il prezzo rental a essere l'unico visibile */
body.rental-product .price {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
}

/* Nascondi tutti i prezzi WooCommerce se contengono del o ins */
body.rental-product .price:has(del),
body.rental-product .price:has(ins),
body.rental-product .wc-block-components-product-price:has(del),
body.rental-product .wc-block-components-product-price:has(ins),
body.rental-product .wp-block-woocommerce-product-price:has(del),
body.rental-product .wp-block-woocommerce-product-price:has(ins) {
    display: none !important;
}

/* ===== RESPONSIVE ===== */
/* Rimossi stili responsive personalizzati - ora usa i responsive del tema */ 