/*
 * MyGreenHelp Bulbi 3x2 v2
 * Nessun JS: mini-cart e barra sono renderizzati lato server.
 */

/* Nasconde SOLO la barra nativa WoodMart nelle aree in cui il plugin ne rende una coerente con gli sconti. */
.woocommerce-cart .wd-shipping-progress-bar,
.woocommerce-cart .wd-free-progress-bar,
.woocommerce-checkout .wd-shipping-progress-bar,
.woocommerce-checkout .wd-free-progress-bar,
.cart-widget-side .wd-shipping-progress-bar,
.cart-widget-side .wd-free-progress-bar,
.widget_shopping_cart_content .wd-free-progress-bar {
    display:none !important;
}

.mgh3x2-pack-info{
    margin-top:4px;
    color:#777;
    font-size:12px;
    line-height:1.35;
    font-weight:400;
}
.cart-widget-side .mgh3x2-pack-info,
.woocommerce-mini-cart .mgh3x2-pack-info{
    color:#8a8a8a;
}

.mgh3x2-promo-box{
    margin:0;
    padding:14px 18px;
    background:#f7fbf1;
    border-top:1px solid rgba(0,0,0,.10);
    border-bottom:1px solid rgba(0,0,0,.08);
    font-size:14px;
    line-height:1.35;
}
.mgh3x2-promo-head,
.mgh3x2-promo-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}
.mgh3x2-promo-head strong{
    font-size:15px;
    letter-spacing:.01em;
}
.mgh3x2-promo-head span,
.mgh3x2-promo-row strong{
    color:#78b82a;
    font-weight:700;
    white-space:nowrap;
}
.mgh3x2-promo-subtitle{
    margin:2px 0 9px;
    color:#6b6b6b;
    font-size:12px;
}
.mgh3x2-promo-row{
    margin-top:5px;
}
.mgh3x2-promo-total{
    margin-top:7px;
    padding-top:7px;
    border-top:1px solid rgba(0,0,0,.08);
}
.mgh3x2-promo-total strong{
    font-size:17px;
}
.mgh3x2-promo-hint{
    margin-top:9px;
    color:#5f5f5f;
    font-size:12px;
}
.mgh3x2-promo-hint-strong{
    color:#333;
    font-size:13px;
    font-weight:600;
}

.mgh3x2-shipping-bar{
    margin:18px 0;
    padding:18px 20px;
    border:1px dashed #d7d7d7;
    border-radius:8px;
    background:#fff;
}
.cart-widget-side .mgh3x2-shipping-bar,
.widget_shopping_cart_content .mgh3x2-shipping-bar{
    margin:0;
    padding:15px 18px 17px;
    border:0;
    border-top:1px solid rgba(0,0,0,.08);
    border-radius:0;
}
.mgh3x2-shipping-message{
    margin-bottom:10px;
    color:#3f3f3f;
    font-size:14px;
    font-weight:600;
    line-height:1.4;
}
.mgh3x2-shipping-message strong{
    color:#78b82a;
}
.mgh3x2-shipping-track{
    height:10px;
    overflow:hidden;
    border-radius:999px;
    background:#eeeeee;
}
.mgh3x2-shipping-track span{
    display:block;
    height:100%;
    border-radius:999px;
    background:repeating-linear-gradient(
        -45deg,
        #79bb2b 0,
        #79bb2b 8px,
        #91ca4b 8px,
        #91ca4b 16px
    );
}

@media (max-width:480px){
    .mgh3x2-promo-box{padding:12px 14px}
    .mgh3x2-promo-head strong{font-size:14px}
    .cart-widget-side .mgh3x2-shipping-bar,
    .widget_shopping_cart_content .mgh3x2-shipping-bar{padding:14px}
}

/* --------------------------------------------------------------------------
 * Banner promo WPBakery
 * ----------------------------------------------------------------------- */
