.wpt-switcher {
	z-index: 99990;
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 50vh;
	overflow: auto;
	background: var(--wpt-switcher-bg, #fff);
	color: var(--wpt-switcher-color, #1d2327);
	width: var(--wpt-switcher-width, auto);
	min-height: var(--wpt-switcher-height, 0);
	box-sizing: border-box;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	padding: 8px;
}

.wpt-switcher.is-floating {
	position: fixed;
	right: 16px;
	bottom: 16px;
}

.wpt-switcher.is-floating.is-bottom-left {
	left: 16px;
	right: auto;
}

.wpt-switcher.is-floating.is-top-right {
	top: 16px;
	bottom: auto;
}

.wpt-switcher.is-floating.is-top-left {
	top: 16px;
	left: 16px;
	right: auto;
	bottom: auto;
}

.wpt-switcher.is-inline,
.wpt-switcher.is-embedded.is-inline {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
}

.wpt-switcher.is-embedded {
	position: static;
	box-shadow: none;
}

.wpt-switcher a {
	display: block;
	padding: 6px 10px;
	border-radius: 4px;
	color: var(--wpt-switcher-color, #1d2327);
	text-decoration: none;
}

.wpt-switcher a.is-active,
.wpt-switcher a:hover {
	background: #2271b1;
	color: #fff;
}

.entry-content .wpt-switcher,
.widget .wpt-switcher {
	position: static;
	box-shadow: none;
}

.wpt-switcher.is-dropdown {

	position: relative;
	overflow: visible;
	display: inline-block;
	width: auto;
	max-height: none;
	padding: 0;
	z-index: 100000;
	overflow: hidden;
}

.wpt-switcher-toggle {
	position: relative;
	z-index: 2;
	width: var(--wpt-switcher-width, auto);
	height: var(--wpt-switcher-height, auto);
	background: var(--wpt-switcher-bg, #fff);
	color: var(--wpt-switcher-color, #1d2327);
	box-sizing: border-box;
	border: 0;
	border-radius: 8px;
	padding: 8px 12px;
	font: inherit;
	cursor: pointer;
	pointer-events: auto;
}

.wpt-switcher-menu {
	display: none;
	position: fixed;
	min-width: 180px;
	background: var(--wpt-switcher-bg, #fff);
	color: var(--wpt-switcher-color, #1d2327);
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	padding: 8px;
	z-index: 2147483646;
}

.wpt-switcher-menu a,
.wpt-switcher a {
	display: block;
	padding: 8px 10px;
	border-radius: 4px;
	color: var(--wpt-switcher-color, #1d2327);
	text-decoration: none;
	visibility: visible;
}

.wpt-switcher-menu.wpt-menu-open,
.wpt-switcher-menu:popover-open,
.wpt-switcher.is-dropdown:focus-within .wpt-switcher-menu,
.wpt-switcher.is-open .wpt-switcher-menu {
	display: flex !important;
	flex-direction: column;
	gap: 4px;
	visibility: visible !important;
	opacity: 1 !important;
}

img.wpt-flip-x,
video.wpt-flip-x,
picture.wpt-flip-x,
source.wpt-flip-x,
.wpt-flip-x {
	transform: scaleX(-1) !important;
}

.wpt-flag {
	display: inline-block;
	width: 20px;
	height: 15px;
	margin-inline-end: 6px;
	vertical-align: middle;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.wpt-pencil {
	position: fixed;
	z-index: 999992;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: #2271b1;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wpt-editor-target {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.wpt-editor {
	position: fixed;
	top: 32px;
	right: 0;
	z-index: 999990;
	width: 320px;
	max-width: 100%;
	height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	border-left: 1px solid #dcdcde;
	box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
	padding: 16px;
	box-sizing: border-box;
}

.wpt-editor-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.wpt-editor label,
.wpt-editor-language {
	display: block;
	margin: 12px 0 4px;
	font-weight: 600;
}

.wpt-editor textarea,
.wpt-editor select {
	width: 100%;
	box-sizing: border-box;
}

.wpt-editor textarea {
	min-height: 90px;
}

#wpt-editor-note {
	margin-top: 8px;
}

.wpt-admin-translate {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999991;
	max-width: 320px;
	background: #1d2327;
	color: #fff;
	border-radius: 8px;
	padding: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.wpt-admin-translate button {
	background: #2271b1;
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 8px 12px;
	font: inherit;
	cursor: pointer;
	text-transform: none;
}

.wpt-admin-translate button:disabled {
	opacity: 0.7;
	cursor: wait;
}

.wpt-front-translate-status {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.4;
}

.wpt-front-translate-status:empty {
	display: none;
}
