/* Комментарии. Metronic v7, Bootstrap 4. */

.comment {
    padding: 10px 0;
}

.comment + .comment {
    border-top: 1px solid #f3f6f9;
}

.comment[data-depth]:not([data-depth="0"]) {
    border-left: 2px solid #ebedf3;
    padding-left: 12px;
}

.comment--depth-1 {
    margin-left: 28px;
}

.comment--depth-2 {
    margin-left: 56px;
}

.comment--depth-3 {
    margin-left: 84px;
}

.comment--depth-4 {
    margin-left: 112px;
}

@media (max-width: 767.98px) {
    .comment--depth-1 {
        margin-left: 10px;
    }

    .comment--depth-2 {
        margin-left: 20px;
    }

    .comment--depth-3 {
        margin-left: 30px;
    }

    .comment--depth-4 {
        margin-left: 40px;
    }
}

.comment .min-w-0 {
    min-width: 0;
}

.comment-text {
    color: #3f4254;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.comment-text a {
    text-decoration: underline;
}

.comment-image {
    max-height: 160px;
    max-width: 100%;
    border: 1px solid #ebedf3;
}

.comment-reaction {
    line-height: 1.2;
    padding: 2px 6px;
}

.comment-reaction.active {
    background-color: #e1f0ff;
    border: 1px solid #3699ff;
}

.comment-reaction-picker {
    min-width: auto;
    white-space: nowrap;
}

.comment-actions .btn-link {
    padding: 0;
    text-decoration: none;
}

.comment-actions .btn-link:hover {
    text-decoration: underline;
}

.comment-form-previews .comment-preview {
    position: relative;
    margin: 0 8px 8px 0;
}

.comment-form-previews .comment-preview img {
    max-height: 90px;
    border-radius: 4px;
    border: 1px solid #ebedf3;
}

.comment-form-previews .comment-preview button {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    line-height: 18px;
    padding: 0;
    border-radius: 50%;
}

.comment-busy {
    opacity: .6;
    pointer-events: none;
}

.comment-focused {
    animation: comment-flash 2.5s ease-out;
}

@keyframes comment-flash {
    0% {
        background-color: #fff4de;
    }
    100% {
        background-color: transparent;
    }
}
