/* Yogya Fresh — Phase 3A.1.2 Packaged Product Stock */
.yf-packaged-stock-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:12px 0 14px;
    padding:11px 13px;
    border:1px solid #e0e9ef;
    border-radius:12px;
    background:#fbfdff;
}
.yf-packaged-stock-card strong{
    color:#163f63;
    font-size:12px;
}
.yf-stock-label{
    display:inline-flex;
    align-items:center;
    min-height:22px;
    padding:4px 8px;
    border-radius:999px;
    font-size:9px;
    line-height:1;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.035em;
    white-space:nowrap;
}
.yf-stock-ready{
    background:#eef8eb;
    color:#2e8c20;
}
.yf-stock-low{
    background:#fff8df;
    color:#916300;
}
.yf-stock-out{
    background:#fff0f0;
    color:#a83a3a;
}


.yf-stock-cart{
    background:#eef4f8;
    color:#52697d;
}
.yf-packaged-stock-cart-aware strong{
    text-align:right;
}


.yf-cart-capacity-full{
    display:flex;
    flex-direction:column;
    gap:5px;
    width:100%;
    margin-top:12px;
    padding:14px 16px;
    border:1px solid #dbe7ef;
    border-radius:12px;
    background:#f7fafc;
    box-sizing:border-box;
}
.yf-cart-capacity-full__title{
    color:#0c447a;
    font-size:13px;
    line-height:1.35;
    font-weight:900;
}
.yf-cart-capacity-full__text{
    color:#52697d;
    font-size:12px;
    line-height:1.5;
    font-weight:600;
}


/* 3B.1.4 — keep quantity visibly present when only one unit remains addable. */
.yf-single-remaining-one{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
}
.yf-single-remaining-one__qty{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 64px;
    width:64px;
    height:48px;
    min-height:48px;
    max-height:48px;
    padding:0;
    line-height:1;
    border:2px solid #7d57c2;
    border-radius:12px;
    background:#fff;
    color:#163f63;
    font-size:15px;
    font-weight:800;
    box-sizing:border-box;
    align-self:center;
}
.yf-single-remaining-one__cart{
    flex:1 1 auto;
}
.yf-single-remaining-one__cart form.cart{
    margin:0;
}
.yf-single-remaining-one__cart .quantity{
    display:none !important;
}
.yf-single-remaining-one__cart .single_add_to_cart_button{
    min-height:48px;
}

/* 3B.1.14 — final fixed alignment for remaining-one purchase row */
.yf-pdp-cart .yf-single-remaining-one{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    width:auto !important;
    margin:12px 0 0 !important;
    padding:0 !important;
    line-height:1 !important;
}
.yf-pdp-cart .yf-single-remaining-one__qty{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 64px !important;
    width:64px !important;
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    margin:0 !important;
    padding:0 !important;
    line-height:1 !important;
    box-sizing:border-box !important;
}
.yf-pdp-cart .yf-single-remaining-one__cart{
    display:flex !important;
    align-items:center !important;
    flex:0 0 auto !important;
    width:auto !important;
    height:48px !important;
    margin:0 !important;
    padding:0 !important;
    line-height:1 !important;
}
.yf-pdp-cart .yf-single-remaining-one__cart form.cart{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:auto !important;
    height:48px !important;
    min-height:48px !important;
    margin:0 !important;
    padding:0 !important;
    line-height:1 !important;
}
.yf-pdp-cart .yf-single-remaining-one__cart .quantity{
    display:none !important;
}
.yf-pdp-cart .yf-single-remaining-one__cart .single_add_to_cart_button{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    margin:0 !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
    line-height:1 !important;
    box-sizing:border-box !important;
    float:none !important;
    position:static !important;
    transform:none !important;
}
