.bizflow-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;

    background: #333;
    color: #fff;

    padding: 12px 18px;
    border-radius: 6px;

    font-size: 14px;

    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;

    z-index: 9999;
}

/* show animation */
.bizflow-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* types */
.bizflow-toast.success {
    background: #28a745;
}

.bizflow-toast.error {
    background: #dc3545;
}

.bizflow-toast.info {
    background: #007bff;
}

#bizflow-pos-layout{
    display:flex;
    gap:20px;
    align-items:flex-start;
}

#bizflow-pos-main{
    flex:1;
    min-width:0;
}

#bizflow-cart-sidebar{
    width:350px;
    position:sticky;
    top:20px;
}

.bizflow-tabs{
    display:flex;
    gap:10px;
    margin-bottom:15px;
    flex-wrap:wrap;
}

.bizflow-tabs button{
    flex:1;
    min-width:100px;
    padding:12px;
    border:none;
    border-radius:8px;

    background:#f1f1f1 !important;
    color:#333 !important;

    font-weight:600;
    cursor:pointer;

    transition:0.2s ease;
}

.bizflow-tabs button:hover{
    background:#e5e5e5 !important;
}

.bizflow-tabs button.active{
    background:#0073aa !important;
    color:#fff !important;
}

#checkout_section{
    margin-top:15px;
    background:#fff;
    padding:15px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
}

#checkout_section input,
#checkout_section select{
    height:48px;
    font-size:16px;
    border-radius:8px;
}

#bizflow-checkout-btn{
    height:50px;
    font-size:18px;
    border-radius:8px;
    font-weight:bold;
}

#bizflow-search-input:focus{
    outline:none;
    border-color:#0073aa;
}

/* =========================
   FIX: ITEM ROW POS CLEANUP
   (SAFE - NO JS CHANGES)
   ========================= */

.item {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 6px 8px;
    margin-bottom: 5px;

    border: 1px solid #eee;
    border-radius: 8px;

    font-size: 13px;
}

/* product text */
.item {
    white-space: nowrap;
    overflow: hidden;
}

/* name text (middle content) */
.item > span,
.item > div {
    flex: 2;
}

/* checkbox */
.item input[type="checkbox"] {
    transform: scale(1.1);
    flex-shrink: 0;
}

/* price + qty inputs */
.item input.price,
.item input.qty {
    width: 60px;
    height: 30px;

    font-size: 12px;
    text-align: center;

    border: 1px solid #ccc;
    border-radius: 6px;

    padding: 2px;
}

/* make product name area take space */
.item {
    justify-content: space-between;
}

/* optional: better stock text spacing */
.item {
    line-height: 1.2;
}


/* MOBILE */
@media(max-width:768px){

    #bizflow-pos-layout{
        flex-direction:column;
    }

    #bizflow-cart-sidebar{
        width:100%;
        position:static;
    }

    .bizflow-tabs{
        position:sticky;
        top:0;
        background:#fff;
        z-index:100;
        padding-bottom:10px;
    }

    .bizflow-tabs button{
        flex:1;
        min-width:100px;
        padding:12px;
        border:none;
        border-radius:8px;

        background:#f1f1f2 !important;
        color:#333 !important;

        font-weight:600;
        cursor:pointer;
    }

    .bizflow-tabs button.active{
        background:#0073aa !important;
        color:#fff !important;
    }

    #checkout_section{
        position:sticky;
        bottom:0;
        z-index:200;
        background:#fff;
        border-top:1px solid #ddd;
        border-radius:0;
    }

    #bizflow-checkout-btn{
        width:100%;
        font-size:20px;
        height:56px;
    }
    
        #bizflow-search-bar{
        position:sticky;
        top:60px;
        z-index:150;
        background:#fff;
        padding:10px 0;
    }

    #bizflow-search-bar > div{
        width:100%;
    }

    #bizflow-search-toggle{
        min-width:48px;
        height:48px;
        font-size:18px;
        flex-shrink:0;
    }

    #bizflow-search-input{
        width:100%;
        height:48px;
        font-size:16px;
    }

    /* Prevent zoom on iPhone */
    #bizflow-search-input,
    #checkout_section input,
    #checkout_section select{
        font-size:16px !important;
    }
    
    /* =========================
   MOBILE POS TIGHTENING
   ========================= */
    
    .item {
        padding: 5px 6px;
        font-size: 12px;
    }

    .item input.price,
    .item input.qty {
        width: 45px;
        height: 26px;
        font-size: 11px;
    }

    .item input[type="checkbox"] {
        transform: scale(1);
    }

}
