:root {
    --color-btn:#fff;
    --color-main:#ed3237;
    --color-hr:#ececec;
    --score-big:#000;
    --color-star-evalue:#eee;
    --color-admin:#008aff;
    --color-star-hover:#ffc107;
    --color-star-checked:#ffc107;
    --color-star-check-full:#ffc107;
    --color-btn-green:#549900;
    --color-fetch-more:#ffc107;
}

.user-rating {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.rating {
    position: relative;
    line-height: 1;
    display: inline-block;
    color: var(--color-star-checked);
}

.rating--active {
    position: absolute;
    white-space: nowrap;
    top: 0;
    left: 0;
    color: var(--color-star-checked);
    overflow: hidden;
}

div.user-rating .rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

div.user-rating {
    display: flex;
    margin: 24px auto 16px;
    width:120px
}

div.stars {
    display: inline-block;
}

input.star {
    display: none;
}

label.star {
    margin-right: 2px;
    font-size: 1.5rem;
    transition: all .3s;
}

    label.star:before {
        color: var(--color-star-evalue);
        content: "\f006";
        font-family: "FontAwesome";
    }

input.star:checked ~ label.star:before {
    content: "\f006";
    color: var(--color-star-checked);
    transition: all .25s;
}

input.star-5:checked ~ label.star:before {
    color: var(--color-star-check-full);
    text-shadow: .1px .1px 4px var(--color-star-check-full);
}

label.star:hover {
    transform: rotate(-5deg) scale(1.1);
    color: var(--color-star-hover);
}

input.star:hover ~ label.star:before {
    content: "\f006";
    color: var(--color-star-hover);
    transition: all .25s;
}

.comment-box__title {
    font-size: 1.625rem;
    font-family: "Hel_Bold",sans-serif;
}

.comment-box__percent > p {
    flex: 1;
}

.comment-box__percent {
    margin: 16px 0;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
}

.rating-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-left: 16px;
}

.rating-list__star > p {
    width: 30%;
    margin:0px;
}

.rating-list__star {
    display: flex;
    flex: 0 0 25%;
    align-items: center;
    justify-content: space-between;
}

.rating-list > ul li p:nth-child(3) {
    min-width: 70px;
}

.rating-list__item {
    display: -ms-flexbox;
    display: flex;
    height: 1rem;
    overflow: hidden;
    font-size: .75rem;
    background-color: var(--color-star-evalue);
    border-radius: 20px;
    flex: 1;
    width: 100%;
}

    .rating-list__item .progress-bar {
        border-radius: 20px;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-direction: column;
        flex-direction: column;
        -ms-flex-pack: center;
        justify-content: center;
        color: var(--color-btn);
        text-align: center;
        white-space: nowrap;
        width: var(--percent);
        animation: growth 1s ease-in-out;
        background-color: var(--color-star-checked);
    }

.rating-list li {
    display: flex;
    align-items: center;
}

    .rating-list li:not(:last-child) {
        margin-bottom: 15px;
    }

    .rating-list li .rating {
        margin: 0 15px;
    }

        .rating-list li .rating span {
            font-size: 16px;
        }

@keyframes growth {
    from {
        width: 0;
    }

    to {
        width: calc(var(--percent));
    }
}

.comment-box__list .comment-item:not(:last-child) {
    border-bottom: 1px solid var(--color-hr);
}

.comment-box__list .no-result {
    padding: 16px 0;
}

.comment-box__list {
    margin: 24px 0;
    border-top: 1px solid var(--color-hr);
    border-bottom: 1px solid var(--color-hr);
}

.comment-box__content {
    background: var(--color-btn);
    border-radius: 1.125rem;
    padding: 2rem 0;
}

.comment-item__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    -webkit-flex-wrap: wrap;
    padding: 16px 0;
    -webkit-flex: 1 1 auto;
}

.comment-item__img img {
    width: 100%;
    overflow: hidden;
    margin-right: 16px;
}

.comment-item__img {
    width: 3rem;
    position: relative;
    padding-bottom: 3rem;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 100%;
    margin-right: 1rem;
    box-shadow: 0 0 3px 1px var(--color-star-evalue);
    background-position: center;
}

p.comment-box__title:first-letter {
    text-transform: uppercase;
}

.comment-user__info {
    margin-bottom: 12px;
}

.comment-item__type {
    color: var(--color-star-evalue);
    margin-right: 16px;
}

.comment-item__info {
    flex: 1;
}

.comment-item__content {
    margin-bottom: 12px;
}

.rating-score .rating {
    font-size: 1.125rem;
}

.rating-score .score-big {
    font-size: 64px;
    font-family: "Hel_Bold",sans-serif;
    color: var(--score-big);
}

.rating-score {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 30%;
}

