/**
 * TranslatePress shortcode switcher — compact text + arrow (no DE_DE width reserve).
 */

.trp-shortcode-switcher__wrapper {
	display: inline-block;
	width: auto !important;
	max-width: 100%;
}

.trp-shortcode-switcher.trp-shortcode-anchor,
.trp-shortcode-switcher.trp-shortcode-overlay {
	width: auto !important;
	min-width: 0 !important;
}

.trp-shortcode-switcher .trp-current-language-item__wrapper {
	display: inline-flex !important;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	width: auto !important;
	min-width: 0 !important;
	max-width: 100%;
}

.trp-shortcode-switcher .trp-language-item,
.trp-shortcode-switcher .trp-language-item__current {
	display: inline-flex !important;
	align-items: center;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: 0 0 auto;
	padding-inline-end: 0 !important;
}

.trp-shortcode-switcher .trp-language-item-name {
	display: inline-block;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	white-space: nowrap;
}

.trp-shortcode-switcher .trp-shortcode-arrow {
	display: block;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

@media (min-width: 1025px) {
	.trp-shortcode-switcher .trp-current-language-item__wrapper {
		gap: 10px;
		cursor: pointer;
	}

	.trp-shortcode-switcher .trp-shortcode-arrow {
		margin-left: 2px;
	}
}

.trp-shortcode-switcher .trp-switcher-dropdown-list .trp-language-item {
	width: 100%;
}
