.elementor-993 .elementor-element.elementor-element-1a466dfc{--display:flex;--padding-top:5%;--padding-bottom:5%;--padding-left:10%;--padding-right:10%;}.elementor-widget-button .elementor-button{background-color:var( --e-global-color-accent );font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-size:var( --e-global-typography-accent-font-size );font-weight:var( --e-global-typography-accent-font-weight );}.elementor-993 .elementor-element.elementor-element-5d14066 .elementor-button{background-color:var( --e-global-color-primary );font-family:"Helvetica", Sans-serif;font-size:1.6rem;font-weight:400;}.elementor-993 .elementor-element.elementor-element-5d14066 .elementor-button-content-wrapper{flex-direction:row;}.elementor-993 .elementor-element.elementor-element-5d14066 .elementor-button .elementor-button-content-wrapper{gap:20px;}.elementor-993 .elementor-element.elementor-element-1145f8b{--update-cart-automatically-display:none;--sections-background-color:#F7F7F7;--sections-title-color:var( --e-global-color-primary );--forms-buttons-normal-text-color:var( --e-global-color-secondary );--forms-buttons-padding:0px 15px 0px 15px;--forms-buttons-width:auto;--order-summary-color:var( --e-global-color-primary );--order-summary-remove-icon-normal-color:var( --e-global-color-primary );--checkout-button-normal-text-color:var( --e-global-color-secondary );--checkout-button-border-radius:0px 0px 0px 0px;--checkout-button-padding:0px 15px 0px 015px;--checkout-button-width:fit-content;}.elementor-993 .elementor-element.elementor-element-1145f8b .shop_table .button{background-color:var( --e-global-color-primary );font-family:"ROMANTICA", Sans-serif;font-size:1.8rem;font-weight:400;text-transform:uppercase;line-height:2.2em;}.elementor-993 .elementor-element.elementor-element-1145f8b .woocommerce .wc-proceed-to-checkout .checkout-button{background-color:var( --e-global-color-primary );}.elementor-993 .elementor-element.elementor-element-1145f8b .cart_totals h2{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-size:var( --e-global-typography-text-font-size );font-weight:var( --e-global-typography-text-font-weight );line-height:var( --e-global-typography-text-line-height );}.elementor-993 .elementor-element.elementor-element-1145f8b {--forms-fields-padding:0px 0px 0px 0px;}.elementor-993 .elementor-element.elementor-element-1145f8b .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:calc( (0px*2) + 16px );padding-left:0px;padding-right:0px;}.elementor-993 .elementor-element.elementor-element-1145f8b .select2-container--default .select2-selection--single .select2-selection__arrow{height:calc( (0px*2) + 16px );right:0px;}.elementor-993 .elementor-element.elementor-element-1145f8b .select2-container--default .select2-selection--single{height:auto;}.elementor-993 .elementor-element.elementor-element-1145f8b .woocommerce-cart-form{--order-summary-title-color:var( --e-global-color-primary );}.elementor-993 .elementor-element.elementor-element-1145f8b .checkout-button{font-family:"ROMANTICA", Sans-serif;font-size:1.8rem;font-weight:400;text-transform:uppercase;line-height:2.2em;}:root{--page-title-display:none;}@media(min-width:2400px){.elementor-widget-button .elementor-button{font-size:var( --e-global-typography-accent-font-size );}.elementor-993 .elementor-element.elementor-element-1145f8b .cart_totals h2{font-size:var( --e-global-typography-text-font-size );line-height:var( --e-global-typography-text-line-height );}}@media(max-width:1366px){.elementor-widget-button .elementor-button{font-size:var( --e-global-typography-accent-font-size );}.elementor-993 .elementor-element.elementor-element-1145f8b .cart_totals h2{font-size:var( --e-global-typography-text-font-size );line-height:var( --e-global-typography-text-line-height );}}@media(max-width:1024px){.elementor-widget-button .elementor-button{font-size:var( --e-global-typography-accent-font-size );}.elementor-993 .elementor-element.elementor-element-1145f8b .cart_totals h2{font-size:var( --e-global-typography-text-font-size );line-height:var( --e-global-typography-text-line-height );}}@media(max-width:767px){.elementor-993 .elementor-element.elementor-element-1a466dfc{--padding-top:25%;--padding-bottom:5%;--padding-left:5%;--padding-right:5%;}.elementor-widget-button .elementor-button{font-size:var( --e-global-typography-accent-font-size );}.elementor-993 .elementor-element.elementor-element-5d14066 .elementor-button{font-size:1rem;}.elementor-993 .elementor-element.elementor-element-1145f8b .e-cart-section{border-width:0px 0px 0px 0px;}.elementor-993 .elementor-element.elementor-element-1145f8b{--sections-border-radius:0px 0px 0px 0px;--sections-padding:0px 0px 0px 0px;--sections-title-spacing:9px;--forms-rows-gap:9px;--forms-fields-border-radius:0px 0px 0px 0px;--forms-buttons-border-radius:0px 0px 0px 0px;--order-summary-rows-gap-top:calc( 28px/2 );--order-summary-rows-gap-bottom:calc( 28px/2 );--order-summary-items-divider-weight:39px;--checkout-button-border-radius:0px 0px 0px 0px;}.elementor-993 .elementor-element.elementor-element-1145f8b .cart_totals h2{font-size:var( --e-global-typography-text-font-size );line-height:var( --e-global-typography-text-line-height );}.elementor-993 .elementor-element.elementor-element-1145f8b .shop_table .button{font-size:1.3rem;line-height:1.7em;border-width:0px 0px 0px 0px;}.elementor-993 .elementor-element.elementor-element-1145f8b .checkout-button{font-size:1.6rem;line-height:1.8em;}}/* Start custom CSS for woocommerce-cart, class: .elementor-element-1145f8b */@media (max-width: 768px) {
  .woocommerce-cart .product-thumbnail,
  .woocommerce-cart .product-name {
    display: table-cell !important;
  }
}

