.chat-format-container {
    max-width: 1140px;   /* Максимальная ширина */
    margin: 3px auto 0;  /* Отступ сверху 3px, по бокам автоматически, снизу 0 */
    padding: 0 3px;      /* Отступы слева и справа 3px */

}

.chat-content {
    width: 100%;
}

.chat-header {
    display: flex;
    align-items: center;
    background-color: #17635b; /* Цвет фона WhatsApp */
    padding: 10px;
    border-radius: 5px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.chat-header .avatars {
    height: 60px;
    margin: 0 10px 0 0;
    border-radius: 50%;
}

.chat-header .chat-info {
    flex: 1;
}

.chat-header .name {
    font-family: 'Open Sans', serif;
    color: white !important;
    margin-bottom: 0;
}

.status-container {
    color: #fff;
    display: block;
}

.chatclone-container {
    overflow-y: auto;
    height: 80vh;
    padding-left: 50px;
    background-color: #efeae273;
    background-image: url('fon_w.png');
  /*  position: relative;  Для позиционирования блока загрузки */
}

.chat-container .chat {
    margin-top: 20px;
}

.message {
    display: none;
    position: relative;
    background-color: #fff;
    border-radius: 15px;
    padding: 10px;
    margin: 10px;
    max-width: 80%;
    align-items: center;
}

.message .tiled-gallery {
    max-height: 320px;
}

.avatarka {
    position: absolute;
    top: -10px;
    left: -50px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -13px;
    width: 24px;
    height: 20px;
    background-color: #fff;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    transform: rotate(100deg);
}

.time {
    position: absolute;
    bottom: 5px;
    right: 5px;
    color: #999;
    font-size: 12px;
}

.message p {
    font-family: 'Open Sans', serif;
    color: #444444;
    line-height: 22px !important;
    margin-bottom: 10px;
}


/* Стили для кнопки подписки */
.chat-subscribe-btn {
    display: inline-block;
    margin: 5px 0px 15px 0px;
    padding: 5px 15px;
    background-color: #0088cc;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-subscribe-btn:hover {
    background-color: #0088cce8;
  
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	
	color: white;
	text-decoration: none;
}

.chat-subscribe-btn:visited {
	color: white;
	text-decoration: none;
}

.chat-subscribe-btn:focus {
   
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
	color: white;
	text-decoration: none;
}




.chat-loading-info {
    position: fixed; 
    width: 50%;
    min-width: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.chat-loading-info img.loading-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    
}

.chat-loading-info h3 {
    font-size: 20px;
    margin: 10px 0;
    color: #333; /* Темный цвет текста для контраста с белым фоном */
}

.chat-loading-info p {
    font-size: 18px;
    color: #333; /* Темный цвет текста для контраста с белым фоном */
}

#loading-time {
    font-size: 36px;
    font-weight: bold;
    color: #333; /* Темный цвет текста для контраста с белым фоном */
}