/* Keep transparent header above hero media on EN/UA home. */
.ast-theme-transparent-header #masthead {
	z-index: 100;
}

.ast-theme-transparent-header .main-header-bar {
	z-index: 100;
}

.fz-lang-switch-wrap {
	position: fixed;
	top: 14px;
	right: 24px;
	z-index: 10050;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin: 0;
	padding: 0;
	width: auto;
	height: auto;
	max-width: none;
	background: transparent !important;
	border: 0;
	box-shadow: none;
	pointer-events: none;
}

.fz-lang-switch {
	display: inline-flex;
	align-items: center;
	margin: 0;
	pointer-events: auto;
}

.fz-lang-switch__list {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fz-lang-switch__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.45);
	background: rgba(15, 23, 42, 0.78);
	color: #f8fafc;
	text-decoration: none !important;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
	backdrop-filter: blur(4px);
}

.fz-lang-switch__link:hover,
.fz-lang-switch__link:focus {
	background: rgba(249, 115, 22, 0.5);
	border-color: #fb923c;
	color: #fff !important;
}

.fz-lang-switch__item.is-current .fz-lang-switch__link {
	background: rgba(249, 115, 22, 0.55);
	border-color: #f97316;
}

.fz-lang-switch__flag {
	display: block;
	width: 20px;
	height: 14px;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
}

@media (max-width: 921px) {
	.fz-lang-switch-wrap {
		top: 12px;
		right: 58px; /* leave room for mobile burger */
	}
	.fz-lang-switch__code {
		display: none;
	}
	.fz-lang-switch__link {
		padding: 7px;
	}
}
