/* Lingomira – language switcher (front end). Override the variables on .lgmr-switcher in your theme. */
.lgmr-switcher {
	--lgmr-color: inherit;
	--lgmr-active: inherit;
	--lgmr-bg: #fff;
	--lgmr-menu-color: #1f2430;
	--lgmr-hover: rgba(0, 0, 0, .05);
	--lgmr-accent: #6d4aff;
	--lgmr-radius: 10px;
	position: relative;
	display: inline-block;
	color: var(--lgmr-color);
	line-height: 1.2;
	font-size: inherit;
}
.lgmr-switcher ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.lgmr-switcher li {
	margin: 0;
	padding: 0;
}
.lgmr-switcher li::before,
.lgmr-switcher li::marker {
	content: none;
}
.lgmr-switcher a {
	color: var(--lgmr-color);
	text-decoration: none;
}
.lgmr-switcher .lgmr-code {
	display: inline;
	min-width: 0;
	height: auto;
	padding: 0;
	background: none;
	border-radius: 0;
	color: inherit;
	font: inherit;
	font-weight: 600;
	letter-spacing: .04em;
}
.lgmr-switcher .lgmr-code + .lgmr-name {
	opacity: .75;
}
.lgmr-switcher .lgmr-current > a {
	color: var(--lgmr-active);
	font-weight: 700;
}
.lgmr-switcher a:focus-visible,
.lgmr-switcher .lgmr-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---------- inline list: EN · SK · DE ---------- */
.lgmr-list ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
.lgmr-list li + li::before {
	content: '';
	display: inline-block;
	width: 1px;
	height: .9em;
	margin: 0 .65em;
	vertical-align: -.1em;
	background: currentColor;
	opacity: .25;
}
.lgmr-list a {
	opacity: .7;
	transition: opacity .15s;
}
.lgmr-list a:hover,
.lgmr-list .lgmr-current > a {
	opacity: 1;
}

/* ---------- pills: segmented control ---------- */
.lgmr-pills ul {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 2px;
	padding: 3px;
	border-radius: 999px;
	background: rgba(127, 127, 127, .14);
}
.lgmr-pills a {
	display: block;
	padding: .38em .85em;
	border-radius: 999px;
	font-size: .9em;
	opacity: .75;
	transition: background .2s, opacity .2s, box-shadow .2s;
}
.lgmr-pills a:hover {
	opacity: 1;
}
.lgmr-pills .lgmr-current > a {
	opacity: 1;
	background: var(--lgmr-bg);
	color: var(--lgmr-menu-color);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .14);
}

/* ---------- dropdown ---------- */
.lgmr-dropdown .lgmr-toggle {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: .45em;
	padding: .35em .1em;
	color: var(--lgmr-color);
	font: inherit;
	font-weight: 600;
}
.lgmr-globe {
	width: 1.05em;
	height: 1.05em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	opacity: .8;
}
.lgmr-caret {
	width: .38em;
	height: .38em;
	margin-left: .1em;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: translateY(-25%) rotate(45deg);
	transition: transform .2s;
	opacity: .7;
}
.lgmr-dropdown:hover .lgmr-caret,
.lgmr-dropdown:focus-within .lgmr-caret {
	transform: translateY(15%) rotate(-135deg);
}
.lgmr-dropdown ul {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 9999;
	min-width: max(100%, 10em);
	margin-top: 6px;
	padding: 6px;
	background: var(--lgmr-bg);
	border: 1px solid rgba(0, 0, 0, .06);
	border-radius: var(--lgmr-radius);
	box-shadow: 0 12px 32px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .06);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px) scale(.98);
	transform-origin: top right;
	transition: opacity .16s, transform .16s, visibility .16s;
}
/* invisible bridge so the menu does not close while the pointer travels to it */
.lgmr-dropdown ul::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -10px;
	height: 10px;
}
.lgmr-dropdown:hover ul,
.lgmr-dropdown:focus-within ul {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.lgmr-dropdown li a {
	display: flex;
	align-items: center;
	gap: .5em;
	padding: .55em .8em;
	border-radius: calc(var(--lgmr-radius) - 4px);
	white-space: nowrap;
	color: var(--lgmr-menu-color);
	transition: background .12s;
}
.lgmr-dropdown li a:hover,
.lgmr-dropdown li a:focus-visible {
	background: var(--lgmr-hover);
	outline: 0;
}
.lgmr-dropdown .lgmr-current > a {
	color: var(--lgmr-menu-color);
}
.lgmr-dropdown .lgmr-current > a::after {
	content: '';
	width: .32em;
	height: .62em;
	margin-left: auto;
	padding-left: 0;
	border-right: 2px solid var(--lgmr-accent);
	border-bottom: 2px solid var(--lgmr-accent);
	transform: translateY(-15%) rotate(45deg);
}
.lgmr-dropdown li a .lgmr-code {
	min-width: 1.7em;
}

/* ---------- floating button ---------- */
.lgmr-floating {
	position: fixed;
	bottom: 20px;
	z-index: 9998;
	font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.lgmr-floating-bottom-right { right: 20px; }
.lgmr-floating-bottom-left { left: 20px; }
.lgmr-floating .lgmr-switcher {
	--lgmr-color: #1f2430;
	padding: 4px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(15, 23, 42, .18), 0 1px 3px rgba(15, 23, 42, .1);
}
.lgmr-floating .lgmr-dropdown .lgmr-toggle { padding: .55em .9em; }
.lgmr-floating .lgmr-list { padding: .55em 1em; }
.lgmr-floating .lgmr-pills ul { background: none; padding: 0; }
.lgmr-floating .lgmr-pills .lgmr-current > a { background: #1f2430; color: #fff; box-shadow: none; }
.lgmr-floating .lgmr-dropdown ul {
	top: auto;
	bottom: 100%;
	margin: 0 0 10px;
	transform-origin: bottom right;
}
.lgmr-floating .lgmr-dropdown ul::before { top: auto; bottom: -10px; }
.lgmr-floating-bottom-left .lgmr-dropdown ul { right: auto; left: 0; transform-origin: bottom left; }

/* ---------- menu items added to a theme menu ---------- */
.lgmr-menu-item .lgmr-code + .lgmr-name { margin-left: .35em; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
	.lgmr-switcher *, .lgmr-switcher *::before, .lgmr-switcher *::after { transition: none !important; }
}
@media print {
	.lgmr-floating { display: none; }
}
