.sgmr-region-selector,
.sgmr-region-selector * {
	box-sizing: border-box;
}

.sgmr-region-selector {
	display: flex;
	align-items: center;
	margin: 0;
	color: #222;
	font-family: inherit;
}

.header-region-bar {
	position: relative;
	z-index: 1002;
	background: #f3f5f7;
	border-bottom: 1px solid #e1e5e9;
	color: #222;
}

.header-region-bar__inner {
	display: flex;
	align-items: center;
	min-height: 40px;
}

.header .header-region-bar .sgmr-region-selector {
	color: #222;
}

.sgmr-region-selector__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	padding: 4px 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 13px;
	line-height: 20px;
	cursor: pointer;
}

.sgmr-region-selector__trigger:focus-visible,
.sgmr-region-modal a:focus-visible,
.sgmr-region-modal button:focus-visible,
.sgmr-region-modal input:focus-visible {
	outline: 2px solid #ff9a00;
	outline-offset: 3px;
}

.sgmr-region-selector__caption {
	color: #666;
}

.sgmr-region-selector__city {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 600;
}

.sgmr-region-selector__city svg {
	width: 15px;
	height: 15px;
	fill: #ff9a00;
	flex: 0 0 auto;
}

.sgmr-region-selector__change {
	padding-left: 8px;
	border-left: 1px solid #cfd4d9;
	color: #555;
}

body.sgmr-region-modal-open {
	overflow: hidden;
}

body.sgmr-region-modal-open #jivo-iframe-container {
	visibility: hidden !important;
}

.sgmr-region-modal[hidden],
.sgmr-region-modal [hidden] {
	display: none !important;
}

.sgmr-region-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483646;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 24px;
	background: rgba(12, 16, 22, 0.62);
	opacity: 1;
	font-family: inherit;
}

.sgmr-region-modal__dialog {
	position: relative;
	width: min(1180px, 100%);
	max-height: calc(100vh - 80px);
	max-height: calc(100dvh - 80px);
	padding: 44px 52px 48px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 8px;
	background: #20242c;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
	color: #fff;
	transform: translateY(12px);
	transition: transform 0.18s ease;
	scrollbar-color: #505865 #20242c;
}

.sgmr-region-modal.is-open .sgmr-region-modal__dialog {
	transform: translateY(0);
}

.sgmr-region-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.sgmr-region-modal__header h2 {
	margin: 0;
	color: #fff;
	font: inherit;
	font-size: 30px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
}

.sgmr-region-modal__close {
	position: relative;
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.sgmr-region-modal__close::before,
.sgmr-region-modal__close::after {
	content: "";
	position: absolute;
	left: 9px;
	top: 17px;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.sgmr-region-modal__close::before {
	transform: rotate(45deg);
}

.sgmr-region-modal__close::after {
	transform: rotate(-45deg);
}

.sgmr-region-modal__close:hover {
	background: #303641;
}

.sgmr-region-modal__search {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	height: 48px;
	margin-bottom: 28px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: #2b313c;
	color: #aeb7c5;
}

.sgmr-region-modal__search:focus-within {
	border-color: #ff9a00;
}

.sgmr-region-modal__search svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	fill: currentColor;
}

.sgmr-region-modal__search input {
	width: 100%;
	height: 46px;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 15px;
	letter-spacing: 0;
}

.sgmr-region-modal__search input:focus-visible {
	outline: 0;
}

.sgmr-region-modal__search input::placeholder {
	color: #8f99a8;
	opacity: 1;
}

.sgmr-region-modal__popular {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 36px;
}

.sgmr-region-modal__popular-link {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #2d3440;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	text-decoration: none;
}

.sgmr-region-modal__popular-link:hover,
.sgmr-region-modal__popular-link.is-current {
	border-color: #ff9a00;
	background: #373f4d;
	color: #fff;
}

.sgmr-region-modal__popular-link.is-current::before {
	content: "";
	width: 7px;
	height: 7px;
	margin-right: 8px;
	border-radius: 50%;
	background: #ff9a00;
}

.sgmr-region-modal__all-title {
	margin-bottom: 20px;
	color: #aeb7c5;
	font-size: 13px;
	font-weight: 500;
	line-height: 18px;
	text-transform: uppercase;
}

.sgmr-region-modal__groups {
	columns: 4 210px;
	column-gap: 52px;
}

.sgmr-region-modal__group {
	display: inline-block;
	width: 100%;
	margin: 0 0 28px;
	break-inside: avoid;
}

.sgmr-region-modal__group h3 {
	margin: 0 0 10px;
	color: #ff9a00;
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: 0;
	text-transform: uppercase;
}

.sgmr-region-modal__group > div {
	display: grid;
	gap: 7px;
}

.sgmr-region-modal__city-link {
	display: block;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	text-decoration: none;
}

.sgmr-region-modal__city-link:hover,
.sgmr-region-modal__city-link.is-current {
	color: #ffb13b;
}

.sgmr-region-modal__empty {
	margin: 20px 0 0;
	color: #fff;
	font-size: 16px;
}

.sgmr-region-selector__fallback {
	padding: 16px;
	background: #fff;
	color: #222;
}

@media (max-width: 900px) {
	.sgmr-region-modal {
		padding: 20px;
	}

	.sgmr-region-modal__dialog {
		max-height: calc(100vh - 40px);
		max-height: calc(100dvh - 40px);
		padding: 34px 30px 38px;
	}

	.sgmr-region-modal__groups {
		columns: 3 180px;
		column-gap: 32px;
	}
}

@media (max-width: 550px) {
	.header-region-bar__inner {
		min-height: 42px;
	}

	.sgmr-region-selector__trigger {
		gap: 6px;
		font-size: 13px;
	}

	.sgmr-region-selector__caption,
	.sgmr-region-selector__change {
		display: none;
	}

	.sgmr-region-modal {
		align-items: stretch;
		padding: 0;
	}

	.sgmr-region-modal__dialog {
		width: 100%;
		max-height: 100vh;
		max-height: 100dvh;
		padding: 24px 20px 32px;
		border-radius: 0;
	}

	.sgmr-region-modal__header {
		align-items: center;
		margin-bottom: 22px;
	}

	.sgmr-region-modal__header h2 {
		font-size: 24px;
	}

	.sgmr-region-modal__search {
		margin-bottom: 20px;
	}

	.sgmr-region-modal__popular {
		flex-wrap: nowrap;
		margin-right: -20px;
		margin-bottom: 28px;
		padding-right: 20px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.sgmr-region-modal__popular::-webkit-scrollbar {
		display: none;
	}

	.sgmr-region-modal__popular-link {
		flex: 0 0 auto;
	}

	.sgmr-region-modal__groups {
		columns: 2 130px;
		column-gap: 28px;
	}
}

@media (max-width: 360px) {
	.sgmr-region-modal__groups {
		columns: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sgmr-region-modal,
	.sgmr-region-modal__dialog {
		transition: none;
	}
}
