/* ==========================================================================
   Google Translate Widget Overrides (Shared across all pages)
   ========================================================================== */

/* Wrapper container */
.language-selector {
    background-color: transparent;
    color: white;
    line-height: 0;
    display: inline-block;
}

/* Hide Google branding text inside the gadget wrapper */
.language-selector .goog-te-gadget {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.goog-te-gadget .goog-te-combo {
    margin: 2px 0;
}

/* Hide extra spans (Powered by Google, etc) */
.goog-te-gadget > span:not(:has(.goog-te-combo)) {
    display: none !important;
}

/* The select dropdown */
.goog-te-combo {
    background: #111;
    color: white !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    padding: 6px 10px;
    width: auto !important;
    max-width: 180px;
    font-size: 13px !important;
    line-height: normal !important;
    box-sizing: border-box;
    outline: none;
    cursor: pointer;
}

.goog-te-combo:focus {
    border-color: rgba(212, 175, 55, 0.6);
}

@media (max-width: 767px) {
    .goog-te-combo {
        min-width: 100px;
        max-width: 130px;
        font-size: 12px !important;
        padding: 4px 6px;
    }
}

/* Hide the simple mode wrapper styling */
.goog-te-gadget-simple {
    background-color: black !important;
    border: none !important;
}

/* Hide Google icon and branding badges */
.goog-te-gadget-icon,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.VIpgJd-ZVi9od-ORHb-OEVmcd {
    display: none !important;
}

/* Hide the Google Translate injected top banner */
.goog-te-banner-frame {
    display: none !important;
}
body > .skiptranslate {
    display: none !important;
}

/* Keep the actual translate element visible even if Google adds skiptranslate */
#google_translate_element.skiptranslate {
    display: inline-block !important;
}

/* Prevent Google Translate from pushing body down */
body {
    top: 0 !important;
}
