/* ============================================================
   Google Website Translator — fejléc widget
   ============================================================ */

/* A Google által a lap tetejére szúrt sárga infó-sáv elrejtése,
   különben lenyomja a teljes tartalmat betöltéskor.
   FONTOS: csak a banner-iframe-et célozzuk (.goog-te-banner-frame) —
   a `.skiptranslate` class-t a Google a lenyíló nyelvmenü iframe-jén
   IS használja, egy `body > .skiptranslate{display:none}` szabály
   ezért véletlenül a menüt is elrejtette volna. */
.goog-te-banner-frame {
	display: none !important;
}
body {
	top: 0 !important;
	position: static !important;
}

#google_translate_element {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	vertical-align: middle;
	line-height: 1;
}

/* --- GTranslate "float" (inline) nyelvválasztó felülírása ---
   Az ID-s szelektorok erősebbek a plugin által injektált CSS-nél.
   A lenyíló lista abszolút pozícióval, lefelé nyílik, így nem
   növeli meg a felső sáv magasságát és nem tolja el az oldalt. */
#google_translate_element #gt_float_wrapper {
	position: relative;
}

#google_translate_element .gt_float_switcher {
	position: relative;
	display: block;
	overflow: visible;
	background: transparent;
	box-shadow: none;
	border-radius: 999px;
	font-family: var(--ff, "Jost", sans-serif);
	font-size: 1.3rem;
	line-height: 1;
	color: #fff;
}

#google_translate_element .gt_float_switcher img {
	width: 20px;
	height: 14px;
	margin: 0;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
}

/* Aktuális nyelv – pill gomb */
#google_translate_element .gt_float_switcher .gt-selected {
	background: transparent;
	border-radius: 999px;
	overflow: visible;
}

#google_translate_element .gt_float_switcher .gt-selected .gt-current-lang {
	display: flex;
	align-items: center;
	gap: .7rem;
	padding: .6rem 1.1rem .6rem 1rem;
	border: 1px solid rgba(240, 203, 136, .45);
	border-radius: 999px;
	color: #fff;
	font-weight: 500;
	letter-spacing: .08em;
	transition: border-color .25s ease, background-color .25s ease;
}

#google_translate_element .gt_float_switcher .gt-selected:hover .gt-current-lang {
	border-color: #f0cb88;
	background-color: rgba(240, 203, 136, .1);
}

#google_translate_element .gt_float_switcher .gt-selected .gt-current-lang span.gt-lang-code {
	top: 0;
}

#google_translate_element .gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow {
	width: 10px;
	height: 10px;
	background-size: 9px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 285 285'><path d='M282 76.5l-14.2-14.3a9 9 0 0 0-13.1 0L142.5 174.4 30.3 62.2a9 9 0 0 0-13.2 0L3 76.5a9 9 0 0 0 0 13.1l133 133a9 9 0 0 0 13.1 0l133-133a9 9 0 0 0 0-13z' style='fill:%23f0cb88'/></svg>");
	transform: rotate(0deg);
}

#google_translate_element .gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow.gt_arrow_rotate {
	transform: rotate(180deg);
}

/* Lenyíló lista */
#google_translate_element .gt_float_switcher .gt_options {
	position: absolute;
	top: calc(100% + .8rem);
	right: 0;
	z-index: 100000;
	width: 22rem;
	max-width: calc(100vw - 3rem) !important;
	max-height: 32rem;
	overflow-y: auto;
	padding: .6rem;
	background: #12332c;
	border: 1px solid rgba(240, 203, 136, .3);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .2s ease, transform .2s ease;
	scrollbar-width: thin;
	scrollbar-color: rgba(240, 203, 136, .5) transparent;
}

#google_translate_element .gt_float_switcher .gt_options.gt-open {
	opacity: 1;
	transform: translateY(0);
}

#google_translate_element .gt_float_switcher .gt_options::-webkit-scrollbar-track {
	background-color: transparent;
}

#google_translate_element .gt_float_switcher .gt_options::-webkit-scrollbar-thumb {
	background-color: rgba(240, 203, 136, .5);
	border-radius: 4px;
}

#google_translate_element .gt_float_switcher .gt_options a {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .9rem 1.2rem;
	border-radius: 8px;
	color: #fff;
	font-size: 1.4rem;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease;
}

#google_translate_element .gt_float_switcher .gt_options a:hover,
#google_translate_element .gt_float_switcher .gt_options a:focus-visible {
	background: rgba(240, 203, 136, .12);
	color: #ffe5be;
	outline: none;
}

/* Mobilon a hamburger ikon a jobb felső sarokban van – ne takarja */
@media (max-width: 768px) {
	#google_translate_element {
		margin-right: 4.5rem;
	}
}
