/* Jedan odabir jezika u postojećem zaglavlju. */
@media (min-width: 1440px) and (max-width: 1500px) {
    .home.bt-header-responsive-inactive #masthead .site-branding-logo-text {
        padding-right: 18px;
    }
}

.vk-languages-ready #masthead .widget_polylang,
.vk-languages-ready #masthead-responsive .widget_polylang {
    display: none !important;
}

.vk-language-switcher {
    flex: 0 0 auto;
    position: relative;
    line-height: 1;
    z-index: 12;
}

.vk-language-switcher #gt_float_wrapper {
    position: relative !important;
    inset: auto !important;
    z-index: auto !important;
}

.vk-language-switcher .gt_float_switcher {
    position: relative;
    display: block;
    overflow: visible;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 12px rgb(25 43 79 / 14%);
}

.vk-language-switcher .gt_float_switcher .gt-selected {
    border-radius: 12px;
}

.vk-language-switcher .gt_float_switcher .gt-selected .gt-current-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 6px 10px;
    color: #192b4f;
}

.vk-language-switcher .gt-selected .gt-current-lang img {
    width: 26px;
    margin: 0;
}

.vk-language-switcher .gt_float_switcher .gt-selected .gt-current-lang .gt-lang-code {
    top: 0;
}

.vk-language-switcher .gt_float_switcher .gt-selected[aria-expanded="false"] .gt_float_switcher-arrow {
    transform: none;
}

.vk-language-switcher .gt_float_switcher .gt-selected[aria-expanded="true"] .gt_float_switcher-arrow {
    transform: rotate(180deg);
}

.vk-language-switcher .gt_float_switcher .gt_options {
    position: absolute;
    inset: calc(100% + 4px) 0 auto auto;
    min-width: max-content;
    max-width: calc(100vw - 24px);
    max-height: min(55vh, 23rem);
    border-radius: 12px;
    background: white;
    box-shadow: 0 6px 20px rgb(25 43 79 / 18%);
}

.vk-language-switcher .gt_float_switcher .gt_options a {
    min-height: 44px;
    color: #192b4f;
}

.vk-language-switcher .gt_float_switcher .gt_options a:is(:hover,:focus-visible) {
    background: #e6f3fa;
    color: #09294a;
}

.vk-language-switcher .gt-selected:focus-visible,
.vk-language-switcher .gt_options a:focus-visible {
    outline: 2px solid #0074a8;
    outline-offset: -3px;
}

.vk-languages-ready #masthead-responsive .site-header-responsive-logo-text {
    margin-right: auto;
    min-width: 0;
}

#masthead-responsive .vk-language-switcher {
    order: 4;
    margin-left: auto;
}

.vk-languages-ready #masthead-responsive .site-header-responsive-widgets {
    position: static;
    order: 3;
}

#masthead-responsive .site-header-responsive-widgets ~ .vk-language-switcher {
    margin-left: clamp(4px, 1vw, 14px);
}

@media (max-width: 479px) {
    .vk-languages-ready #masthead-responsive .site-header-responsive-inner {
        padding-inline: 12px;
        column-gap: 8px;
    }

    .vk-languages-ready #masthead-responsive .site-header-responsive-trigger {
        flex-shrink: 0;
        margin-inline: 0;
    }

    .vk-languages-ready #masthead-responsive .site-header-responsive-logo-text img {
        max-width: min(168px, calc(100vw - 178px));
        object-fit: contain;
    }
}
