/*
 * Language module styles that do not depend on a language: the language selector, the review banner and the
 * "not available in this language yet" page. Per-language fonts and typography are in packs/<code>/.
 */

/* ---- hide GTranslate's selector on this development copy (the plugin and its settings are untouched) ---- */
.gtranslate_wrapper,
.gt_switcher_wrapper,
[id^="gt-wrapper-"] {
	display: none !important;
}

/* ---- language selector ---- */
.vdl-switcher {
	position: absolute;
	top: 24px;
	right: 16px;
	z-index: 99999;
	display: flex;
	align-items: center;
	font: 500 14px/1.2 'Work Sans', sans-serif;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.vdl-switcher .vdl-opt {
	display: inline-block;
	padding: 5px 10px;
	color: #333;
	text-decoration: none;
	white-space: nowrap;
}
.vdl-switcher .vdl-opt + .vdl-opt {
	border-left: 1px solid #ddd;
}
.vdl-switcher a.vdl-opt:hover,
.vdl-switcher a.vdl-opt:focus {
	background: #fff4e5;
	color: #b34700;
}
.vdl-switcher .vdl-current {
	background: #FF7E00;
	color: #fff;
	cursor: default;
}
.vdl-switcher .vdl-opt.vdl-current:first-child {
	border-radius: 3px 0 0 3px;
}
.vdl-switcher .vdl-opt.vdl-current:last-child {
	border-radius: 0 3px 3px 0;
}
.vdl-switcher .vdl-disabled {
	color: #9a9a9a;
	cursor: not-allowed;
}
.vdl-switcher .vdl-notes {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 3px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}
.vdl-switcher .vdl-soon {
	padding: 2px 8px;
	font-size: 12px;
	color: #6b6b6b;
	background: rgba(255, 255, 255, .92);
	border-radius: 3px;
	white-space: nowrap;
}
/* many languages: a dropdown instead of buttons */
.vdl-switcher--menu {
	display: block;
}
.vdl-switcher--menu summary {
	list-style: none;
	cursor: pointer;
	padding: 5px 10px;
	white-space: nowrap;
}
.vdl-switcher--menu summary::after {
	content: " \25BE";
}
.vdl-switcher--menu ul {
	position: absolute;
	right: -1px;
	top: 100%;
	margin: 2px 0 0;
	padding: 4px 0;
	list-style: none;
	min-width: 100%;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
}
.vdl-switcher--menu li {
	margin: 0;
}
.vdl-switcher--menu .vdl-opt {
	display: block;
	border: 0;
}
@media (max-width: 1024px) {
	.vdl-switcher {
		top: 16px;
	}
}
@media (max-width: 767px) {
	.vdl-switcher {
		top: 10px;
		right: 8px;
		font-size: 13px;
	}
	.vdl-switcher .vdl-opt {
		padding: 4px 8px;
	}
}

/* ---- review banner (translation not yet public) ---- */
.vdl-review-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	background: #fff3c4;
	color: #5a4300;
	border-top: 2px solid #d9b83b;
	padding: 6px 14px;
	font: 13px/1.4 system-ui, sans-serif;
	text-align: center;
	box-shadow: 0 -2px 6px rgba(0, 0, 0, .12);
}

/* ---- notice above a tool that is still English (tool pages available as a frame) ---- */
.vdl-tool-notice {
	background: #e8f1fb;
	color: #1d3b5e;
	border-bottom: 2px solid #8fb4de;
	padding: 8px 16px;
	font: 14px/1.5 system-ui, "Noto Sans Devanagari", sans-serif;
	text-align: center;
}
.vdl-tool-notice a { color: #0b4f9e; font-weight: 600; text-decoration: underline; }

/* ---- "not available in this language yet" page ---- */
.vdl-unavailable-box {
	max-width: 760px;
	margin: 0 auto;
	padding: 56px 20px 72px;
}
.vdl-unavailable-box h1 {
	font-size: 30px;
	margin-bottom: 14px;
}
.vdl-unavailable-box ul {
	margin: 8px 0 0 20px;
}
.vdl-unavailable-box .vdl-en-link {
	display: inline-block;
	margin: 6px 0 22px;
	padding: 8px 16px;
	background: #FF7E00;
	color: #fff;
	border-radius: 4px;
	text-decoration: none;
}
