.site-language-switcher {
    position: relative;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin: 0;
    color: #334155;
}

.site-language-switcher .gtranslate_inline_wrapper,
.site-language-switcher #gt_float_wrapper {
    position: static !important;
    display: inline-flex;
    align-items: center;
}

.site-language-switcher .gt_float_switcher {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    height: 38px !important;
    overflow: visible !important;
    border: 2px solid #94a3b8 !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .14) !important;
    font-size: 13px !important;
    line-height: 18px !important;
}

.site-language-switcher .gt_float_switcher img {
    width: 21px !important;
    margin-right: 5px !important;
}

.site-language-switcher .gt_float_switcher .gt-selected {
    display: flex;
    align-items: center;
    height: 100%;
    background: transparent !important;
    border-radius: 999px !important;
}

.site-language-switcher .gt_float_switcher .gt-selected .gt-current-lang {
    display: flex;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    min-width: 84px;
    padding: 7px 9px !important;
    background: transparent !important;
    color: #1e293b !important;
}

.site-language-switcher .gt_float_switcher .gt-selected .gt-current-lang span.gt-lang-code {
    top: 0 !important;
    font-size: 12px;
}

.site-language-switcher .gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow {
    height: 18px !important;
}

.site-language-switcher .gt_float_switcher .gt_options {
    position: absolute !important;
    top: calc(100% + 7px);
    right: 0;
    z-index: 1001 !important;
    width: 210px;
    max-width: min(210px, calc(100vw - 24px)) !important;
    max-height: 320px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    float: none !important;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
    white-space: normal !important;
}

.site-language-switcher .gt_float_switcher .gt_options a {
    display: flex !important;
    align-items: center;
    padding: 8px 11px !important;
    font-size: 13px;
}

.dark .site-language-switcher,
.dark-mode .site-language-switcher {
    color: #e2e8f0;
}

.dark .site-language-switcher .gt_float_switcher,
.dark-mode .site-language-switcher .gt_float_switcher,
.dark .site-language-switcher .gt_float_switcher .gt-selected,
.dark-mode .site-language-switcher .gt_float_switcher .gt-selected,
.dark .site-language-switcher .gt_float_switcher .gt-selected .gt-current-lang,
.dark-mode .site-language-switcher .gt_float_switcher .gt-selected .gt-current-lang {
    background: #1f2937 !important;
    color: #e5e7eb !important;
    border-color: #475569 !important;
}

@media (max-width: 575.98px) {
    .site-language-switcher .gt_float_switcher {
        height: 36px !important;
    }

    .site-language-switcher .gt_float_switcher .gt_options {
        position: fixed !important;
        top: 62px !important;
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
        max-width: none !important;
    }

    .site-language-switcher .gt_float_switcher .gt-selected .gt-current-lang {
        min-width: 44px;
        padding: 7px 6px !important;
    }

    .site-language-switcher .gt_float_switcher img {
        width: 19px !important;
        margin-right: 2px !important;
    }

    .site-language-switcher .gt_float_switcher .gt-selected .gt-current-lang span.gt-lang-code {
        display: none;
    }

    .site-language-switcher .gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow {
        width: 11px !important;
    }
}

