.comments-wrapper{

    margin-top:100px;
    border-top:4px solid #000;

}

.comments-panel{

    background:#fff;
}

.comments-panel #comments{

    padding:0;

}


/* Comment editor */

.comment-editor-title,.comment-list-title{

    margin:100px 0 1rem;

    padding-bottom:.4rem;

    border-bottom:1px solid #e5e5e5;

}

.comment-write{

    padding:1rem 1.2rem;

    margin-bottom:1rem;


}

.comment-user{

    margin-bottom:.8rem;

    padding:.5rem .75rem;

    background:#f8f8f8;

    border-left:4px solid #888;

    color:#555;

    font-size:.95rem;

}

.comment-user strong{

    color:#222;

    margin-right:.4rem;

}

.comment-user-input{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:.75rem;

    margin-bottom:.75rem;

}

.comment-write input{

    width:100%;

    padding:.65rem .8rem;

    border:1px solid #d8d8d8;

    font:inherit;

}

.comment-write textarea{

    width:100%;

    min-height:140px;

    padding:.8rem;

    border:1px solid #d8d8d8;

    line-height:1.7;

    font:inherit;

    resize:vertical;

}


.comment-write button{

    display:block;
    margin-left:auto;
    padding:.4rem;

    background:#fff;

    border:1px solid #bbb;

    font:inherit;

    cursor:pointer;

}

/* Comment styles */

.comment{
    border-bottom:1px solid #ddd;
    padding:1.2rem 0;
    margin-inline: 2rem;
}

.comment-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:.8rem;
}

.comment-author{

    font-weight:600;
    color:#222;

}

.comment-date{

    color:#888;
    font-size:.9rem;

}

.comment-edited{

    margin-left:.4rem;

    color:#999;
    font-style:italic;

}

.comment-content{

    margin:.8rem 0 1rem;
    line-height:1.8;

}

/* Comment actions styles */

.comment-actions{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:.75rem;

}

.comment-actions button{
    background:none;
    border:none;
    padding:0;

    font:inherit;
    font-size:.9rem;
    color:#666;

    cursor:pointer;
}

.comment-actions button:hover{
    color:#000;
    text-decoration:underline;
}

.comment-owner-actions{

    display:flex;
    gap:.6rem;

}


.comment.deleted{

    opacity:.8;

}

.comment.deleted .comment-content{

    color:#777;

    font-style:italic;

}

/* Reply form styles */

.reply-info{

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

    margin-bottom:1rem;
    padding:.7rem 1rem;

    background:#f5f5f5;
    border-left:4px solid #888;

}

.reply-info.hidden{

    display:none;

}

.reply-info button{

    background:none;
    border:none;

    font:inherit;
    color:#666;
    cursor:pointer;

}

.reply-info button:hover{

    text-decoration:underline;

}

.reply{

    margin-top:.8rem;
    margin-left:2rem;

    padding-left:1rem;

    border-left:3px solid #d8d8d8;

}

/* Edit area styles */

.edit-area{

    margin-top: .5rem;

}

.edit-area textarea{

    width:100%;

    min-height:100px;

    box-sizing:border-box;

}

.edit-buttons{
    display:flex;
    justify-content:flex-end;
    gap:.5rem;
    margin-top:.5rem;
}

.edit-buttons button{
    padding:.35rem .8rem;
}