#mg-product-comments-rating .vote {
    cursor: pointer;
    display: block;
    margin-bottom: 5px;
}

#mg-product-comments-rating form {
    position: relative;
}

#mg-product-comments-rating form.add_new_comment_form {
    margin: 0 0 15px 0;
    overflow: hidden;
}

#mg-product-comments-rating form.add_new_answer {
    margin-top: 10px;
}

#mg-product-comments-rating form div.close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjk4MTkzOUZENjc3RjExRTFCMzg2QzFDNDQ1QjQ3M0U5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjk4MTkzOUZFNjc3RjExRTFCMzg2QzFDNDQ1QjQ3M0U5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OTgxOTM5RkI2NzdGMTFFMUIzODZDMUM0NDVCNDczRTkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6OTgxOTM5RkM2NzdGMTFFMUIzODZDMUM0NDVCNDczRTkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7m/B/pAAAAiUlEQVR42mL8//8/AyWAiYFCwAJjpKamkqRx9uzZWF1QCsQ2ePSB5IrweeE4EK/GYYgNVO4UPgOOAHEoFkNgmkOhajDDAIchoVAxrJpxGYBuCAMuzVSJRiY8oQ1zdiiegMVqAHqAHcFnCBMBzYRiB8MASzwBBjPEDF8sdBMIsyPohjMOeG4ECDAAL/EnxcVA32IAAAAASUVORK5CYII=");
    width: 16px;
    height: 16px;
    cursor: pointer;
}

#mg-product-comments-rating form input[type="text"] {
    height: 20px;
    padding: 3px 5px 3px 5px;
    width: 200px;
    border-radius: 0;
    box-shadow: none;
    font-size: 13px;
    line-height: 20px;
    display: inline-block;
    background: #EEEEEE;
    border: 1px solid #C0C0C0;
}

#mg-product-comments-rating form button {
    border: none;
    display: inline-block;
    cursor: pointer;
    margin: 15px 0 0 0;
    float: right;
}

#mg-product-comments-rating .two-input {
    margin: 0 0 15px 0;
}

#mg-product-comments-rating .add_new_comment_form .textarea-wrapper .close {
    display: none;
}

#mg-product-comments-rating .two-input .error {
    margin: 0;
}

#mg-product-comments-rating .two-input .input-wrapper + .input-wrapper {
    margin-left: 10px;
}

@media screen and (max-width: 434px) {
    #mg-product-comments-rating .two-input .input-wrapper + .input-wrapper {
        margin: 10px 0 0;
        display: block;
    }
}

#mg-product-comments-rating .textarea-wrapper {
    position: relative;
}

#mg-product-comments-rating .error {
    display: block;
    margin: 10px 0;
    padding: 10px;
    color: #C2646D;
    background: #FDD6DA;
    border: 1px solid #ECA8A8;
    text-align: center;
}

#mg-product-comments-rating #root .error {
    margin: 0 0 15px 0;
}

#mg-product-comments-rating .input-wrapper {
    display: inline-block;
    vertical-align: top;
}

#mg-product-comments-rating .input-wrapper span {
    display: block;
    font-size: 14px;
    line-height: 12px;
    margin: 0 0 5px 0;
    font-weight: normal;
    text-transform: none;
}

#mg-product-comments-rating form textarea {
    outline: none;
    border: 1px solid #C0C0C0;
}

#mg-product-comments-rating form textarea.new-comment {
    width: 100%;
    height: 100px;
    resize: none;
    font-size: 15px;
    line-height: 20px;
    padding: 10px;
    display: block;
    overflow: hidden;
    margin: 0 0 8px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

#mg-product-comments-rating .hiddendiv {
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 60px;
    width: 100%;
    resize: none;
    font-size: 13px;
    line-height: 20px;
    padding: 3px 23px 3px 5px;
    display: none;
}

#mg-product-comments-rating ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mg-product-comments-rating ul ul {
    margin-left: 20px;
}

#mg-product-comments-rating ul li div,
#mg-product-comments-rating ul li span,
#mg-product-comments-rating ul li a {
    font-size: 16px;
    line-height: 1.4;
}

#mg-product-comments-rating ul li a {
    color: #000;
    margin: 0 0 0 10px;
}

#mg-product-comments-rating ul li a:hover {
    text-decoration: underline;
}

#mg-product-comments-rating ul li a.delete {
    color: #ff7167;
}

#mg-product-comments-rating ul li a.approve {
    color: #4caf50;
}

#mg-product-comments-rating ul li a i {
    vertical-align: -1px;
}

#mg-product-comments-rating ul li .top-line {
    margin-bottom: 5px;
}

#mg-product-comments-rating ul li .answer {
    float: right;
    color: #000;
}

