/**
 * Pill Language Switcher — Google Translate mode.
 * Hides Google's injected dropdown, top banner, and hover tooltip so only the
 * pill switcher is visible. Loaded only when the Google engine is enabled.
 */

/* The element Google attaches to. It has to exist in the DOM; it does not have to be seen. */
.pls-gt-element {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* The banner Google pins to the top of the page, and the offset it pushes onto <body>. */
.goog-te-banner-frame,
iframe.skiptranslate {
	display: none !important;
}

/* Only the offset is reset — body positioning is left to the theme. */
body {
	top: 0 !important;
}

/* The tooltip shown when hovering translated text. */
#goog-gt-tt,
.goog-te-balloon-frame {
	display: none !important;
}

.goog-text-highlight {
	background: none !important;
	box-shadow: none !important;
}

/* In Google mode the pills are controls, not navigation. */
.pls--google .pls__item {
	cursor: pointer;
}

.pls--google .pls__item.is-active {
	cursor: default;
}

/* Attribution — required when Google's own branding is hidden. */
.pls-credit {
	display: block;
	margin-top: 6px;
	color: inherit;
	font-size: 11px;
	line-height: 1.4;
	opacity: 0.65;
	text-decoration: none;
}

.pls-credit:hover,
.pls-credit:focus {
	opacity: 1;
	text-decoration: underline;
}

.pls-wrap {
	display: inline-block;
}
