.gbcc-crm-wrapper { 
    display: flex; 
    height: 870px; 
    border: 1px solid #b0b0b0; 
    border-radius: 8px; 
    background: #fff; 
    font-family: sans-serif; 
    overflow: hidden; 
    position: relative; 
}
.gbcc-crm-dialogs-sidebar { 
    width: 25%; 
    border-right: 1px solid #b0b0b0; 
    background: #fff; 
    display: flex; 
    flex-direction: column; 
    padding: 10px 0px 10px 10px; 
    box-sizing: border-box; 
}
.gbcc-crm-chat-area { 
    width: 50%; 
    display: flex; 
    flex-direction: column; 
    background: #fcfcfc; 
    border-right: 1px solid #b0b0b0; 
    box-sizing: border-box; 
}
.gbcc-crm-sidebar { 
    width: 25%; 
    background: #fff; 
    overflow-y: auto; 
    padding: 10px; 
    box-sizing: 
    border-box; 
}
        
/* Мобильные стили (экраны до 768px) */
@media (max-width: 768px) {
    .gbcc-crm-wrapper { 
        height: 600px; 
    } /* Чуть увеличим высоту для мобильных */
    .gbcc-crm-dialogs-sidebar, 
    .gbcc-crm-chat-area, 
    .gbcc-crm-sidebar {
        width: 100% !important;
        position: absolute;
        top: 0; 
        left: 0; 
        bottom: 0; 
        right: 0;
        transition: transform 0.3s ease;
        background: #fff;
        z-index: 1;
    }
    /* Изначальное состояние экранов (смещение за границы) */
    .gbcc-crm-dialogs-sidebar { 
        transform: translateX(0); 
        z-index: 3; 
    }
    .gbcc-crm-chat-area { 
        transform: translateX(100%); 
        z-index: 2; 
    }
    .gbcc-crm-sidebar { 
        transform: translateX(100%); 
        z-index: 1; 
    }

    /* Классы состояний переключения экранов */
    .gbcc-view-chat .gbcc-crm-dialogs-sidebar { 
        transform: translateX(-100%); 
        z-index: 1; 
    }
    .gbcc-view-chat .gbcc-crm-chat-area { 
        transform: translateX(0); 
        z-index: 3; 
    }
    .gbcc-view-chat .gbcc-crm-sidebar { 
        transform: translateX(100%); 
        z-index: 2; 
    }

    .gbcc-view-bookings .gbcc-crm-dialogs-sidebar { 
        transform: translateX(-100%); 
        z-index: 1; 
    }
    .gbcc-view-bookings .gbcc-crm-chat-area { 
        transform: translateX(-100%); 
        z-index: 2; 
    }
    .gbcc-view-bookings .gbcc-crm-sidebar { 
        transform: translateX(0); 
        z-index: 3; 
    }
            
    /* На мобильных скрываем десктопную заглушку шапки чата */
    #gbcc-crm-header-placeholder { 
        display: none !important; 
    }
    .gbcc-mobile-nav-btn { 
        display: flex !important; 
    }
}
.gbcc-crm-dialogs-title{
    margin:         4px 10px 10px 0; 
    padding-bottom: 5px; 
    border-bottom:  1px solid #b0b0b0; 
    font-size:      16px;
    font-family:    BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight:    700;
    line-height:    20px;
}
.gbcc-crm-search-wrapper{
    margin-right: 10px;
    margin-bottom: 10px; 
    position: relative;
}
.gbcc-crm-search-input{
    width:          100% !important; 
    height:         36px; 
    padding:        4px 8px !important; 
    border:         1px solid #666 !important; 
    border-radius:  2px !important; 
    font-size:      14px; 
    box-sizing:     border-box !important; 
    outline:        none;
}
.gbcc-crm-search-input:active,
.gbcc-crm-search-input:focus {
    border:   2px solid #000 !important;     
}
.gbcc-crm-search-input_cross{
    position:    absolute; 
    right:       8px; 
    top:         50%; 
    transform:   translateY(-50%); 
    cursor:      pointer; 
    color:       #666; 
    font-size:   18px; 
    font-weight: bold; 
    display:     none; 
    user-select: none;
}
.gbcc-crm-dialogs-list{
    flex:  1; 
    overflow-y: auto; 
    margin-bottom: 10px;
}
.gbcc-no-dialogs{
    font-size: 14px; 
    color:#444;
}
.gbcc-crm-dialog-item{
    padding: 10px 10px 10px 0px;
    border-top:    1px solid #b0b0b0;
    border-bottom: 1px solid #b0b0b0;
    cursor: pointer; 
    border-radius: 0px; 
    margin-bottom: -1px; 
    position: relative; 
    background:#fff;
}
.gbcc-crm-dialog-item:hover{
    background: #fafafa !important;
}
.gbcc-crm-dialog-item-name-wrapper{
    display:         flex; 
    align-items:     baseline; 
    justify-content: space-between;"    
}
.gbcc-crm-dialog-item-name{
    font-size: 14px; 
    color: #333; 
    white-space: nowrap;
    overflow: hidden; 
    text-overflow: ellipsis; 
    max-width:70%;
}
.gbcc-crm-dialog-item-date-time{
    font-size:   11px; 
    color:       #666; 
    white-space: nowrap;
}
.gbcc-crm-dialog-item-ontext_title{
    display:       block; 
    font-size:     12px; 
    color:         #888; 
    white-space:   nowrap; 
    overflow:      hidden; 
    text-overflow: ellipsis; 
    margin-top:    2px;    
}
.gbcc-crm-dialog-item-message{
    margin:    4px 0 0 0; 
    font-size: 12px; 
    color:#666; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow:ellipsis;    
}
.gbcc-unread-dot{
    position: absolute; 
    right: 10px; 
    top: 50%; 
    transform:translateY(-50%); 
    width: 8px; 
    height: 8px; 
    background:#ff4d4f; 
    border-radius:50%;"
}
.gbcc-crm-load-more-dialogs{
    border: 1px solid #000;
    border-radius: 4px;
    display: inline-block;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-decoration: none;
    vertical-align: middle;
    text-align: center;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 12px 34px !important;
    margin-right: 10px !important;
}
.gbcc-crm-header-container{
    display:  flex; 
    align-items: center; 
    background:  #fff; 
    border-bottom: 1px solid #b0b0b0; 
    padding: 12px 10px 6px 10px;
    box-sizing:border-box;
}
.gbcc-mobile-nav-btn{
    display:  none; 
    cursor: pointer; 
    font-size: 18px; 
    color: #000;
    font-weight: 900;
    user-select: none;
    background-color: #eee;
    border-radius: 50%;
    padding: 0px 6px 4px 6px;
    margin-top: -8px;
}
.gbcc-mobile-nav-btn.gbcc-left-btn{
    margin-right: 15px;     
}
.gbcc-mobile-nav-btn.gbcc-right-btn{
    margin-left:  15px; 
}
 
