/* Yogya Fresh — Phase 2G frontend pack card alignment */

/* All pack cards share the same outer height for a clean 2-column grid. */
.yf-awp-option{
    display:block;
    height:88px;
}

.yf-awp-option .yf-awp-option-body{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto;
    align-items:center;
    column-gap:12px;
    row-gap:2px;
    width:100%;
    height:100%;
    min-height:0;
    padding:12px;
    box-sizing:border-box;
}

.yf-awp-option .yf-awp-option-body strong{
    grid-column:1;
    grid-row:1;
    align-self:end;
}

.yf-awp-option .yf-awp-option-body small{
    grid-column:1;
    grid-row:2;
    display:block;
    align-self:start;
    margin:0;
    color:#7f94a6;
    font-size:9px;
    line-height:1.15;
    font-weight:700;
    letter-spacing:.02em;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.yf-awp-option .yf-pack-calculated-price{
    position:static!important;
    grid-column:2;
    grid-row:1 / span 2;
    align-self:center;
    justify-self:end;
    transform:none!important;
    color:#0788d8;
    font-size:12px;
    font-style:normal;
    font-weight:900;
    white-space:nowrap;
}

/* Already-in-cart state uses the exact same card height. */
.yf-awp-option.yf-pack-in-cart{
    cursor:not-allowed;
    opacity:1;
}

.yf-awp-option.yf-pack-in-cart .yf-awp-option-body{
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto 24px;
    align-items:start;
    row-gap:3px;
    height:100%;
    min-height:0;
    padding:10px 12px;
    background:#f4f6f8;
    border-color:#d9e0e6;
    box-shadow:none;
}

.yf-awp-option.yf-pack-in-cart .yf-awp-option-body strong{
    grid-column:1;
    grid-row:1;
    align-self:end;
    color:#8aa0b2;
}

.yf-awp-option.yf-pack-in-cart .yf-awp-option-body small{
    grid-column:1;
    grid-row:2;
    align-self:start;
    color:#9aabb8;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.yf-awp-option.yf-pack-in-cart .yf-pack-calculated-price{
    display:none!important;
}

.yf-pack-in-cart-label{
    grid-column:1;
    grid-row:3;
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:24px;
    min-height:24px;
    margin:0;
    padding:0 8px;
    border-radius:7px;
    background:#e7ebee;
    color:#75828d;
    font-size:9px;
    line-height:1;
    font-weight:900;
    text-align:center;
    text-transform:uppercase;
    letter-spacing:.035em;
    white-space:nowrap;
    box-sizing:border-box;
}

.yf-pack-qty-locked{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:42px;
    min-height:36px;
    padding:0 12px;
    border:1px solid #d9e0e6;
    border-radius:6px;
    background:#f7f9fa;
    color:#52697d;
    font-weight:800;
}

@media(max-width:680px){
    .yf-awp-option{
        height:86px;
    }

    .yf-awp-option .yf-awp-option-body,
    .yf-awp-option.yf-pack-in-cart .yf-awp-option-body{
        padding-left:10px;
        padding-right:10px;
    }
}
