/* PDFinsert Multilang — language switcher */
.pml-switcher {
	position: relative;
	display: inline-block;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	z-index: 100;
}

.pml-switcher__flag {
	display: none !important;
}

/* Closed / active button: white background, black text */
.pml-switcher__current {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid rgba(15, 23, 42, 0.12) !important;
	border-radius: 8px;
	background: #ffffff !important;
	cursor: pointer;
	color: #1e293b !important;
	line-height: 1.3;
	transition: border-color .15s ease, box-shadow .15s ease;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.pml-switcher__current:hover,
.pml-switcher__current[aria-expanded="true"] {
	border-color: #7c3aed !important;
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
	background: #ffffff !important;
	color: #1e293b !important;
}

.pml-switcher__name {
	font-weight: 500;
	font-size: 13.5px;
	color: #1e293b !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.pml-switcher__caret {
	opacity: 0.65;
	flex-shrink: 0;
	color: #1e293b !important;
}

/* Dropdown list */
.pml-switcher__list {
	position: absolute;
	top: calc(100% + 6px);
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	min-width: 160px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
	z-index: 9999;
}

.pml-switcher__list[hidden] {
	display: none !important;
}

.pml-switcher__link {
	display: flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 7px;
	text-decoration: none;
	color: #1e293b !important;
	font-weight: 500;
	font-size: 13.5px;
	text-transform: none !important;
	letter-spacing: 0 !important;
	background: transparent;
}

.pml-switcher__link:hover {
	background: #f5f3ff;
	color: #5b21b6 !important;
}

.pml-switcher__link.is-current {
	background: #ede9fe;
	color: #5b21b6 !important;
	font-weight: 600;
}

.pml-switcher__link .pml-switcher__name {
	color: inherit !important;
}

.pml-menu-switcher {
	list-style: none;
}

.pml-footer-switcher {
	display: flex;
	justify-content: center;
	padding: 16px;
}

/* Footer / any purple area: still white button + black text */
.site-footer .pml-switcher__current,
footer .pml-switcher__current,
.pml-footer-switcher .pml-switcher__current {
	background: #ffffff !important;
	color: #1e293b !important;
	border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

.site-footer .pml-switcher__name,
.site-footer .pml-switcher__caret,
footer .pml-switcher__name,
footer .pml-switcher__caret,
.pml-footer-switcher .pml-switcher__name,
.pml-footer-switcher .pml-switcher__caret {
	color: #1e293b !important;
}

@media (max-width: 921px) {
	.pml-switcher__current {
		background: #ffffff !important;
		color: #1e293b !important;
		border: 1px solid rgba(15, 23, 42, 0.12) !important;
	}
	.pml-switcher__name,
	.pml-switcher__caret {
		color: #1e293b !important;
	}
}
