/* Language switcher (rp_layout_lang_switcher()) and the hidden parts of Google's translate widget. */

.rp-shell .rp-lang {
	position: relative;
	flex: none;
}

.rp-shell .rp-lang__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	background: transparent;
	font: 700 14px/1 var(--rp-display);
	letter-spacing: 0.02em;
	color: #fff;
	cursor: pointer;
	white-space: nowrap;
}

.rp-shell .rp-lang__btn::after {
	content: "";
	width: 0;
	height: 0;
	border: 4px solid transparent;
	border-top-color: currentColor;
	margin-top: 4px;
}

.rp-shell .rp-lang__btn:hover,
.rp-shell .rp-lang__btn[aria-expanded="true"] {
	background: rgba(255, 255, 255, 0.14);
}

.rp-shell .rp-lang__btn .rp-icon {
	color: var(--rp-sun);
}

.rp-shell .rp-lang__code {
	display: none;
}

.rp-shell .rp-lang__list {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 200;
	min-width: 200px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(49, 49, 63, 0.22);
}

.rp-shell .rp-lang__list[hidden] {
	display: none;
}

.rp-shell .rp-lang__list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rp-shell .rp-lang__list button,
.rp-shell .rp-lang__list a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	font: 400 16px/1.2 var(--rp-body);
	color: var(--rp-ink);
	text-align: left;
	cursor: pointer;
}

.rp-shell .rp-lang__list button:hover,
.rp-shell .rp-lang__list button:focus-visible,
.rp-shell .rp-lang__list a:hover,
.rp-shell .rp-lang__list a:focus-visible {
	background: #e9f5ef;
	outline: none;
}

.rp-shell .rp-lang__list button[aria-current],
.rp-shell .rp-lang__list a[aria-current] {
	font-weight: 700;
	color: var(--rp-green);
}

.rp-shell .rp-lang__en {
	font-size: 13px;
	color: #6b6b78;
}

/* One-time offer for browsers set to Spanish. */
.rp-shell .rp-lang-offer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 14px;
	padding: 10px 16px;
	background: #fff4e3;
	border-bottom: 1px solid #f3dcb8;
	font: 400 16px/1.3 var(--rp-body);
	color: var(--rp-ink);
}

.rp-shell .rp-lang-offer__yes {
	padding: 8px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--rp-sun);
	font: 700 15px/1 var(--rp-display);
	color: var(--rp-ink);
	cursor: pointer;
}

.rp-shell .rp-lang-offer__no {
	padding: 4px 8px;
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	color: #6b6b78;
	cursor: pointer;
}

/* Desktop: the copy in the green header strip. Below 1024px: the copy in the green phone strip. */
.rp-shell .rp-lang--mobile {
	display: none;
}

@media (max-width: 1023px) {
	.rp-shell .rp-lang--strip {
		display: none;
	}

	.rp-shell .rp-lang--mobile {
		display: block;
	}

	.rp-shell .rp-phonestrip {
		align-items: center;
		justify-content: space-between;
	}

	.rp-shell .rp-phonestrip__nums {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	.rp-shell .rp-lang--mobile .rp-lang__btn {
		padding: 6px 10px;
	}

	.rp-shell .rp-lang--mobile .rp-lang__current {
		display: none;
	}

	.rp-shell .rp-lang--mobile .rp-lang__code {
		display: inline;
	}
}

/* Google's widget: no top banner, no hover pop-ups, no highlight, and the page does not get pushed down. */
#rp-gt,
body > .skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-yAWNEb-L7lbkb {
	display: none !important;
}

html.translated-ltr body,
html.translated-rtl body,
body {
	top: 0 !important;
}

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

/* Kept names carry their own surrounding spaces (rp-lang.js); keep them visible. */
span.rp-keep {
	white-space: pre-wrap;
}

.rp-shell .rp-lang__list a {
	box-sizing: border-box;
	text-decoration: none;
}
