/*--------------------------------------------------------------
# Google Translate
--------------------------------------------------------------*/

.skiptranslate iframe,
.goog-te-banner-frame.skiptranslate,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO,
#goog-gt-tt,
#goog-gt-tt *,
#goog-gt-vt,
#goog-gt-vt * {
    display: none !important;
}

#google_translate_element {
    display: none !important;
}

/*--------------------------------------------------------------
# Native Language Switcher
--------------------------------------------------------------*/

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.language-switcher-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    padding: 4px 28px 4px 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23fff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: border-color 0.2s;
    position: relative;
    z-index: 9999;
}

.language-switcher-select:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.language-switcher-select:focus {
    outline: none;
    border-color: #4a9eff;
}

.language-switcher-select option {
    color: #000;
    background: #fff;
}

/* Dark header override — landing page header has a transparent background
   so the switcher inherits the light-page colour scheme.  For dark-themed
   dialogs (e.g. room settings) the colours are inverted. */
.language-switcher-select.dark {
    border-color: rgba(0, 0, 0, 0.25);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23333'/%3E%3C/svg%3E");
    color: #333;
}
