/* Real Time Translator - Frontend */

#rtt-language-bar {
	position: fixed;
	top: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 13px;
}

#rtt-language-bar.rtt-position-top-left {
	left: 0;
	border-radius: 0 0 8px 0;
}

#rtt-language-bar.rtt-position-top-right {
	right: 0;
	border-radius: 0 0 0 8px;
}

#rtt-language-bar.rtt-position-top-full {
	left: 0;
	right: 0;
	justify-content: center;
	border-radius: 0;
}

#rtt-language-bar.rtt-position-floating-bottom-right {
	top: auto;
	bottom: 20px;
	right: 20px;
	left: auto;
	border-radius: 30px;
	padding: 8px 12px;
}

.rtt-flag-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: #333;
	opacity: 0.55;
	transition: opacity 0.15s ease, transform 0.15s ease;
	line-height: 1;
}

.rtt-flag-item:hover {
	opacity: 1;
	transform: translateY(-1px);
	color: #333;
}

.rtt-flag-item.rtt-active,
.rtt-flag-item.rtt-source.rtt-active {
	opacity: 1;
}

.rtt-flag-item .fi {
	width: 20px;
	height: 20px;
	line-height: 20px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	display: inline-block;
}

#rtt-language-bar.rtt-style-square .rtt-flag-item .fi {
	border-radius: 2px;
}

#rtt-language-bar.rtt-style-shadow .rtt-flag-item .fi {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	border-radius: 50%;
}

.rtt-lang-name {
	font-size: 12px;
	white-space: nowrap;
}

/* Ocultar la interfaz nativa de Google Translate */
#google_translate_element,
.goog-te-gadget {
	display: none !important;
}

.goog-te-banner-frame.skiptranslate {
	display: none !important;
}

body {
	top: 0 !important;
}

.goog-text-highlight {
	background-color: transparent !important;
	box-shadow: none !important;
}

@media (max-width: 600px) {
	#rtt-language-bar {
		gap: 6px;
		padding: 6px 10px;
	}
	.rtt-lang-name {
		display: none;
	}
}