.comment-box__form-img {
    background-repeat: no-repeat;
    background-size: cover;
    width: 50px;
    height: 50px;
    margin-right: 12px;
    padding-bottom: 50px;
    border-radius: 100%;
    margin-top: 10px;
    box-shadow: 0 0 3px 1px var(--color-star-evalue);
    background-position: center;
}

.comment-img__item img {
    width: 100%;
    height: 100%;
}

.comment-item__imgs {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(120px,1fr));
    grid-gap: 10px;
}

.comment-box__form {
    display: flex;
    flex-wrap: wrap;
}

.rep-comment textarea:focus {
    border: 1px solid var(--color-main);
    box-shadow: 0 0 6px .4px var(--color-main);
}

.rep-comment textarea {
    padding: 12px 16px;
    width: 100%;
    outline: none;
    border: 1px solid var(--color-star-evalue);
    border-radius: 5px;
    margin-bottom: 12px;
    transition: all .3s ease-in;
}

.rep-comment button:hover {
    color: var(--color-btn);
    background: var(--color-main);
}

.rep-comment button {
    color: #fff;
    background: #ed3237;
    cursor: pointer;
    border-radius: 10px;
    transition: all .3s ease-in-out;
    outline: none;
    border: 1px solid #ed3237;
}

.comment-childs {
    padding-left: 48px;
}

.group-form {
    width: 100%;
}

    .group-form textarea[name="content"] {
        border: 1px solid var(--color-main);
        border-radius: 10px;
        padding: 5px 20px;
    }

.rep-comment {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    white-space: nowrap;
    gap: .625rem;
    margin-top: .625rem;
    gap: 5px;
}

    .rep-comment .group-form {
        display: block;
    }

        .rep-comment .group-form .errorMessage {
            display: block;
        }

        .rep-comment .group-form textarea[name="content"] {
            width: 100% !important;
            margin-bottom: 0;
            max-width: 50%;
        }

    .rep-comment .group-form {
        align-items: center;
        gap: .625rem;
    }

.show_textarea_comment_child {
    outline: none;
    padding: 0;
    color: #ed3237;
    background: none;
    border: none;
}

.formComment {
    flex: 1;
    overflow: hidden;
}

    .formComment textarea:focus {
        border: 1px solid var(--color-main);
    }

    .formComment textarea {
        outline: none;
        width: 100%;
        border: 1px solid var(--color-star-evalue);
        border-radius: 12px;
        padding: 16px 12px;
        transition: all .3s;
    }

