
.gg_city > .gg_city_title {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	border-bottom: 1px dashed var(--color-secondary);
	color: var(--href-color-dark);
	font-weight: 600;
	font-size: 16px;
	font-family: var(--font-default);
	line-height: 1.2;
	cursor: pointer;
	padding: 2px 0;
	transition: color 0.2s ease, border-color 0.2s ease;
	position: relative;
}

.gg_city > .gg_city_title:hover {
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.gg_city_chevron {
	transition: transform 0.25s ease;
}

.gg_city_select_active .gg_city_chevron {
	transform: rotate(180deg);
}


/* =============================================
   Тултип автоопределения города
   ============================================= */

.gg_auto_confirm_lbl {
	height: 7px;
	overflow: hidden;
	position: absolute;
	top: -7px;
	left: 40px;
}

.gg_auto_confirm_lbl::before {
	content: '';
	display: block;
	width: 10px;
	height: 10px;
	border: 1px solid var(--border-color);
	background-color: #fff;
	transform: rotate(45deg);
	margin-top: 2px;
}

.gg_auto_confirm_title {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-color);
	margin-bottom: 12px;
	display: flex;
	align-items: center;
}

.gg_auto_confirm_buttons {
	display: flex;
	gap: 8px;
	white-space: nowrap;
}

/* Кнопки тултипа — собственные, не перекрываем глобальный .btn */
.gg-confirm-btn {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-family: var(--font-default);
	font-weight: 600;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.2s ease;
	line-height: 1.4;
}

.gg-confirm-btn--yes {
	background: linear-gradient(344deg, var(--color-primary) 0%, var(--color-secondary) 100%);
	color: #fff;
	border-color: transparent;
}

.gg-confirm-btn--yes:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 136, 204, 0.35);
}

.gg-confirm-btn--other {
	background: #fff;
	color: var(--color-secondary);
	border-color: var(--color-secondary);
}

.gg-confirm-btn--other:hover {
	background: var(--color-secondary);
	color: #fff;
	transform: translateY(-1px);
}

@media screen and (max-width: 768px) {
	#gg_auto_confirm {
		text-align: center;
		margin-top: 4px;
	}

	.gg_auto_confirm_buttons {
		justify-content: center;
	}
}

@media screen and (min-width: 769px) {
	#gg_auto_confirm {
		position: absolute;
		border: 1px solid var(--border-color);
		border-radius: 12px;
		z-index: 12000;
		background-color: #fff;
		padding: 16px 18px 14px;
		margin-top: 10px;
		margin-left: -10px;
		box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
		min-width: 220px;
	}
}


/* =============================================
   Оверлей и попап выбора города
   ============================================= */

div.gg_city_select {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 12100;
}

body.gg_city_select_active {
	overflow: hidden;
}

body.gg_city_select_active .gg_city_select {
	display: block;
}

.gg_city_select_bg {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.gg_city_select_popup {
	max-height: 90vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

div.wrapper div.gg_city_select_bg {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	overflow-y: auto;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 5vh 16px 5vh;
}

.gg_city_select_popup {
	width: 90%;
	margin: 20px auto;
	border-radius: 10px;
	overflow: auto;
	max-width: 1298px;
}

div.wrapper div.gg_city_select_popup {
	width: 100%;
	max-width: 1100px;
	background-color: #fff;
	z-index: 12200;
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
}


/* =============================================
   Шапка модального окна
   ============================================= */

.region-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 28px;
	border-bottom: 1px solid var(--border-color);
	flex-shrink: 0;
	background-color: #fff;
	border-radius: 10px 10px 0 0;
}

.region-modal-header__left {
	display: flex;
	align-items: center;
}

.region-modal-header__title {
	font-size: 20px;
	font-weight: 700;
	color: var(--text-color);
	line-height: 1.3;
}

.region-modal-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--color-bg-grey);
	border: 1px solid var(--border-color);
	color: var(--text-color);
	cursor: pointer;
	flex-shrink: 0;
	transition: background-color 0.2s ease, transform 0.25s ease, color 0.2s ease;
	padding: 0;
	line-height: 1;
}

.region-modal-close:hover {
	background-color: #fee2e2;
	border-color: #fca5a5;
	color: #dc2626;
	transform: rotate(90deg);
	z-index: 0;
}

