/**
 * GTranslate globe shortcode — live parity (themes/nile header.scss).
 */

/* Elementor header row — keep shortcode inline with siblings */
.nile-gtranslate-shortcode-wrap,
.elementor-widget-shortcode:has(.nile-gtranslate-globe),
.elementor-widget-shortcode:has(.nile-gtranslate-shortcode-wrap) {
	display: inline-flex !important;
	align-items: center;
	align-self: center;
	flex-shrink: 0;
	margin: 0;
	line-height: 0;
	vertical-align: middle;
}

.elementor-widget-shortcode .elementor-shortcode:has(.nile-gtranslate-globe),
.elementor-widget-shortcode .elementor-shortcode:has(.nile-gtranslate-shortcode-wrap) {
	display: inline-flex !important;
	align-items: center;
	align-self: center;
	line-height: 0;
	vertical-align: middle;
	width: auto;
}

.nile-gtranslate-globe {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	align-self: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	min-width: 20px;
	min-height: 20px;
	cursor: pointer;
	vertical-align: middle;
	flex-shrink: 0;
	line-height: 0;
	box-sizing: border-box;
}

/* Live parity: visible globe is an <img> (globe-icon-black.svg desktop, nav-globe.svg mobile). */
.nile-gtranslate-globe-img {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	pointer-events: none;
}

.nile-gtranslate-globe.active .nile-gtranslate-globe-img {
	filter: invert(70%) sepia(98%) saturate(5457%) hue-rotate(319deg) brightness(104%) contrast(107%);
}

.nile-gtranslate-globe .translate-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	overflow: visible;
	line-height: 0;
}

.nile-gtranslate-globe .gtranslate_wrapper {
	display: block;
	width: 20px !important;
	height: 20px !important;
	max-width: 20px;
	line-height: 0;
}

.nile-gtranslate-globe .gt_float_switcher {
	display: block;
	width: 20px !important;
	height: 20px !important;
	max-width: 20px;
	background: transparent;
	box-shadow: none;
	line-height: 0;
}

.nile-gtranslate-globe .gt_float_switcher .gt-selected {
	width: 20px;
	height: 20px;
	opacity: 0;
	z-index: 0;
}

/* Closed menu must not expand the header row */
.nile-gtranslate-globe .gt_float_switcher .gt_options:not(.gt-open) {
	display: none !important;
}

/* Desktop header — light dropdown */
.nile-gtranslate-globe--desktop .gt_float_switcher .gt_options.gt-open {
	display: block !important;
	position: absolute;
	top: 30px;
	right: 0;
	width: 246px;
	background: #fff;
	border-top: 1px solid #fff;
	box-shadow: 0 14px 44px 0 rgba(22, 52, 152, 0.4);
	text-align: center;
	padding-top: 50px;
	overflow-x: auto;
	min-height: 360px;
	z-index: 10001;
}

.nile-gtranslate-globe--desktop .gt_float_switcher .gt_options.gt-open a {
	color: #0e111e;
	font-family: "Inter", sans-serif;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.25px;
	font-size: 25px;
	display: block;
	padding: 0;
	margin-bottom: 40px;
	transition: color 0.3s ease-in-out;
}

.nile-gtranslate-globe--desktop .gt_float_switcher .gt_options.gt-open a img {
	display: none;
}

.nile-gtranslate-globe--desktop .gt_float_switcher .gt_options.gt-open a:hover {
	color: #ee4a59;
	background: transparent;
}

@media (max-width: 1200px) {
	.nile-gtranslate-globe--desktop .gt_float_switcher .gt_options.gt-open a {
		font-size: 20px;
	}
}

/* Mobile / dark header variant */
.nile-gtranslate-globe--mobile .gt_float_switcher .gt_options.gt-open {
	display: block !important;
	position: absolute;
	top: 76px;
	left: -60px;
	width: 246px;
	border: 1px solid #163498;
	background: #262834;
	border-top: 1px solid #fff;
	box-shadow: 0 14px 44px 0 rgba(22, 52, 152, 0.4);
	text-align: center;
	padding: 40px;
	z-index: 10001;
}

.nile-gtranslate-globe--mobile .gt_float_switcher .gt_options.gt-open a {
	color: #fff;
	font-family: "Inter", sans-serif;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.25px;
	font-size: 25px;
	display: block;
	padding-bottom: 30px;
	transition: color 0.3s ease-in-out;
}

.nile-gtranslate-globe--mobile .gt_float_switcher .gt_options.gt-open a img {
	display: none;
}

.nile-gtranslate-globe--mobile .gt_float_switcher .gt_options.gt-open a:hover {
	color: #1e57f7;
	background: transparent;
}

@media (max-width: 1200px) {
	.nile-gtranslate-globe--mobile .gt_float_switcher .gt_options.gt-open {
		top: 44px;
		width: 210px;
	}

	.nile-gtranslate-globe--mobile .gt_float_switcher .gt_options.gt-open a {
		font-size: 18px;
		padding-bottom: 18px;
	}
}

@media (max-width: 991px) {
	.nile-gtranslate-globe--mobile .gt_float_switcher .gt_options.gt-open {
		left: -112px;
	}

	.nile-gtranslate-globe--mobile .gt_float_switcher .gt_options.gt-open a {
		font-size: 20px;
	}
}
