/* =========================================================
   VOXLY AVATARS v0.18.9
   ========================================================= */

.avatar,
.message-avatar,
.voxly-member-avatar,
.voxly-dm-home-avatar,
.voxly-avatar-preview {
    overflow: hidden;
}

.voxly-avatar-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: inherit;
}

.voxly-member-avatar,
.voxly-dm-home-avatar,
.message-avatar,
.avatar {
    position: relative;
}

.voxly-presence-dot {
    position: absolute;
    z-index: 2;
}

.voxly-avatar-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;

    display: flex;
    align-items: center;
    justify-content: center;
}

.voxly-avatar-modal.hidden {
    display: none !important;
}

.voxly-avatar-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(0, 0, 0, .72);
}

.voxly-avatar-card {
    position: relative;
    z-index: 1;

    width: min(
        460px,
        calc(100vw - 32px)
    );

    border:
        1px solid #303744;

    border-radius:
        12px;

    background:
        #11151d;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, .45);

    color:
        #eef2f8;
}

.voxly-avatar-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;

    padding:
        18px 20px;

    border-bottom:
        1px solid #282f3a;
}

.voxly-avatar-header h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.voxly-avatar-header p {
    margin: 0;

    color: #8e99aa;

    font-size: 12px;
    line-height: 1.45;
}

.voxly-avatar-close {
    border: 0;
    background: transparent;
    color: #9ca7b7;

    font-size: 24px;
    cursor: pointer;
}

.voxly-avatar-body {
    padding: 22px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.voxly-avatar-preview {
    width: 128px;
    height: 128px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        #202632;

    border:
        1px solid #343d4b;

    font-size: 30px;
    font-weight: 700;
}

.voxly-avatar-actions {
    display: flex;
    gap: 9px;
}

.voxly-avatar-action,
.voxly-avatar-danger {
    padding: 8px 13px;

    border-radius: 7px;

    cursor: pointer;
}

.voxly-avatar-action {
    border:
        1px solid #3e6fa5;

    background:
        #18395e;

    color:
        #eaf4ff;
}

.voxly-avatar-danger {
    border:
        1px solid rgba(220,70,70,.55);

    background:
        rgba(155,35,35,.20);

    color:
        #ff8c8c;
}

.voxly-avatar-danger.hidden {
    display: none !important;
}

.voxly-avatar-limits {
    color: #7f8a9a;

    font-size: 11px;
    line-height: 1.5;

    text-align: center;
}
