/* Филиалы: ЛК «Основное» и чипы на карточке компании.
   Rank Math не затрагивается — только оформление UI. */

.gearmap-branches-hint {
	margin: 16px 0 8px;
	color: #666;
	font-size: 14px;
	line-height: 20px;
}

.gearmap-branches {
	margin: 28px 0 8px;
	padding: 20px 16px 16px;
	border: 1px solid #ececec;
	border-radius: 16px;
	background: #fafafa;
	clear: both;
	overflow: hidden;
}

.gearmap-branches__intro h3 {
	margin: 0 0 8px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 24px;
	color: #333;
}

.gearmap-branches__intro p {
	margin: 0 0 16px;
	color: #666;
	font-size: 14px;
	line-height: 20px;
}

.gearmap-branches__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 12px;
}

.gearmap-branch-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-left: 4px solid #F7941E;
	border-radius: 12px;
	padding: 0;
	margin: 0;
	overflow: hidden;
}

.gearmap-branch-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	background: #fff;
}

.gearmap-branch-card__toggle {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	text-align: left;
	cursor: pointer;
	flex: 1;
	min-width: 0;
	font-family: inherit;
	display: flex;
	flex-direction: column;
	gap: 2px;
	position: relative;
	padding-right: 22px;
}

.gearmap-branch-card__toggle::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid #888;
	border-bottom: 2px solid #888;
	transform: translateY(-70%) rotate(45deg);
	transition: transform .15s ease;
}

.gearmap-branch-card.is-open .gearmap-branch-card__toggle::after {
	transform: translateY(-20%) rotate(-135deg);
}

.gearmap-branch-card__title {
	margin: 0;
	font-size: 16px;
	line-height: 20px;
	font-weight: 700;
	color: #333;
}

.gearmap-branch-card__place {
	font-size: 12px;
	line-height: 16px;
	color: #888;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.gearmap-branch-card__remove {
	border: 0;
	background: transparent;
	color: #c0392b;
	cursor: pointer;
	font-size: 13px;
	padding: 4px 0 4px 8px;
	flex-shrink: 0;
}

.gearmap-branch-card__remove:hover {
	text-decoration: underline;
}

.gearmap-branch-card__body {
	display: none;
	padding: 0 14px 14px;
	border-top: 1px solid #f0f0f0;
}

.gearmap-branch-card.is-open .gearmap-branch-card__body {
	display: block;
}

.gearmap-branch-card__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 0;
}

.gearmap-branch-map-wrap {
	position: relative;
	margin: 0 0 16px;
	border-radius: 8px;
	overflow: hidden;
}

.gearmap-branch-status {
	display: inline-block;
	font-size: 13px;
	color: #2e7d32;
}

.gearmap-branch-status.is-error {
	color: #c0392b;
}

.gearmap-branches__footer {
	clear: both;
	margin: 4px 0 0;
}

.gearmap-branches__add {
	appearance: none;
	display: inline-block;
	float: none;
	margin: 0;
	padding: 10px 18px;
	border-radius: 24px;
	border: 1px solid #F7941E;
	background: #fff;
	color: #F7941E;
	font-family: inherit;
	font-size: 14px;
	line-height: 18px;
	font-weight: 600;
	cursor: pointer;
}

.gearmap-branches__add:hover {
	background: #F7941E;
	color: #fff;
}

#gearmap_branches_wrap + .line {
	clear: both;
	margin-top: 20px;
	padding-top: 8px;
}

#section_community .user .items:has(.community-cities-center) {
	grid-template-columns: minmax(0, 1fr) minmax(180px, 1.2fr) minmax(0, 1fr);
	align-items: center;
}

#section_community .user .items:has(.community-cities-center) .left,
#section_community .user .items:has(.community-cities-center) .right {
	min-width: 0;
	padding-top: 20px;
	padding-bottom: 16px;
	justify-content: center;
	gap: 8px;
}

#section_community .user .items:has(.community-cities-center) .right {
	align-items: flex-end;
}

#section_community .user .items:has(.community-cities-center) .left .user_type {
	margin-top: 0;
}

#section_community .user .items:has(.community-cities-center) .community_mer,
#section_community .user .items:has(.community-cities-center) .socials {
	margin-top: 0;
}

#section_community .user .items:has(.community-cities-center) .socials ul {
	margin-bottom: 0;
}

.community-cities-center {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	min-width: 0;
	padding: 20px 8px 16px;
}

.community-city-chips-wrap {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.community-city-chips-wrap > script {
	display: none;
}

.community-city-chips-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.community-city-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.community-city-chip {
	appearance: none;
	border: 1px solid #F7941E;
	background: #fff;
	color: #F7941E;
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 14px;
	line-height: 18px;
	cursor: pointer;
	font-family: inherit;
}

.community-city-chip:hover,
.community-city-chip.is-active {
	background: #F7941E;
	color: #fff;
}

.community-point-contacts-stack {
	width: 100%;
	margin: 0;
}

.community-point-contacts {
	width: 100%;
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 18px;
	color: #555;
	text-align: center;
}

.community-point-contacts.is-hidden {
	display: none;
}

.community-contact-icons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 4px;
}

.community-contact-reveal {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	border: 1px solid #F7941E;
	background: #fff;
	color: #F7941E;
	border-radius: 999px;
	padding: 6px 12px 6px 8px;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	line-height: 18px;
	text-decoration: none;
}

.community-contact-reveal:hover {
	background: #fff6ec;
}

.community-contact-reveal.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.community-contact-reveal.is-open {
	cursor: default;
	border-color: #ececec;
	background: #fafafa;
	color: #333;
}

.community-contact-reveal.is-open:hover {
	background: #fafafa;
}

.community-contact-reveal__icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	border-radius: 50%;
	background-color: #F7941E;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px 12px;
}

.community-contact-reveal__icon--email {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 7 9-7'/%3E%3C/svg%3E");
}

.community-contact-reveal__icon--phone {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5l3 1.5-1.5 3a15 15 0 0 0 8 8l3-1.5 1.5 3-2.5 2c-7 2.5-15.5-6-13-13z'/%3E%3C/svg%3E");
}

.community-contact-reveal__label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.community-contact-reveal.is-open .community-contact-reveal__label {
	color: #333;
}

.community-point-contacts__place {
	margin: 2px 0 0;
	color: #888;
	font-size: 12px;
	line-height: 16px;
}

#section_community .user .items .left .user_place--branches {
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
}

@media (max-width: 767px) {
	#section_community .user .items:has(.community-cities-center) {
		display: flex;
		flex-direction: column;
		grid-template-columns: none;
	}

	.community-cities-center {
		order: 1;
		padding: 8px 0 16px;
	}

	#section_community .user .items:has(.community-cities-center) .left,
	#section_community .user .items:has(.community-cities-center) .right {
		padding-top: 16px;
		justify-content: flex-start;
	}

	#section_community .user .items:has(.community-cities-center) .left {
		order: 0;
	}

	#section_community .user .items:has(.community-cities-center) .right {
		order: 2;
		align-items: center;
	}

	.community-city-chips {
		justify-content: center;
	}

	.community-city-chip {
		font-size: 12px;
		padding: 6px 12px;
	}

	.gearmap-branches {
		padding: 16px 12px 12px;
	}
}
