#google_translate_element,
.custom-translate-wrapper {
    /*
    z-index: 99999;
    position: fixed !important;
    */
    z-index: 99999;
    position: absolute;
    right: 22px;
    top: 24px;
    /*
    width: 100%;
    display: block; 
    text-align: right;
    margin-top: -35px;
    margin-top: 2px; 
    */
}

#custom_language_selector {
    width: 200px; 
}

/* Reduce top-level navigation font size specifically when German is active */
html[lang="de"] .navigation .level0 > .level-top {
    font-size: 11px !important;
}

/* Adjust padding for French */
html[lang="fr"] .navigation .level0 > .level-top {
    font-size: 12px !important;  
}

/* Fix Welsh spacing if menu items wrap onto a second line */
html[lang="cy"] .navigation {
    font-size: 13px !important;
}

html[lang="pl"] .navigation .level0 > .level-top {
    font-size: 12px !important;
}

html[lang="es"] .navigation .level0 > .level-top {
    font-size: 12px !important;
}

span.notranslate[translate="no"] {
    display: inline-block;
    margin: 0 0.25em;
}

/* Hide Google Translate top banner frame */
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame {
    display: none !important;
}

/* Prevent Google from shifting the body down */
body {
    top: 0px !important;
    position: static !important;
}

/* Hide Google tooltip popups on hover over translated text */
#goog-gt-tt, 
.goog-te-balloon-frame {
    display: none !important;
}

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

.skiptranslate {
    display: none !important;
    visibility: hidden !important;
}
