.user-popup::after {
    content: '';
    background-color: rgba(0, 0, 0, 0.56);
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 2;
}

.user-popup {
    position: absolute;
    z-index: 1000;
    white-space: nowrap;
    top: 0;
    left: 0;
    text-transform: uppercase;
    display: none;
}


.user-popup__inner {
    position: relative;
    min-width: 280px;
    background-color: #ffffff;
    -webkit-box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 2px;
    width: 280px;
    z-index: 5;
}

.user-popup .lsfw-flag.user-popup__flag {
    display: inline-block;
    vertical-align: top;
    margin: 0 0 0 -2px;
}


.user-popup__no-ava {
    background-color: #338ecb;
    text-align: center;
    color: #ffffff;
    line-height: 40px;
    font-size: 16px;
    margin-right: 12px;
    width: 40px;
    height: 40px;
    display: inline-block;
    vertical-align: top;
    border-radius: 100%;
}


.user-popup .user-popup__item > * {
    display: inline-block;
    vertical-align: bottom;
    margin-right: 5px;
}

.user-popup .user-popup__item {
    display: block;
    font-weight: bold;
    padding-top: 10px;
    font-size: 13px;
}

.user-popup .user-popup__item.border {
    border-bottom: 1px solid #90A4AE;
    padding-bottom: 10px;
}

.user-popup__flex .user-popup__name {
    max-width: 205px;
    overflow: hidden;
    display: block;
    color: #475669;
    font-size: 14px;
    /* vertical-align: middle; */
    font-weight: bold;
    line-height: 18px;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-popup__flex {
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.user-popup__item.red:hover,
.user-popup__close:hover {
    color: #ab2a2a !important;
}


.user-popup__close {
    color: #C8242B;
    font-size: 10px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    z-index: 2;
    bottom: 15px;
}

.user-popup__cross {
    width: 10px;
    cursor: pointer;
    height: 10px;
    background-image: url(https://css.tophotels.ru/i/cross-thin.svg);
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
    position: absolute;
    right: -18px;
    top: -9px;
}

.user-popup .user-popup__ava img {
    border-radius: 100%;
}

.user-popup .bth__ava-45, .user-popup .user-popup__ava {
    border: 2px solid #ffffff;
    margin-right: 12px;
    width: 45px;
    height: 45px;
    border-radius: 100%;
    display: inline-block;
}

.user-popup > a {
    font-weight: bold;
    display: block;
    padding-top: 10px;
    font-size: 13px;

}

.user-popup__loc {
    font-size: 13px;
    margin-top: 5px;
    max-width: 192px;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 20px;
}

.user-popup .user-popup__items {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

@media screen and (max-width: 767px) {
    .user-popup .user-popup__items li.show-768 {
        display: block !important;
    }

    .user-popup__inner {
        width: 280px;
        min-width: 280px;
    }
}