/* GTranslate Dynamic Dropdown for Elementor — base styling.
 * Colours / sizes / spacing are overridden by the Elementor Style controls.
 * Items are GTranslate's own <a data-gt-lang> links, so we style those directly.
 */

/* Hide Google's translate bar + helper iframe (base.js also hides these). */
.goog-te-banner-frame,
.skiptranslate.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
	display: none !important;
}
body {
	top: 0 !important;
}

/* Switcher container */
.gted-switcher {
	position: relative;
	display: flex;
	align-items: center;
	font-family: inherit;
	line-height: 1;
	z-index: 99;
}

/* Trigger button */
.gted-current {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	background: transparent;
	color: #ffffff;
	padding: 8px 12px;
	line-height: 1.2;
	-webkit-user-select: none;
	user-select: none;
}
.gted-current:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.gted-current-inner {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.gted-current-inner a,
.gted-current-inner a:hover {
	color: inherit;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	pointer-events: none; /* trigger handles clicks, not the cloned link */
}

/* Flags (native <img> inside the links) */
.gted-switcher img {
	width: 22px;
	height: 15px;
	object-fit: cover;
	border-radius: 2px;
	display: inline-block;
	vertical-align: middle;
	flex: 0 0 auto;
	margin: 0;
	border: 0;
	max-width: none;
}

/* Chevron */
.gted-chevron {
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	margin-left: 4px;
	transition: transform 0.3s ease;
	flex: 0 0 auto;
}
.gted-switcher.gted-open .gted-chevron {
	transform: translateY(2px) rotate(-135deg);
}

/* Dropdown panel */
.gted-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	min-width: 190px;
	background-color: #1a1a1a;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-12px);
	transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1),
		transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.3s;
	z-index: 100;
}
.gted-switcher.gted-open .gted-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Items = native GTranslate links */
.gted-dropdown a,
.gted-dropdown a.glink {
	display: flex !important;
	align-items: center;
	gap: 14px;
	padding: 11px 24px;
	color: #d1d1d1;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.gted-dropdown a:hover {
	background-color: #262626;
	color: #ffffff;
}
.gted-dropdown a.gt-current-lang {
	color: #c99c5f;
	font-weight: 600;
}
.gted-dropdown a span {
	display: inline;
}

/* Scrollbar (when max-height set) */
.gted-dropdown::-webkit-scrollbar { width: 6px; }
.gted-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 6px; }

/* Keep dropdown on-screen on small viewports */
@media (max-width: 767px) {
	.gted-dropdown { left: 0; right: auto; }
}
