/* модалки выбора рубрики/специализации (PopUper со style = rubric_modal): плоский список с разделителями,
   в чатах разделы - аккордеон, в каталоге специалистов - ссылки со счётчиками.
   Префикс .rubric_modal нужен, чтобы перебить .popuper button из popuper.css */
.popuper.rubric_modal {
	width: 460px;
	max-width: 94vw;
}
.popuper.rubric_modal .popuper__body {
	padding: 0;
}
.rubric_modal .rubric_modal__list {
	display: flex;
	flex-direction: column;
}
.rubric_modal .rubric_modal__item,
.rubric_modal .rubric_modal__root {
	position: relative;
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 13px 44px 13px 18px;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.3;
	text-align: left;
	color: #242631;
	cursor: pointer;
}
.rubric_modal .rubric_modal__list > .rubric_modal__all,
.rubric_modal .rubric_modal__group {
	border-bottom: 1px solid #e7ebf2;
}
.rubric_modal .rubric_modal__item:hover,
.rubric_modal .rubric_modal__root:hover {
	background: #f5f7fb;
}
.rubric_modal .rubric_modal__all,
.rubric_modal .rubric_modal__root {
	font-weight: 700;
}
.rubric_modal .rubric_modal__root {
	list-style: none;
}
.rubric_modal .rubric_modal__root::-webkit-details-marker {
	display: none;
}
.rubric_modal .rubric_modal__root::after {
	content: '';
	position: absolute;
	right: 20px;
	top: 50%;
	width: 7px;
	height: 7px;
	margin-top: -6px;
	border-right: 2px solid #8795bd;
	border-bottom: 2px solid #8795bd;
	transform: rotate(45deg);
	transition: transform 0.15s;
}
.rubric_modal .rubric_modal__group[open] > .rubric_modal__root {
	background: #f5f7fb;
}
.rubric_modal .rubric_modal__group[open] > .rubric_modal__root::after {
	margin-top: -2px;
	transform: rotate(225deg);
}
/* подрубрики: отступ и вертикальная направляющая слева, без своих плашек */
.rubric_modal .rubric_modal__sub {
	padding-left: 34px;
	font-size: 14px;
	font-weight: 400;
	background: #fff;
}
.rubric_modal .rubric_modal__sub::before {
	content: '';
	position: absolute;
	left: 20px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #e7ebf2;
}
.rubric_modal .rubric_modal__sub:hover {
	background: #f5f7fb;
}
.rubric_modal .rubric_modal__whole {
	color: #0750b9;
}
/* выбранный пункт: акцентная полоса слева и галочка справа */
.rubric_modal .rubric_modal__item--active {
	color: #0750b9;
	font-weight: 700;
}
.rubric_modal .rubric_modal__item--active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #0750b9;
}
.rubric_modal .rubric_modal__item--active::after {
	content: '';
	position: absolute;
	right: 20px;
	top: 50%;
	width: 5px;
	height: 10px;
	margin-top: -7px;
	border-right: 2px solid #0750b9;
	border-bottom: 2px solid #0750b9;
	transform: rotate(45deg);
}
.rubric_modal .rubric_modal__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	text-decoration: none;
}
.rubric_modal .rubric_modal__name {
	flex: 1 1 auto;
	min-width: 0;
}
.rubric_modal .rubric_modal__flag {
	flex: 0 0 auto;
	width: 28px;
	height: auto;
	border-radius: 2px;
	margin-right: -2px;
}
/* подсказка над списком */
.rubric_modal .rubric_modal__hint {
	padding: 12px 18px;
	background: #f1f6ff;
	border-bottom: 1px solid #dbe6fb;
	font-size: 14px;
	line-height: 1.4;
	color: #1d3d78;
}
.rubric_modal .rubric_modal__count {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 400;
	color: #8795bd;
}
.rubric_modal .rubric_modal__item--active .rubric_modal__count {
	color: #0750b9;
}
.rubric_modal .rubric_modal__list > .rubric_modal__item:not(:last-child) {
	border-bottom: 1px solid #e7ebf2;
}
