.local-psyberlang-switcher {
    align-items: center;
    display: inline-flex;
    margin: 0 0.35rem;
    position: relative;
    z-index: 1031;
}

.local-psyberlang-switcher--navbar {
    align-self: stretch;
    height: 100%;
}

.local-psyberlang-switcher--fallback {
    margin: 1rem;
}

.local-psyberlang-switcher__details {
    align-items: center;
    display: inline-flex;
    position: relative;
}

.local-psyberlang-switcher__summary {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: none;
    cursor: pointer;
    display: inline-flex;
    gap: 0.35rem;
    height: 2.25rem;
    justify-content: center;
    line-height: 1;
    list-style: none;
    min-width: 2.75rem;
    padding: 0 0.45rem;
    transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.local-psyberlang-switcher__summary::-webkit-details-marker {
    display: none;
}

.local-psyberlang-switcher__summary:hover,
.local-psyberlang-switcher__summary:focus {
    background: #f7f9fb;
    border-color: rgba(15, 108, 191, 0.4);
    box-shadow: none;
}

.local-psyberlang-switcher__summary:focus-visible {
    outline: 3px solid rgba(15, 108, 191, 0.55);
    outline-offset: 2px;
}

.local-psyberlang-switcher__flag {
    font-size: 1.05rem;
    line-height: 1;
}

.local-psyberlang-switcher__chevron {
    border-left: 0.22rem solid transparent;
    border-right: 0.22rem solid transparent;
    border-top: 0.28rem solid #475569;
    height: 0;
    width: 0;
}

.local-psyberlang-switcher__details[open] .local-psyberlang-switcher__chevron {
    transform: rotate(180deg);
}

.local-psyberlang-switcher__menu {
    background: #fff;
    border: 1px solid rgba(43, 51, 63, 0.16);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(43, 51, 63, 0.18);
    display: grid;
    gap: 0.15rem;
    margin-top: 0.35rem;
    min-width: 8.75rem;
    padding: 0.35rem;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1055;
}

.local-psyberlang-switcher__item {
    align-items: center;
    border-radius: 6px;
    color: #1f2937;
    display: flex;
    gap: 0.5rem;
    min-height: 2rem;
    padding: 0.25rem 0.45rem;
    text-decoration: none;
    white-space: nowrap;
}

.local-psyberlang-switcher__item:hover,
.local-psyberlang-switcher__item:focus {
    background: #eef5fc;
    color: #0f4c81;
    text-decoration: none;
}

.local-psyberlang-switcher__item:focus-visible {
    outline: 3px solid rgba(15, 108, 191, 0.55);
    outline-offset: -1px;
}

@media (prefers-reduced-motion: reduce) {
    .local-psyberlang-switcher__summary {
        transition: none;
    }
}

.local-psyberlang-switcher__item.is-active {
    background: #e8f0f8;
    color: #0f4c81;
    font-weight: 600;
}

.local-psyberlang-switcher__name {
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .local-psyberlang-switcher {
        margin: 0 0.2rem;
    }

    .local-psyberlang-switcher__summary {
        height: 2.25rem;
        min-width: 2.35rem;
        padding: 0 0.35rem;
    }
}

/* Messaging is intentionally disabled in the product navigation. */
#usernavigation .popover-region-messages,
#usernavigation [data-region="message-drawer-toggle"] {
    display: none !important;
}
