/* Multilingual Translator switcher styles */

.nte-hidden-gt,
.nte-hidden-gt * {
	display: none !important;
}

/* Hide the Google Translate top banner/iframe that sometimes appears */
body {
	top: 0 !important;
}
.goog-te-banner-frame {
	display: none !important;
}

.nte-switcher {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.nte-lang-btn {
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 13px;
	line-height: 1.2;
	background: #f2f2f2;
	color: #222;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nte-lang-btn:hover {
	background: #e2e2e2;
}

.nte-lang-btn.nte-active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

/* Style: light (default) */
.nte-style-light .nte-lang-btn {
	background: #f2f2f2;
	color: #222;
}

/* Style: dark */
.nte-style-dark .nte-lang-btn {
	background: #2c2c2c;
	color: #f2f2f2;
}
.nte-style-dark .nte-lang-btn:hover {
	background: #3d3d3d;
}
.nte-style-dark .nte-lang-btn.nte-active {
	background: #4a9eff;
	border-color: #4a9eff;
	color: #fff;
}

/* Floating widget */
.nte-floating {
	position: fixed !important;
	z-index: 9999;
	padding: 8px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	/* Default to top-right so the widget still lands correctly
	   even if no nte-pos-* modifier class is present. */
	top: 16px;
	right: 16px;
	bottom: auto;
	left: auto;
}

.nte-style-dark.nte-floating {
	background: rgba(30, 30, 30, 0.95);
}

/* Each position modifier explicitly resets all four offsets so a
   cached/inherited value from another rule can never combine with
   it (e.g. both top and bottom set at once). */
.nte-pos-top-left {
	top: 16px !important;
	left: 16px !important;
	right: auto !important;
	bottom: auto !important;
}
.nte-pos-top-right {
	top: 16px !important;
	right: 16px !important;
	left: auto !important;
	bottom: auto !important;
}
.nte-pos-bottom-left {
	bottom: 16px !important;
	left: 16px !important;
	top: auto !important;
	right: auto !important;
}
.nte-pos-bottom-right {
	bottom: 16px !important;
	right: 16px !important;
	top: auto !important;
	left: auto !important;
}

@media (max-width: 480px) {
	.nte-floating {
		max-width: calc(100vw - 32px);
	}
	.nte-lang-btn {
		padding: 5px 9px;
		font-size: 12px;
	}
}
