

html body.single-product .ml-stock-urgency {
    display:flex!important;
    align-items:center!important;
    gap:11px!important;
    width:100%!important;
    box-sizing:border-box!important;
    padding:12px 14px!important;
    margin:8px 0 10px!important;
    border:1px solid var(--ml-stock-border)!important;
    border-radius:10px!important;
    background:var(--ml-stock-bg)!important;
    color:var(--ml-stock-text)!important;
    text-align:left!important;
    line-height:1.4!important;
}

html body.single-product .ml-stock-low {
    --ml-stock-bg:#fff7e8;
    --ml-stock-border:#e6c58c;
    --ml-stock-text:#956a32;
    --ml-stock-title:#a5650c;
    --ml-stock-icon:#c17b17;
}

html body.single-product .ml-stock-last {
    --ml-stock-bg:#fff0f0;
    --ml-stock-border:#dfa0a0;
    --ml-stock-text:#a34646;
    --ml-stock-title:#b52230;
    --ml-stock-icon:#c52c38;
}

html body.single-product .ml-stock-urgency-icon {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 30px!important;
    width:30px!important;
    color:var(--ml-stock-icon)!important;
}

html body.single-product .ml-stock-urgency-icon svg {
    width:28px!important;
    height:28px!important;
}

html body.single-product .ml-stock-urgency-content {
    display:flex!important;
    flex-direction:column!important;
    flex:1!important;
    min-width:0!important;
    gap:2px!important;
}

html body.single-product .ml-stock-urgency-content strong {
    display:block!important;
    color:var(--ml-stock-title)!important;
    font-size:15px!important;
    font-weight:750!important;
    line-height:1.35!important;
}

html body.single-product .ml-stock-urgency-content > span {
    color:var(--ml-stock-text)!important;
    font-size:12px!important;
    font-weight:400!important;
    line-height:1.4!important;
}

@keyframes ml-stock-flame-pulse {
    0%,100% {
        transform:scale(1);
    }
    50% {
        transform:scale(1.12);
    }
}

html body.single-product
.ml-stock-last .ml-stock-urgency-icon {
    animation:ml-stock-flame-pulse 1.8s ease-in-out 3;
}

@media(prefers-reduced-motion:reduce) {
    html body.single-product
    .ml-stock-last .ml-stock-urgency-icon {
        animation:none!important;
    }
}

@media(max-width:767px) {

    html body.single-product .ml-stock-urgency {
        padding:10px 11px!important;
        margin:6px 0 8px!important;
        gap:8px!important;
        border-radius:8px!important;
    }

    html body.single-product .ml-stock-urgency-icon {
        flex-basis:25px!important;
        width:25px!important;
    }

    html body.single-product .ml-stock-urgency-icon svg {
        width:24px!important;
        height:24px!important;
    }

    html body.single-product
    .ml-stock-urgency-content strong {
        font-size:14px!important;
    }

    html body.single-product
    .ml-stock-urgency-content > span {
        font-size:11px!important;
    }
}



/* ML STOCK URGENCY DESIGN V2 */

html body.single-product
.single_variation:has(.ml-stock-urgency),

html body.single-product
.woocommerce-variation-availability:has(.ml-stock-urgency) {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    flex:1 1 100%!important;
    box-sizing:border-box!important;
    padding:0!important;
    margin:0!important;
}

html body.single-product
.single_variation_wrap:has(.ml-stock-urgency) {
    width:100%!important;
    margin-top:4px!important;
}

html body.single-product .ml-stock-urgency {
    display:flex!important;
    width:100%!important;
    min-width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    align-items:center!important;
    padding:11px 12px!important;
    margin:5px 0 8px!important;
    gap:10px!important;
    border-radius:9px!important;
    border-left:4px solid var(--ml-stock-icon)!important;
}

html body.single-product .ml-stock-urgency::before {
    display:none!important;
}

html body.single-product .ml-stock-urgency::after {
    display:block!important;
    flex:0 0 auto!important;
    position:static!important;
    padding:6px 8px!important;
    margin:0!important;
    border-radius:5px!important;
    font-size:11px!important;
    font-weight:800!important;
    line-height:1.2!important;
    white-space:nowrap!important;
}

html body.single-product .ml-stock-last::after {
    content:"1 LEFT"!important;
    background:#b52230!important;
    color:#fff!important;
}

html body.single-product .ml-stock-low::after {
    content:"2 LEFT"!important;
    background:#e9d2a3!important;
    color:#80530e!important;
}

html body.single-product .ml-stock-urgency-content {
    flex:1 1 auto!important;
    min-width:0!important;
    gap:2px!important;
}

html body.single-product
.ml-stock-urgency-content strong {
    font-size:15px!important;
    font-weight:800!important;
    line-height:1.3!important;
}

html body.single-product
.ml-stock-urgency-content > span {
    font-size:12px!important;
    line-height:1.35!important;
}

html body.single-product
.single_variation_wrap:has(.ml-stock-urgency)
.woocommerce-variation-add-to-cart {
    margin-top:0!important;
    padding-top:0!important;
}

@media(max-width:767px) {

    html body.single-product .ml-stock-urgency {
        padding:9px 10px!important;
        gap:8px!important;
        margin:4px 0 7px!important;
    }

    html body.single-product
    .ml-stock-urgency-content strong {
        font-size:13px!important;
    }

    html body.single-product
    .ml-stock-urgency-content > span {
        font-size:11px!important;
    }

    html body.single-product
    .ml-stock-urgency::after {
        font-size:10px!important;
        padding:5px 6px!important;
    }
}

@media(max-width:360px) {
    html body.single-product
    .ml-stock-urgency::after {
        display:none!important;
    }
}


