/* Placeholders while a string is being translated (only when JS is running). */
.vzt-js .vzt-pending {
	color: transparent !important;
	background: linear-gradient(90deg, rgba(127, 127, 127, .12) 25%, rgba(127, 127, 127, .28) 37%, rgba(127, 127, 127, .12) 63%);
	background-size: 400% 100%;
	animation: vzt-shimmer 1.4s ease infinite;
	border-radius: 4px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.vzt-js .vzt-pending * {
	color: transparent !important;
}
@keyframes vzt-shimmer {
	0% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

/* Flag + name (all switcher variants, menus included) */
.vzt-flag {
	display: inline-block;
	flex: none;
	width: 20px;
	height: 15px;
	object-fit: cover;
	overflow: hidden;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
	vertical-align: -2px;
}
.vzt-flag-round {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .18);
	vertical-align: -4px;
}
.vzt-flag + .vzt-name { margin-inline-start: .45em; }
.vzt-menu-item > a, .vzt-switcher a { white-space: nowrap; }

/* Dropdown */
.vzt-switcher {
	--vzt-bg: #fff;
	--vzt-fg: #1e1e1e;
	--vzt-border: rgba(0, 0, 0, .14);
	--vzt-hover: rgba(0, 0, 0, .06);
	position: relative;
	display: inline-block;
	font-size: 14px;
	line-height: 1.4;
}
.vzt-dropdown summary {
	list-style: none;
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}
.vzt-dropdown summary::-webkit-details-marker { display: none; }
.vzt-dropdown summary::after { content: "▾"; margin-inline-start: 6px; opacity: .6; }
.vzt-dropdown ul {
	position: absolute;
	inset-inline-start: 0;
	min-width: 170px;
	max-height: 60vh;
	overflow: auto;
	margin: 6px 0;
	padding: 6px;
	list-style: none;
	background: var(--vzt-bg);
	color: var(--vzt-fg);
	border: 1px solid var(--vzt-border);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
	z-index: 99999;
}
.vzt-dropdown li { margin: 0; padding: 0; }
.vzt-dropdown ul a {
	display: block;
	padding: 6px 10px;
	border-radius: 6px;
	color: inherit !important;
	text-decoration: none !important;
}
.vzt-dropdown ul a:hover { background: var(--vzt-hover); }
.vzt-switcher a[aria-current] { font-weight: 600; }

/* Inline list */
.vzt-list {
	display: inline-flex;
	flex-wrap: wrap;
	gap: .25em .9em;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vzt-list li { margin: 0; padding: 0; }
.vzt-list a { text-decoration: none; opacity: .75; }
.vzt-list a:hover, .vzt-list a[aria-current] { opacity: 1; }

/* Floating */
.vzt-floating { position: fixed; z-index: 99999; color: var(--vzt-fg); }
.vzt-floating.vzt-dropdown summary,
.vzt-floating.vzt-list {
	padding: 8px 14px;
	background: var(--vzt-bg);
	border: 1px solid var(--vzt-border);
	border-radius: 999px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.vzt-floating a { color: var(--vzt-fg) !important; }
.vzt-pos-bottom-right { right: 20px; bottom: 20px; }
.vzt-pos-bottom-left { left: 20px; bottom: 20px; }
.vzt-pos-top-right { right: 20px; top: 20px; }
.vzt-pos-top-left { left: 20px; top: 20px; }
.vzt-pos-bottom-right ul, .vzt-pos-bottom-left ul { bottom: 100%; }
.vzt-pos-bottom-right.vzt-dropdown ul, .vzt-pos-top-right.vzt-dropdown ul { inset-inline-start: auto; inset-inline-end: 0; }
.admin-bar .vzt-pos-top-right, .admin-bar .vzt-pos-top-left { top: 52px; }

/* Inside the block Navigation: inherit the menu look */
.vzt-in-nav { font-size: inherit; color: inherit; }
.vzt-in-nav summary { color: inherit; }
.vzt-in-nav ul { inset-inline-start: auto; inset-inline-end: 0; }
