/* Activate only after the existing widget has been mounted in the header. */
#masthead.esb-language-header {
    position: relative;
}
#masthead .esb-language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
    line-height: 1;
}
#masthead .esb-language-switcher #gt_float_wrapper {
    position: static !important;
    display: block;
}
#masthead .esb-language-switcher .gt_float_switcher {
    display: block;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    opacity: 1 !important;
    transition: none;
}
#masthead .esb-language-switcher .gt-selected {
    position: relative;
    background: transparent;
    color: #fdf5e6;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}
#masthead .esb-language-switcher .gt-current-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    min-width: 60px;
    min-height: 44px;
    padding: 0 10px;
    color: #fdf5e6;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}
#masthead .esb-language-switcher img {
    display: none;
}
#masthead .esb-language-switcher .gt-lang-code {
    position: static;
}
#masthead .esb-language-switcher .gt_float_switcher-arrow {
    display: inline-block;
    box-sizing: border-box;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    background: none;
    transform: translateY(-2px) rotate(45deg);
    transition: none;
}
#masthead .esb-language-switcher .gt_arrow_rotate {
    transform: translateY(2px) rotate(225deg);
}
#masthead .esb-language-switcher .gt-selected:hover,
#masthead .esb-language-switcher .gt-selected[aria-expanded="true"] {
    background: rgba(253, 245, 230, 0.09);
}
#masthead .esb-language-switcher .gt-selected:focus-visible {
    outline: 2px solid #fdf5e6;
    outline-offset: 2px;
}
#masthead .esb-language-switcher .gt_options {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 1;
    box-sizing: border-box;
    width: 190px;
    max-width: calc(100vw - 24px);
    max-height: min(320px, calc(100vh - 90px));
    max-height: min(320px, calc(100dvh - 90px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px;
    border: 1px solid rgba(0, 0, 128, 0.18);
    border-radius: 5px;
    background: #fdf5e6;
    color: #000080;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
    text-align: left;
    transform: none;
    transition: none;
}
#masthead .esb-language-switcher .gt_options a {
    display: block;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 3px;
    color: #000080;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
}
#masthead .esb-language-switcher .gt_options a.gt-current {
    display: none;
}
#masthead .esb-language-switcher .gt_options a:hover,
#masthead .esb-language-switcher .gt_options a:focus-visible {
    color: #000080;
    background: #e9e2d3;
}
#masthead .esb-language-switcher .gt_options a:focus-visible {
    outline: 2px solid #000080;
    outline-offset: -2px;
}
#masthead .esb-language-switcher .esb-language-preview-note {
    margin: 5px 8px;
    border-top: 1px solid #d7cfbd;
    padding-top: 8px;
    color: #58534b;
    font-size: 12px;
    line-height: 1.5;
}
@media screen and (max-width: 990px) {
    #masthead .esb-language-switcher {
        top: 4px;
        right: 10px;
    }
}
