.comments-chat-widget {
    background-color: #F4F2F1;
    padding: 24px;
    border-radius: 12px;
}

.comments-chat-widget .comments-chat-header {
    margin-bottom: 24px;
}

.comments-chat-widget .comments-chat-header h2 {
    font-size: 30px;
    font-weight: 600;
}

.comments-chat-widget .comments-chat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.comments-chat-widget .comments-chat-item {
    background-color: #F9FAFE;
    padding: 16px;
    border-radius: 8px;
}

.comments-chat-widget .comments-chat-item .comments-chat-comment .comment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.comments-chat-widget .comments-chat-item .comments-chat-comment .comment-item-header .comment-item-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.comments-chat-widget .comments-chat-item .comments-chat-comment .comment-item-header .comment-item-header-left .comment-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.comments-chat-widget .comments-chat-item .comments-chat-comment .comment-item-header .comment-item-header-left .comment-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.comments-chat-widget .comments-chat-item .comments-chat-comment .comment-item-header .comment-item-header-left .comment-item-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comments-chat-widget .comments-chat-item .comments-chat-comment .comment-item-header .comment-item-header-left .comment-item-user .comment-item-user-name {
    font-size: 18px;
    font-weight: 600;
}

.comments-chat-widget .comments-chat-item .comments-chat-comment .comment-item-header .comment-item-header-left .comment-item-user .comment-item-user-role {
    font-size: 14px;
    color: #666;
}

.comments-chat-widget .comments-chat-item .comments-chat-comment .comment-item-header .comment-item-header-right .comment-item-date {
    font-size: 14px;
    color: #4D5B7C;
}

.comments-chat-widget .comments-chat-item .comments-chat-controls .comments-chat-controls-reply-btn , .comments-chat-widget .comments-chat-item .comments-chat-controls .comments-chat-controls-reply-open-btn {
    color: #0169FF;
    padding: 4px 0;
    line-height: 1;
}

.comments-chat-widget .comments-chat-item .comment-chat-footer .comments-chat-rating {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.comments-chat-widget .comments-chat-item .comment-chat-footer .comments-chat-rating .comments-chat-rating-item {
    display: flex;
    border-radius: 4px;
    background-color: #D8DBE8;
    border: 1px solid #C6C9E0;
    padding: 4px 8px;
    gap: 12px;
}

.comments-chat-widget .comments-chat-item .comment-chat-footer .comments-chat-rating .comments-chat-rating-item .comments-chat-rating-item-label {
    color: #4D5B7C;
}

.comments-chat-widget .comments-chat-item .comment-chat-footer .comments-chat-rating .comments-chat-rating-item .comments-chat-rating-item-value {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.comments-chat-widget .comments-chat-item .comment-chat-footer .comments-chat-rating .comments-chat-rating-item .comments-chat-rating-item-value::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url(../img/star.svg) no-repeat center center;
    background-size: contain;
}

.comments-chat-widget .comments-chat-item .comments-chat-comment-reply {
    margin-left: 40px;
    margin-top: 12px;
    background-color: #E9EBF3;
    border-radius: 8px;
    padding: 16px;
}

.comments-chat-widget .comments-chat-item .comments-chat-comment-reply .comment-item-header {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comments-chat-widget .comments-chat-item .comments-chat-comment-reply .comment-item-header .comment-item-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-chat-widget .comments-chat-item .comments-chat-comment-reply .comment-item-header .comment-item-header-left .comment-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.comments-chat-widget .comments-chat-item .comments-chat-comment-reply .comment-item-header .comment-item-header-left .comment-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.comments-chat-widget .comments-chat-item .comments-chat-comment-reply .comment-item-header .comment-item-header-left .comment-item-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comments-chat-widget .comments-chat-item .comments-chat-comment-reply .comment-item-header .comment-item-header-left .comment-item-user .comment-item-user-name {
    font-size: 18px;
    font-weight: 600;
}

.comments-chat-widget .comments-chat-item .comments-chat-comment-reply .comment-item-header .comment-item-header-right .comment-item-date {
    font-size: 14px;
    color: #4D5B7C;
}

.comments-chat-widget .comments-chat-item .comment-chat-reply-form {
    margin-top: 16px;
}

.comments-chat-widget .comments-chat-item .comment-chat-reply-form textarea {
    width: 100%;
    height: 100px;
    border: 1px solid #C6C9E0;
    border-radius: 4px;
    padding: 12px;
    font-size: 16px;
    color: #4D5B7C;
    resize: none;
}

.comments-chat-widget .comments-chat-item .comment-chat-reply-form textarea.is-error {
    border-color: #f8b8b8;
    outline: none;
    background-color: #ffacac;
}