.city-selector {
	display: inline-flex;
	align-items: center;
}

.city-selector a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 32px;
	color: #d7d7d7;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.city-selector a:hover,
.city-selector a:focus {
	color: #fff;
	text-decoration: none;
}

.city-selector .fa {
	color: #ff5a1f;
	font-size: 16px;
}

body.city-modal-open {
	overflow: hidden;
}

.city-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 9998;
	display: none;
	background: rgba(12, 18, 28, .48);
}

.city-modal-backdrop.is-open {
	display: block;
}

#modal.city-modal {
	position: fixed;
	top: 96px !important;
	left: 50%;
	right: auto;
	z-index: 9999;
	display: none;
	visibility: hidden;
	width: min(520px, calc(100vw - 32px));
	max-width: calc(100vw - 32px);
	max-height: none;
	padding: 0;
	margin: 0;
	overflow: visible;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transform: translateX(-50%);
}

#modal.city-modal.is-open {
	display: block;
	visibility: visible;
}

#modal.city-modal .modal-content {
	width: 100%;
	max-width: none;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

#modal.city-modal .modal-close {
	position: absolute;
	top: -14px;
	right: -14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	color: #6b7280;
	font-size: 26px;
	line-height: 1;
	text-decoration: none;
	background: #f3f4f6;
	border-radius: 50%;
	box-shadow: 0 8px 22px rgba(15, 23, 42, .18);
}

#modal.city-modal .modal-close:hover,
#modal.city-modal .modal-close:focus {
	color: #1f2937;
	background: #e5e7eb;
	text-decoration: none;
}

.city-confirm,
.city-picker {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 18px 55px rgba(15, 23, 42, .24);
}

.city-confirm {
	padding: 20px;
}

.city-confirm__label {
	margin: 0 0 6px;
	color: #ff5a1f;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.city-confirm__title {
	margin: 0;
	color: #111827;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: 0;
}

.city-confirm__text {
	margin: 6px 0 0;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.4;
}

.city-confirm__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.city-confirm__actions .btn {
	min-height: 42px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 700;
	border-radius: 4px;
}

.city-picker {
	padding: 8px;
}

.city-search {
	position: relative;
}

.city-search__icon {
	position: absolute;
	top: 50%;
	left: 14px;
	color: #9ca3af;
	font-size: 15px;
	transform: translateY(-50%);
	pointer-events: none;
}

.city-search__input {
	width: 100%;
	height: 52px;
	padding: 0 16px 0 42px;
	color: #111827;
	font-size: 16px;
	background: #fff;
	border: 0;
	border-radius: 6px;
	box-sizing: border-box;
}

.city-search__input:focus {
	box-shadow: 0 0 0 2px rgba(255, 90, 31, .34);
	outline: none;
}

.city-results {
	max-height: min(330px, calc(100vh - 190px));
	margin-top: 8px;
	overflow-y: auto;
	background: #fff;
	border: 0;
	border-radius: 6px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
}

.city-results-list {
	padding: 6px;
	margin: 0;
	list-style: none;
}

.city-result-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 48px;
	padding: 9px 10px;
	color: #111827;
	text-align: left;
	background: #fff;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.city-result-item:hover,
.city-result-item:focus,
.city-result-item.is-active {
	background: #fff3ed;
	outline: none;
}

.city-result-item__name {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

.city-result-item__region {
	display: block;
	margin-top: 2px;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.25;
}

.city-result-item .fa {
	flex: 0 0 auto;
	color: #ff5a1f;
	opacity: 0;
}

.city-result-item:hover .fa,
.city-result-item:focus .fa,
.city-result-item.is-active .fa {
	opacity: 1;
}

.city-results__state {
	padding: 18px;
	margin: 0;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.45;
	text-align: center;
}

@media (max-width: 575.98px) {
	#modal.city-modal {
		top: 16px !important;
		left: 12px;
		right: 12px;
		width: auto;
		max-width: none;
		transform: none;
	}

	#modal.city-modal .modal-close {
		top: 64px;
		right: 10px;
		width: 30px;
		height: 30px;
		font-size: 22px;
	}

	.city-confirm {
		padding: 18px;
	}

	.city-confirm__title {
		font-size: 20px;
	}

	.city-confirm__actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.city-confirm__actions .btn {
		width: 100%;
	}

	.city-results {
		max-height: calc(100vh - 100px);
	}
}
