/**
 * TagGen AI Translate — frontend styles.
 *
 * Only the language switcher. Loaded exclusively when the switcher renders, so
 * sites that never use the shortcode ship no extra CSS.
 */

.taggen-switcher {
	display: inline-block;
	font-size: 14px;
	line-height: 1.4;
}

.taggen-switcher__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.taggen-switcher__item {
	margin: 0;
}

.taggen-switcher__link {
	display: inline-block;
	padding: 6px 10px;
	border: 1px solid #e4e7ec;
	border-radius: 7px;
	text-decoration: none;
	color: inherit;
	background: #fff;
}

.taggen-switcher__link:hover,
.taggen-switcher__link:focus-visible {
	border-color: #635bff;
	color: #635bff;
}

.taggen-switcher__link.is-current {
	border-color: #635bff;
	background: #f4f3ff;
	color: #4f46e5;
	font-weight: 600;
}

.taggen-switcher__select {
	border: 1px solid #e4e7ec;
	border-radius: 7px;
	padding: 7px 9px;
	font-size: 14px;
	background: #fff;
	color: inherit;
	max-width: 100%;
}

.taggen-switcher__select:focus-visible {
	outline: 2px solid #635bff;
	outline-offset: 2px;
}

.taggen-switcher--floating {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(16, 24, 40, .15);
	padding: 8px;
}

@media (min-width: 783px) {
	.taggen-switcher--no-desktop {
		display: none;
	}
}

@media (max-width: 782px) {
	.taggen-switcher--no-mobile {
		display: none;
	}
}

.taggen-switcher .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
