.product-comment {
    display: flex;
    width: 100%;
}

.comments * {
    box-sizing: border-box;
    outline: none;
}

.button__review {
    background: #d70018;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    padding: 10px 16px;
    text-align: center;
    white-space: nowrap;
    border: none;
    margin-top:10px;
}

.comments {
    width: 100%;
    clear: both;
    border-radius: 10px;
    padding: 15px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.comments-action {
    margin-bottom: 15px;
}

.comments .list {
    letter-spacing: normal;
}

.comments__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

    .comments__title .title {
        margin-bottom: 0.5rem;
    }

.product-comment .block-rate {
    border: solid 1px #ddd;
    border-radius: 10px;
    padding: 0px 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    color: #4a4a4a;
    text-align: center;
    align-items: center;
}

.product-comment .block-rate__star {
    width:200px;
    padding: 10px;
    font-size: 12px;
    margin:auto;
}

    .product-comment .block-rate__star span.avg {
        font-size: 40px;
        color: #000;
        line-height: 40px;
        font-weight: bold;
        display: flex;
        justify-content: center;
        margin-bottom: 5px;
    }

        .product-comment .block-rate__star span.avg svg {
            margin-left: 10px;
        }

.block-rate__chart {
    flex: 0 0 calc(100% - 200px);
    padding: 10px;
    border-left: 1px solid #d8d8d8;
}

    .block-rate__chart .chart {
        font-size: 14px;
    }

        .block-rate__chart .chart .item {
            display: flex;
            line-height: 1.4;
            margin-bottom: 5px;
            align-items:center;
        }

            .block-rate__chart .chart .item .left {
                vertical-align:middle;
                display:flex;
                gap:4px;
                align-items:center;
                width:50px;
            }

            .block-rate__chart .chart .item .right {
                text-align: left;
                display:flex;
                justify-content:space-between;
                align-items:center;
                width:calc(100% - 50px)
            }

            .block-rate__chart .chart .item .progress {
                height: 8px;
                background: #db0000;
                margin-bottom: 0px;
                border: 1px solid #db0000;
                border-radius: 5px;
                width: calc(100% - 105px);
            }

            .block-rate__chart .chart .item .progress-bar {
                height: 100%;
                background: #fff;
                display: block;
                border-radius: 5px;
            }

            .block-rate__chart .chart .item .number {
                font-size: 12px;
                color: #a1a1aa;
                width:100px;
            }

/*rating*/
.comments-list .item .rating {
    float: right;
}

    .comments-list .item .rating .rating-star {
        display: flex;
    }


.comments-action .send {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    line-height: 1.8;
}

    .comments-action .send span {
        font-size: 18px;
        font-weight: 600;
    }

    .comments-action .send a {
        cursor: pointer;
        padding: 0px 45px;
        color: #fff;
        background: #ff0000;
        border-radius: 20px;
        font-size: 18px;
    }

.comments-add {
    width: 100%;
    float: left;
    clear: both;
    margin-bottom: 20px;
}

    .comments-add .close {
        box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .15);
        background: #ff0000;
        color: #fff;
        border-radius: 0 0 0 12px;
        position: absolute;
        top: 0;
        right: 0;
        display: none;
        padding: 5px 15px 5px 20px;
        cursor: pointer;
        font-weight: 700;
        font-size: 13px;
    }

    .comments-add.show-rep {
        position: fixed;
        width: 600px;
        max-width: 90%;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        margin: auto;
        background: #fff;
        padding: 15px 15px 15px 15px;
        border-radius: 12px;
        z-index: 9999;
        height: 370px;
        overflow: hidden;
    }

    .comments-add.logged.show-rep {
        height: 280px;
    }

    .comments-add.show-rep .notes, .comments-add.show-rep .comment-form-cookies-consent {
        display: none;
    }

    .comments-add.show-rep .notes-rep {
        display: block !important;
        font-weight: bold;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .comments-add.show-rep .close {
        display: block;
    }

    .comments-add .notes {
        margin-bottom: 10px;
        font-size: 14px;
    }

.comments-add__rate {
    margin-bottom: 15px;
}

    .comments-add__rate p {
        font-size: 14px;
    }

    .comments-add__rate .rating {
        margin-bottom: 10px;
    }

    .comments-add__rate .star {
        display: flex;
        width: 100%;
        justify-content: space-evenly
    }

        .comments-add__rate .star div {display:flex;flex-direction:column;align-items:center;}
            .comments-add__rate .star div span:last-child {color:#aaa;font-size:13px;}

            .comments-add__rate .star svg {
                margin-right: 3px;
                cursor: pointer;
            }

            .comments-add__rate .star svg.active {
                fill: #fd9727;
            }

                .comments-add__rate .star svg.active path {
                    stroke: #fd9727;
                }

            .comments-add__rate .star svg path.active {
                stroke: #fd9727;
            }



.comments-add__form {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    clear: both;
    background: #ffffff;
}

    .comments-add__form label.comment {
        margin-bottom: 0.5rem;
        display: inline-block;
    }

.comments-add__form-field {
    width: 100%;
    float: left;
    clear: both;
    border: 1px solid #cacaca;
    height: 100px;
    border-radius: 5px;
    padding: 10px;
    font-family: Arial;
    font-size: 15px;
    margin-bottom: 10px;
}

.comments-add__form .textbox {
    width: calc((100% - 10px )/2);
    margin: 0 10px 10px 0;
    display: inline-block;
}

.comments-add__form .comment-form-cookies-consent {
    margin-bottom: 10px;
}

    .comments-add__form .comment-form-cookies-consent input {
        margin-right: 5px;
    }

.comments-add__form label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.5;
}

.comments-add__form .textbox.right {
    margin-right: 0;
}

.comments-add__form .textbox input {
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    color: #555;
    display: block;
    font-size: 14px;
    line-height: 1.5;
    max-height: 38px;
    padding: 8px 12px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    width: 100%
}

.comments-add__action {
    width: 100%;
    border-top: none;
    border-radius: 0 0 5px 5px;
    padding: 5px 5px 5px 0;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comments-add__action-left {
    float: left;
}

.comments-add__action ul {
    float: left;
    width: 100%;
    list-style: none;
    padding: 5px 0;
}

    .comments-add__action ul li {
        float: left;
        line-height: 20px;
        border-right: 1px solid #cacaca;
        padding: 0 10px;
    }

        .comments-add__action ul li:last-child {
            border-right: none;
        }

        .comments-add__action ul li a {
            color: #4a90e2;
        }

        .comments-add__action ul li input[type=file] {
            width: 0.1px;
            height: 0.1px;
            opacity: 0;
            overflow: hidden;
            position: absolute;
            z-index: -1;
        }

        .comments-add__action ul li label {
            cursor: pointer;
            color: #4a90e2;
        }

        .comments-add__action ul li i {
            margin-right: 2px;
        }

.comments-add__action-right {
    float: right;
}

.comments-add__action button {
    font-size: 1rem;
    padding: calc(.6em - 1px) 0.75em;
    border-radius: 6px;
    cursor: pointer;
    background-color: #d7000e;
    border: 0;
    color: #fff;
    gap: 5px;
    display: inline-flex;
}

    .comments-add__action button .icon-paper-plane {
        align-items: center;
        display: flex;
        width: 1em;
    }

        .comments-add__action button .icon-paper-plane svg {
            fill: #fff;
            height: 1em;
        }

    .comments-add__action button:hover {
        background: #f02c2c;
    }

.comments-add__preview {
    width: 100%;
    float: left;
    clear: both;
}

    .comments-add__preview .image {
        width: 80px;
        height: 80px;
        float: left;
        margin-right: 10px;
        margin-top: 10px;
        border: 1px solid #cacaca;
    }

        .comments-add__preview .image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

.comments-add__moreinfo {
    width: 100%;
    float: left;
    clear: both;
    margin-top: 10px;
    padding: 10px 10px 0 10px;
    background: #cacaca;
    display: none;
}

.comments-add__moreinfo-group {
    width: 100%;
    float: left;
    clear: both;
    margin-bottom: 10px;
}

    .comments-add__moreinfo-group input {
        width: 100%;
        height: 35px;
        padding: 0 10px;
        border-radius: 5px;
        border: 1px solid #cacaca;
    }

    .comments-add__moreinfo-group button {
        border-radius: 5px;
        padding: 8px 20px;
        border: none;
        float: left;
        margin-right: 10px;
    }

        .comments-add__moreinfo-group button i {
            margin-right: 5px;
        }

        .comments-add__moreinfo-group button[data-comments_submit] {
            background: #298AD7;
            color: #ffffff;
        }

        .comments-add__moreinfo-group button[data-comments_close] {
            background: #e46969;
            color: #ffffff;
        }

.comments-info {
    width: 100%;
    float: left;
    clear: both;
    padding: 0 0 10px 0;
}

.comments-info__total {
    float: left;
    font-weight: bold;
    font-size: 16px;
    color: #333333;
    text-transform: capitalize;
    line-height: 35px;
}

.comments-info__filter {
    float: right;
    position: relative;
}

    .comments-info__filter input {
        height: 35px;
        padding: 0 5px 0px 35px;
        width: 235px;
        border: 1px solid #cacaca;
        border-radius: 5px;
    }

    .comments-info__filter button {
        position: absolute;
        left: 0;
        width: 35px;
        height: 35px;
        border: none;
        background: transparent;
    }

.comments-content {
    width: 100%;
    float: left;
    clear: both;
    margin-bottom: 10px;
}

.comments-list {
    width: 100%;
    float: left;
    clear: both;
    margin-bottom: 10px;
    font-size: 14px;
}

    .comments-list .item {
        width: 100%;
        float: left;
        clear: both;
        padding: 10px 0;
    }

        .comments-list .item:first-child {
            border-top: 3px solid #f5f5f5;
            padding-top: 20px;
        }

    .comments-list .item-author {
        width: 100%;
        float: left;
        clear: both;
    }

    .comments-list .item-author__avatar {
        float: left;
        width: 26px;
        height: 26px;
        line-height: 26px;
        background: #dddddd;
        margin-right: 7px;
        text-align: center;
        color: #666;
        text-transform: uppercase;
        font-size: 12px;
        font-weight: 600;
        text-shadow: 1px 1px 0 rgba(255,255,255,.2);
        border-radius: 4px;
    }

.item-author__avatar img {
    display: none;
}

.item-author__avatar-admin {
    border-radius: 50%;
    overflow: hidden;
}

    .item-author__avatar-admin img {
        display: block;
    }

.comments-list .item-author__name {
    float: left;
    overflow: hidden;
    height: 26px;
    line-height: 26px;
    text-transform: capitalize;
    font-weight: bold;
}

.comments-list .item-author__role {
    color: #fff;
    float: left;
    font-size: 11px;
    line-height: 16px;
    margin: 4px 10px;
    background: #ff0000;
    border: 1px solid #ff0000;
    padding: 0 5px;
    border-radius: 3px;
}

.comments-list .item-content {
    width: 100%;
    float: left;
    clear: both;
    padding: 10px 0;
    line-height: 22px;
    overflow: hidden;
    /*white-space: pre-line;*/
}

    .comments-list .item-content p {
        line-height: 22px;
        margin-bottom: 5px;
        color: #555
    }

.comments-list .item-gallery {
    width: 100%;
    float: left;
    clear: both;
}

    .comments-list .item-gallery .item-image {
        width: 80px;
        height: 80px;
        float: left;
        margin-right: 10px;
        margin-bottom: 10px;
        border: 1px solid #cacaca;
        cursor: pointer;
    }

        .comments-list .item-gallery .item-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

.comments-list .item-action {
    width: 100%;
    float: left;
    clear: both;
    font-size: 12px;
}

.comments-list .item-action__reply {
    float: left;
    margin-right: 10px;
    color: #4a90e2;
    cursor: pointer;
}

.comments-list .item-action__time {
    color: #777;
    float: left;
    font-style: italic;
}

.comments-list .item-reply {
    width: 100%;
    float: left;
    clear: both;
    margin-top: 10px;
}

    .comments-list .item-reply .comments-add {
        margin-bottom: 0;
    }

.comments-list .item-child {
    width: calc(100% - 30px);
    float: left;
    clear: both;
    background: #f8f8f8;
    /*border: 1px solid #dfdfdf;*/
    position: relative;
    margin-top: 15px;
    padding: 0 10px;
    margin-left: 30px;
}

    .comments-list .item-child:before,
    .comments-list .item-child:after {
        content: "";
        top: -20px;
        left: 18px;
        border: solid transparent;
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
        z-index: -1;
    }

    .comments-list .item-child:before {
        border-color: rgba(238,238,238,0);
        border-bottom-color: #f8f8f8;
        border-width: 11px;
        margin-left: -11px;
        z-index: 0;
    }

    .comments-list .item-child:after {
        border-color: rgba(255,255,255,0);
        border-bottom-color: #dfdfdf;
        border-width: 10px;
        margin-left: -10px;
    }

    .comments-list .item-child .item {
        border-bottom: 1px solid #e1e1e1;
    }

        .comments-list .item-child .item:last-child {
            border-bottom: none;
        }

.comments-content .pagination {
    float: left;
    clear: both;
}

.comments-content ul.pagination {
    display: flex;
    white-space: nowrap;
    padding: 0;
    clear: both;
    margin: 1px;
}

.comments-content .pagination .page-item {
    border: 1px solid #e2e2e2;
    margin-right: 5px;
    border-radius: 4px;
    background: #e2e2e2;
    font-size: 13px;
}

.comments-content .pagination .page-link {
    margin: 0;
    text-decoration: none;
    padding: 0;
    line-height: 1;
    font-size: 1em;
    font-weight: 400;
    padding: 0.5em;
    min-width: 1em;
    display: block;
}

.page-item.disabled .page-link {
    color: #8a7e88;
}

.comments-content .pagination ul li a:hover, .comments-content .pagination ul li.active .page-link {
    background: #ebe9eb;
    color: #8a7e88;
}

.no-comments {
    width: 100%;
    float: left;
    clear: both;
    font-size: 18px;
    font-weight: bold;
    padding: 0;
    letter-spacing: normal;
}

.comments-loadmore {
    width: 100%;
    float: left;
    clear: both;
    margin-bottom: 20px;
}

    .comments-loadmore button {
        width: 100%;
        float: left;
        clear: both;
        border: none;
        padding: 10px;
    }

        .comments-loadmore button[data-comments_loadmore] {
            background: #f8f8f8;
            border: 1px solid #dfdfdf;
            color: #4a90e2;
            font-weight: bold;
        }

/* Module Loading */
.comments-loading {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
}

.comments-loading__box {
    width: 100%;
    height: 100%;
    background: url('../assets/img/loading_image.gif?v=nowebp') no-repeat center center;
    background-size: 50px 50px;
}

/* popup ảnh */
.comments-popup {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10001;
    transition: 0.2s;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    visibility: hidden;
}

    .comments-popup.open {
        opacity: 1;
        visibility: visible;
        transition: 0.2s;
        overflow-x: hidden;
        overflow-y: auto;
    }

.comments-popup__close {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 10001;
}

    .comments-popup__close i {
        position: absolute;
        width: 50px;
        height: 50px;
        text-align: center;
        right: 30px;
        top: 30px;
    }

    .comments-popup__close i {
        font-size: 40px;
        line-height: 50px;
        color: #ffffff;
        cursor: pointer;
        z-index: 1;
    }

.comments-popup__dialog {
    width: 600px;
    float: left;
    margin: 30px auto;
    position: relative;
    z-index: 10002;
}

.comments-popup__header {
    width: 100%;
    float: left;
    clear: both;
    position: relative;
    background: #ffffff;
    border-bottom: 1px solid #cccccc;
}

.comments-popup__header__content {
}

    .comments-popup__header__content p {
        padding: 10px 10px;
        background: #298AD7;
        color: #ffffff;
        font-weight: bold;
    }

.comments-popup__header__close {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
}

    .comments-popup__header__close i {
        width: 25px;
        height: 25px;
        border-radius: 25px;
        line-height: 25px;
        text-align: center;
        color: #ffffff;
        transition: 0.2s;
    }

.comments-popup__body {
    width: 100%;
    float: left;
    clear: both;
    position: relative;
    padding: 10px;
}


.comment-form-capcha {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

    .comment-form-capcha .textbox {
        margin: 0 10px 0 0 !important;
    }

    .comment-form-capcha img {
        border-radius: 2px;
    }

#previews .comments-popup__body img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.moreinfo .comments-popup__dialog {
    width: 500px;
}

.moreinfo .comments-popup__body {
    background: #ffffff;
    padding: 15px;
}

.moreinfo-form {
    width: 100%;
    float: left;
    clear: both;
}

    .moreinfo-form .form-group {
        width: 100%;
        float: left;
        clear: both;
        margin-bottom: 10px;
    }

        .moreinfo-form .form-group:last-child {
            margin-bottom: 0;
        }

    .moreinfo-form .form-control {
        width: 100%;
        float: left;
        clear: both;
        height: 34px;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    .moreinfo-form .form-group button[data-comments_submit] {
        width: 100%;
        background: #278AD6;
        border-radius: 5px;
        border: none;
        padding: 0 10px;
        height: 34px;
        color: #ffffff;
        text-transform: uppercase;
    }

    .moreinfo-form .form-group i {
        margin-right: 4px;
    }

@media only screen and (max-width: 768px) {

    .block-rate__chart {
        flex: 0 0 100%;
        border-top: 1px solid #d8d8d8;
        border-left: none;
        width:100%;
    }

        .block-rate__chart .chart .item {
            line-height: 1.5;
        }

    .comments-action .send a {
        cursor: pointer;
        padding: 3px 35px;
        color: #fff;
        background: #ff0000;
        border-radius: 10px;
        font-size: 14px;
    }

    .comments-add__form .textbox {
        width: 100%;
        margin: 0 0 10px 0;
    }

    .comments-add__form .comment-form-cookies-consent {
        display: flex;
        align-items: baseline;
    }
}

@media only screen and (max-width: 576px) {
    .comments-add__action {
        width: 100%;
    }

        .comments-add__action li {
            width: 100%;
            border-right: none !important;
            padding: 5px 5px !important;
        }

    .comments-add__action {
        width: 100%;
        float: left;
    }

        .comments-add__action button {
            width: 100%;
            margin-left: 0;
        }

    .comments-info__total {
        width: 100%;
        margin-bottom: 5px;
    }

    .comments-info__filter {
        width: 100%;
        margin-bottom: 5px;
    }

        .comments-info__filter input {
            width: 100%;
        }
}

@media only screen and (max-width: 768px) {
    .post-comment {
        width: 100%;
    }

    .post-comment__content {
        width: 100%;
    }

        .post-comment__content .comments {
            border-radius: unset;
            padding: 0;
            box-shadow: unset;
            border: unset;
        }
}

@media(max-width: 768px) {
    .no-comments {
        padding: 0;
    }

    .comments-content {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .comments {
        margin-bottom: 10px;
    }
}

