.deepl-switcher-globe {
	position: relative !important;
	display: inline-block !important;
	font-family: inherit;

	--deepl-switcher-color: currentColor;
	--deepl-switcher-menu-bg: #fff;
	--deepl-switcher-menu-color: #333;
	--deepl-switcher-menu-hover-bg: #f5f5f5;
	--deepl-switcher-menu-hover-color: inherit;
	--deepl-switcher-menu-active-color: inherit;
	--deepl-switcher-font-size: 12px;
	--deepl-switcher-text-transform: uppercase;
	--deepl-switcher-menu-radius: 4px;
	--deepl-switcher-menu-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/*
 * The switcher gets dropped into arbitrary theme markup (nav bars, footers,
 * widgets) whose own CSS often targets bare `ul`/`li`/`a` selectors broadly
 * within nav/header contexts (resetting position, display, list-style,
 * margin, padding for its own menus), sometimes with !important itself.
 * Every declaration this component actually depends on to render and
 * position correctly — not just its colors/sizing — uses !important here
 * so it keeps working regardless of the surrounding theme. Nothing else in
 * the plugin does this; it's specific to this one self-contained floating
 * component that has to coexist inside someone else's markup.
 */

.deepl-switcher-trigger {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	background: none !important;
	border: 0 !important;
	padding: 4px 2px !important;
	margin: 0 !important;
	cursor: pointer !important;
	color: var(--deepl-switcher-color) !important;
	font: inherit;
	font-size: var(--deepl-switcher-font-size) !important;
	text-transform: var(--deepl-switcher-text-transform) !important;
	letter-spacing: 0.04em;
	line-height: 1 !important;
}

.deepl-switcher-trigger:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.deepl-globe-icon {
	width: 18px !important;
	height: 18px !important;
	flex: 0 0 auto !important;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.4;
	stroke-linecap: round;
}

.deepl-switcher-caret {
	width: 8px !important;
	height: 8px !important;
	flex: 0 0 auto !important;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.2s ease;
}

.deepl-switcher-globe.is-open .deepl-switcher-caret {
	transform: rotate(180deg);
}

.deepl-switcher-menu {
	position: absolute !important;
	top: 100% !important;
	right: 0 !important;
	left: auto !important;
	bottom: auto !important;
	float: none !important;
	margin: 12px 0 0 !important;
	padding: 6px 0 !important;
	list-style: none !important;
	min-width: 150px !important;
	width: max-content !important;
	max-width: 280px !important;
	background: var(--deepl-switcher-menu-bg) !important;
	color: var(--deepl-switcher-menu-color) !important;
	border-radius: var(--deepl-switcher-menu-radius) !important;
	box-shadow: var(--deepl-switcher-menu-shadow) !important;

	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
	z-index: 9999 !important;
}

.deepl-switcher-globe.is-open .deepl-switcher-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.deepl-switcher-menu li {
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	display: block !important;
}

.deepl-switcher-menu a {
	display: block !important;
	float: none !important;
	padding: 8px 18px !important;
	text-decoration: none !important;
	color: var(--deepl-switcher-menu-color) !important;
	font-size: calc(var(--deepl-switcher-font-size) + 1px) !important;
	white-space: nowrap !important;
	text-transform: var(--deepl-switcher-text-transform) !important;
	letter-spacing: 0.03em;
}

.deepl-switcher-menu a:hover,
.deepl-switcher-menu a:focus {
	background: var(--deepl-switcher-menu-hover-bg) !important;
	color: var(--deepl-switcher-menu-hover-color) !important;
}

.deepl-switcher-menu li.deepl-lang-active a {
	font-weight: 300;
	color: var(--deepl-switcher-menu-active-color) !important;
	font-family: Gill Sans, sans-serif;
}

/* Settings-page live preview: force the menu open and drop the fixed
   positioning so it sits inline in the preview box instead of overlaying
   the page. Not used on the real front-end output. */
.deepl-switcher-preview-instance {
	position: static !important;
}
.deepl-switcher-preview-instance .deepl-switcher-menu {
	position: static !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	margin-top: 10px !important;
}
