.eupj-menu-language-switcher {
	display: flex;
	align-items: center;
	overflow: visible !important;
	list-style: none;
}

.eupj-language-switcher {
	display: inline-flex;
	align-items: center;
	position: relative;
	z-index: 30;
	min-height: 42px;
}

/* Shortcode ma zachowywać się jak element menu, nawet jeśli w ustawieniach
   GTranslate wybrano wygląd zbliżony do przełącznika pływającego. */
.eupj-language-switcher .gt_float_switcher,
.eupj-language-switcher .gt_switcher_wrapper,
.eupj-language-switcher .gtranslate_wrapper {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	margin: 0 !important;
	z-index: 40 !important;
}

/* Lista GTranslate jest domyślnie elementem układu. Po rozwinięciu zwiększałaby
   wysokość menu Woodmart i przesuwała cały nagłówek. */
.eupj-language-switcher .gt_float_switcher {
	overflow: visible !important;
	width: 96px !important;
	border-radius: 7px !important;
	font-size: 16px !important;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12) !important;
	transition: none !important;
}

.eupj-language-switcher .gt_float_switcher .gt-selected,
.eupj-language-switcher .gt_float_switcher .gt-current-lang {
	width: 100% !important;
	box-sizing: border-box !important;
}

.eupj-language-switcher .gt_float_switcher .gt-current-lang {
	display: flex !important;
	align-items: center;
	gap: 6px;
	padding: 9px 10px !important;
	font-size: 16px !important;
	line-height: 22px !important;
	text-transform: uppercase;
}

.eupj-language-switcher .gt_float_switcher .gt-current-lang img,
.eupj-language-switcher .gt_float_switcher .gt_options img {
	width: 28px !important;
	height: 21px !important;
	margin: 0 !important;
}

.eupj-language-switcher .gt_float_switcher .gt_float_switcher-arrow {
	margin-left: auto !important;
}

.eupj-language-switcher .gt_float_switcher .gt_options {
	position: absolute !important;
	top: calc(100% + 6px) !important;
	right: 0 !important;
	bottom: auto !important;
	left: auto !important;
	width: 100% !important;
	min-width: 100%;
	max-width: none;
	border-radius: 7px !important;
	background: #fff !important;
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.14) !important;
	overflow: hidden !important;
	transform: none !important;
	transition: none !important;
	z-index: 9999 !important;
}

.eupj-language-switcher .gt_float_switcher .gt_options a {
	display: flex !important;
	align-items: center;
	gap: 6px;
	width: 100% !important;
	min-height: 40px;
	padding: 9px 10px !important;
	box-sizing: border-box !important;
	font-size: 0 !important;
	line-height: 22px !important;
	white-space: nowrap;
}

.eupj-language-switcher .gt_float_switcher .gt_options a::after {
	content: attr(data-gt-lang);
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
	text-transform: uppercase;
}

.eupj-language-switcher select,
.eupj-language-switcher .gt_selector,
.eupj-language-switcher .gt_selected a {
	min-height: 42px;
	box-sizing: border-box;
	border-radius: 7px !important;
}

.eupj-hidden-original-switcher {
	display: none !important;
}

#eupj-language-switcher-fallback[hidden] {
	display: none !important;
}

.eupj-mobile-language-source {
	display: none !important;
}

.eupj-mobile-bar-language-switcher {
	display: none;
}

@media (max-width: 1024px) {
	.whb-mobile-right {
		overflow: visible !important;
	}

	.eupj-mobile-bar-language-switcher {
		display: flex;
		align-items: center;
		flex: 0 0 auto;
		margin-right: 6px;
		position: relative;
		z-index: 100;
		overflow: visible;
	}

	.eupj-mobile-bar-language-switcher .eupj-language-switcher {
		width: auto;
		min-height: 38px;
	}

	.eupj-mobile-bar-language-switcher .gt_float_switcher {
		width: 78px !important;
	}

	.eupj-mobile-bar-language-switcher .gt_float_switcher .gt-current-lang,
	.eupj-mobile-bar-language-switcher .gt_float_switcher .gt_options a {
		gap: 4px;
		padding: 7px 8px !important;
	}

	.eupj-mobile-bar-language-switcher .gt_float_switcher .gt-current-lang img,
	.eupj-mobile-bar-language-switcher .gt_float_switcher .gt_options img {
		width: 24px !important;
		height: 18px !important;
	}
}

@media (max-width: 782px) {
	.eupj-menu-language-switcher,
	.eupj-language-switcher {
		width: 100%;
	}

	.eupj-language-switcher {
		justify-content: flex-start;
	}

	.eupj-language-switcher .gt_float_switcher .gt_options {
		right: auto !important;
		left: 0 !important;
	}

	.eupj-mobile-bar-language-switcher .gt_float_switcher .gt_options {
		right: 0 !important;
		left: auto !important;
	}
}
