.md-version-dropdown {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    align-items: center;
    margin-right: 0.5rem;
    font-family: inherit;
    z-index: 50;
}

.md-version-button {
    display: flex;
    align-items: center;
    padding: 0 16px;
    /* Как у поиска */
    background: #fff;
    color: #222;
    border: 1.5px solid #ececec;
    border-radius: 6px;
    /* Как у поиска, можно 6-7px */
    font-size: 0.78rem;
    min-width: 72px;
    height: 36px;
    /* ТОЧНО как у поиска */
    cursor: pointer;
    box-shadow: 0 2px 10px 0 rgba(60, 60, 60, .04);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    gap: 0.2em;
}

.md-version-current {
    font-size: 0.78rem;
    font-weight: 500;
}

.md-version-arrow {
    margin-right: -0.2rem;
    margin-left: 0.2rem;
    transition: transform .22s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
}

.md-version-dropdown.open .md-version-arrow {
    transform: rotate(180deg);
}

.md-version-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    left: 0;
    top: calc(100% + 0.1rem);
    min-width: 100%;
    background: #fff;
    border: 1.5px solid #ececec;
    border-radius: 6px;
    box-shadow: 0 6px 24px 0 rgba(60, 60, 60, .09);
    margin: 0;
    padding: 0.2rem 0;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    font-size: 1rem;
    /* как у кнопки */
    transition: opacity .21s cubic-bezier(.4, 0, .2, 1);
}

.md-version-dropdown.open .md-version-menu {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.md-version-option {
    list-style: none;
    padding: 0.5em 1.3em;
    cursor: pointer;
    font-size: 0.78em;
    color: #303c87;
    border-radius: 5px;
    transition: background .13s, color .13s;
    outline: none;
}

.md-version-option:hover,
.md-version-option:focus {
    background: #f3f5fd;
    color: #000;
}

.md-version-option.selected {
    background: #303c87;
    color: #fff;
    font-weight: 600;
}