.locale-nav-item {
	position: relative;
	margin-left: .35rem;
}

.locale-control {
	position: relative;
}

.locale-control summary {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	gap: .45rem;
	padding: .42rem .68rem;
	border: 1px solid #dce5f3;
	border-radius: 9px;
	background: #fff;
	box-shadow: 0 3px 10px rgba(25, 48, 88, .04);
	color: #40516d;
	cursor: pointer;
	font-size: .82rem;
	font-weight: 700;
	list-style: none;
	white-space: nowrap;
}

.locale-control summary::-webkit-details-marker {
	display: none;
}

.locale-control summary::after {
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	content: "";
	transform: rotate(45deg) translateY(-2px);
	transition: transform .18s ease;
}

.locale-control[open] summary::after {
	transform: rotate(225deg) translate(-2px, -1px);
}

.locale-control-mark {
	display: grid;
	width: 20px;
	height: 20px;
	place-items: center;
	border-radius: 50%;
	background: #eaf1ff;
	color: var(--brand);
	font-size: .82rem;
}

.locale-panel {
	position: absolute;
	top: calc(100% + .65rem);
	right: 0;
	z-index: 1060;
	display: grid;
	width: min(290px, calc(100vw - 2rem));
	gap: .42rem;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 16px 38px rgba(25, 48, 88, .16);
	animation: locale-panel-in .18s ease-out both;
}

.locale-panel label {
	margin: .12rem 0 0;
	color: #40516d;
	font-size: .78rem;
	font-weight: 700;
}

.locale-panel select {
	width: 100%;
	min-height: 40px;
	padding: .45rem .6rem;
	border: 1px solid #dce5f3;
	border-radius: 7px;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-size: .88rem;
}

.locale-panel select:focus,
.locale-location-button:focus-visible {
	outline: 3px solid rgba(20, 87, 217, .2);
	outline-offset: 2px;
}

.locale-location-button {
	min-height: 40px;
	margin-top: .2rem;
	border: 1px solid #c9d9f5;
	border-radius: 7px;
	background: #f2f6ff;
	color: var(--brand-dark);
	cursor: pointer;
	font: inherit;
	font-size: .88rem;
	font-weight: 700;
	transition: background-color .18s ease, transform .18s ease;
}

.locale-location-button:hover:not(:disabled) {
	background: #e7efff;
	transform: translateY(-1px);
}

.locale-location-button:disabled {
	cursor: wait;
	opacity: .65;
}

.locale-status {
	min-height: 1.2em;
	margin: 0;
	color: var(--muted);
	font-size: .75rem;
	line-height: 1.35;
}

@keyframes locale-panel-in {
	from { opacity: 0; transform: translateY(-5px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
	.locale-nav-item {
		margin: .4rem 0 0;
	}

	.locale-panel {
		position: static;
		width: 100%;
		margin-top: .5rem;
		box-shadow: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.locale-control summary::after,
	.locale-location-button {
		transition: none;
	}

	.locale-panel {
		animation: none;
	}
}