/* Blocco acquisto nativo: regole quantita, pulsante e conferma. */
.single-product .ifcs-quantity-rules-notice {
    box-sizing: border-box;
    clear: both;
    width: 100%;
    flex: 0 0 100%;
    grid-column: 1 / -1;
    margin: 0 0 12px;
    padding: 11px 14px;
    border: 1px solid #d5e2f3;
    border-radius: 9px;
    background: #edf3fb;
    color: #1e4268;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    text-align: left;
    overflow-wrap: anywhere;
}
.single-product .ifcs-quantity-rules-notice strong { font-weight: 750; white-space: nowrap; }
.single-product form.ifcs-product-cart:not(.variations_form),
.single-product form.ifcs-product-cart .woocommerce-variation-add-to-cart {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin: 16px 0;
}
.single-product form.ifcs-product-cart .ifcs-quantity-rules-notice { margin: 0; }
.single-product form.ifcs-product-cart .quantity {
    float: none !important;
    margin: 0 !important;
    min-width: 0;
    align-self: start;
}
.single-product form.ifcs-product-cart .quantity input.qty {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 6px;
    border: 1px solid #c4d2e4;
    border-radius: 9px;
    background: #fff;
    color: #173554;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}
.single-product form.ifcs-product-cart .single_add_to_cart_button {
    box-sizing: border-box;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px;
    margin: 0 !important;
    padding: 12px 16px;
    border-radius: 9px;
    font-weight: 750;
    line-height: 1.4;
    white-space: normal;
    align-self: start;
}
.single-product form.ifcs-product-cart.ifcs-cart-no-quantity .quantity { display: none; }
.single-product form.ifcs-product-cart.ifcs-cart-no-quantity .single_add_to_cart_button { grid-column: 1 / -1; }
.single-product form.ifcs-product-cart.ifcs-cart-feedback-active .added_to_cart.wc-forward { display: none !important; }
.single-product form.ifcs-product-cart .ifcs-cart-status {
    box-sizing: border-box;
    clear: both;
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #d5e2f3;
    border-radius: 9px;
    background: #edf3fb;
    color: #1e4268;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.single-product form.ifcs-product-cart.variations_form > .ifcs-cart-status { margin-top: 12px; }
.single-product form.ifcs-product-cart .ifcs-cart-status[data-state="success"] { background: #eef8f1; border-color: #b9ddc5; color: #185d34; }
.single-product form.ifcs-product-cart .ifcs-cart-status[data-state="error"] { background: #fff5e9; border-color: #ead0a9; color: #754513; }
.single-product form.ifcs-product-cart .ifcs-cart-status a { display: inline-block; margin-left: 5px; color: inherit; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 479px) {
    .single-product form.ifcs-product-cart:not(.variations_form),
    .single-product form.ifcs-product-cart .woocommerce-variation-add-to-cart { grid-template-columns: 66px minmax(0, 1fr); gap: 10px; }
    .single-product form.ifcs-product-cart .single_add_to_cart_button { padding: 12px 9px; font-size: 14px; }
}
/* Il template Elementor non deve rimettere la conferma accanto ai due comandi. */
body.woocommerce.single-product .elementor.elementor-location-single .elementor-element.elementor-widget-woocommerce-product-add-to-cart form.cart.ifcs-product-cart:not(.variations_form),
body.woocommerce.single-product .elementor.elementor-location-single .elementor-element.elementor-widget-woocommerce-product-add-to-cart form.cart.ifcs-product-cart .woocommerce-variation-add-to-cart {
    display:grid!important;
    grid-template-columns:76px minmax(0,1fr)!important;
    align-items:start!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
body.woocommerce.single-product .elementor.elementor-location-single .elementor-element.elementor-widget-woocommerce-product-add-to-cart form.cart.ifcs-product-cart.variations_form {
    display:block!important;
    width:100%!important;
    min-width:0!important;
}
body.woocommerce.single-product .elementor.elementor-location-single .elementor-element.elementor-widget-woocommerce-product-add-to-cart form.cart.ifcs-product-cart .single_variation_wrap {
    width:100%!important;
    min-width:0!important;
}
body.woocommerce.single-product .elementor.elementor-location-single .elementor-element.elementor-widget-woocommerce-product-add-to-cart form.cart.ifcs-product-cart .quantity {
    grid-column:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
}
body.woocommerce.single-product .elementor.elementor-location-single .elementor-element.elementor-widget-woocommerce-product-add-to-cart form.cart.ifcs-product-cart .quantity input.qty {
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
}
body.woocommerce.single-product .elementor.elementor-location-single .elementor-element.elementor-widget-woocommerce-product-add-to-cart form.cart.ifcs-product-cart .single_add_to_cart_button {
    grid-column:2!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    min-height:48px!important;
    height:auto!important;
    overflow:visible!important;
    padding:12px 14px!important;
    font-size:16px!important;
    line-height:1.4!important;
}
body.woocommerce.single-product .elementor.elementor-location-single .elementor-element.elementor-widget-woocommerce-product-add-to-cart form.cart.ifcs-product-cart.ifcs-cart-no-quantity .single_add_to_cart_button {
    grid-column:1 / -1!important;
}
body.woocommerce.single-product .elementor.elementor-location-single .elementor-element.elementor-widget-woocommerce-product-add-to-cart form.cart.ifcs-product-cart .ifcs-cart-status {
    display:block!important;
    grid-column:1 / -1!important;
    flex:0 0 100%!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    clear:both!important;
    box-sizing:border-box!important;
    white-space:normal!important;
}
@media (max-width:479px) {
    body.woocommerce.single-product .elementor.elementor-location-single .elementor-element.elementor-widget-woocommerce-product-add-to-cart form.cart.ifcs-product-cart:not(.variations_form),
    body.woocommerce.single-product .elementor.elementor-location-single .elementor-element.elementor-widget-woocommerce-product-add-to-cart form.cart.ifcs-product-cart .woocommerce-variation-add-to-cart {
        grid-template-columns:60px minmax(0,1fr)!important;
        gap:10px!important;
    }
}
