.switch-language {
    position: relative;
}

.choose-switch-language {
    position: relative;
    width: 25px;
    height: 24px;
    display: block;
}

.choose-switch-language::before,
.choose-switch-language::after {
    content: "";
    width: 1px;
    height: 7px;
    position: absolute;
    right: 3px;
    top: 9px;
    display: block;
    background: #999;
    transform: rotate(45deg);
    transition: all 350ms ease-in-out;
}

.choose-switch-language::after {
    transform: rotate(135deg);
    right: 8px;
}

.switch-language.active .choose-switch-language:before {
    transform: rotate(135deg);
}

.switch-language.active .choose-switch-language:after {
    transform: rotate(45deg);
}

.switch-language.active .list-switch-language {
    display: block;
    background-color: #fff;
}

.switch-language {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.switch-language-text {
    user-select: none;
    line-height: 1;
    display: block;
    font-weight: 600;
    transition: all 350ms ease-in-out;
}

.switch-language:hover .switch-language-text {
    color: var(--primary);
}

.switch-language-current {
    width: 100%;
}

.switch-language-box ul li img, .switch-language-current img {
    height: 25px;
    object-fit: contain;
    font-size: 1px;
    color: transparent;
    margin: 0 5px;
    display: block;
}
.choose-switch-language {
    color: #fff;
    line-height: 36px;
    cursor: pointer;
}

.list-switch-language {
    display: none;
    position: absolute;
    top: calc(100%);
    right: 0;
    background-color: var(--white);
    min-width: 180px;
    border-radius: 3px 0 3px 3px;
    box-shadow: 0 0 12px rgba(11,11,11,.175);
    z-index: 9;
    max-height: 90vh;
    overflow-y: auto;
}
.hidden {
    display: none!important;
    position: absolute;
}

.list-switch-language {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-switch-language li + li {
    border-top: 1px solid #e3e3e3;
}

.list-switch-language  .switch-language-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    color: #11242b;
}

.list-switch-language a:hover {
    color: #1fb2e7;
}

.switch-language-icon {
    height: 25px;
}

.language-admin .list-switch-language {
    width: 100%;
    top: 34px;
}
.md-language-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11,11,11,0.5);
    z-index: 999999;
}

.md-language-background::before {
    content: "";
    width: 64px;
    height: 64px;
    display: block;
    border-width: 2px;
    border-style: solid;
    border-color: #666 #666 #aaa;
    border-radius: 64px;
    animation: md-language-loading 600ms linear infinite;
    position: absolute;
    top: calc(30% - 32px);
    left: calc(50% - 32px);
}

@keyframes md-language-loading {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
}

@media (min-width: 320px) {
    .switch-language-current img,
    .switch-language-icon {
        width: 25px;
        height: 25px;
    }
    .list-switch-language picture {
        width: inherit;
        height: inherit;
    }
}