.sego-user-card {
    position: absolute;
    z-index: 10000;
    width: 310px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    padding: 18px;

    border: 1px solid #c4d4de;
    border-radius: 10px;

    background: #fff;
    color: #333;

    box-shadow:
        0 12px 32px rgba(0, 0, 0, .18),
        0 2px 6px rgba(0, 0, 0, .08);
}

.sego-user-card[hidden] {
    display: none;
}

.sego-user-card-close {
    position: absolute;
    top: 8px;
    right: 10px;

    width: 28px;
    height: 28px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #444;

    font-size: 25px;
    line-height: 26px;
    text-align: center;

    cursor: pointer;

    transition:
        background-color .15s ease,
        color .15s ease;
}

.sego-user-card-close:hover {
    background: #edf3f7;
    color: #000;
}

.sego-user-card-top {
    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 58px;
    padding-right: 28px;
}

.sego-user-card-avatar {
    flex: 0 0 auto;
}

.sego-user-card-avatar img {
    display: block;

    width: 58px;
    height: 58px;

    object-fit: cover;

    border: 2px solid #d6e1e8;
    border-radius: 50%;

    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.sego-user-card-identity {
    min-width: 0;
}

.sego-user-card-name {
    overflow: hidden;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.sego-user-card-group {
    margin-top: 5px;

    font-size: 13px;
    line-height: 1.2;
}

.sego-user-card-location {
    margin: 16px 0;
    padding: 10px 12px;

    border: 1px solid #d7e3ea;
    border-radius: 7px;

    background: #edf5fa;

    font-size: 13px;
    line-height: 1.35;
}

.sego-user-card-info {
    font-size: 12px;
    line-height: 1.35;
}

.sego-user-card-info > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;

    padding: 3px 0;
}

.sego-user-card-info span {
    flex: 1 1 auto;
}

.sego-user-card-info strong {
    flex: 0 1 55%;

    text-align: right;
    line-height: 1.25;
}

.sego-user-card-profile {
    display: block;

    box-sizing: border-box;
    width: 100%;
    margin-top: 16px;
    padding: 7px 12px;

    border: 1px solid #9eabb3;
    border-radius: 6px;

    background: #f7f9fa;

    color: #222 !important;

    font-weight: 700;
    text-align: center;
    text-decoration: none !important;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.sego-user-card-profile:hover {
    border-color: #8296a3;
    background: #eaf2f7;

    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

@media (max-width: 600px) {
    .sego-user-card {
        width: calc(100vw - 24px);
        padding: 16px;
    }

    .sego-user-card-location {
        margin: 14px 0;
    }
}
