:root {
    --color-btn: white;
    --color-main: #ed3237;
    --color-hr: #ececec;
    --score-big: #000000;
    --color-star-evalue: #eeeeee;
    --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;
}
/*  Module rating */
div.user-rating .rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
div.user-rating {
    display: flex;
    margin: 24px 0 16px;
}
div.stars {
    display: inline-block;
}
input.star {
    display: none;
}
label.star {
    margin-right: 2px;
    font-size: 1.5rem;
    transition: all 0.3s;
}
label.star:before {
    color: var(--color-star-evalue);
    content: "\f005";
    font-family: "FontAwesome";
}
input.star:checked~label.star:before {
    content: "\f005";
    color: var(--color-star-checked);
    transition: all 0.25s;
}
input.star-5:checked~label.star:before {
    color: var(--color-star-check-full);
    text-shadow: 0.1px 0.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: "\f005";
    color: var(--color-star-hover);
    transition: all 0.25s;
}
.comment-box__title {
    font-size: 1.625rem;
    font-family: "Hel_Bold", sans-serif;
}
.comment-box__percent>p {
    flex: 1;
}
.comment-box__percent {
    width: 100%;
    margin: 16px 0;
    padding: 10px;
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Evalue */
.rating-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-left: 16px;
}
.rating-list__star>p {
    width: 30%;
}
.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: 0.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: 5px;
}
.rating-list li .rating {
    margin: 0px 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){
    padding-bottom: 10px;
}
.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;
    padding-bottom: 10px;
    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 0rem;
    padding-bottom: 0;
    margin-bottom: 2rem;
}
.comment-item__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 0;
}
.comment-item__img img {
    width: 100%;
    overflow: hidden;
    margin-right: 16px;
}
.comment-item__img {
    width: 3rem;
    position: relative;
    padding-bottom: 3rem;
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 100%;
    margin-right: 1rem;
    box-shadow: 0 0 3px 1px var(--color-star-evalue);
    background-position: center;
}
.comment-item__img-text {
    width: 3rem;
    height: 3rem;
    border-radius: 100%;
    margin-right: 1rem;
    background: #ccc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: 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;
    /*  white-space: pre-line; */
}
.rating-score .rating {
    font-size: 1.125rem;
}
.rating-score .score-big {
    font-size: 24px;
    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: 28%;
}
.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: 0px 0px 3px 1px var(--color-star-evalue);
    background-position: center;
}
.comment-img__item img {
    width: 100%;
    height: 100%;
}
.comment-item__imgs {
    display: flex;
}
.comment-item__imgs a:not(:last-child){
    margin-right: 10px;
}
.comment-box__form {
    display: flex;
    flex-wrap: wrap;
    background: #f8f8f8;
    border: 1px solid #dadada;
    padding: 20px;
}
.rep-comment textarea:focus {
    border: 1px solid var(--color-main);
    box-shadow: 0 0 6px 0.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 0.3s ease-in;
}
.rep-comment button:hover {
    color: var(--color-btn);
    background: var(--color-main);
}
.rep-comment button {
    /* border: none; */
    color: #fff;
    background: #ed3237;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    outline: none;
    border: 1px solid #ed3237;
}
.comment-childs {
    width: 100%;
    margin-top: 10px;
    background: #f8f8f8;
    border: 1px solid #e4e1e3;
    padding: 10px;
    position: relative;
    padding-left: 0 !important;
}
.comment-childs:after {
    bottom: 100%;
    left: 21px;
    top: -18px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    border-color: rgba(238, 238, 238, 0);
    border-bottom-color: #f8f8f8;
    border-width: 9px;
    margin-left: -9px;
}
.comment-childs .comment-item {
    border: none !important;
}
.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: 0.625rem;
    margin-top: 0.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: 0.625rem;
}
.show_textarea_comment_child {
    outline: none;
    padding: 0;
    color: #ffc107;
    background: none;
    border: none;
}
.formComment {
    flex: 1;
    overflow: hidden;
}
.formComment textarea:focus {
    border: 1px solid var(--color-main);
    box-shadow: 0 0 6px 0.4px var(--color-main);
}
.formComment textarea {
    outline: none;
    width: 100%;
    border: 1px solid var(--color-star-evalue);
    border-radius: 12px;
    padding: 16px 12px;
    transition: all 0.3s;
}
.formComment__action {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-bottom: 8px;
}
.formComment__action label span {
    margin-left: 12px;
}
.formComment__action label {
    color: #f7ca00;
    padding: 0.625rem 1.25rem;
    border: 1px solid #f7ca00;
    border-radius: 88px;
    transition: all 0.3s;
    cursor: pointer;
}
.formComment__action label:hover {
    background: #f7ca00;
    border: 1px solid transparent;
    color: #000;
}
.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 0.3s;
    background: var(--color-btn);
    cursor: pointer;
}
.btn--green {
    background: var(--color-btn-green);
}
.btn--orange:hover {
    background: var(--color-btn-green);
    color: white;
    border: 1px solid transparent;
}
.btn--orange {
    border: 1px solid var(--color-main);
    color: var(--color-main);
}
.btn--orange:hover {
    background: var(--color-main);
    color: white;
    border: 1px solid transparent;
}
.count-comment {
    margin-bottom: 12px;
}
.comment-item__datetime {
    font-size: 0.875rem;
}
.comment-user__info.is-order .user-info__name span {
    position: relative;
    margin-left: 50px;
    font-size: 14px;
    color: #ffc107;
    font-weight: 400;
}
.comment-user__info.is-order .user-info__name span:before {
    content: "";
    margin-left: 12px;
    width: 5px;
    height: 10px;
    color: white;
    border: solid white;
    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: #ffc107;
    margin-left: 12px;
    font-size: 0.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;
    font-weight: bold;
}
.comment-user__info.admin .user-info__name:after {
    content: "QTV";
    margin-left: 12px;
    font-size: 0.675rem;
    color: var(--color-btn);
    padding: 4px;
    background: var(--color-admin);
}
.comment-user__info {
    display: flex;
    justify-content: space-between;
}
/* Công tắc quản trị */
.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: 0.4s;
}
.slider-item:before {
    background-color: var(--color-btn);
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: 0.4s;
    width: 16px;
}
input:checked+.slider-item {
    background-color: var(--color-star-check-full);
    border-color: var(--color-star-check-full);
    box-shadow: 0.2px 0.2px 2px 2px var(--color-star-check-full),
        0.2px 0.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: #F5DC6C;
    color: #252525;
   
}
.more-comment {
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 10%;
    margin: 24px 0;
    border: 1px solid #F5DC6C;
    background: var(--color-btn);
    color: #F5DC6C;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.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: white;
    margin: 12px 0;
    border-radius: 10px;
    transition: all 0.3s ease-out;
    cursor: pointer;
    margin-left: 48px;
}
/* COMMENT_FILTER */
.comment-box__filter {
    display: flex;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
}
.mb-20s {
    margin-bottom: 20px;
}
.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 0.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;
}
/* End comment filter */
/* Like Comment */
.comment-action {
    display: flex;
    flex-wrap: wrap;
}
.comment-action .btn-like-comment {
    border: none;
    color: #ffc107;
    background: var(--color-btn);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.comment-action .btn-like-comment svg path {
    stroke: #ffc107;
}
.comment-action .btn-like-comment svg {
    height: 16px;
    width: 16px;
    margin-right: 6px;
}
.comment-action .btn-like-comment.like {
    color: #ffc107;
}
.comment-action .btn-like-comment.like svg path {
    stroke: #ffc107;
}
.input_all {
    width: 100%;
    padding: 10px 20px;
    border: 1px solid #ebebeb;
    border-radius: 10px;
}
label.star {
    cursor: pointer;
}
.rating-list .rating-list__star {
    display: inline-block;
    width: auto;
    color: var(--color-star-checked);
    flex: unset;
}
.comment-box__percent .button_show_form_rating {
    width: 25%;
}
.comment-box__percent .rating-list,
.comment-box__percent .button_show_form_rating {
    padding: 0 20px;
}
.comment-box__percent .button_show_form_rating {
    display: flex;
    align-items: center;
    justify-content: center;
}
.button_show_form_rating .show_form_rating,
.button_submit_form_comment{
    padding: 10px 20px;
    color: #000;
    border: 1px solid #F5DC6C;
    background: #F5DC6C;
    box-shadow: 0px 6px 20px rgba(255, 213, 62, 0.4);
    border-radius: 20px;
}
.button_show_form_rating .show_form_rating:hover,
.button_submit_form_comment:hover{
    color: #F5DC6C;
    background-color: #fff;
}
.count_rating {
    color: #333;
}
.button_show_form_rating .show_form_rating {
    width: 100%;
    text-align: center;
}
.formComment .gallery-preview{
    padding: 0;
}
.comment-img__item{
    width: 130px;
    height: 130px;
    border: 1px solid #ccc;
    padding: 5px;
}
.comment-img__item img{
    object-fit: contain;
}
@media (max-width: 1600px) {
    .rating-list li .rating span {
        font-size: 0.975rem;
    }
}
@media (max-width: 1366px) {
    .rating-list__star {
        flex: 0 0 30%;
    }
    .rating-list li .rating span {
        font-size: 0.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: 0.625rem;
    }
    .rating-list__star {
        flex: 0 0 40%;
    }
}
@media (max-width: 768px) {
    .rating-list__star {
        flex: 0 0 50%;
    }
    .comment-box__percent .button_show_form_rating {
        width: 100%;
    }
    .comment-box__percent .rating-list {
        border-right: none;
        margin-bottom: 10px;
    }
    .rating-score .score-big {
        font-size: 18px;
    }
    .count-comment {
        margin-bottom: 5px;
    }
}
@media (max-width: 575px) {
    .button_submit_form_comment{
        padding: 5px 10px;
    }
    .comment-box__list{
        margin-bottom: 10px;
    }
    .more-comment{
        margin: 10px 0;
    }
    .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: 0.875rem;
    }
    .rating-score {
        border-right: none;
        border: 2px solid var(--color-star-evalue);
        padding: 16px;
    }
    .rating-list {
        margin-left: 0;
    }
    .rating-list__item {
        height: 0.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%;
    }
}
@media (max-width: 480px) {
    .formComment__action .btn {
        padding: 0.4rem 1.25rem;
    }
    .formComment__action label {
        height: 2rem;
        padding: 0.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: 0.875rem;
    }
    .rating-list__star {
        flex: 0 0 50%;
    }
}
@media (max-width: 380px) {
    .rep-comment button,
    .formComment__action label,
    .formComment__action .btn {
        padding: 0.5rem 0.675rem;
    }
    .rep-comment button,
    .formComment__action label,
    .formComment__action .btn,
    .formComment textarea {
        font-size: 0.775rem;
    }
    .rating {
        font-size: 0.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: 0.75rem;
    }
    .rating-list__star {
        font-size: 0.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: 0.675rem;
    }
    .comment-item__top .comment-item__datetime {
        font-size: 12px;
        margin-top: 5px;
    }
    .rating-list__star {
        flex: 0 0 50%;
    }
}