#topbar .topbar-right-items {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#topbar .topbar-right-items .hpml-switcher {
    margin-left: auto;
}

.hpml-langbar {
    display: flex;
    justify-content: flex-end;
    padding: 0.4rem 16px;
    background: #f5f5f5;
}

.hpml-switcher {
    display: inline-block;
    margin: 0;
}

.hpml-switcher ul {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hpml-switcher a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #253d4e;
    text-decoration: none;
    line-height: 1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hpml-switcher a[aria-current="true"] .hpml-flag {
    box-shadow: 0 0 0 2px #e43d25;
}

.hpml-switcher a[aria-current="true"] .hpml-flag-label {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.hpml-flag {
    display: inline-flex;
    width: 1.4rem;
    height: 0.95rem;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(37, 61, 78, 0.28);
    background: #fff;
    flex: 0 0 auto;
}

.hpml-flag svg {
    display: block;
    width: 100%;
    height: 100%;
}

@media (min-width: 1025px) {
    .hpml-switcher-item {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    #topbar.topbar-mobile--keep-center .topbar-right-items {
        display: flex !important;
        flex: 0 0 auto;
        margin-left: 0.5rem;
    }

    #topbar.topbar-mobile--keep-center .header-currency,
    #topbar.topbar-mobile--keep-center .header-language {
        display: none;
    }

    #topbar .hpml-flag-label,
    .primary-menu .hpml-flag-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .mobile-menu .hpml-flag-label {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }
}
