.transxlate-switcher {
	position: relative;
	display: inline-block;
	font-size: 14px;
}
.transxlate-switcher .trx-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #d9d9e3;
	border-radius: 8px;
	padding: 6px 12px;
	cursor: pointer;
	color: inherit;
	line-height: 1.4;
}
.transxlate-switcher .trx-list {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 180px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid #e5e5ef;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
	display: none;
	z-index: 9999;
}
.transxlate-switcher.is-open .trx-list { display: block; }
.transxlate-switcher .trx-list a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 6px;
	text-decoration: none;
	color: #1e293b;
}
.transxlate-switcher .trx-list a:hover { background: #f1f5f9; }
.transxlate-switcher .trx-item.trx-active a { font-weight: 600; background: #eef2ff; }

/* Floating variant — fixed on every public page (like live chat) */
.transxlate-floating {
	position: fixed;
	z-index: 999999;
}
.transxlate-floating.trx-pos-bottom-right { right: 18px; bottom: 18px; }
.transxlate-floating.trx-pos-bottom-left { left: 18px; bottom: 18px; }
.transxlate-floating.trx-pos-top-right { right: 18px; top: 18px; }
.transxlate-floating.trx-pos-top-left { left: 18px; top: 18px; }
.transxlate-floating .trx-list { left: auto; right: 0; top: auto; bottom: calc(100% + 6px); }
.transxlate-floating.trx-pos-bottom-left .trx-list,
.transxlate-floating.trx-pos-top-left .trx-list { left: 0; right: auto; }

/* Presets */
.transxlate-switcher.trx-preset-dark .trx-trigger,
.transxlate-switcher.trx-preset-dark .trx-list {
	background: #111827;
	border-color: #1f2937;
	color: #f8fafc;
}
.transxlate-switcher.trx-preset-dark .trx-list a { color: #f8fafc; }
.transxlate-switcher.trx-preset-dark .trx-list a:hover { background: #1f2937; }

.transxlate-switcher.trx-preset-border .trx-trigger,
.transxlate-switcher.trx-preset-border .trx-list {
	border-width: 2px;
	border-color: #64748b;
}

.transxlate-switcher.trx-preset-transparent .trx-trigger,
.transxlate-switcher.trx-preset-transparent .trx-list {
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(8px);
	border-color: rgba(255, 255, 255, 0.5);
}

/* Inline flags */
.transxlate-switcher.trx-style-flags .trx-list {
	position: static;
	display: flex !important;
	flex-wrap: wrap;
	gap: 6px;
	box-shadow: none;
	border: 0;
	background: transparent;
	padding: 0;
	min-width: 0;
}
.transxlate-switcher.trx-style-flags .trx-trigger { display: none; }
.transxlate-switcher.trx-style-flags .trx-list a {
	border: 1px solid #d9d9e3;
	border-radius: 8px;
	background: #fff;
}
