
#page-local-mb2reviews-edit {

    label[for="id_id"],
    input#id_id {
        display: none !important;
    }

    textarea#id_content {
        width: 100%;
        min-height: 150px;
    }

}



.mb2reviews-stars {

    position: relative;
	height: 20px;
	width: 95px;
    min-width: 95px;
    line-height: 1;

    > div {
    	position: absolute;
    	white-space: nowrap;
    	overflow: hidden;

        &.stars-full {
        	color: $color_warning;
        }

        &.stars-empty {
        	color: rgba(0,0,0,.1);
        }
    }

    .dark & {
        > div {
            &.stars-empty {
            	color: rgba(255,255,255,.3);
            }
        }
    }

    i {
        width: 19px;
    	font-size: 17px;
        text-align: center;
    }

    &.lg {

        width: 120px;
        min-width: 120px;
        height: 24px;

        i {
            width: 24px;
            font-size: 22px;
        }
    }

    &.sm {
        width: 80px;
        min-width: 80px;
        height: 16px;

        i {
            width: 16px;
            font-size: 14px;
        }
    }

}

.mb2reviews-review-btn {
    color: inherit;
}

.mb2reviews-vhratings,
.mb2reviews-rating {

    .block & {
        font-size: .85rem;
    	color: #a8a8a8;
    	margin-top: 10px;
        margin-bottom: 0;
    }

}


.mb2reviews-rating-more {

    .block & {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .rating-details {

        .rating-count,
        .rating-starlabel {
            font-size: .85rem;
        }

    }

}


.rating-details {
    list-style: none;
    margin: 0;
    padding: 0;

    .rating-starcat {
        width: calc(100% - 70px);
        display: inline-block;
        background-color: rgba(0,0,0,.05);
        height: 9px;
    }

    .rating-count,
    .rating-starlabel {
        display: inline-block;
    }

    .rating-count {
        width: 35px;
        text-align: right;

    }

    .rating-starlabel {
        width: 35px;

        i {
            color: rgba(0,0,0,.3);
        }
    }

    .rating-progress {
        height: 9px;
        background-color: rgba(0,0,0,.25);
    }

}





/* Review list */


.mb2reviews-review-item {
    border-bottom: solid 1px rgba(0,0,0,.1);
    padding: 30px 0;

    &:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }
}


.mb2reviews-review-item-inner,
.mb2reviews-review-header,
.mb2reviews-review-footer {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
}

.mb2reviews-review-item-inner {
    align-items: top;
    justify-content: space-between;
}

.mb2reviews-review-header,
.mb2reviews-review-footer {
    align-items: center;
    justify-content: normal;
}

.mb2reviews-review-header {
    margin-bottom: 15px;
}

.mb2reviews-review-footer {
    margin-top: 15px;
}

.mb2reviews-review-item {
    .mb2reviews-stars,
    .mb2reviews-username {
        margin-right: 15px;
    }
}

.mb2reviews-username {
    font-weight: $fwbold;
}

.mb2reviews-date {
    color: $textcolor_lighten;
}

.mb2reviews-review-userpicture,
.mb2reviews-review-details {
    flex: 0 0 auto;
}

.mb2reviews-review-userpicture {
    width: 80px;

    .userinitials,
    img {
        width: 54px;
        @include mb2_border_radius(999px);
    }

    .userinitials {
        height: 54px;
        font-size: 1rem;
    }

}

.mb2reviews-review-details {
    width: calc(100% - 80px);
}

@media only screen and (max-width: $wxsmalldevice){


    .mb2reviews-review-userpicture,
    .mb2reviews-review-details {
        flex: none;
        width: 100%;
    }

    .mb2reviews-review-userpicture {
        margin-bottom: 12px;
    }

}



.mb2reviews-review-thumbs .mb2reviews-review-thumb {
    display: inline-block;
    width: 38px;
    height: 38px;
    border: solid 1px $textcolor;
    border-radius: 999px;
    line-height: 38px;
    text-align: center;
    margin: 0 3px;
    cursor: pointer;

    &:hover,
    &.active {
        background-color: $textcolor;
        color: #fff;
    }


}

.mb2reviews-review-thumbtext {
    margin-right: 12px;
    font-size: $fssmall;

    &.text2 {
        display: none;
    }

    .hasfeedback & {

        &.text1 {
            display: none;
        }

        &.text2 {
            display: inline-block;
        }
    }
}





.mb2reviews-review-summary {
    display: flex;
    flex-flow: row wrap;
    width: 100%;

    .rating-details li {
        margin: 8px 0;
    }

    .rating-starcat,
    .rating-progress {
        height: 10px;
    }

    .mb2reviews-rating {
        font-size: 4.2rem;
        font-weight: bold;
        margin-right: 30px;
        line-height: 1;
    }

    .mb2reviews-ratings {
        margin-top: 14px;
        line-height: 1;
    }
}

.mb2reviews-rating-warp {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    min-width: 340px;
}

.mb2reviews-rating-warp,
.mb2reviews-rating-details {
    flex: 0 0 auto;
}

.mb2reviews-rating-details {
    min-width: calc(100% - 340px);
    border: solid 1px rgba(0,0,0,.1);
    padding: 20px;
    @include mb2_border_radius(3px);
}

@media only screen and (max-width: $wsmalldevice){

    .mb2reviews-rating-warp,
    .mb2reviews-rating-details {
        flex: none;
        width: 100%;
    }

    .mb2reviews-rating-warp {
        margin-bottom: 23px;
    }

}


/* Load more button */


.mb2reviews-more-wrap {
    text-align: center;
}

.mb2reviews-more {

    margin-top: 30px;

    .text2 {
        display: none;
    }

    .text1 {
        display: inline-block;
    }

    &.loading {
        .text1 {
            display: none;
        }
        .text2 {
            display: inline-block;
        }
    }

    &.nodata {
        display: none;
    }
}



/* Reviews builder lement */


.mb2-pb-reviews {

    .theme-course-review {
        text-align: center;
    }

    .review-header {
        margin-bottom: 15px;

        .mb2reviews-stars {
            margin: 0 auto;
            margin-bottom: 5px;
        }

        .review-course {
            color: $color_warning;
            font-weight: $fwmedium;
        }
    }

    .review-footer {
        margin-top: 15px;
        color: $headingscolor;
        font-weight: 500;
    }

    .dark & {
        .review-footer {
            color: #fff;
        }
    }

    .review-userimg {
        text-align: center;

        img{
            width: 54px !important;
            @include mb2_border_radius(999px);
            margin: 0 auto;
            margin-bottom: 10px;
        }
    }
}


/* Admin page */
.table-review-content {

    white-space: nowrap;
    max-width: 130px;
    overflow: hidden;

    &.featured1 {
        color: $color_warning;
        font-weight: bold;
    }

    a {
        color: inherit !important;
        display: block;
        text-overflow: ellipsis;
        overflow: hidden;
    }
}


.table-review-course,
.table-review-user {
    white-space: nowrap;
    max-width: 95px;
    overflow: hidden;
    text-overflow: ellipsis;
}



.table-review-rating {
    color: $color_warning;
    font-size: 11px;

    i {
        margin: 0 .1rem 0 0;

        &.inactive {
            color: rgba(0,0,0,.15);
        }
    }
}
