#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;
    color: #8E8E8E;
    margin: 3px 0 0 5px;
    position: relative;
    top: -3px;
}

#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, #mg-product-comments-rating-ajax-body .mg-product-comments-rating_preview .commentImage {
    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;
    width: auto;
}

#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;
}

.modal-comments-preview .modal-all-imgs {
    display: none;   
}
.modal-comments-preview .modal-all-imgs-active {
    display: block;
    overflow-y: auto;
    padding-left: 10px;
}

.modal-comments-preview .modal-all-imgs-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-comments-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.modal-comments-preview-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-comments-preview {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-comments-preview-overlay.active .modal {
    transform: translateY(0);
}

.modal-comments-preview .modal-comments-preview-header {
    color: black;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-comments-preview .modal-comments-preview-title {
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.modal-comments-preview .close-btn {
    border: none;
    color: black;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.modal-comments-preview .close-btn:hover {
    transform: scale(1.2);
}

.modal-comments-preview .modal-comments-preview-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    padding: 0 25px 25px 25px;
    gap: 15px;
}

.modal-comments-preview .modal-comments-preview-body p {
    margin-bottom: 15px;
}

.modal-comments-preview .modal-comments-preview-footer {
    padding: 20px 25px;
    background-color: #f8f9fa;
    text-align: right;
    border-top: 1px solid #eee;
}

.modal-comments-preview .modal-comments-preview-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.modal-comments-preview .modal-comments-preview-btn:hover {
    background-color: #27ae60;
}

.modal-comments-preview .modal-comments-preview-content {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modal-comments-preview .modal-to-whom {
    font-size: 12px;
    color: #8E8E8E;
    font-weight: 700;    
}

.img-comments {
    display: flex;
}

.swiper-comments-preview-thumbs {
    display: flex;
    overflow: hidden;
}

.modal-comments-preview .modal-comments-preview-info {
    display: flex;
    flex-direction: column;
    width: 520px;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-comments-preview .imgPreview {
    width: calc(20% - 10px);
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 5px 8px;
    cursor: pointer;
}

.modal-comments-preview .modal-img-comments {
    border-radius: 5px;
    max-width: 100%;
    max-height: 100%;
}

.modal-comments-preview .modal-answer-more {
    color: #868695;
    cursor: pointer;
    text-align: end;    
    width: fit-content;
    margin: 0;
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(270deg, #f6f6f9 calc(100% - 30px), #f6f6f900 100%);
    padding: 0 0 0 35px;
}

.modal-comments-preview .modal-answer-comment {
    position: relative;
    overflow: hidden;
    max-height: 22px;
}

.modal-comments-preview .img-comments-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-comments-preview .slider-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    padding: 0 28px;
    position: relative;
}

.swiper-modal-button-prev {
    left: 5px;    
}

.btn-arrow {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 15px;
    box-shadow: 0 2px 8px #00000014;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-modal-button-next {
    right: 5px;
}

.swiper-thumbs-button-prev {
    left: -24px;
}

.swiper-thumbs-button-next { 
    right: -24px;
}

.modal-comments-preview .date-modal {
    display: inline-block;
    font-size: 11px;
    line-height: 11px;
    color: #8E8E8E;
    margin: 3px 0 0 5px;
}

.modal-comments-preview .rateit-modal {
    margin-left: 5px;
}

.modal-comments-preview .authorNameComment {
    font-weight: 600;
}

.modal-comments-preview .thumb-img-comment-container {
    display: flex;
    gap: 10px;
}

.modal-comments-preview .modal-comment-data-wrap {
    display: none;
}

.modal-comments-preview .modal-comment-data-wrap .comment {
    display: flex;
    margin-bottom: 10px;
}
.modal-comments-preview .active-comment-block {
    display: block;
}

.modal-comments-preview .active-thumb {
    border: 3px solid blue;
}

.modal-comments-preview .modal-nested-comment-body {
    background-color: #f6f6f9;
    margin: 10px 0;
    padding: 15px;
    border-radius: 10px;
}

.modal-comments-preview .modal-nested-comment-author {
    display: flex;
}

#commentsPreview {
    border: 1px solid #C0C0C0;
    border-radius: 12px;
    margin: 0 0 15px;
    padding: 15px;
}
#commentsPreview .commentsPreviewHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#commentsPreview .commentsPreviewPhoto {
    position: relative;
}

#commentsPreview .swiper-button-hidden {
    display: none;
}

#commentsPreview .comment-perviewer-wrap {
    display: flex;
}

#commentsPreview .imgShow {
    object-fit: cover;
    border-radius: 8px;
    width: 100%;
    height: 100%;
}

#commentsPreview .commentsPreviewWrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#commentsPreview .show-all-preview {
    cursor: pointer;
}

#commentsPreview .comments-sort {
    display: inline-flex;
    border-bottom: 1px dashed #000;
}

#commentsPreview .comments-sort svg {
    display: none;
}

#commentsPreview .active-comment-sort svg {
    display: block;
}

#commentsPreview .arrow-sort-down {
    transform: rotate(180deg);
}

.swiper-modal-slide {
    width: 120px;
    height: 130px;
}

#commentsPreview .commentsPreviewBody {
    display: flex;
    gap: 15px;
}

#commentsPreview .non-active-txt {
    color: #a9a8b0;
}

#commentsPreview .active-comment-sort {
    color: black;
}

#commentsPreview .commentsHeaderRating {
    display: flex;
    gap: 10px;
    align-items: center;
}

#commentsPreview .rateit {
    margin-top: 4px;
}

#commentsPreview .rating-txt {
    color: rgba(7, 7, 7, 1);
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
}

@media (max-width: 768px) {
    #commentsPreview .commentsPreviewHeader {
        display: none;
    }
    .modal-comments-preview .slider-container {
        padding: 0;
    }
    .modal-comments-preview .slider-container svg{
        width: 15px;
        height: 15px;
    }
    .modal-comments-preview .modal-comments-preview-title {
        display: none;
    }
    .modal-comments-preview .modal-comments-preview-header {
        justify-content: end;
    }
    .modal-comments-preview .modal-comments-preview-body {
        padding: 0 10px 10px 10px;
    }
    .modal-comments-preview .btn-arrow {
        width: 28px;
        height: 28px;
        padding: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 998px) {
    .modal-comments-preview .modal-comments-preview-body {
        flex-direction: column;
    }
    .modal-comments-preview .modal-comments-preview-info {
        width: 100%;
        height: 100%;
    }
    .modal-comments-preview .thumb-img-comment-container {
        display: none;
    }
    .modal-comments-preview .slider-container {
        flex: auto;
    }
}