/* Sposta il messaggio PayPal sopra il bottone */
.ppcp-messages {
    order: -1; /* porta sopra */
    margin-bottom: 1rem; /* distanzia dal bottone checkout */
}

/* Aggiungi padding sopra al pulsante PayPal */
.ppc-button-wrapper {
    margin-top: 1rem;
}

/* Assicura che il contenitore flexi correttamente */
.wc-proceed-to-checkout {
    display: flex;
    flex-direction: column;
}

/* CSS completo per bottone Buy Now - Layout responsive */

/* —— Stile base (già con hover invertito) —— */
.buy-now-button {
    background-color: #0047BB !important;
    color: #FFFFFF !important;
    border: 2px solid #0047BB !important;
    font-weight: bold;
    display: block !important;
    width: 100% !important;
    text-align: center;
    margin-top: 10px;
    transition: all 0.3s ease;
    float: none !important;
    clear: both !important;
    position: relative !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    padding: 10px 15px !important;
    text-decoration: none !important;
}

.buy-now-button:hover,
.buy-now-button:focus {
    background-color: #FFFFFF !important;
    color: #0047BB !important;
    border-color: #0047BB !important;
}

/* —— PAGINA PRODOTTO: layout responsive —— */

/* Desktop: tutto inline */
@media (min-width: 769px) {
    .single-product .woocommerce-variation-add-to-cart {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    .single-product .woocommerce-variation-add-to-cart .quantity,
    .single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button,
    .single-product .woocommerce-variation-add-to-cart .buy-now-button {
        flex: 0 0 auto !important;
        margin: 0 !important;
        width: auto !important;
        display: inline-block !important;
    }
    
    .single-product .buy-now-row-break {
        display: none !important;
    }
    
    .single-product .quantity input[type="number"],
    .single-product .quantity .qty {
        width: 80px !important;
        min-width: 60px !important;
    }
    
    .single-product .buy-now-button {
        width: auto !important;
        display: inline-block !important;
        margin-top: 0 !important;
    }
}

/* Mobile: buy-now va a capo FORZATO */
@media (max-width: 768px) {
    .single-product .woocommerce-variation-add-to-cart {
        display: block !important;
        width: 100% !important;
    }
    
    .single-product .woocommerce-variation-add-to-cart .quantity,
    .single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
        display: inline-block !important;
        vertical-align: top !important;
        margin-right: 10px !important;
        margin-bottom: 10px !important;
        width: auto !important;
    }
    
    /* FORZA l'a capo PRIMA del buy-now-button */
    .single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button::after {
        content: "" !important;
        display: block !important;
        width: 100% !important;
        height: 0 !important;
        clear: both !important;
    }
    
    .single-product .buy-now-row-break {
        display: block !important;
        width: 100% !important;
        height: 0 !important;
        clear: both !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }
    
    .single-product .buy-now-button {
        display: block !important;
        width: 100% !important;
        clear: both !important;
        float: none !important;
        margin: 15px 0 0 0 !important;
        position: relative !important;
    }
    
    .single-product .quantity input[type="number"],
    .single-product .quantity .qty {
        width: 60px !important;
        min-width: 50px !important;
    }
}