.formComment__action {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

    .formComment__action label span {
        margin-left: 12px;
    }

    .formComment__action label {
        color: var(--color-main);
        padding: .625rem 1.25rem;
        border: 1px solid var(--color-main);
        border-radius: 88px;
        transition: all .3s;
        cursor: pointer;
    }

        .formComment__action label:hover {
            background: var(--color-main);
            border: 1px solid transparent;
            color: var(--color-btn);
        }

        .formComment__action label:active {
            transform: scale(1.02);
        }

    .formComment__action input {
        display: none;
    }

    .formComment__action .btn:active {
        transform: scale(1.02);
    }

    .formComment__action .btn {
        padding: 1.325rem 1.25rem;
        border-radius: 25px;
        transition: all .3s;
        background: var(--color-btn);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 2rem;
    }

[hidden] {
    display: none !important;
}

.btn--green {
    background: var(--color-btn-green);
}

.btn--orange:hover {
    background: var(--color-btn-green);
    color: #fff;
    border: 1px solid transparent;
}

.btn--orange {
    border: 1px solid var(--color-main);
    color: var(--color-main);
}

    .btn--orange:hover {
        background: var(--color-main);
        color: #fff;
        border: 1px solid transparent;
    }

.count-comment {
    margin-bottom: 12px;
}

.comment-item__datetime {
    font-size: .875rem;
}

.comment-user__info.is-order .user-info__name span {
    position: relative;
    margin-left: 50px;
    font-size: 14px;
    color: var(--color-main);
    font-weight: 400;
}

    .comment-user__info.is-order .user-info__name span:before {
        content: "";
        margin-left: 12px;
        width: 5px;
        height: 10px;
        color: #fff;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        display: block;
        position: absolute;
        left: -30px;
        z-index: 10;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .comment-user__info.is-order .user-info__name span:after {
        content: "";
        height: 20px;
        display: block;
        width: 20px;
        background: var(--color-main);
        margin-left: 12px;
        font-size: .875rem;
        color: var(--color-main);
        font-weight: inherit;
        padding: 4px;
        position: absolute;
        left: -38px;
        top: 50%;
        border-radius: 50%;
        transform: translateY(-50%);
    }

.comment-user__info .user-info__name {
    font-family: "Hel_Bold",sans-serif;
    display: flex;
    align-items: center;
}

    .comment-user__info .user-info__name .rating {
        margin-left: 10px;
    }

.check-buyked {
    font-size: 14px;
    position: relative;
    margin-left: 25px;
    color: #ed3237;
    display: block;
}

    .check-buyked:before {
        content: "";
        margin-left: 12px;
        width: 5px;
        height: 10px;
        color: #fff;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        display: block;
        position: absolute;
        left: -30px;
        z-index: 10;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .check-buyked:after {
        content: "";
        height: 20px;
        display: block;
        width: 20px;
        background: #ed3237;
        margin-left: 12px;
        font-size: .875rem;
        color: #ed3237;
        font-weight: inherit;
        padding: 4px;
        position: absolute;
        left: -38px;
        top: 50%;
        border-radius: 50%;
        transform: translateY(-50%);
    }

.comment-user__info.admin .user-info__name:after {
    content: "QTV";
    margin-left: 12px;
    font-size: .675rem;
    color: var(--color-btn);
    padding: 4px;
    background: var(--color-admin);
}

.comment-user__info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.switch-item {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 48px;
}

    .switch-item input {
        display: none;
    }

.slider-item {
    background-color: var(--color-star-evalue);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

    .slider-item:before {
        background-color: var(--color-btn);
        bottom: 4px;
        content: "";
        height: 16px;
        left: 4px;
        position: absolute;
        transition: .4s;
        width: 16px;
    }

input:checked + .slider-item {
    background-color: var(--color-star-check-full);
    border-color: var(--color-star-check-full);
    box-shadow: .2px .2px 2px 2px var(--color-star-check-full),.2px .2px 2px 2px var(--color-star-checked);
}

    input:checked + .slider-item:before {
        transform: translateX(26px);
    }

.slider-item.round {
    border-radius: 34px;
}

    .slider-item.round:before {
        border-radius: 50%;
    }

.more-comment:hover {
    background: var(--color-main);
    color: var(--color-btn);
    border: 1px solid var(--color-main);
}

.more-comment {
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 10%;
    margin: 24px 0;
    border: 1px solid var(--color-main);
    background: var(--color-btn);
    color: var(--color-main);
    cursor: pointer;
    border-radius: 10px;
    transition: all .3s ease-out;
}

button.more-comment--child:hover {
    border: 1px solid var(--color-main);
    background: var(--color-btn);
    color: var(--color-main);
}

button.more-comment--child {
    padding: 6px 12px;
    background: var(--color-main);
    color: var(--color-btn);
    border: 1px solid var(--color-main);
    color: #fff;
    margin: 12px 0;
    border-radius: 10px;
    transition: all .3s ease-out;
    cursor: pointer;
    margin-left: 48px;
}

.comment-box__filter {
    display: flex;
    align-items: center;
    margin: 32px 0;
    flex-wrap: wrap;
}

    .comment-box__filter p {
        font-family: "Hel_Bold",sans-serif;
        margin-right: 16px;
        margin-bottom: 12px;
        white-space: nowrap;
    }

.comment-filter__lists {
    display: flex;
    overflow: auto;
    padding-bottom: 12px;
}

    .comment-filter__lists label ~ label {
        margin-left: 16px;
    }

    .comment-filter__lists label {
        white-space: nowrap;
        padding: 6px 24px;
        border: 1px solid var(--color-star-evalue);
        border-radius: 5px;
        cursor: pointer;
        background: var(--color-btn);
        transition: border 0.2s,background 0.2s,color .2s;
        will-change: border,background,color;
    }

    .comment-filter__lists input:checked + label {
        border: 1px var(--color-main);
        background: var(--color-main);
        color: var(--color-btn);
    }

    .comment-filter__lists::-webkit-scrollbar {
        height: 8px;
    }

    .comment-filter__lists::-webkit-scrollbar-thumb {
        background: var(--color-main);
        border-radius: 5px;
        margin-top: 12px;
    }

.comment-action {
    display: flex;
    flex-wrap: wrap;
}

    .comment-action .btn-like-comment {
        border: none;
        color: var(--color-main);
        background: var(--color-btn);
        cursor: pointer;
        border-radius: 10px;
        transition: all .3s ease-in-out;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        .comment-action .btn-like-comment svg path {
            stroke: var(--color-main);
        }

        .comment-action .btn-like-comment svg {
            height: 16px;
            width: 16px;
            margin-right: 6px;
        }

        .comment-action .btn-like-comment.like {
            color: var(--color-main);
        }

            .comment-action .btn-like-comment.like svg path {
                stroke: var(--color-main);
            }

.row_flex_5 {
    margin-left: -5px !important;
    margin-right: -5px !important;
}

    .row_flex_5 > div[class^="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }

.input_all {
    width: 100%;
    padding: 10px 20px;
    border: 1px solid #ebebeb;
    border-radius: 10px;
}

.row_flex_5 .col-sm-6 {
    flex: 0 0 auto;
    width: 100%;
}

.show_textarea_comment_child {
    background: transparent !important;
    margin-bottom: 0;
    font-size: 14px;
}

.rep-comment .group-form textarea[name="content"] {
    margin-bottom: 1rem;
}

.progress{width:100%}

@media(min-width: 576px) {
    .row_flex_5 .col-sm-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (max-width: 1600px) {
    .rating-list li .rating span {
        font-size: .975rem;
    }

    .rating-list li .rating {
        margin: 0 10px;
    }
}

@media (max-width: 1366px) {
    .rating-list__star {
        flex: 0 0 30%;
    }

    .rating-list li .rating span {
        font-size: .875rem;
    }
}

@media (max-width: 1200px) {
    .comment-box__percent > p {
        flex: 0 0 30%;
    }
}

@media (max-width: 991px) {
    .comment-box__content {
        padding: 2rem 1rem;
    }

    .comment-item__imgs .comment-item__img {
        width: 56px;
        padding-bottom: 56px;
    }

    .rating-list li .rating span {
        font-size: .625rem;
    }

    .rating-list__star {
        flex: 0 0 40%;
    }
}

@media (max-width: 768px) {
    .rating-list__star {
        flex: 0 0 50%;
    }
}

@media (max-width: 575px) {
    .comment-user__info.is-order .user-info__name span {
        display: block;
        margin-left: 0;
    }

        .comment-user__info.is-order .user-info__name span:before {
            right: -27px;
            left: unset;
        }

        .comment-user__info.is-order .user-info__name span:after {
            right: -35px;
            left: unset;
        }

    .rating {
        font-size: .875rem;
    }

    .rating-score {
        border-right: none;
        border: 2px solid var(--color-star-evalue);
        padding: 16px;
    }

    .rating-list {
        margin-left: 0;
    }

    .rating-list__item {
        height: .675rem;
    }

    .rating-score {
        width: 100%;
        margin: 12px 0;
        border-radius: 5px;
    }

    .rating-list__star {
        flex: 0 0 50%;
        justify-content: flex-end;
    }

    .comment-childs {
        padding-left: 24px;
    }

    .rep-comment {
        align-items: flex-start;
        flex-direction: column-reverse;
    }

        .rep-comment .group-form {
            flex-direction: column;
            align-items: flex-start;
        }

            .rep-comment .group-form textarea[name="content"] {
                max-width: 100%;
            }

    .comment-user__info .user-info__name span {
        margin-left: 30px;
    }
}

@media (max-width: 480px) {
    .formComment__action .btn {
        padding: .4rem 1.25rem;
    }

    .formComment__action label {
        height: 2rem;
        padding: .4rem 1.25rem;
        display: flex;
        align-items: center;
    }

    .rating-list li .rating {
        margin: 0 8px;
        margin-left: 0;
    }

    .comment-item__img {
        width: 60px;
        padding-bottom: 60px;
    }

    .comment-item__type {
        font-size: 12px;
    }

    .comment-user__info {
        margin-bottom: 2px;
    }
}

@media (max-width: 420px) {
    .rating-list__star > p {
        font-size: .875rem;
        margin:0px;
    }

    .rating-list__star {
        flex: 0 0 50%;
    }
}

@media (max-width: 380px) {
    .rep-comment button, .formComment__action label, .formComment__action .btn {
        padding: .5rem .675rem;
    }

    .rep-comment button, .formComment__action label, .formComment__action .btn, .formComment textarea {
        font-size: .775rem;
    }

    .rating {
        font-size: .725rem;
    }

    .comment-box__title {
        font-size: 1.125rem;
    }

    div.user-rating {
        margin: 12px 0;
    }

    .rating-list li:not(:last-child) {
        margin-bottom: 5px;
    }

    .comment-img__label {
        padding: 3px 10px !important;
    }

    label.star {
        font-size: 1.3rem;
    }

    .comment-item__datetime {
        font-size: .75rem;
    }

    .rating-list__star {
        font-size: .725rem;
    }

    .comment-box__form-img {
        width: 48px;
        height: 48px;
        padding-bottom: 48px;
    }

    .comment-child__item {
        margin-left: 12px;
    }

    .comment-item__img {
        width: 32px;
        padding-bottom: 32px;
    }

    .formComment textarea {
        padding: 8px 12px;
    }
}

@media (max-width: 320px) {
    .comment-user__info.admin .user-info__name:after {
        margin-left: 4px;
        padding: 2px 4px;
        font-size: .675rem;
    }

    .comment-item__top .comment-item__datetime {
        font-size: 12px;
        margin-top: 5px;
    }

    .rating-list__star {
        flex: 0 0 50%;
    }
}


