/* ==========================================================================
   Suppress Google's default Website Translator UI everywhere it's loaded -
   we drive it entirely from our own dropdown instead.
   ========================================================================== */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
    position: static !important;
}

#google_translate_element,
.goog-logo-link,
.goog-te-gadget span,
.goog-te-gadget-icon {
    display: none !important;
}

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

.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

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

/* ==========================================================================
   Marketing site widget (Bootstrap-based header.php / footer.php)
   ========================================================================== */
.lang-switcher--marketing {
    position: relative;
}

.lang-switcher--marketing .lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: "Jost", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #0A1023;
    background: #fff;
    border: 1px solid rgba(10, 16, 35, .15);
    border-radius: 50px;
    cursor: pointer;
    transition: .25s;
}

.lang-switcher--marketing .lang-switcher-btn:hover,
.lang-switcher--marketing .lang-switcher-btn.show {
    border-color: #1A4DBE;
    color: #1A4DBE;
}

.lang-switcher--marketing .lang-switcher-btn .lang-globe {
    font-size: 16px;
    line-height: 1;
}

.lang-switcher--marketing .lang-switcher-btn .lang-caret {
    font-size: 10px;
    opacity: .6;
    transition: transform .2s;
}

.lang-switcher--marketing .lang-switcher-btn.show .lang-caret {
    transform: rotate(180deg);
}

.lang-switcher--marketing .lang-switcher-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 1050;
    min-width: 220px;
    max-height: 360px;
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(10, 16, 35, .08);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(10, 16, 35, .14);
    padding: 8px;
    margin: 0;
    list-style: none;
    overflow: hidden;
}

.lang-switcher--marketing .lang-switcher-menu.show {
    display: flex;
    animation: langMenuIn .15s ease-out;
}

@keyframes langMenuIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search box + scrolling list - shared skeleton for both sites (100+
   languages need a filter, not just a taller scrollbar). Each site's
   .lang-switcher--X wrapper below adds its own type/color refinements. */
.lang-search-wrap {
    flex: 0 0 auto;
    padding: 2px 2px 8px;
    border-bottom: 1px solid rgba(10, 16, 35, .08);
    margin-bottom: 6px;
}

.lang-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 13.5px;
    border: 1px solid rgba(10, 16, 35, .15);
    border-radius: 8px;
    outline: none;
    background: #f8fafc;
    color: #0A1023;
}

.lang-search-input:focus {
    border-color: #1A4DBE;
    background: #fff;
}

.lang-options-list {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.lang-no-results {
    padding: 14px 10px;
    text-align: center;
    font-size: 13px;
    color: #8a8f9c;
}

.lang-switcher--marketing .lang-search-input,
.lang-switcher--marketing .lang-no-results {
    font-family: "Jost", sans-serif;
}

.lang-switcher--marketing .lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    font-family: "Jost", sans-serif;
    font-size: 14.5px;
    color: #2C3655;
    background: none;
    border: 0;
    border-radius: 9px;
    text-align: left;
    cursor: pointer;
    transition: .15s;
}

.lang-switcher--marketing .lang-option:hover {
    background: #f5faff;
    color: #1A4DBE;
}

/* Active-item highlight - shared by both sites (dashboard styles the rest of
   .lang-option via Tailwind utility classes in its own markup). */
.lang-option-active {
    background: #eef4ff !important;
    color: #1A4DBE !important;
    font-weight: 600;
}

/* Shared by both sites - the dashboard styles the rest of .lang-option via
   Tailwind utility classes in its own markup, but these two bits (flag size,
   checkmark visibility) apply universally so JS-rendered menu items always
   look right regardless of which header included them. */
.lang-option .lang-flag {
    font-size: 17px;
    line-height: 1;
}

.lang-option .lang-check {
    margin-left: auto;
    font-size: 12px;
    opacity: 0;
    color: #1A4DBE;
}

.lang-option-active .lang-check {
    opacity: 1;
}

@media (max-width: 991px) {
    .lang-switcher--marketing {
        margin: 10px 0 0;
    }

    .lang-switcher--marketing .lang-switcher-menu {
        right: auto;
        left: 0;
    }
}