/* —— SHOP / ARCHIVIO: APPROCCIO ULTRA-AGGRESSIVO (con fix margini) —— */

/* Step 1: Forza tutti i contenitori delle card ad essere flex column */
ul.products,
.woocommerce ul.products,
.products {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

ul.products li.product,
.woocommerce ul.products li.product,
.products .product {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    position: relative !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
}

/* Step 2: TUTTI i bottoni devono essere block e 100% width */
ul.products li.product *,
.woocommerce ul.products li.product * {
    box-sizing: border-box !important;
}

ul.products li.product a.button,
ul.products li.product .button,
ul.products li.product input.button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product input.button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    float: none !important;
    clear: both !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

/* Step 3: Forza ordine con CSS Grid come backup */
ul.products li.product,
.woocommerce ul.products li.product {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
}

/* Step 4: Ordini specifici per gli elementi */
ul.products li.product .woocommerce-loop-product__link,
ul.products li.product a:not(.button) {
    order: 1 !important;
    grid-row: 1 !important;
}

ul.products li.product .add_to_cart_button,
ul.products li.product a.button:not(.buy-now-button),
ul.products li.product .button:not(.buy-now-button) {
    order: 2 !important;
    grid-row: 2 !important;
}

ul.products li.product .buy-now-row-break {
    order: 3 !important;
    grid-row: 3 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

ul.products li.product .buy-now-button {
    order: 4 !important;
    grid-row: 4 !important;
    margin-top: 8px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Step 5: Mobile extra-aggressivo per SHOP */
@media (max-width: 768px) {
    /* Reset completo per mobile SHOP */
    ul.products li.product,
    .woocommerce ul.products li.product {
        display: block !important;
        width: 100% !important;
        float: none !important;
        clear: both !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    ul.products li.product > *,
    .woocommerce ul.products li.product > * {
        display: block !important;
        width: 100% !important;
        float: none !important;
        clear: both !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Bottoni uno sotto l'altro SHOP */
    ul.products li.product .button {
        display: block !important;
        width: 100% !important;
        margin: 4px 0 !important;
        float: none !important;
        clear: both !important;
        position: relative !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Buy now sempre ultimo SHOP */
    ul.products li.product .buy-now-button {
        margin-top: 8px !important;
        position: relative !important;
        z-index: 1 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Step 6: Override per temi popolari specifici */
.theme-storefront ul.products li.product .button,
.theme-astra ul.products li.product .button,
.theme-generatepress ul.products li.product .button,
.theme-oceanwp ul.products li.product .button,
body[class*="theme-"] ul.products li.product .button {
    width: 100% !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Step 7: Fix per container padre che causano overflow */
.woocommerce,
.woocommerce-page {
    overflow: visible !important;
}

ul.products,
.woocommerce ul.products {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Step 8: Clearfix per vecchi layout */
ul.products li.product:after,
.woocommerce ul.products li.product:after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* —— BOTTONE CHECKOUT: sempre full width —— */
.checkout-button,
a.checkout-button,
.button.checkout-button,
.checkout-button.button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 10px 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
}

/* Step 9: EMERGENZA - Forza BRUTALE su mobile se ancora non va */
@media (max-width: 768px) {
    .single-product .buy-now-button {
        margin-top: 20px !important;
        display: block !important;
        width: 100% !important;
        position: relative !important;
        clear: both !important;
        float: none !important;
    }
    
    /* Forza spazio prima del buy-now */
    .single-product .single_add_to_cart_button {
        margin-bottom: 10px !important;
    }
    
    .single-product .single_add_to_cart_button + * {
        clear: both !important;
        display: block !important;
    }
}

/* DEBUG: Decommentare per vedere i contenitori */
/*
ul.products li.product {
    border: 2px solid red !important;
}
ul.products li.product .buy-now-button {
    border: 2px solid green !important;
}
.single-product .woocommerce-variation-add-to-cart {
    border: 1px dashed blue !important;
}
.single-product .buy-now-button {
    border: 2px solid orange !important;
}
*//* End custom CSS */
/* Start Custom Fonts CSS */@font-face {
	font-family: 'ROMANTICA';
	font-style: normal;
	font-weight: normal;
	font-display: auto;
	src: url('https://www.blesolange.it/wp-content/uploads/2024/06/romantica-webfont.woff') format('woff');
}
/* End Custom Fonts CSS */