
.pll-switcher {
	box-sizing: border-box;
	display: block;
	width: 100%;
}

.pll-switcher ul {
	line-height: normal;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pll-switcher li {
	margin: 0;
}

.pll-layout-dropdown, .pll-switcher-inner {
	align-items: center;
	background-color: inherit;
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
}

.pll-switcher-inner {
	box-sizing: border-box;
	gap: 0;
	padding: 0 .25em;
	position: relative;
	width: fit-content;
}

.pll-switcher .pll-switcher-inner > a {
	color: inherit;
	max-width: none;
	padding: .25em;
	text-decoration: none;
	width: auto;
	z-index: 1;
}

.pll-switcher-inner .pll-submenu-toggle {
	background-color: transparent !important;
	/* !important to overwrite some themes. */
	border: none;
	color: currentColor !important;
	font-size: inherit;
	height: auto;
	line-height: 0;
	padding: .2em;
	width: auto;
}

.pll-switcher-inner .pll-submenu-toggle:focus {
	outline-offset: inherit;
}

.pll-switcher-inner .pll-submenu-toggle svg {
	display: block;
	height: .6em;
	margin: 0;
	width: .6em;
}

.pll-switcher-inner .pll-submenu-toggle svg path {
	stroke: currentColor;
}

.pll-switcher-inner .pll-submenu-toggle[aria-expanded=true] svg, .pll-switcher-inner:hover .pll-submenu-toggle:not([aria-expanded]) svg {
	transform: rotate(180deg);
}

.pll-switcher-inner ul {
	align-items: stretch;
	background-color: var(--pll-dropdown-background-color, #fff);
	border: 1px solid rgba(0, 0, 0, .15);
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 0;
	left: 0;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	right: auto;
	top: 100%;
	visibility: hidden;
	width: 0;
	z-index: 2;
}

.wp-block-polylang-language-switcher.has-background .pll-switcher-inner ul {
	background-color: var(--pll-dropdown-background-color, inherit);
}

.pll-switcher-inner .pll-submenu-toggle[aria-expanded=true] + ul, .pll-switcher-inner:hover .pll-submenu-toggle:not([aria-expanded]) + ul {
	height: auto;
	min-width: 200px;
	opacity: 1;
	overflow: visible;
	visibility: visible;
	width: auto;
}

.pll-layout-vertical ul {
	display: flex;
	flex-direction: column;
}

.pll-layout-horizontal ul, .pll-layout-select {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

.pll-alignment-left.pll-layout-dropdown, .pll-alignment-left.pll-layout-horizontal ul, .pll-alignment-left.pll-layout-select {
	justify-content: flex-start;
}

.pll-alignment-center.pll-layout-dropdown, .pll-alignment-center.pll-layout-horizontal ul, .pll-alignment-center.pll-layout-select {
	justify-content: center;
}

.pll-alignment-right.pll-layout-dropdown, .pll-alignment-right.pll-layout-horizontal ul, .pll-alignment-right.pll-layout-select {
	justify-content: flex-end;
}

.pll-alignment-stretched .pll-switcher-inner {
	width: 100%;
}

.pll-alignment-stretched.pll-layout-horizontal ul, .pll-alignment-stretched.pll-layout-select {
	align-items: stretch;
}

.pll-alignment-stretched.pll-layout-dropdown {
	align-items: stretch;
	flex-direction: row;
	flex-wrap: wrap;
}

.pll-alignment-stretched .pll-switcher-inner > a, .pll-alignment-stretched.pll-layout-horizontal li, .pll-alignment-stretched.pll-layout-select select {
	flex-grow: 1;
}

.pll-alignment-center.pll-layout-dropdown ul {
	left: 50%;
	right: auto;
	transform: translateX(-50%);
}

.pll-alignment-right.pll-layout-dropdown ul {
	left: auto;
	right: 0;
}

.pll-alignment-stretched.pll-layout-dropdown ul {
	left: 0;
	right: 0;
}

.pll-switcher a {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	height: 100%;
	padding: .25em .5em;
	width: 100%;
}

:root .pll-layout-dropdown ul a, :root .pll-layout-dropdown ul a span {
	color: var(--pll-dropdown-text-color, #000);
}

:root .pll-layout-dropdown.has-text-color ul a, :root .pll-layout-dropdown.has-text-color ul a span {
	color: var(--pll-dropdown-text-color, inherit);
}

.pll-alignment-center a, .pll-alignment-stretched.pll-layout-horizontal a {
	justify-content: center;
}

.pll-alignment-left a {
	justify-content: flex-start;
}

.pll-alignment-right a {
	justify-content: flex-end;
}
