.vip-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: var(--vip-status-size);
    height: var(--vip-status-size);
    max-width: 100%;
    line-height: 1;
    vertical-align: middle;
}

.vip-status-badge[data-vip-size="20"]:has(> .vip-status-star) {
    --vip-status-size: 16px !important;
}

:is(.vip-status-badge, .vp-em-cur) > :is(img, picture, .vba, .vip-tint, .vp-tint),
:is(.vip-status-badge, .vp-em-cur) > picture > img,
:is(.vip-status-badge, .vp-em-cur) > .vba > .vip-emoji {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    object-fit: contain;
}

.xsb-nick:has(.vip-status-badge) {
    display: flex;
    align-items: center;
    justify-content: center;
}

:is(.xsb-nick, .xhm-nm) span.kosyak_img_ispravil:has(> .vip-status-badge[data-vip-owner]) {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    vertical-align: top;
}

:is(.xsb-nick, .xhm-nm) .kosyak_img_ispravil:has(> .vip-status-badge) > :first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(.xsb-nick, .xhm-nm) .vip-status-badge {
    max-width: 18px;
    max-height: 18px;
}

.xhm-nm .kosyak_img_ispravil > span.vip-status-badge[data-vip-owner] {
    display: inline-flex !important;
}
