/* ============================================================
   PEM Translate — Language Switcher
   ============================================================ */

/* ---- Shared ---- */

.pemt-switcher {
	font-size: 14px;
	line-height: 1.4;
}

.pemt-switcher__item a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	text-decoration: none;
	color: inherit;
}

.pemt-switcher__item a:hover {
	text-decoration: underline;
}

.pemt-switcher__item--active a {
	font-weight: 600;
	pointer-events: none;
	cursor: default;
	text-decoration: none;
}

.pemt-switcher__icon {
	font-size: 1.1em;
	line-height: 1;
}

/* ---- Inline list ---- */

.pemt-switcher--inline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

/* ---- Dropdown ---- */

.pemt-switcher--dropdown {
	position: relative;
	display: inline-block;
}

.pemt-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 4px;
	padding: 4px 8px;
	font: inherit;
	color: inherit;
	-webkit-appearance: none;
	appearance: none;
}

.pemt-switcher__toggle:hover {
	opacity: 0.8;
}

.pemt-switcher__chevron {
	font-size: 0.7em;
	line-height: 1;
	transition: transform 0.15s ease;
}

.pemt-switcher--dropdown.is-open .pemt-switcher__chevron {
	transform: rotate(180deg);
}

.pemt-switcher__list {
	position: absolute;
	top: calc(100% + 2px);
	left: 0;
	z-index: 9999;
	min-width: 100%;
	list-style: none;
	margin: 0;
	padding: 4px 0;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.pemt-switcher__list .pemt-switcher__item a {
	display: flex;
	padding: 6px 12px;
	white-space: nowrap;
}

.pemt-switcher__list .pemt-switcher__item a:hover {
	background: #f0f0f0;
	text-decoration: none;
}

.pemt-switcher__list .pemt-switcher__item--active a {
	background: #f6f7f7;
}
