

.sb-city-label {
	display: inline-flex;
	align-items: flex-start;
	gap: 6px;
	margin-right: 14px;
	padding: 4px 8px;
	background: none;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-size: 13px;
	color: var(--ink-soft, #4a4a4a);
	cursor: pointer;
	transition: color .15s, background .15s;
}
.sb-city-label:hover { color: var(--pink, #c2205f); background: var(--paper-soft, #faf8f4); }
.sb-city-label__ic {
	width: 14px;
	height: 14px;
	margin-top: 2px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center/contain no-repeat;
	flex: 0 0 auto;
}
.sb-city-label__txt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	line-height: 1.25;
}
.sb-city-label__lead { font-weight: 400; }
.sb-city-label__txt [data-city-name] { display: block; font-weight: 700; }
.sb-city-label__txt [data-city-name].is-multiline { line-height: 1.12; }
.sb-city-label__txt [data-city-name]::after { content: " \25BE"; font-weight: 400; }

.sb-city[hidden] { display: none; }
.sb-city {
	position: fixed;
	inset: 0;
	z-index: 1002;
	pointer-events: none;
	background: transparent;
}
.sb-city__overlay { display: none; }
.sb-city__box {
	position: fixed;
	top: var(--sb-city-top, 72px);
	left: var(--sb-city-left, 12px);
	width: min(420px, calc(100vw - 24px));
	margin: 0;
	pointer-events: auto;
	background: var(--paper, #fff);
	border: 1px solid #e6e0d8;
	border-radius: 14px;
	padding: 22px 22px 20px;
	box-shadow: 0 16px 44px -20px rgba(0, 0, 0, .35);
	animation: sbCityDrop .18s ease;
}
@keyframes sbCityDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sb-city__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 32px;
	height: 32px;
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	color: var(--ink-mute, #7a7a7a);
	cursor: pointer;
}
.sb-city__close:hover { color: var(--ink, #2d2d2d); }
.sb-city__title {
	font-size: 21px;
	font-weight: 800;
	color: var(--ink, #2d2d2d);
	line-height: 1.25;
}
.sb-city__title [data-city-name] { color: var(--pink, #c2205f); }
.sb-city__sub { margin: 8px 0 0; font-size: 14px; color: var(--ink-mute, #7a7a7a); }
.sb-city__actions { display: flex; gap: 10px; margin-top: 22px; }
.sb-city__yes,
.sb-city__no {
	flex: 1;
	padding: 13px 16px;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background .15s, color .15s, border-color .15s;
}
.sb-city__yes { background: var(--pink, #c2205f); color: #fff; }
.sb-city__yes:hover { background: var(--pink-soft, #e35a92); }
.sb-city__no { background: var(--paper-soft, #faf8f4); color: var(--ink, #2d2d2d); border-color: #e6e0d8; }
.sb-city__no:hover { border-color: var(--pink, #c2205f); color: var(--pink, #c2205f); }
.sb-city__search {
	width: 100%;
	margin: 14px 0 10px;
	padding: 12px 14px;
	border: 1px solid #e6e0d8;
	border-radius: 12px;
	font: inherit;
	font-size: 15px;
}
.sb-city__search:focus { outline: none; border-color: var(--pink, #c2205f); }
.sb-city__list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow: auto; }
.sb-city__opt {
	display: block;
	width: 100%;
	text-align: left;
	padding: 11px 12px;
	background: none;
	border: 0;
	border-radius: 10px;
	font: inherit;
	font-size: 15px;
	color: var(--ink, #2d2d2d);
	cursor: pointer;
}
.sb-city__opt:hover { background: var(--paper-soft, #faf8f4); }
.sb-city__opt.is-active { color: var(--pink, #c2205f); font-weight: 700; }

@media (max-width: 870px) {
	.sb-city-label {
		align-items: center;
	}
	.sb-city-label__ic {
		margin-top: 0;
	}
	.sb-city-label__txt {
		flex-direction: row;
		align-items: center;
		line-height: 1;
	}
	.sb-city-label__lead { display: none; }
	.sb-city-label__txt [data-city-name] {
		display: inline;
		line-height: 1;
	}
	.sb-city-label__txt [data-city-name].is-multiline {
		display: inline-block;
		line-height: 1.12;
		vertical-align: middle;
		text-align: left;
	}
}

@media (max-width: 560px) {
	.sb-city-label { margin-right: 8px; font-size: 12px; }
	.sb-city__box { padding: 24px 18px 20px; }
	.sb-city__actions { flex-direction: column; }

	/* Keep the first-visit confirmation in the document directly below the header. */
	.sb-city[data-city-mode="confirm"] { position: relative; inset: auto; z-index: auto; }
	.sb-city[data-city-mode="confirm"] .sb-city__box {
		position: relative;
		inset: auto;
		width: 100%;
		box-sizing: border-box;
		padding: 7px 44px 7px 14px;
		border: 0;
		border-block-end: 1px solid #e6e0d8;
		border-radius: 0;
		background: var(--paper-soft, #faf8f4);
		box-shadow: none;
		animation: none;
	}
	.sb-city[data-city-mode="confirm"] .sb-city__confirm {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 3px 12px;
	}
	.sb-city[data-city-mode="confirm"] .sb-city__title { font-size: 14px; }
	.sb-city[data-city-mode="confirm"] .sb-city__sub { display: none; }
	.sb-city[data-city-mode="confirm"] .sb-city__actions { flex-flow: row wrap; gap: 6px; margin: 0; }
	.sb-city[data-city-mode="confirm"] .sb-city__actions button {
		flex: 0 0 auto;
		min-height: 34px;
		padding: 4px 10px;
		font-size: 13px;
	}
	.sb-city[data-city-mode="confirm"] .sb-city__close { top: 6px; right: 6px; }
}
