
/* ==========================================================================
   Snovel @Mention autocomplete
   ========================================================================== */

.sn-comment-form-main {
    position: relative;
    min-width: 0;
}

.sn-comment-input {
    width: 100%;
    min-width: 0;
    display: block;
    resize: vertical;
}

.sn-comment-mention-dropdown {
    position: absolute;
    z-index: 1000;
    left: 0;
    right: 0;
    bottom: calc(100% - 1px);
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(99, 102, 241, .28);
    border-radius: 14px;
    background: #11182b;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
}

.sn-comment-mention-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.sn-comment-mention-option:hover,
.sn-comment-mention-option.is-active {
    background: rgba(99, 102, 241, .14);
}

.sn-comment-mention-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(99, 102, 241, .18);
    font-weight: 700;
}

.sn-comment-mention-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.sn-comment-mention-user {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sn-comment-mention-user strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sn-comment-mention-user small {
    opacity: .65;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sn-comment-mention-empty {
    padding: 14px 12px;
    text-align: center;
    font-size: 13px;
    opacity: .65;
}

.sn-comment-mention {
    color: #818cf8;
    font-weight: 600;
}

@media (max-width: 640px) {
    .sn-comment-mention-dropdown {
        left: 0;
        right: 0;
        max-height: 260px;
        border-radius: 12px;
    }

    .sn-comment-mention-option {
        padding: 10px 8px;
    }

    .sn-comment-mention-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}
