/*
 * MW3 Bilingual: first-visit language suggestion bar.
 * Colours and fonts come from custom properties so a theme can restyle it without overrides.
 * Small and quiet (Marcia, 2026-10-19: "reduzir tamanho desta caixa de informação, para um início
 * mais delicado e elegante"): the box hugs its words, little padding, a light shadow, and the action
 * is a fine underlined text link, as the site's discovery links; on phones the sentence and the link
 * run as one short paragraph with the close button beside them. Fonts and their sizes unchanged.
 */

.mw3-lang-suggest {
	--mw3-bar-bg: var(--mf-ivory, #f7f4f0);
	--mw3-bar-fg: var(--mf-brown, #50463e);
	--mw3-bar-line: rgba(80, 70, 62, 0.18);
	--mw3-bar-font: var(--mf-sans, 'Helvetica Neue', Arial, sans-serif);

	position: fixed;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 998;
	display: flex;
	align-items: center;
	gap: 14px;
	width: fit-content;
	max-width: 560px;
	margin: 0 auto;
	padding: 8px 6px 8px 18px;
	border: 1px solid var(--mw3-bar-line);
	background: var(--mw3-bar-bg);
	color: var(--mw3-bar-fg);
	box-shadow: 0 6px 18px rgba(38, 31, 26, 0.08);
	font-family: var(--mw3-bar-font);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.mw3-lang-suggest.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.mw3-lang-suggest__text {
	flex: 1;
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	letter-spacing: 0.02em;
}

.mw3-lang-suggest__go {
	flex: none;
	padding: 3px 0 2px;
	border: 0;
	border-bottom: 1px solid currentColor;
	color: inherit;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: opacity 0.3s ease;
}

.mw3-lang-suggest__go:hover,
.mw3-lang-suggest__go:focus-visible {
	color: inherit;
	opacity: 0.65;
}

.mw3-lang-suggest__close,
.mw3-lang-suggest__close:hover,
.mw3-lang-suggest__close:focus {
	flex: none;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font-size: 22px;
	line-height: 32px;
	cursor: pointer;
}

.mw3-lang-suggest__close span {
	display: block;
	font-family: Georgia, serif;
	font-size: 26px;
	font-weight: 300;
	line-height: 32px;
}

.mw3-lang-suggest a:focus-visible,
.mw3-lang-suggest__close:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 3px;
}

@media (max-width: 480px) {
	.mw3-lang-suggest {
		display: block;
		width: auto;
		padding: 9px 40px 10px 14px;
	}

	.mw3-lang-suggest__text {
		display: inline;
	}

	.mw3-lang-suggest__go {
		display: inline-block;
		margin-left: 6px;
	}

	.mw3-lang-suggest__close,
	.mw3-lang-suggest__close:hover,
	.mw3-lang-suggest__close:focus {
		position: absolute;
		top: 50%;
		right: 4px;
		transform: translateY(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mw3-lang-suggest {
		transition: none;
	}
}