.mgh3x2-sale-banner{
    box-sizing:border-box;
    color:#303030;
}
.mgh3x2-sale-eyebrow{
    display:inline-flex;
    align-items:center;
    min-height:24px;
    padding:5px 10px;
    border-radius:5px;
    background:#78b82a;
    color:#fff;
    font-size:11px;
    font-weight:800;
    line-height:1;
    letter-spacing:.055em;
}
.mgh3x2-sale-title{
    margin-top:8px;
    color:#242424;
    font-size:28px;
    font-weight:800;
    line-height:1.08;
}
.mgh3x2-sale-copy{
    margin-top:8px;
    max-width:780px;
    color:#454545;
    font-size:15px;
    line-height:1.5;
}
.mgh3x2-sale-copy strong{
    color:#365b14;
}

/* Banner prodotto: compatto, vicino all'acquisto. */
.mgh3x2-sale-banner-product{
    margin:18px 0;
    padding:18px 20px;
    border:1px solid #dbe8cc;
    border-left:5px solid #78b82a;
    border-radius:10px;
    background:#f7fbf1;
}
.mgh3x2-sale-banner-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}
.mgh3x2-sale-banner-product .mgh3x2-sale-title{
    font-size:24px;
}
.mgh3x2-sale-badge{
    color:#78b82a;
    font-size:22px;
    font-weight:850;
    line-height:1;
}
.mgh3x2-sale-benefits{
    display:flex;
    flex-wrap:wrap;
    gap:7px 18px;
    margin-top:12px;
    color:#5c5c5c;
    font-size:13px;
    line-height:1.4;
}
.mgh3x2-sale-benefits span::before{
    content:'✓';
    margin-right:6px;
    color:#78b82a;
    font-weight:800;
}

/* Banner categoria: più ampio e promozionale. */
.mgh3x2-sale-banner-category{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:32px;
    margin:20px 0 30px;
    padding:28px 32px;
    overflow:hidden;
    border:1px solid #dbe8cc;
    border-radius:12px;
    background:linear-gradient(105deg,#f7fbf1 0%,#f2f8e9 100%);
}
.mgh3x2-sale-category-content{
    position:relative;
    z-index:2;
    max-width:800px;
}
.mgh3x2-sale-banner-category .mgh3x2-sale-title{
    font-size:34px;
}
.mgh3x2-sale-steps{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-top:17px;
}
.mgh3x2-sale-steps div{
    display:flex;
    flex-direction:column;
    min-width:128px;
    padding:10px 14px;
    border:1px solid #dce8cf;
    border-radius:7px;
    background:#fff;
}
.mgh3x2-sale-steps strong{
    color:#303030;
    font-size:14px;
}
.mgh3x2-sale-steps span{
    margin-top:2px;
    color:#78b82a;
    font-size:13px;
    font-weight:800;
}
.mgh3x2-sale-note{
    margin-top:12px;
    color:#6a6a6a;
    font-size:12px;
}
.mgh3x2-sale-visual{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    flex:0 0 auto;
    color:#78b82a;
    font-weight:900;
    line-height:1;
}
.mgh3x2-sale-visual span{
    font-size:76px;
}
.mgh3x2-sale-visual em{
    margin:0 7px;
    color:#808080;
    font-size:34px;
    font-style:normal;
    font-weight:700;
}

@media (max-width:767px){
    .mgh3x2-sale-banner-product{
        padding:15px 16px;
    }
    .mgh3x2-sale-banner-product .mgh3x2-sale-title{
        font-size:21px;
    }
    .mgh3x2-sale-benefits{
        display:block;
    }
    .mgh3x2-sale-benefits span{
        display:block;
        margin-top:6px;
    }
    .mgh3x2-sale-banner-category{
        display:block;
        margin:15px 0 22px;
        padding:21px 19px;
    }
    .mgh3x2-sale-banner-category .mgh3x2-sale-title{
        font-size:27px;
    }
    .mgh3x2-sale-steps{
        display:block;
    }
    .mgh3x2-sale-steps div{
        margin-top:7px;
    }
    .mgh3x2-sale-visual{
        position:absolute;
        right:12px;
        top:15px;
        opacity:.08;
    }
    .mgh3x2-sale-visual span{
        font-size:70px;
    }
}
