/**
 * Google Language Translator — Ecorahi Hindi / English toggle.
 */

body.ecorahi-lang-toggle {
	--ecorahi-lang-offset: 0px;
}

#glt-translate-trigger {
	position: fixed !important;
	left: auto !important;
	right: 20px !important;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px) + var(--ecorahi-lang-offset)) !important;
	top: auto !important;
	margin: 0 !important;
	z-index: 199990 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px !important;
	border-radius: 999px !important;
	font-family: Nunito, Lato, sans-serif !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	color: #fff !important;
	text-shadow: none !important;
	text-decoration: none !important;
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
	box-shadow: 0 10px 28px rgba(23, 54, 40, 0.28) !important;
	background: linear-gradient(135deg, var(--ecorahi-green, #1f6b4a) 0%, var(--ecorahi-teal, #2b7a78) 100%) !important;
	box-sizing: border-box !important;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
	pointer-events: auto;
}

#glt-translate-trigger:hover,
#glt-translate-trigger:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(23, 54, 40, 0.34) !important;
	filter: brightness(1.04);
	outline: none;
}

#glt-translate-trigger.pressed,
#glt-translate-trigger:active {
	transform: translateY(0);
	filter: brightness(0.98);
}

#glt-translate-trigger > span {
	display: inline-flex !important;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	color: #fff !important;
	font-size: 0 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
}

#glt-translate-trigger > span::before {
	content: "";
	width: 16px;
	height: 16px;
	flex: none;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center / contain no-repeat;
}

#glt-translate-trigger > span::after {
	content: "हिंदी";
	font-size: 13px;
	font-weight: 700;
}

#glt-translate-trigger[data-ecorahi-lang-label="Hindi"] > span::after {
	content: "हिंदी";
}

#glt-translate-trigger[data-ecorahi-lang-label="English"] > span::after {
	content: "English";
}

body.ecorahi-lang-toggle .tool-container {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

body.ecorahi-lang-toggle a.scrollToTop {
	bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
	right: 18px !important;
	z-index: 199989 !important;
}

@media (max-width: 991.98px) {
	body.ecorahi-lang-toggle {
		--ecorahi-lang-offset: 0px;
	}

	body.ecorahi-lang-toggle:not(.ecorahi-home-page) {
		padding-bottom: 0;
	}

	#glt-translate-trigger {
		left: auto !important;
		right: 14px !important;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
		min-height: 38px;
		padding: 0 12px !important;
		z-index: 199990 !important;
	}

	body.ecorahi-lang-toggle a.scrollToTop {
		bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
		right: 14px !important;
	}

	body.ecorahi-home-page.ecorahi-lang-toggle #glt-translate-trigger {
		left: 14px !important;
		right: auto !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	#glt-translate-trigger {
		transition: none;
	}
}
