.rooms_content_wrap {
	display: block;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	height: 100%;
	z-index: 2;
	position: fixed;
	top: 0;
	padding-top: 60px;
}

/* список чатов */
.rooms_wrap {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background-color: #fff;
}
.rooms_header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px;
	font-size: 18px;
	font-weight: 500;
	border-bottom: 1px solid #EFF1F4;
}
.rooms_header__arr_back {
	display: flex;
}
.rooms_create {
	display: flex;
	gap: 10px;
	padding: 10px 15px;
	border-bottom: 1px solid #EFF1F4;
}
.rooms_create__input {
	flex: 1;
	border: 1px solid #E1E3E8;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 14px;
}
.rooms_create__avatar {
	position: relative;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	flex-shrink: 0;
	cursor: pointer;
}
.rooms_create__avatar__selected {
	box-shadow: 0 0 0 2px #3B82F6;
	border-radius: 50%;
}
.rooms_create__avatar_placeholder {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-color: #E1E3E8;
	color: #888D9A;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}
.rooms_create__avatar_img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}
.rooms_create__avatar_badge {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #59C27D;
	color: #fff;
	font-size: 10px;
	line-height: 16px;
	text-align: center;
}
.rooms_tabs {
	display: flex;
	border-bottom: 1px solid #EFF1F4;
}
.rooms_tabs__item {
	flex: 1;
	text-align: center;
	padding: 12px 0;
	font-size: 14px;
	font-weight: 500;
	color: #888D9A;
	cursor: pointer;
	border-bottom: 2px solid transparent;
}
.rooms_tabs__item__active {
	color: #3B82F6;
	border-bottom-color: #3B82F6;
}
.rooms_list {
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}
.rooms_list__hidden {
	display: none;
}
.room_item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 15px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid #EFF1F4;
}
.room_item__empty {
	color: #888D9A;
	font-size: 14px;
}
.room_item__disabled {
	opacity: 0.5;
}
.room_item__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #C85E5F;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 500;
	flex-shrink: 0;
	object-fit: cover;
}
.room_item__avatar__has_photo {
	background-color: transparent;
}
.room_item__info {
	flex: 1;
	min-width: 0;
}
.room_item__name {
	font-size: 15px;
	font-weight: 500;
	color: #242631;
}
.room_item__status {
	font-size: 12px;
	color: #C85E5F;
}
.room_item__link {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
	text-decoration: none;
	color: inherit;
}
.room_item__subscribe_btn {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: none;
	background-color: #3B82F6;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.room_item__unread_badge {
	flex-shrink: 0;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background-color: #3B82F6;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* конкретный чат */
.room_wrap {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background-color: #fff;
	position: relative;
}
.room_header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 15px;
	border-bottom: 1px solid #EFF1F4;
}
.room_header__avatar_wrap {
	position: relative;
	flex-shrink: 0;
}
.room_header__avatar_wrap__editable {
	cursor: pointer;
}
.room_header__avatar_wrap__editable::after {
	content: '\270E';
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #3B82F6;
	color: #fff;
	font-size: 10px;
	line-height: 16px;
	text-align: center;
}
.room_header__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #C85E5F;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 500;
	object-fit: cover;
}
.room_header__avatar__has_photo {
	background-color: transparent;
}
.room_header__info {
	flex: 1;
	cursor: pointer;
}
.room_header__name {
	font-size: 16px;
	font-weight: 500;
	color: #242631;
}
.room_header__count {
	font-size: 12px;
	color: #888D9A;
}
.room__notice {
	padding: 10px 15px;
	background-color: #FFF4E5;
	color: #A85D00;
	font-size: 13px;
}
.room_content {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	padding: 15px;
	gap: 8px;
}
.message_item__wrap {
	display: flex;
	align-items: flex-end;
	width: 100%;
	gap: 8px;
}
.message_item__wrap.jc-e {
	justify-content: flex-end;
}
.message_item__wrap.jc-s {
	justify-content: flex-start;
}
.message_item__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	flex-shrink: 0;
	object-fit: cover;
}
.message_item {
	position: relative;
	max-width: 70%;
	padding: 8px 28px 8px 12px;
	border-radius: 12px;
	font-size: 14px;
}
.message_item__in {
	background-color: #F0F1F4;
	color: #242631;
}
.message_item__out {
	background-color: #3B82F6;
	color: #fff;
}
.message_item__author {
	font-size: 12px;
	font-weight: 500;
	opacity: 0.7;
	margin-bottom: 2px;
}
.message_item__text {
	white-space: pre-wrap;
	word-break: break-word;
}
.message_item__dt {
	font-size: 11px;
	opacity: 0.6;
	text-align: right;
	margin-top: 4px;
}
.message_item__menu {
	position: absolute;
	top: 2px;
	right: 4px;
}
.message_item__menu_btn {
	border: none;
	background: none;
	color: inherit;
	opacity: 0.6;
	font-size: 14px;
	line-height: 1;
	padding: 2px 4px;
	cursor: pointer;
}
.message_item__menu_btn:hover {
	opacity: 1;
}
.message_item__menu_dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 10;
	min-width: 160px;
	background-color: #fff;
	color: #242631;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,.15);
	overflow: hidden;
}
.message_item__menu_option {
	padding: 10px 14px;
	font-size: 13px;
	cursor: pointer;
	white-space: nowrap;
}
.message_item__menu_option:hover {
	background-color: #F0F1F4;
}
.room_form {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	padding: 10px 15px;
	border-top: 1px solid #EFF1F4;
}
.room_form__input {
	flex: 1;
	border: 1px solid #E1E3E8;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 14px;
	resize: none;
	min-height: 36px;
	max-height: 120px;
}
.room_form__send {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: #3B82F6;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.room_subscribe {
	padding: 15px;
	display: flex;
	justify-content: center;
	border-top: 1px solid #EFF1F4;
}

