/**
 * Окно выбора города — значения с боевого (#modal-select-city в storefront/css/style.css).
 */

.pos-header__city .pos-city-open {
	padding: 0;
	border: 0;
	background: none;
	color: #ffb400;
	font: inherit;
	cursor: pointer;
}
.pos-header__city .pos-city-open:hover,
.pos-header__city .pos-city-open:focus-visible { color: #4fad10; background: none; }

html.pos-citym-open { overflow: hidden; }

.pos-citym {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 10vh 16px 16px;
	background: rgba(255, 255, 255, .8);
	overflow-y: auto;
}
.pos-citym[hidden] { display: none; }
.pos-citym *, .pos-citym *::before, .pos-citym *::after { box-sizing: border-box; }

.pos-citym__dialog {
	position: relative;
	width: 100%;
	max-width: 425px;
	min-height: 340px;
	padding: 20px 40px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 0 24px -2px rgba(120, 119, 120, .3);
	font-family: var(--pos-font-head);
}
.pos-citym__close {
	position: absolute;
	top: 14px;
	right: 18px;
	padding: 0 4px;
	border: 0;
	background: none;
	color: #9c998d;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
}
.pos-citym__close:hover, .pos-citym__close:focus-visible { color: #71a000; background: none; }

.pos-citym__title {
	margin: 10px 0 20px;
	padding: 0 30px 20px 10px;
	border-bottom: 2px solid #f6f3ee;
	color: #71a000;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.6;
	text-transform: uppercase;
}
.pos-citym__sub {
	display: block;
	margin: 0 0 5px;
	padding-left: 10px;
	color: #9a988c;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.6;
	text-transform: uppercase;
}
.pos-citym__search {
	display: flex;
	justify-content: center;
	margin: 0 0 25px;
}
.pos-citym .pos-citym__search input {
	flex: 0 1 248px;
	min-width: 0;
	height: 58px;
	margin: 0;
	padding: 0 15px 0 30px;
	border: 1px solid #9c998d;
	border-radius: 20px 0 0 20px;
	background: #fff;
	color: #2f2620;
	font-size: 16px;
	outline: none;
}
.pos-citym .pos-citym__search input:focus { border-color: #71a000; }
.pos-citym .pos-citym__search button {
	flex: 0 0 96px;
	height: 58px;
	margin: 0 0 0 -1px;
	border: 1px solid #9c998d;
	border-radius: 0 20px 20px 0;
	background: #9c998d;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}
.pos-citym .pos-citym__search button:hover { border-color: #71a000; background: #71a000; }

.pos-citym__list {
	max-height: 300px;
	margin: 0;
	padding: 0 0 10px 20px;
	overflow: auto;
	border-bottom: 2px solid #f6f3ee;
	list-style: none;
}
.pos-citym__list::-webkit-scrollbar { width: 8px; background-color: rgba(209, 209, 209, .3); }
.pos-citym__list::-webkit-scrollbar-thumb { background-color: #9c998d; }
.pos-citym__list li { margin-bottom: 4px; font-size: 14px; line-height: 1.43; }
.pos-citym__list li[hidden] { display: none; }
.pos-citym__list a { color: #9a988c; }
.pos-citym__list a:hover { color: #71a000; }
.pos-citym__list a.is-active { color: #71a000; font-weight: 700; cursor: default; }
.pos-citym__list .is-loading, .pos-citym__list .is-empty { color: #9a988c; }

@media (max-width: 480px) {
	.pos-citym { padding-top: 16px; }
	.pos-citym__dialog { padding: 16px 18px; }
	.pos-citym .pos-citym__search input { height: 48px; padding-left: 16px; }
	.pos-citym .pos-citym__search button { height: 48px; flex-basis: 80px; }
	.pos-citym__list { max-height: 55vh; padding-left: 8px; }
}
