/* Hide Google's default translate UI; keep the combo for programmatic use. */
.bsc-translate-widget {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.skiptranslate iframe,
.skiptranslate > span {
    display: none !important;
}

body {
    top: 0 !important;
}

.bsc-translate {
    position: relative;
    display: inline-block;
    margin: 0 0 0 12px;
    vertical-align: middle;
}

.bsc-translate--header {
    margin: 0 0 0 12px;
}

.bsc-translate-mob-wrap {
    margin-left: 25px;
    padding: 10px 0 15px;
}

.bsc-translate--mobile {
    display: block;
    margin: 0;
}

.bsc-translate--mobile .bsc-translate-wrap {
    margin-left: 0;
}

.bsc-translate--mobile .bsc-translate-menu {
    position: relative;
    top: 8px;
    left: 0;
    min-width: 100%;
    max-width: 100%;
}

.bsc-translate-wrap {
    position: relative;
    margin-left: 0;
}

.bsc-translate,
.bsc-translate-trigger,
.bsc-translate-label,
.bsc-translate-menu,
.bsc-translate-list,
.bsc-translate-option {
    font-family: 'Open Sans', sans-serif !important;
}

/* Inherits .topbar_right_button a (Donate Now) styles from theme.css */
.topbar_right_button.bsc-translate-wrap .bsc-translate-trigger {
    font-size: 12px;
}

.bsc-translate-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.bsc-translate-label {
    color: inherit;
    font-family: 'Open Sans', sans-serif !important;
    font-size: inherit;
    font-weight: inherit;
    font-style: normal;
    text-transform: inherit;
    letter-spacing: normal;
}

.bsc-translate-trigger:hover,
.bsc-translate-trigger:focus,
.bsc-translate-trigger[aria-expanded="true"] {
    color: #fff;
    outline: none;
}

.bsc-translate-chevron {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #fff;
    transition: transform 0.2s ease;
}

.bsc-translate-trigger[aria-expanded="true"] .bsc-translate-chevron {
    transform: rotate(180deg);
}

.bsc-translate-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1200;
    min-width: 220px;
    max-width: 280px;
    background: #040080;
    border: 1px solid #040080;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.bsc-translate-menu.is-open {
    display: block;
}

.bsc-translate-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 280px;
    overflow-y: auto;
}

.bsc-translate-list::-webkit-scrollbar {
    width: 8px;
}

.bsc-translate-list::-webkit-scrollbar-track {
    background: #01012a;
}

.bsc-translate-list::-webkit-scrollbar-thumb {
    background: #3a4a8a;
    border-radius: 4px;
}

.bsc-translate-list::-webkit-scrollbar-thumb:hover {
    background: #5a6aaa;
}

.bsc-translate-option {
    display: block;
    width: 100%;
    padding: 10px 35px;
    border: none;
    background: transparent;
    color: #fff;
    text-align: left;
    font-size: inherit;
    font-weight: inherit;
    text-transform: inherit;
    font-style: normal;
    line-height: 1.4;
    cursor: pointer;
}

.bsc-translate-option:hover,
.bsc-translate-option:focus,
.bsc-translate-option.is-active {
    background: #1a4db8;
    color: #fff;
    outline: none;
}

@media (max-width: 1199px) {
    .bsc-translate--header {
        display: none !important;
    }

    .bsc-translate-option {
        padding: 10px 24px;
    }
}

@media (max-width: 575px) {
    .topbar_right_button.bsc-translate-wrap .bsc-translate-trigger {
        font-size: 12px;
    }

    .bsc-translate-option {
        padding: 10px 20px;
    }
}