.region-modal-close svg,
.region-modal-close path {
	pointer-events: none;
}

/* =============================================
   Блок поиска
   ============================================= */

.region-modal-search {
	padding: 20px 28px 0;
	flex-shrink: 0;
	background-color: #fff;
}

.input-city {
	position: relative;
}

.input-city__icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-gray-color);
	pointer-events: none;
	z-index: 1;
}

/* Обёртка .input нужна JS — не трогаем, скрываем визуально через contents */
.input-city .input {
	display: contents;
}

.input-city input {
	width: 100%;
	padding: 11px 16px 11px 42px;
	border: 1.5px solid var(--border-color);
	border-radius: 12px;
	font-size: 15px;
	font-family: var(--font-default);
	color: var(--text-color);
	background-color: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
	box-sizing: border-box;
}

.input-city input:focus {
	border-color: var(--color-secondary);
	box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.12);
}

.input-city input::placeholder {
	color: var(--text-gray-color);
	font-size: 14px;
}


/* =============================================
   Быстрые варианты городов
   ============================================= */

.variants {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	padding-bottom: 4px;
}

.variants__label {
	font-size: 13px;
	color: var(--text-gray-color);
	font-weight: 500;
}

/* Совместимость со старым .variants span (JS кликает по [data-city-id]) */
.gg_city_select_popup .variants span,
.variants__item {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	color: var(--color-secondary);
	border: 1.5px solid rgba(0, 136, 204, 0.3);
	border-radius: 20px;
	padding: 4px 13px;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	background-color: rgba(0, 136, 204, 0.05);
	line-height: 1.4;
	/* Сброс старого стиля */
	margin-left: 0;
	border-bottom-style: solid;
}

.gg_city_select_popup .variants span:hover,
.variants__item:hover {
	background-color: var(--color-secondary);
	border-color: var(--color-secondary);
	color: #fff;
}


/* =============================================
   Список городов по округам
   ============================================= */

.gg_city_select_popup .list {
	background-color: var(--color-bg-grey);
	padding: 20px 20px 8px;
	overflow-y: auto;
	flex: 1;
}

.regions-grid {
	gap: 0;
}

.region-col {
	padding: 6px;
	display: flex;
	flex-direction: column;
}

.region-col--wide {
	width: 100%;
}

.region-col--narrow {
	width: 100%;
	flex-direction: row;
	flex-wrap: wrap;
}

.region-col--narrow .region-card {
	flex: 1 1 200px;
}

@media (min-width: 768px) {
	.region-col--wide {
		width: 33.333%;
	}
	.region-col--narrow {
		width: 66.666%;
		flex-direction: row;
		flex-wrap: wrap;
		align-content: flex-start;
	}
	.region-col--narrow .region-card {
		flex: 1 1 calc(50% - 24px);
	}
}

@media (min-width: 1024px) {
	.region-col--narrow .region-card {
		flex: 1 1 calc(33% - 24px);
	}
}

.region-card {
	background-color: #fff;
	border-radius: 14px;
	padding: 16px 18px;
	margin: 6px;
	box-shadow: 0 2px 16px var(--box-shadow-color);
	transition: box-shadow 0.25s ease;
	flex: 1;
}

.region-card:hover {
	box-shadow: 0 6px 24px rgba(0, 136, 204, 0.18);
}
/* Скрытая часть номера */
.phone-hidden-part {
	display: none;
}

/* Маска — точки */
.phone-mask {
	display: inline;
	opacity: 0.5;
	letter-spacing: 1px;
}

/* Когда номер раскрыт (класс вешается JS-ом) */
#dphones.phone-revealed .phone-hidden-part {
	display: inline;
}

#dphones.phone-revealed .phone-mask {
	display: none;
}
.region-card__title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--color-primary);
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1.5px solid var(--color-bg-second);
}

.gg_city_select_popup .list ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.gg_city_select_popup .list li {
	line-height: 1;
	margin-bottom: 1px;
}

/* span внутри li — кнопки выбора города (JS слушает [data-city-id]) */
.gg_city_select_popup .list li span {
	display: inline-block;
	width: 100%;
	font-size: 14px;
	color: var(--text-color);
	padding: 6px 10px;
	border-radius: 7px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
	/* Сброс старых стилей */
	border-bottom: none !important;
	margin-left: 0;
}

