/* Public website only. Keep these selectors separate from the main/mobile menu plugin. */
.language-switcher {
    position: relative;
    flex-shrink: 0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    color: #0f487e;
}

.language-switcher--desktop { margin-left: 14px; }
.language-switcher--mobile { display: none; }
.language-switcher [hidden] { display: none !important; }

.language-switcher__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid #a9bfd3;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.language-switcher__toggle:hover,
.language-switcher__toggle[aria-expanded="true"] { background: #eef5fb; }
.language-switcher__toggle:focus-visible,
.language-switcher__option:focus-visible { outline: 2px solid #0f487e; outline-offset: 3px; }
.language-switcher__code { display: none; }
.language-switcher__toggle svg { flex-shrink: 0; }

.language-switcher__panel {
    position: absolute;
    z-index: 110;
    top: calc(100% + 7px);
    right: 0;
    width: 222px;
    max-width: calc(100vw - 24px);
    padding: 6px 0;
    border: 1px solid #dbe4ed;
    border-radius: 6px;
    background: #fff;
    color: #173b5e;
    box-shadow: 0 5px 18px rgba(15, 48, 78, .18);
    text-align: left;
}

.language-switcher__heading { margin: 0; padding: 7px 14px 9px; color: #617184; font-size: 12px; }
.language-switcher__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.language-switcher__option:hover { background: #f1f6fb; }
.language-switcher__option[aria-pressed="true"] { background: #e5f1fc; font-weight: 600; }
.language-switcher__option[aria-pressed="true"]::after { content: "✓"; margin-left: 12px; }
.language-switcher__option:disabled { opacity: .6; cursor: wait; }
.language-switcher__status { margin: 5px 14px; padding-top: 9px; border-top: 1px solid #e2e9f0; font-size: 12px; line-height: 1.5; }
.language-switcher__status { color: #9a3424; }

/* Scope Google's banner correction to pages that actually host this widget. */
body.has-language-widget { top: 0 !important; }
body.has-language-widget > .skiptranslate,
body.has-language-widget > iframe.skiptranslate { display: none !important; }
body.has-language-widget font { font: inherit; color: inherit; background: transparent; box-shadow: none; }

@media (min-width: 1025px) {
    header#main-header .top-head .top-head-right { align-items: center; }
    header#main-header .top-head .top-head-right .info { display: flex; flex-wrap: wrap; justify-content: flex-end; row-gap: 5px; }
    header#main-header .top-head .top-head-left { flex-shrink: 1; min-width: 0; }
    header#main-header .top-head .top-head-left img { max-width: 100%; height: auto; }
    header#main-header .top-head .top-head-right .search { flex-shrink: 0; }
    header#main-header .top-head .top-head-right .search form { z-index: 109; }
}

@media (max-width: 1024px) {
    .language-switcher--desktop { display: none; }
    .language-switcher--mobile { display: block; margin-left: auto; }
    .language-switcher--mobile .language-switcher__label { display: none; }
    .language-switcher--mobile .language-switcher__code { display: inline; }
    .language-switcher--mobile .language-switcher__toggle { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65); }
    .language-switcher--mobile .language-switcher__toggle:hover,
    .language-switcher--mobile .language-switcher__toggle[aria-expanded="true"] { background: rgba(255, 255, 255, .14); }
    .language-switcher--mobile .language-switcher__toggle:focus-visible { outline-color: #fff; }
    nav#main-menu > .container { display: flex; align-items: center; justify-content: space-between; }
}