#mg-product-comments-rating ul li .answer:hover {
    color: #000;
    text-decoration: none;
}

#mg-product-comments-rating ul li span.author {
    color: #555;
    font-size: 14px;
    line-height: 20px;
    font-weight: bold;
}

#mg-product-comments-rating ul li .icon-chat {
    vertical-align: -2px;
    font-size: 17px;
}

#mg-product-comments-rating ul li span.date {
    display: inline-block;
    font-size: 11px;
    line-height: 11px;
    font-style: italic;
    color: #8E8E8E;
    margin: 3px 0 0 5px;
}

#mg-product-comments-rating ul li:not(.info) {
    padding: 15px 0 0 0;
    background: none;
    margin: 0;
    border-top: 1px solid #eee;
}

#mg-product-comments-rating div.bottom-line {
    margin-top: 5px;
    float: none !important;
}

#mg-product-comments-rating ul li span.rating {
    padding: 0 5px;
}

#mg-product-comments-rating ul li span.rating a i {
    font-size: 16px;
}

#mg-product-comments-rating ul li span.rating-count {
    color: #00bf2d;
}

#mg-product-comments-rating ul li span.rating-count.negative {
    color: #e10000;
}

#mg-product-comments-rating ul li span.answer a {
    text-decoration: none;
    padding: 3px 17px;
    border: 1px solid #eaeaea;
    border-radius: 2px;
    text-transform: capitalize;
    font-weight: 400;
    margin-top: 10px;
    transition: .3s;
}

#mg-product-comments-rating ul li span.answer a:hover {
    border: 1px solid #b9b9b9;
}
#mg-product-comments-rating ul li span.answer a:hover {
    color: #000;
}

#mg-product-comments-rating ul li span.action {
    display: inline-block;
    float: right;
}

#mg-product-comments-rating .user-img i {
    font-size: 15px;
    line-height: 15px;
    display: inline-block;
    vertical-align: middle;
    margin: 3px 0 0 0;
}

#mg-product-comments-rating .comment-info {
    overflow: hidden;
    padding: 0 0 10px 0;
}

#mg-product-comments-rating .user-img {
    color: #666;
    float: left;
    margin: 0 10px 0 0;
    width: 25px;
    height: 25px;
    border-radius: 121px;
    border: 1px solid;
    text-align: center;
}

#for-button-all-load {
    text-align: center;
}

#load-all-comments {
    cursor: pointer;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 7px 15px;
}

.treelike-showImgComments, #mg-product-comments-rating ul li .treelike-showImgComments {
    margin-top: 10px;
    display: inline-block;
    color: #1585cf;
    border-bottom: 1px dashed #1585cf;
    font-size: 14px;
    font-weight: initial;
    text-transform: initial;
}

.treelike-showImgComments:hover, #mg-product-comments-rating ul li .treelike-showImgComments:hover {
    text-decoration: none;
    border-color: transparent;
}

.mg-product-comments-rating-dropZone, #mg-product-comments-rating ul li .mg-product-comments-rating-dropZone {
    display: inline-block;
    width: 600px;
    height: 100px;
    border: 2px dashed rgba(0, 0, 0, .3);
    border-radius: 20px;
    text-align: center;
    line-height: 100px;
    font-size: 20px;
    color: rgba(0, 0, 0, .3);
    position: relative;
    margin-top: 10px;
}

#mg-product-comments-rating ul li .mg-product-comments-rating-dropZone span {
    text-align: center;
    line-height: 100px;
    font-size: 20px;
    font-weight: initial;
    text-transform: initial;
}

.mg-product-comments-rating-dropZone input {
    width: 100%;
    height: 100%;
    vertical-align: top;
    position: absolute;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

#mg-product-comments-rating-ajax-body .commentImage img, #mg-product-comments-rating-ajax-body .mg-product-comments-rating_preview .commentImage img {
    border-radius: 5px;
    height: auto;  
    margin: 5px;  
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);   
    border: 1px solid #ccc;  
    max-width: 100%;  
    object-fit: contain;   
}

#mg-product-comments-rating .mg-product-comments-rating_img {
    border-radius: 5px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);   
    border: 1px solid #ccc;  
    display: flex;
    align-content: center;
    margin-right: 15px;
    margin-top: 15px;
    justify-content: center;

}

#mg-product-comments-rating .mg-product-comments-rating_preview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;

}

.success {
    background: #ecffed;
    width: 100%;
    display: block;
    padding: 20px;
    border: 1px solid #b9e7bc;
    color: #4caf50;
}

.send-comment:active {
    transform: none;
}


#mg-product-comments-rating .comment-need-auth{
    background: #ecffed;
    width: 100%;
    display: block;
    padding: 20px;
    border: 1px solid #b9e7bc;
    color: #4caf50;
}