/* GTranslate Elementor Widget — base styles */

.gte-switcher {
	position: relative;
	display: inline-block;
	font-family: inherit;
	z-index: 9999;
}

/* ── Trigger button ─────────────────────────────────────── */
.gte-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	background: transparent;
	border: none;
	padding: 6px 10px;
	color: inherit;
	font: inherit;
	white-space: nowrap;
}

.gte-trigger:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ── Caret ──────────────────────────────────────────────── */
.gte-caret {
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.gte-switcher.gte-open .gte-caret {
	transform: rotate(180deg);
}

/* ── Dropdown panel ─────────────────────────────────────── */
.gte-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	z-index: 99999;
}

.gte-switcher.gte-open .gte-dropdown {
	display: block;
}

/* ── Items ──────────────────────────────────────────────── */
.gte-dropdown a.gte-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	text-decoration: none;
	color: inherit;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.gte-dropdown a.gte-item:hover {
	background-color: #f5f5f5;
}

.gte-dropdown a.gte-item.gte-active {
	background-color: #f0f0f0;
	font-weight: 600;
}

/* ── Flag image ─────────────────────────────────────────── */
.gte-flag {
	width: 20px;
	height: auto;
	display: inline-block;
	flex-shrink: 0;
	vertical-align: middle;
}

/* ── Language label ─────────────────────────────────────── */
.gte-lang-label {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