.gg_city_select_popup .list li span:hover {
	background-color: var(--color-bg-second);
	color: var(--color-primary);
}

/* Активный город */
.gg_city_select_popup .list li.active span {
	background-color: var(--color-secondary);
	color: #fff;
	font-weight: 600;
}

.gg_city_select_popup .list li.active span:hover {
	background-color: var(--color-primary);
	color: #fff;
}

/* Совместимость с динамически подгружаемым списком (ggLocationSelect) */
.gg_city_select_popup .list li.active > div {
	background-color: var(--color-secondary);
	border-radius: 7px;
	color: #fff;
}

.gg_city_select_popup .list li > div {
	padding: 0 8px;
	border-radius: 7px;
	transition: background-color 0.15s ease;
}

.gg_city_select_popup .list li .location-name {
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 7px;
	transition: background-color 0.15s ease;
	display: inline-block;
	width: 100%;
}

.gg_city_select_popup .list li .location-name:hover {
	background-color: var(--color-bg-second);
}

.gg_city_select_popup .list li .location-name span {
	border-bottom: 1px dotted var(--color-secondary);
	width: auto;
	padding: 0;
}

.gg_city_select_popup .list li .location-name:hover span {
	border-bottom-style: solid;
}

.gg_city_select_popup .list li.active .location-name span {
	border-bottom: none;
}

.gg_city_select_popup .list li.header {
	color: var(--text-gray-color);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 4px 8px;
	pointer-events: none;
}


/* =============================================
   Футер модального окна
   ============================================= */

.gg_city_select_popup .filial {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	padding: 14px 28px;
	border-top: 1px solid var(--border-color);
	background-color: #fff;
	flex-shrink: 0;
}

.gg_city_select_popup .filial a {
	font-size: 13px;
	color: var(--text-gray-color);
	text-decoration: none;
	border-bottom: 1px dashed var(--text-gray-color);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.gg_city_select_popup .filial a:hover {
	color: var(--color-secondary);
	border-color: var(--color-secondary);
}


/* =============================================
   Autocomplete jQuery UI
   ============================================= */

.gg_autocomplete {
	z-index: 12300 !important;
	border-radius: 10px !important;
	border: 1px solid var(--border-color) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10) !important;
	padding: 4px 0 !important;
	font-family: var(--font-default) !important;
	font-size: 14px !important;
}

.gg_autocomplete .ui-menu-item-wrapper {
	padding: 8px 16px !important;
	transition: background-color 0.15s ease !important;
}

.gg_autocomplete .ui-menu-item-wrapper.ui-state-active {
	background: var(--color-bg-second) !important;
	color: var(--color-primary) !important;
	border: none !important;
	margin: 0 !important;
}


/* =============================================
   Прочие компоненты (forf, geobranda) — без изменений
   ============================================= */

.geobranda {}

.forf {
	border: 1px solid var(--border-color);
	border-radius: 10px;
	overflow: hidden;
}

.forf p {
	font-size: 15px;
	color: var(--text-color);
	background-color: var(--color-bg-grey);
	padding: 10px 14px;
	margin-bottom: 0;
	font-weight: 600;
}

.forf ul {
	font-size: 14px;
	color: var(--text-color);
	background-color: #fff;
	padding: 10px;
	list-style: none;
	margin: 0;
}

.forf li {
	color: var(--color-secondary);
	padding: 3px 10px;
}

.forf span {
	border-bottom: 1px dotted var(--color-secondary);
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.forf span:hover {
	border-bottom-style: solid;
}


/* =============================================
   Адаптив — мобильный bottom sheet
   ============================================= */

@media screen and (max-width: 575px) {
	div.wrapper div.gg_city_select_bg {
		align-items: flex-end;
		padding: 0;
	}

	div.wrapper div.gg_city_select_popup {
		max-width: 100%;
		border-radius: 20px 20px 0 0;
		max-height: 90vh;
		overflow-y: auto;
	}

	.region-modal-header {
		padding: 16px 18px;
	}

	.region-modal-search {
		padding: 14px 18px 0;
	}

	.gg_city_select_popup .list {
		padding: 14px 10px 6px;
	}

	.gg_city_select_popup .filial {
		padding: 12px 18px;
	}
}

@media screen and (max-width: 767px) {
	.region-modal-header__title {
		font-size: 17px;
	}
}