.chats-header {
	color: rgb(6, 0, 31);
	font-size: 32px;
	font-weight: 700;
	line-height: 120%;
}


.dialog-list {
	padding: 0px 25px;
	height: calc(80vh - 50px);
	overflow-x: hidden;
	overflow-y: auto;
}

.dialogs {
	padding: 25px 0px;
	width: 487px;
	border-radius: 20px;
	background: rgb(255, 255, 255);
	
}



.dialog-item {
	padding: 15px;
	cursor: pointer;
	transition: .1s;
	border-radius: 15px;
}

@media (min-width: 924px) {
	.dialog-item:hover {
		background: rgb(242, 242, 247);
	}
	.dialog-item.active {
		background: rgb(242, 242, 247);
	}
}


.dialog-item {
	
	.dialog-no-avatar {
		width: 61px;
		height: 61px;
		
		border-radius: 999px;
		background: rgb(194, 214, 255);
		
		border-radius: 999px;
		position: relative;
		
		
	}
	.dialog-no-avatar .label {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		
		color: rgb(255, 255, 255);
		font-size: 22px;
		font-weight: 800;
		line-height: 120%;
		text-align: center;
	}
	
	.dialog-user-avatar {
		background-size: cover!important;
		background-position: center!important;
		background-repeat: no-repeat!important;
		width: 61px;
		height: 61px;
		border-radius: 999px;
		
		
	}
	
	
	.dialog-name {
		color: rgb(0, 0, 0);
		font-size: 17px;
		font-weight: 700;
		line-height: 130%;
		
		
	}
	
	.last-message {
		color: rgb(72, 72, 72);
		font-size: 17px;
		font-weight: 500;
		line-height: 140%;
		text-align: left;
		
	}
	
	
	.datetime {
		color: rgb(155, 155, 155);
		font-size: 14px;
		font-weight: 500;
		line-height: 140%;
		text-align: right;
	}
	
	
	
	.notification-badge {
		color: rgb(255, 255, 255);
		font-size: 13px;
		font-weight: 700;
		line-height: 20px;
		text-align: center;
		border-radius: 99px;
		background: rgb(244, 65, 52);
		padding: 0px 4px 0px 4px;
		margin-left: 4px;
		cursor: pointer;
		min-width: 20px;
	}
	.notification-badge:empty {
		display: none;
	}
	
	
	
}


.messenger-block {
	padding: 6px 20px 20px 20px;
    border-radius: 20px;
    background: rgb(255, 255, 255);
	height: 80vh;
	position: sticky;
	top: 82px;
}


#messenger-adtabs {
	padding-top: 10px;
	max-height: 100px;
	overflow-y: auto;
	overflow-x: hidden;
}


.messenger-body {
    .advert-tag-item {
		margin-bottom: 10px;
	}
}

.return-to-dialogs-mobile-btn {
	display: none;
}

@media (max-width: 924px) {
	#messenger-adtabs {
		padding-top: 10px;
		max-height: 80px;
	}
	.messenger-body {
		.header {
			padding: 0px 0px 5px 0px!important;
		}
	}
	.main-content {
		margin-top: 20px;
	}
	
	.dialogs {
		padding: 12px 0px;
		width: 100%;
	}
	.dialog-list {
		padding: 0px 12px;
	}
	.messages-block {
		display: none;
	}
	.dialog-no-avatar {
		width: 40px!important;
		height: 40px!important;
	}
	.dialog-user-avatar {
		width: 40px!important;
		height: 40px!important;
		
	}
	.dialog-item {
		padding: 10px;
	}
	.mobile-dialog-margin {
		margin-top: 2px;
	}
	.dialog-name {
		font-size: 15px!important;
        font-weight: 700!important;
        line-height: 130%!important;
	}
	.last-message {
		font-size: 14px!important;
        font-weight: 600!important;
        line-height: 130%!important;
	}
	.dialog-list {
		overflow: hidden!important;
		height: auto!important;
	}
	.datetime {
		font-size: 13px!important;
        font-weight: 600!important;
        line-height: 130%!important;
	}
	
	.dialogs .notification-badge {
		margin-top: 2px;
	}
	
	.messenger-block {
		padding: 6px 14px 10px 14px;
		height: 78vh;
		position: sticky;
		top: 82px;
	}
	
	.advert-tag-item {
		width: 50px!important;
		margin-bottom: 10px;
	}
	
	.adtabs-block {
		justify-content: flex-end !important;
		overflow-y: hidden;
		overflow-x: auto;
		padding-top: 2px;
		padding-bottom: 2px;
	}
	
	.header-avatar .chat-no-avatar {
		width: 45px!important;
		height: 45px!important;
		
	}
	
	.header-avatar .avatar-block {
		width: 45px!important;
		height: 45px!important;
		
	}
	.dialog-no-avatar .label {
		font-size: 16px!important;
	}
	
	.header-avatar .chat-no-avatar .label {
		font-size: 18px!important;
		
	}
	
	.header-dialog-name {
		font-size: 13px!important;
	}
	.last-online {
		font-size: 10px!important;
		margin-top: 1px!important;
	}
	
	.footer-margin, .footer-shadow, .main-footer {
		display: none;
	}
	#chat-page {
		padding-bottom: 100px;
	}
	
	.input-area textarea {
		height: 50px!important;
		font-size: 12px!important;
	}
	
	.send-message-btn {
		width: 30px!important;
		height: 30px!important;
	}
	.send-message-btn svg {
		width: 10px!important;
	}
	
	.input-msg-background {
		/* padding: 5px!important; */
	}
	
	
	.send-message-area {
		height: 50px!important;
	}
	.footer {
		padding-top: 10px!important;
	}
	
	.messenger-body {
		.date-block {
			font-size: 10px!important;
		}
		.chat-block .sender-name, .chat-partner-block .sender-name {
			font-size: 12px!important;
		}
		.chat-block .text, .chat-partner-block .text {
			font-size: 12px!important;
		}
		.chat-block .time, .chat-partner-block .time {
			font-size: 10px!important;
			
		}
		
	}
	.sys-message-block {
		font-size: 12px!important;
	}
	.sys-message-block .label {
		padding: 10px 20px!important;
		
	}
	.sys-message-block {
		margin-top: 10px!important;
		margin-bottom: 10px!important;
	}
	.chat-msg-image-preview {
		width: 40px!important;
	}
	.sys-message-block-date {
		font-size: 10px!important;
	}
	
	.message-block {
		margin-top: 5px!important;
		margin-bottom: 0px!important;
	}
	
	.return-to-dialogs-mobile-btn {
		width: 30px;
		height: 30px;
		background: white;
		border-radius: 999px;
		box-shadow: 0px 5px 16px 0px rgba(0, 20, 61, 0.1);
		position: relative;
		margin-right: 10px;
		display: block;
	}
	
	.return-to-dialogs-mobile-btn svg {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 20px;
		margin-left: -1px;
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
}




























