/**
 * Language switcher dropdown — ginitalent.com style (globe + current lang + panel).
 */

body #header-grid ul.nav-ul.gini-lang-ready > li.lang-item {
	display: none !important;
}

body #header-grid .gini-lang-switcher {
	position: relative;
	list-style: none;
}

body #header-grid .gini-lang-switcher > .wrap {
	display: flex;
	align-items: center;
}

body #header-grid .gini-lang-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 8px 10px;
	border: none;
	background: transparent;
	color: var(--gt-primary, #00283c);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	border-radius: 8px;
	transition: background 0.2s ease;
}

body #header-grid .gini-lang-switcher__toggle:hover,
body #header-grid .gini-lang-switcher.is-open .gini-lang-switcher__toggle {
	background: rgba(0, 40, 60, 0.06);
}

body #header-grid .gini-lang-switcher__icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: var(--gt-primary, #00283c);
}

body #header-grid .gini-lang-switcher__icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

body #header-grid .gini-lang-switcher__label {
	white-space: nowrap;
}

body #header-grid .gini-lang-switcher__caret {
	display: inline-flex;
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

body #header-grid .gini-lang-switcher__caret svg {
	display: block;
	width: 12px;
	height: 12px;
}

body #header-grid .gini-lang-switcher.is-open .gini-lang-switcher__caret {
	transform: rotate(180deg);
}

body #header-grid .gini-lang-switcher__panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 1200;
	min-width: 180px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border-radius: 10px;
	box-shadow:
		0 0.125rem 0.375rem rgba(0, 0, 0, 0.04),
		0 0.75rem 1.5rem rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	pointer-events: none;
}

body #header-grid .gini-lang-switcher.is-open .gini-lang-switcher__panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

body #header-grid .gini-lang-switcher__panel .menu-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

body #header-grid .gini-lang-switcher__panel .wrap {
	padding: 0;
}

body #header-grid .gini-lang-switcher__panel a {
	display: block;
	padding: 10px 14px;
	border-radius: 8px;
	color: var(--gt-primary, #00283c) !important;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.15s ease;
}

body #header-grid .gini-lang-switcher__panel a:hover {
	background: rgba(217, 233, 241, 0.65);
}

/* Mobile drawer */
body #header-grid .menu-modal .gini-lang-switcher__panel {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
	box-shadow: none;
	padding: 0 0 0 12px;
	margin-top: 6px;
	min-width: 0;
	display: none;
}

body #header-grid .menu-modal .gini-lang-switcher.is-open .gini-lang-switcher__panel {
	display: block;
}

body #header-grid .menu-modal .gini-lang-switcher__toggle {
	padding-left: 0;
}

@media (max-width: 960px) {
	body #header-grid .header-menu-sidebar .gini-lang-switcher__panel {
		position: static;
		box-shadow: none;
	}
}
