/* Glevv language switcher — pill button + dropdown, sits in the header (top-right) */
/* Astra makes menu <li> position:relative — that would hijack our absolute dropdown,
   so pin the li back to static and let .glevv-lang be the positioning parent */
li.glevv-lang-item {
	position: static !important;
}

.glevv-lang {
	position: relative !important;
	display: inline-block !important;
	margin-left: 0.35rem;
	vertical-align: middle;
	z-index: 100;
}

.glevv-lang-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.7rem;
	background: #ffffff;
	color: #1f2937 !important;
	border: 1px solid #d7dce3;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.glevv-lang-btn:hover {
	border-color: #9aa4b2;
}

.glevv-lang .gl-flag {
	font-size: 15px;
	line-height: 1;
}

.glevv-lang .gl-caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #6b7280;
	margin-left: 2px;
}

.glevv-lang.gl-open .gl-caret {
	transform: rotate(180deg);
}

.glevv-lang-list {
	position: absolute !important;
	top: calc(100% + 6px) !important;
	right: 0 !important;
	left: auto !important;
	min-width: 168px;
	margin: 0 !important;
	padding: 0.35rem;
	list-style: none;
	background: #ffffff;
	border: 1px solid #e3e8ef;
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(16, 24, 40, 0.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 999;
}

.glevv-lang.gl-open .glevv-lang-list {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.glevv-lang-list li {
	margin: 0;
}

.glevv-lang-list a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.55rem;
	border-radius: 7px;
	color: #1f2937 !important;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}

.glevv-lang-list a:hover {
	background: #f1f5f9;
}

.glevv-lang-list a.gl-active {
	background: #eef2ff;
	color: #2f4bd8 !important;
	font-weight: 600;
}

.glevv-lang-list .gl-flag {
	font-size: 16px;
}

/* inside the mobile drawer */
.ast-mobile-popup-content .glevv-lang-item,
.ast-mobile-popup-content .glevv-lang {
	width: 100%;
}

.ast-mobile-popup-content .glevv-lang-btn {
	width: 100%;
	justify-content: flex-start;
	padding: 0.6rem 0.8rem;
}

.ast-mobile-popup-content .glevv-lang-item {
	margin-bottom: 0.4rem;
}

/* the drawer opens downwards, so keep the panel clear of the menu list */
.ast-mobile-popup-content .glevv-lang {
	z-index: 500;
}

.ast-mobile-popup-content .glevv-lang-list {
	min-width: 100%;
}

/* hide Google's own bar / tooltip / default select */
.goog-te-banner-frame,
.goog-te-menu-frame,
#goog-gt-tt,
.goog-te-gadget-icon,
.goog-logo-link,
#google_translate_element,
#glevv_google_translate_element {
	display: none !important;
}

body {
	top: 0 !important;
}

.skiptranslate {
	display: none !important;
}

/* phones: keep the pill compact */
@media (max-width: 600px) {

	.glevv-lang-btn {
		padding: 0.3rem 0.6rem;
		font-size: 13px;
	}
}
