/* Responsive: mobile-first */
@media (max-width: 767.98px) {
    .chat-container {
        flex-direction: column;
        height: calc(100vh - 56px);
        position: relative;
    }
    .chat-sidebar {
        width: 100% !important;
        height: 100%;
        border-right: none;
    }
    .chat-main {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background: var(--white);
        z-index: 10;
    }
    .chat-info {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 280px;
        max-width: 80%;
        background: #FFF8F0;
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
        z-index: 20;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 20px;
        overflow-y: auto;
    }
    .chat-info.info-panel-overlay {
        transform: translateX(0);
    }
    /* override the d-none/d-md-flex for mobile */
    .d-md-flex {
        display: flex !important;
    }
    .d-none.d-md-flex {
        display: none !important;
    }
    /* when currentView is 'chat', hide sidebar and show main */
    .chat-sidebar.d-none.d-md-flex {
        display: none !important;
    }
    .chat-main.d-none.d-md-flex {
        display: none !important;
    }
}

/* On larger screens, info panel is always in place */
@media (min-width: 768px) {
    .chat-info {
        width: 280px;
        border-left: 2px solid var(--gold-bronze);
        flex-shrink: 0;
        background: #FFF8F0;
        padding: 20px;
        overflow-y: auto;
        height: 100%;
        position: relative;
        transform: none !important;
        box-shadow: none !important;
        z-index: auto;
    }
    .chat-info .btn-link.d-md-none {
        display: none !important;
    }
}