/* =========================================================
   Google Website Translator — chrome removal.

   The widget is mounted only so its engine is available; the visible
   control is the theme's own .nice-select in the header (see
   public/js/translate-widget.js). Everything Google would draw itself —
   the mount point, the top banner, the hover tooltip, the highlight on
   translated runs — is hidden here.

   ADDITIVE FILE. These are Google's own class names, injected at runtime;
   nothing in this file touches a theme or .az-hdr selector.
   ========================================================= */

/* The mount point. Its <select> is never used — the header drives the
   cookie and reloads instead. */
#az-gt-host {
    display: none !important;
}

/* Google's top banner ("Translated to: …"). It is an iframe injected as
   a direct child of <body>, and it also pushes the page down by setting
   an inline top on <body> — both are undone here. */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate {
    display: none !important;
    visibility: hidden !important;
}

body {
    top: 0 !important;
}

/* The gadget's own inline UI, in case a build renders it outside the host. */
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-logo-link,
.goog-te-gadget-icon {
    display: none !important;
}

/* Hover tooltip showing the original phrase, and the balloon it sits in. */
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

/* Google marks every translated run with a highlight. Left alone it
   repaints headings and buttons in its own yellow/blue. */
.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

/* Translated text is wrapped in bare <font> tags, which otherwise reset
   to the browser default face and colour mid-sentence. */
font[style],
font {
    font: inherit !important;
    color: inherit !important;
    background: none !important;
    vertical-align: inherit !important;
}
