/* Un formato unico per gli avvisi nativi e quelli resi dai widget. */
body.woocommerce.woocommerce-cart .ifcs-cart-restock-notice,
body.woocommerce.woocommerce-cart .ifcs-shopengine-cart-restock,
body.woocommerce.woocommerce-cart .ifcs-native-mini-cart-restock,
body.woocommerce.woocommerce-checkout .ifcs-cart-restock-notice,
body.woocommerce.woocommerce-checkout .ifcs-shopengine-cart-restock {
    display:block!important;float:none!important;clear:both!important;
    width:100%!important;min-width:0!important;max-width:520px!important;
    margin:10px 0!important;padding:12px 14px!important;
    box-sizing:border-box!important;background:#fff8e7!important;
    border:1px solid #efd39b!important;border-left:4px solid #d48b0c!important;
    border-radius:8px!important;color:#6a542c!important;
    white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;
}
body.woocommerce .ifcs-orderable-heading {
    display:block!important;width:100%!important;margin:0 0 5px!important;
    color:#91600b!important;font-size:13px!important;font-weight:800!important;
    line-height:1.4!important;text-transform:none!important;
}
body.woocommerce.woocommerce-cart .ifcs-restock-label,
body.woocommerce.woocommerce-checkout .ifcs-restock-label {
    display:block!important;font-size:14px!important;line-height:1.4!important;
    font-weight:750!important;color:#79520d!important;margin:0 0 4px!important;
}
body.woocommerce.woocommerce-cart .ifcs-restock-subtext,
body.woocommerce.woocommerce-checkout .ifcs-restock-subtext {
    display:block!important;font-size:13px!important;line-height:1.5!important;
    font-weight:400!important;color:#6a5b40!important;
}
body.woocommerce.woocommerce-cart .ifcs-restock-label img.emoji {
    display:inline!important;width:1em!important;height:1em!important;min-width:0!important;
    margin:0 .3em 0 0!important;padding:0!important;border:0!important;
}
body.woocommerce.woocommerce-cart .woocommerce-Price-amount .woocommerce-Price-currencySymbol,
body.woocommerce.woocommerce-cart .elementor .elementor-element .woocommerce-Price-amount .woocommerce-Price-currencySymbol,
body.woocommerce.woocommerce-checkout .woocommerce-Price-amount .woocommerce-Price-currencySymbol {
    font-size:1em!important;font-weight:inherit!important;line-height:inherit!important;
    vertical-align:baseline!important;position:static!important;
}
body .ifcs-cart-sale-price {display:inline-flex!important;align-items:baseline!important;flex-wrap:wrap!important;gap:5px 10px!important;}
body .ifcs-cart-sale-price del {display:inline-block!important;text-decoration:line-through!important;opacity:1!important;color:#6c7886!important;font-size:.8em!important;font-weight:400!important;}
body .ifcs-cart-sale-price ins {display:inline-block!important;text-decoration:none!important;background:transparent!important;color:inherit!important;}
body .ifcs-cart-sale-price del .amount {font-size:inherit!important;color:inherit!important;font-weight:inherit!important;}
body .ifcs-cart-sale-label {display:inline-block!important;padding:3px 7px!important;border-radius:5px!important;background:#F97316!important;color:#17212b!important;font-size:12px!important;font-weight:750!important;line-height:1.4!important;}
body.woocommerce.woocommerce-checkout .elementor .elementor-element .ifcs-cart-sale-price del,
body.woocommerce.woocommerce-cart .elementor .elementor-element .ifcs-cart-sale-price del {display:inline-block!important;visibility:visible!important;text-decoration:line-through!important;color:#6c7886!important;opacity:1!important;}
body.woocommerce.woocommerce-checkout .elementor .elementor-element .ifcs-cart-sale-price ins,
body.woocommerce.woocommerce-cart .elementor .elementor-element .ifcs-cart-sale-price ins {display:inline-block!important;visibility:visible!important;text-decoration:none!important;opacity:1!important;}
body.woocommerce.woocommerce-checkout .ifcs-cart-sale-price {justify-content:flex-end!important;text-align:right!important;max-width:100%!important;}
@media(max-width:767px){
    body.woocommerce.woocommerce-cart .ifcs-cart-restock-notice,
    body.woocommerce.woocommerce-cart .ifcs-shopengine-cart-restock,
    body.woocommerce.woocommerce-cart .ifcs-native-mini-cart-restock {max-width:100%!important;}
}

/* Offerte attive: stesso colore in scheda, catalogo, carrello e mini carrello. */
body .woocommerce span.onsale,body.woocommerce span.onsale,
body .elementor .elementor-element .onsale {background:#F97316!important;color:#17212b!important;}
body .ifcs-cart-sale-price ins,
body .ifcs-cart-sale-price ins .amount,
body .elementor .elementor-element .ifcs-cart-sale-price ins .amount,
body .woocommerce .price ins,
body.woocommerce .price ins {color:#F97316!important;}
body .elementor .elementor-element .ifcs-cart-sale-price {display:inline-flex!important;flex-wrap:wrap!important;align-items:baseline!important;gap:4px 8px!important;max-width:100%!important;}
body .elementor .elementor-element .ifcs-cart-sale-price del {display:inline-block!important;visibility:visible!important;opacity:1!important;text-decoration:line-through!important;color:#6c7886!important;}
body .elementor .elementor-element .ifcs-cart-sale-price ins {display:inline-block!important;visibility:visible!important;text-decoration:none!important;background:transparent!important;}
body .elementor .elementor-element .ifcs-cart-sale-label {display:inline-block!important;background:#F97316!important;color:#17212b!important;line-height:1.4!important;font-size:12px!important;}
body .woocommerce-mini-cart .ifcs-cart-sale-price,
body .elementor-menu-cart__product-price .ifcs-cart-sale-price {justify-content:flex-start!important;white-space:normal!important;}

/* Anche le cifre e il simbolo euro del prezzo scontato sono arancioni. */
body .elementor .elementor-element .ifcs-cart-sale-price ins,
body .elementor .elementor-element .ifcs-cart-sale-price ins .amount,
body .elementor .elementor-element .ifcs-cart-sale-price ins bdi,
body .elementor .elementor-element .ifcs-cart-sale-price ins .woocommerce-Price-currencySymbol,
body .elementor .elementor-element .price ins,
body .elementor .elementor-element .price ins .amount,
body .elementor .elementor-element .price ins bdi,
body .elementor .elementor-element .price ins .woocommerce-Price-currencySymbol,
body .woocommerce-mini-cart ins .amount,
body .woocommerce-mini-cart ins bdi {color:#F97316!important;}

/* Mini carrello: prezzo e badge restano fuori dall'area di rimozione. */
body .elementor-menu-cart__product-price {
    min-width:0!important;
    box-sizing:border-box!important;
    padding-inline-end:32px!important;
}
body .elementor-menu-cart__product-price .quantity {
    white-space:normal!important;
}
body :is(.woocommerce-mini-cart, .elementor-menu-cart__product-price) .ifcs-cart-sale-price,
body .elementor .elementor-element :is(.woocommerce-mini-cart, .elementor-menu-cart__product-price) .ifcs-cart-sale-price {
    display:inline-grid!important;
    grid-template-columns:repeat(2,minmax(0,max-content))!important;
    align-items:baseline!important;
    gap:4px 8px!important;
    min-width:0!important;
    max-width:100%!important;
    vertical-align:top!important;
}
body :is(.woocommerce-mini-cart, .elementor-menu-cart__product-price) .ifcs-cart-sale-label,
body .elementor .elementor-element :is(.woocommerce-mini-cart, .elementor-menu-cart__product-price) .ifcs-cart-sale-label {
    grid-column:1 / -1!important;
    justify-self:start!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    white-space:normal!important;
}
body .elementor-menu-cart__product-remove {
    z-index:2!important;
}
