.zlc-flag {
	display: inline-block;
	width: 22px;
	height: 15px;
	min-width: 22px;
	min-height: 15px;
	max-width: 22px;
	max-height: 15px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	vertical-align: middle;
	flex-shrink: 0;
	overflow: hidden;
	aspect-ratio: 8 / 5;
}

.zlc-lang-select {
	position: relative;
	display: inline-block;
	min-width: 240px;
}

.zlc-lang-select--enhanced .zlc-lang-select__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 1px;
	height: 1px;
}

.zlc-lang-select:not(.zlc-lang-select--enhanced) .zlc-lang-select__preview,
.zlc-lang-select:not(.zlc-lang-select--enhanced) .zlc-lang-select__list {
	display: none;
}

.zlc-lang-select:not(.zlc-lang-select--enhanced) .zlc-lang-select__input {
	position: static;
	opacity: 1;
	pointer-events: auto;
	width: auto;
	min-width: 240px;
	height: auto;
}

.zlc-lang-select__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 1px;
	height: 1px;
}

.zlc-lang-select__preview,
.zlc-lang-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	cursor: pointer;
	font: inherit;
}

.zlc-lang-select__caret,
.zlc-lang-switcher__caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.7;
	margin-left: auto;
}

.zlc-lang-select__list,
.zlc-lang-switcher__menu {
	position: absolute;
	z-index: 100;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 280px;
	overflow: auto;
	margin: 0;
	padding: 6px;
	list-style: none;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.zlc-lang-select__option,
.zlc-lang-switcher__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.zlc-lang-select__option:hover,
.zlc-lang-switcher__item:hover,
.zlc-lang-switcher__item.is-active {
	background: rgba(0, 0, 0, 0.05);
}

.zlc-lang-select__option-text,
.zlc-lang-switcher__item-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.zlc-lang-select__option-text small,
.zlc-lang-switcher__item-text small {
	opacity: 0.65;
	font-size: 0.78em;
}

.zlc-lang-switcher {
	position: relative;
	margin-right: 8px;
}

.zlc-chat__wc-actions .zlc-lang-switcher__toggle {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.14);
	color: inherit;
	font-size: 0.82rem;
}

.zlc-chat__wc-actions .zlc-lang-switcher__menu {
	min-width: 220px;
}

.zlc-tm__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 16px 0;
}

.zlc-tm__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.zlc-tm__row--missing {
	background: #fff8e5;
}

.zlc-tm__badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 6px;
	border-radius: 4px;
	background: #d63638;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
}
