/* =========================================================
   SALES BOOSTER CHAT RESPONSIVE (MOBILE-FIRST)
========================================================= */

/* =========================
   BASE (ALL DEVICES)
========================= */

#sbc-chat-popup {
    position: fixed;
    width: 380px;
    max-width: 100%;
    height: 600px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    z-index: 999999;
}

/* =========================
   TABLETS (iPad etc)
========================= */
@media (max-width: 1024px) {

    #sbc-chat-popup {
        width: 60%;
        height: 70vh;
        right: 20px;
        bottom: 100px;
    }

    .sbc-admin-layout {
        flex-direction: column;
    }
}

/* =========================
   MOBILE / iPHONE
========================= */
@media (max-width: 768px) {

    #sbc-chat-popup {

        width: calc(100% - 20px);

        left: 10px;
        right: 10px;

        height: 40vh;

        bottom: 100px;

        border-radius: 16px;
    }

    .sbc-messages {

        height: calc(40vh - 90px);

        overflow-y: auto;

        padding: 10px;
    }

    .sbc-input-area {

        display: flex;
    
        align-items: center;
    
        justify-content: space-between;
    
        gap: 8px;
    
        padding: 0 10px;
    
        min-height: 50px;
    
        width: 100%;
    
        box-sizing: border-box;
    }

    #sbc-message-input {
    
        width: calc(100% - 90px);
    
        height: 38px;
    
        padding: 0 12px;
    
        font-size: 14px;
    
        min-width: 0;
    }

    #sbc-send-message {

        width: 70px;
    
        min-width: 70px;
    
        height: 38px;
    
        border-radius: 10px;
    
        font-size: 13px;
    
        flex-shrink: 0;
    }

    .sbc-admin-layout {
        flex-direction: column;
    }

    .sbc-admin-sidebar {
        width: 100%;
        height: 200px;
        overflow-y: auto;
    }

    .sbc-admin-chat-wrapper {
        width: 100%;
        height: 60vh;
    }
}

/* =========================
   SMALL PHONES (iPhone SE etc)
========================= */
@media (max-width: 480px) {

    #sbc-chat-popup {

        width: calc(100% - 20px);

        left: 10px;
        right: 10px;

        height: 40vh;

        bottom: 100px;

        border-radius: 16px;
    }

    .sbc-messages {

        height: calc(40vh - 90px);

        overflow-y: auto;

        padding: 10px;
    }

    .sbc-input-area {

        display: flex;
    
        align-items: center;
    
        justify-content: space-between;
    
        gap: 8px;
    
        padding: 0 10px;
    
        min-height: 50px;
    
        width: 100%;
    
        box-sizing: border-box;
    }

    #sbc-message-input {

        width: calc(100% - 90px);
    
        height: 38px;
    
        padding: 0 12px;
    
        font-size: 14px;
    
        min-width: 0;
    }

    #sbc-send-message {

        width: 70px;
    
        min-width: 70px;
    
        height: 38px;
    
        border-radius: 10px;
    
        font-size: 13px;
    
        flex-shrink: 0;
    }

    .sbc-admin-layout {
        flex-direction: column;
    }

    .sbc-admin-sidebar {
        width: 100%;
        height: 200px;
        overflow-y: auto;
    }

    .sbc-admin-chat-wrapper {
        width: 100%;
        height: 60vh;
    }
}