.gbcc-crm-header{
    flex: 1; 
    font-size: 14px; 
    font-weight: bold; 
    color: #333; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;    
}
.gbcc-crm-header-placeholder{
    color:#333; 
    font-weight: normal; 
    font-size: 14px;
}
.gbcc-crm-header-text{
    font-size: 14px; 
    font-weight: 600; 
    color:#333;    
}
.gbcc-crm-window{
    flex: 1; 
    padding: 15px; 
    overflow-y: auto; 
    box-sizing: border-box;
}
.gbcc-render-date{
    text-align: center; 
    margin: 12px 0; 
    color: #666;
    font-weight: 400;
    font-size: 11px;     
}
.gbcc-crm-ctrl{
    display: none; 
    padding: 9px 10px 11px 10px;
    background: #fff; 
    border-top: 1px solid #b0b0b0; 
    gap: 10px; 
    align-items: center; 
    box-sizing: border-box;
}
.gbcc-crm-input{
    width:   100% !important; 
    flex:    1; 
    height:  36px; 
    padding: 4px 8px !important; 
    border:  1px solid #666 !important; 
    border-radius:  2px !important; 
    font-size:  14px; 
    box-sizing: border-box !important; 
    outline: none;
}
.gbcc-crm-input:active,
.gbcc-crm-input:focus {
    border:   2px solid #000 !important;     
}
.gbcc-crm-button-send{
    border: 1px solid #000;
    border-radius: 4px;
    display: inline-block;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-decoration: none;
    vertical-align: middle;
    text-align: center;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 12px 34px !important;
}
.gbcc-crm-sidebar-header{
    display: flex;
    align-items: center;
    border-bottom: 1px solid #b0b0b0;
    padding-bottom: 5px;
    margin-top: 4px;
    margin-bottom: 10px;
}
.gbcc-crm-sidebar-title{
    margin: 0px 0px 0px 0px;
    padding-bottom: 0px;
    font-size: 16px;
    font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    line-height: 20px;
    flex: 1;
}
.gbcc-crm-bookings-list-start{
    text-align: center; 
    font-size: 14px; 
    color: #666; 
    margin-top: 15px;    
}
.gbcc-crm-bookings-list-item{
    background: #fafafa; 
    border: 1px solid #e6e6e6; 
    border-radius: 4px; 
    padding: 10px; 
    margin-bottom: 8px; 
    font-size: 14px; 
    font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.gbcc-crm-bookings-list-title-wrapper{
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 4px; 
    border-bottom: 1px dashed #eee; 
    padding-bottom:4px;  
}
.gbcc-crm-bookings-list-title-wrapper:hover {
    text-decoration: underline;
}
.gbcc-crm-bookings-list-title-wrapper strong {
    color :#666;
}
.gbcc-crm-bookings-list-title-wrapper span {
    color :#666; 
    font-weight: 500;
}