:root{
    --color-btn: white;
    --color-main: #2891cc;
    --color-hr: #ececec;
    --color-star-evalue: #c7c7c7;
    --color-admin: #008aff;
    --color-star-hover: #ffab2d;
    --color-star-checked: #ff9d2d;
    --color-star-check-full: #ff8b2d;
    --color-btn-green:#549900;
    --color-fetch-more: #ff8b2d;
}
.user-rating{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}
.rating{
    position: relative;
    line-height: 1;
    display: inline-block;
    color: var(--color-star-evalue);
}

.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: '\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: 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: '\f006';
    color: var(--color-star-hover);
    transition: all .25s;
}
.comment-box__title{
    font-size: 1.625rem;
    font-weight: bold;
}
.comment-box__percent>p{
    flex: 1;
}
.comment-box__percent{
    margin: 16px 0;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
}
/* Evalue */
.rating-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-left: 16px;
}
.rating-list__star>p{
    width: 25%;
}
.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: 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){
    /* 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;
    margin-bottom: 2rem;
}
.comment-item__top{
    margin: 15px 0px 5px 0px;
    display: flex;
    flex-wrap: wrap;
    align-items: start;
}
.comment-childs .comment-item__top{
    margin: 0px 0px 10px 0px;
}
.comment-item__img img{
    width: 100%;
    overflow: hidden;
    margin-right: 16px;
}
.comment-item__img{
    width: 38px!important;
    position: relative;
    padding-bottom: 38px!important;
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 100%;
    margin-right: 8px;
    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{
    font-weight: bold;
}
.comment-item__type{
    color: var(--color-star-evalue);
    margin-right: 16px;
}
.comment-item__info{
    flex: 1;
}
.comment-bg{
    color: #050505;
    background: #f0f2f5;
    padding: 8px 12px;
    border-radius: 10px;
}
.rating-score .rating{
    font-size: 1.125rem;
}
.rating-score .score-big{
    font-size: 64px;
    font-weight: bold;
}
.rating-score{
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-right: 1px solid var(--color-star-evalue);
    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: 0px 0px 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-template-columns: repeat( auto-fit, minmax(120px, 1fr) ); */
    grid-gap: 10px;
}

.rep-comment textarea:focus{
    border: 1px solid var(--color-main);
    box-shadow: 0 0 6px 0.4px var(--color-main);
}
.comment-box__form input,
.rep-comment input{
    outline: none;
    box-shadow: none;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid var(--color-star-evalue);
}
.rep-comment textarea{
    padding: 8px;
    margin-top: 10px;
    width: 100%;
    outline: none;
    border: 1px solid var(--color-star-evalue);
    transition: all 0.3s ease-in;
    border-radius: 10px;
}
.rep-comment button:hover{
    text-decoration: underline;
}
.rep-comment button{
    color: #65676B;
    margin-right: 10px;
    font-weight: bold;
}
.comment-childs {
    padding-left: 48px;
}
.rep-comment .group-form{
    width: 100%;
}
.rep-comment{
    margin: 2px 0;
    display: flex;
    flex-wrap: wrap;
}
.formComment {
    flex: 1;
}
.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;
}

.formComment__action label span{
    margin-left: 12px;
}

.formComment__action label{
    color: var(--color-main);
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--color-main);
    border-radius: 88px;
    transition: all 0.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: 0.625rem 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: 12px;
    font-weight: 300;
    color: #656768;
}
.user-info__name{
    margin-right: 10px;
}
.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;
    align-items: center;
}

/* 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: .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: 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: 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: 5px;
    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: 5px;
    transition: all 0.3s ease-out;
    cursor: pointer;
    margin-left: 48px;
}

@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 0rem;
    }
    .comment-item__imgs .comment-item__img {
        width: 32px;
        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%;
    }
}
@media (max-width:575px){ 
    .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 40%;
        justify-content: flex-end;
    }
}
@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;
    }
    .comment-item__img{
        width: 32px;
        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 45%;
    }
}
@media(max-width:380px){
  
    .rep-comment button,
    .formComment__action label,

    .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 45%;
    }
}