.ai-comments-box {
    width: 100%;
    margin-top: 35px;
}


/* Заглавие */

.ai-comments-title {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 22px;
    font-weight: 700;

    padding-bottom: 14px;
    margin-bottom: 20px;

    border-bottom: 2px solid #790000;

    color: #212529;
}

.ai-comments-title i {
    color: #790000;
}


/* Коментар */

.ai-comment-item {
    margin-bottom: 15px;
}

.ai-comment-card {
    background: #fff;

    border: 1px solid #dee2e6;

    border-radius: 12px;

    padding: 16px;

    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.ai-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 12px;
}

.ai-comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-comment-avatar {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #790000;

    color: #fff;

    font-weight: 700;

    flex-shrink: 0;
}

.ai-comment-name {
    font-weight: 700;
    color: #212529;
}

.ai-comment-date {
    font-size: 12px;
    color: #6c757d;

    margin-top: 2px;
}

.ai-comment-text {
    font-size: 15px;
    line-height: 1.65;

    color: #343a40;

    word-break: break-word;
}


/* Действия */

.ai-comment-actions {
    margin-top: 12px;
}

.ai-comment-reply {
    border: 0;
    background: transparent;

    padding: 4px 0;

    color: #790000;

    cursor: pointer;

    font-size: 13px;

    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-comment-reply:hover {
    color: #4d0000;
}


/* Дърво */

.ai-comment-children {
    margin-left: 42px;
    margin-top: 12px;

    padding-left: 18px;

    border-left: 3px solid #e4e7ea;
}

.ai-comment-children .ai-comment-card {
    background: #fafafa;
}


/* Форма */

.ai-comment-form-box {
    margin-top: 30px;

    padding: 20px;

    border: 1px solid #dee2e6;

    border-radius: 14px;

    background: #f8f9fa;
}

.ai-comment-form-title {
    font-size: 18px;
    font-weight: 700;

    margin-bottom: 18px;
}


/* Полета */

.ai-comment-fields {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 15px;
}

.ai-comment-field {
    margin-bottom: 15px;
}

.ai-comment-field label {
    display: block;

    margin-bottom: 6px;

    font-size: 13px;

    font-weight: 600;

    color: #343a40;
}

.ai-comment-field label span {
    color: #6c757d;
    font-weight: 400;
}

.ai-comment-field input,
.ai-comment-field textarea {
    display: block;

    width: 100%;

    border: 1px solid #ced4da;

    border-radius: 8px;

    background: #fff;

    padding: 10px 12px;

    font-size: 14px;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.ai-comment-field textarea {
    resize: vertical;
    min-height: 120px;
}

.ai-comment-field input:focus,
.ai-comment-field textarea:focus {
    border-color: #790000;

    box-shadow:
        0 0 0 3px rgba(121,0,0,.10);
}


/* Reply */

.ai-comment-reply-box {
    display: none;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 15px;

    padding: 10px 12px;

    border-radius: 8px;

    background: #f3e8e8;

    color: #790000;

    font-size: 13px;
}

.ai-comment-reply-box.show {
    display: flex;
}

.ai-comment-reply-box button {
    border: 0;

    background: transparent;

    color: #790000;

    cursor: pointer;

    font-size: 18px;
}


/* Submit */

.ai-comment-submit {
    border: 0;

    border-radius: 8px;

    padding: 11px 18px;

    background: #790000;

    color: #fff;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .1s ease;
}

.ai-comment-submit:hover {
    background: #5d0000;
}

.ai-comment-submit:active {
    transform: scale(.98);
}

.ai-comment-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}


/* Messages */

.ai-comment-message {
    display: none;

    margin-bottom: 15px;

    padding: 10px 12px;

    border-radius: 8px;

    font-size: 14px;
}

.ai-comment-message-success {
    display: block;

    background: #e9f7ef;

    color: #146c43;

    border: 1px solid #badbcc;
}

.ai-comment-message-error {
    display: block;

    background: #f8d7da;

    color: #842029;

    border: 1px solid #f5c2c7;
}


/* Mobile */

@media (max-width: 767px) {

    .ai-comment-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ai-comment-children {
        margin-left: 10px;
        padding-left: 12px;
    }

    .ai-comment-form-box {
        padding: 15px;
    }

}