
/* =========================================================
   POZITIONARE MINI-CART
   Meter fix sus -> produse scroll -> subtotal + butoane jos.
   Meterul este randat server-side inaintea listei de produse.
   ========================================================= */
.shoptimizer-mini-cart-wrap .widget_shopping_cart .ezette-fsm,
.shoptimizer-mini-cart-wrap .widget_shopping_cart .ezette-rm {
    order: 0;
    flex: 0 0 auto;
}

.shoptimizer-mini-cart-wrap .widget_shopping_cart ul.woocommerce-mini-cart,
.shoptimizer-mini-cart-wrap .widget_shopping_cart .woocommerce-mini-cart.cart_list {
    order: 1;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.shoptimizer-mini-cart-wrap .widget_shopping_cart p.woocommerce-mini-cart__total.total {
    order: 2;
    flex: 0 0 auto;
}

.shoptimizer-mini-cart-wrap .widget_shopping_cart p.woocommerce-mini-cart__buttons.buttons {
    order: 3;
    flex: 0 0 auto;
}

.shoptimizer-mini-cart-wrap .widget_shopping_cart .cart-drawer-below {
    order: 4;
    flex: 0 0 auto;
}

/* =========================================================
   EZETTE SHIPPING METER - modul simplu, cand Bonus e oprit
   ========================================================= */
.ezette-fsm,
.ezette-rm {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    background: #fff;
    list-style: none;
}

.ezette-fsm {
    padding: 14px 20px 16px;
}

.ezette-fsm__message {
    margin: 0 0 10px;
    text-align: center;
    font-size: 14px;
    line-height: 1.45;
    color: #333;
}

.ezette-fsm__message strong {
    font-weight: 600;
}

.ezette-fsm__track {
    position: relative;
    width: 100%;
    height: 7px;
    overflow: hidden;
    background: #ececec;
    border-radius: 999px;
}

.ezette-fsm__progress {
    width: 0;
    height: 100%;
    background: var(--ezette-fsm-color, #3bb54a);
    border-radius: inherit;
    transition: width .35s ease;
}

.ezette-fsm.is-complete .ezette-fsm__message {
    color: #2d8f3a;
}

.ezette-fsm.is-complete .ezette-fsm__track {
    background: #e0f2e3;
}

.ezette-fsm__check,
.ezette-rm__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--ezette-bm-color, #3bb54a);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    vertical-align: -1px;
}

.ezette-fsm__check {
    background: var(--ezette-fsm-color, #3bb54a);
}

/* =========================================================
   EZETTE REWARDS METER - bara unica Shipping + Bonus
   25% = livrare, 50% = bonus 1, 75% = bonus 2, 100% = bonus 3
   ========================================================= */
.ezette-rm {
    padding: 15px 20px 27px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.ezette-rm__message {
    margin: 0 0 19px;
    text-align: center;
    font-size: 13.5px;
    line-height: 1.45;
    color: #333;
}

.ezette-rm.has-shipping .ezette-rm__message {
    color: #2d8f3a;
}

.ezette-rm.is-max .ezette-rm__message {
    font-weight: 600;
}

.ezette-rm__meter {
    position: relative;
    padding: 0 5px 43px;
}

.ezette-rm__track {
    position: relative;
    width: 100%;
    height: 6px;
    background: #ececec;
    border-radius: 999px;
}

.ezette-rm__progress {
    width: 0;
    height: 100%;
    background: var(--ezette-bm-color, #3bb54a);
    border-radius: inherit;
    transition: width .35s ease;
}

.ezette-rm__milestones {
    position: absolute;
    top: 0;
    left: 5px;
    right: 5px;
    height: 100%;
}

.ezette-rm__milestone {
    position: absolute;
    top: -5px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
    text-align: center;
    color: #777;
}

.ezette-rm__milestone:last-child {
    transform: translateX(-100%);
    align-items: flex-end;
    text-align: right;
}

.ezette-rm__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-bottom: 5px;
    border: 2px solid #d7d7d7;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    font-size: 9px;
    line-height: 1;
    font-weight: 700;
}

.ezette-rm__label {
    font-size: 10.5px;
    line-height: 1.05;
    font-weight: 700;
    color: #555;
    white-space: nowrap;
}

.ezette-rm__sublabel {
    margin-top: 1px;
    font-size: 8px;
    line-height: 1;
    color: #777;
    white-space: nowrap;
}

.ezette-rm__qty {
    margin-top: 2px;
    font-size: 8px;
    line-height: 1.05;
    color: #aaa;
    white-space: nowrap;
}

.ezette-rm__milestone.is-reached .ezette-rm__dot {
    border-color: var(--ezette-bm-color, #3bb54a);
    background: var(--ezette-bm-color, #3bb54a);
}

.ezette-rm__milestone.is-reached .ezette-rm__label,
.ezette-rm__milestone.is-reached .ezette-rm__sublabel {
    color: #267c32;
}

@media (max-width: 767px) {
    .ezette-fsm {
        padding: 12px 16px 14px;
    }

    .ezette-fsm__message {
        font-size: 13px;
    }

    .ezette-rm {
        padding: 13px 16px 25px;
    }

    .ezette-rm__message {
        margin-bottom: 17px;
        font-size: 12.5px;
    }

    .ezette-rm__meter {
        padding-bottom: 41px;
    }

    .ezette-rm__milestone {
        min-width: 52px;
    }

    .ezette-rm__label {
        font-size: 9.5px;
    }

    .ezette-rm__sublabel,
    .ezette-rm__qty {
        font-size: 7.5px;
    }
}