/* панель участников */
.room_members_panel {
	display: none;
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background-color: #fff;
	z-index: 5;
	flex-direction: column;
	box-shadow: -2px 0 8px rgba(0,0,0,.08);
}
.room_members_panel.active {
	display: flex;
}
.members_panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px;
	border-bottom: 1px solid #EFF1F4;
}
.members_panel__title {
	font-size: 16px;
	font-weight: 500;
}
.members_panel__close {
	border: none;
	background: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.members_panel__list {
	overflow-y: auto;
	padding: 10px 15px;
}
.members_panel__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #EFF1F4;
}
.members_panel__avatar img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}
.members_panel__name {
	flex: 1;
	font-size: 14px;
}
.members_panel__owner_badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 6px;
	font-size: 11px;
	color: #fff;
	background-color: #3B82F6;
	border-radius: 4px;
}
.members_panel__blocked_badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 6px;
	font-size: 11px;
	color: #fff;
	background-color: #C85E5F;
	border-radius: 4px;
}

/* вложения в форме отправки сообщения */
.room_form__clip_file {
	border: none;
	outline: none;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.room_form__upload_file__wrap {
	display: block;
	width: 100%;
	overflow-x: auto;
	white-space: nowrap;
	padding: 0 15px;
}
.room_form__upload_file {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 5px;
}
.room_form__upload_file:not(:empty) {
	margin-bottom: 8px;
}
.room_form__upload_file__item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	overflow: hidden;
}
.room_form__upload_file__item img,
.room_form__upload_file__item__file {
	height: 60px;
	max-height: 60px;
	border-radius: 4px;
	z-index: 0;
}
.room_form__upload_file__item__file {
	background-color: #F0F1F4;
	width: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
}
.room_form__upload_file__item__remove {
	position: absolute;
	right: 0;
	top: 0;
	width: 18px;
	height: 18px;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

/* вложения в сообщении чата */
.message_item__files {
	display: flex;
	width: 100%;
	justify-content: center;
	align-items: flex-start;
	flex-direction: column;
	gap: 6px;
	margin: 6px 0;
}
.message_item__file_image {
	display: block;
	width: 100%;
	max-width: 260px;
}
.message_item__file_image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}
.message_item__file {
	display: flex;
	width: 100%;
	justify-content: flex-start;
	align-items: center;
	flex-direction: row;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}
.message_item__file_icon {
	flex-shrink: 0;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 50%;
	padding: 6px;
	display: flex;
	justify-content: center;
	align-items: center;
}
.message_item__file_name {
	font-size: 13px;
	font-weight: 500;
	word-break: break-word;
}
