.st-tr-switcher {
	display: inline-flex;
	align-items: center;
	font-family: inherit;
	line-height: 1;
	position: relative;
	z-index: 5;
}

.st-tr-switcher-track {
	display: inline-flex;
	align-items: center;
	gap: 0;
}

.st-tr-switcher-others {
	display: grid;
	grid-template-columns: 0fr;
	transition: grid-template-columns 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.st-tr-switcher-others-inner {
	min-width: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateX(-8px) scale(0.96);
	transform-origin: left center;
	transition:
		opacity 0.28s ease,
		transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.st-tr-switcher:hover .st-tr-switcher-others,
.st-tr-switcher:focus-within .st-tr-switcher-others,
.st-tr-switcher.is-open .st-tr-switcher-others {
	grid-template-columns: 1fr;
}

.st-tr-switcher:hover .st-tr-switcher-others-inner,
.st-tr-switcher:focus-within .st-tr-switcher-others-inner,
.st-tr-switcher.is-open .st-tr-switcher-others-inner {
	opacity: 1;
	transform: translateX(0) scale(1);
}

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

.st-tr-switcher-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: 999px;
	text-decoration: none !important;
	color: inherit;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	cursor: pointer;
	transform: translateY(0) scale(1);
	transition:
		transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		background 0.25s ease,
		border-color 0.25s ease,
		color 0.25s ease;
}

.st-tr-switcher-item:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.st-tr-flag {
	display: inline-flex;
	width: 22px;
	height: 16px;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
	flex: 0 0 22px;
	transform: rotate(0) scale(1);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.st-tr-flag-svg {
	width: 100%;
	height: 100%;
	display: block;
}

.st-tr-switcher-code {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.st-tr-switcher-item:hover {
	transform: translateY(-4px) scale(1.05);
	box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
	background: #fff;
	border-color: rgba(37, 99, 235, 0.35);
}

.st-tr-switcher-item:hover .st-tr-flag {
	transform: rotate(-8deg) scale(1.16);
}

.st-tr-switcher-item.is-active,
.st-tr-switcher-item.is-current {
	background: #0f172a;
	color: #fff !important;
	border-color: #0f172a;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}

.st-tr-switcher-item.is-active:hover,
.st-tr-switcher-item.is-current:hover {
	background: #1e293b;
	border-color: #1e293b;
}

.st-tr-switcher--flags .st-tr-switcher-item {
	padding: 6px;
	border-radius: 10px;
}

.st-tr-switcher--flags .st-tr-flag {
	width: 26px;
	height: 18px;
	flex-basis: 26px;
	border-radius: 4px;
}

.st-tr-switcher-floating {
	position: fixed;
	bottom: 20px;
	z-index: 99990;
	padding: 8px;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.st-tr-switcher-floating.is-right {
	right: 20px;
}

.st-tr-switcher-floating.is-left {
	left: 20px;
}

body.admin-bar .st-tr-switcher-floating {
	bottom: 28px;
}

.st-tr-switcher-block.has-text-align-center {
	display: flex;
	justify-content: center;
}

.st-tr-switcher-block.has-text-align-right {
	display: flex;
	justify-content: flex-end;
}

@media (prefers-reduced-motion: reduce) {
	.st-tr-switcher-item,
	.st-tr-flag,
	.st-tr-switcher-others,
	.st-tr-switcher-others-inner {
		transition: none;
	}

	.st-tr-switcher-item:hover {
		transform: none;
	}

	.st-tr-switcher-item:hover .st-tr-flag {
		transform: none;
	}
}
