/**
 * Site translation — loaded on every page with assets/js/v3-translate.js.
 *
 * Hides Google Translate's own chrome (top banner, hover tooltip, sentence
 * highlight, the body offset it adds) and styles the status toast. Self-
 * contained: legacy templates do not load the v3 tokens.
 */

/* ── Google's chrome ─────────────────────────────────────────────────── */
body { top: 0 !important; }
body > .skiptranslate,
.goog-te-banner-frame,
iframe.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
#goog-gt-tt,
.goog-te-balloon-frame,
.VIpgJd-yAWNEb-L7lbkb { display: none !important; }
.goog-text-highlight,
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q { background: none !important; box-shadow: none !important; }
/* Google wraps translated text in <font>: keep the surrounding type. */
html:is(.translated-ltr, .translated-rtl) font { color: inherit; font: inherit; background: none !important; box-shadow: none !important; }
/* The hidden element Google mounts its language list into. */
#google_translate_element2,
.acma-gt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Status toast ────────────────────────────────────────────────────── */
.acma-tt {
	position: fixed; z-index: 100000; left: 20px; bottom: 20px;
	display: flex; align-items: center; gap: 12px;
	max-width: min(440px, calc(100vw - 40px));
	padding: 10px 10px 10px 16px;
	border-radius: 14px;
	background: #071a33; color: #fff;
	box-shadow: 0 18px 40px -16px rgba(4, 13, 28, .55), 0 0 0 1px rgba(255, 255, 255, .08);
	font: 500 15px/1.4 "Plus Jakarta Sans", system-ui, sans-serif;
	letter-spacing: normal;
	animation: acma-tt-in .45s cubic-bezier(.2, .7, .1, 1) both;
}
.acma-tt[hidden] { display: none; }
.acma-tt__icon { flex: none; width: 18px; height: 18px; border-radius: 50%; }
.acma-tt.is-busy .acma-tt__icon { border: 2px solid rgba(255, 255, 255, .25); border-top-color: #9bdc52; animation: acma-tt-spin .8s linear infinite; }
.acma-tt.is-done .acma-tt__icon { background: #7ab242; box-shadow: inset 0 0 0 5px #071a33; }
.acma-tt__text { flex: 1 1 auto; min-width: 0; }
.acma-tt button {
	flex: none; margin: 0; border: 0; cursor: pointer;
	font: inherit; line-height: 1; color: inherit; background: none;
}
.acma-tt__undo { display: none; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .12) !important; font-weight: 600 !important; white-space: nowrap; transition: background-color .25s; }
.acma-tt.is-done .acma-tt__undo { display: inline-block; }
.acma-tt__undo:is(:hover, :focus-visible) { background: rgba(255, 255, 255, .22) !important; }
.acma-tt__close { width: 32px; height: 32px; border-radius: 8px; font-size: 22px !important; opacity: .7; }
.acma-tt__close:is(:hover, :focus-visible) { opacity: 1; background: rgba(255, 255, 255, .12); }
.acma-tt button:focus-visible { outline: 2px solid #9bdc52; outline-offset: 2px; }

@media (max-width: 639.98px) {
	/* Above the callback bar and chat button on phones. */
	.acma-tt { left: 12px; right: 12px; bottom: auto; top: 12px; max-width: none; }
}
@keyframes acma-tt-in { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
@keyframes acma-tt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.acma-tt { animation: none; }
	.acma-tt.is-busy .acma-tt__icon { animation-duration: 2.4s; }
}
