
#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;
    display: inline-flex;
    align-items: center;

    > div {
    	position: absolute;
    	white-space: nowrap;
    	overflow: hidden;
        display: inline-flex;
        left: 0;

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

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

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

    i {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 19px;
        flex: 0 0 19px;
    	font-size: 17px;
    }

    &.lg {

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

        i {
            width: 21px;
            flex: 0 0 21px;
            font-size: 19px;
        }
    }

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

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

    &.xs {
        width: 60px;
        min-width: 60px;
        height: 12px;

        i {
            width: 12px;
            flex: 0 0 12px;
            font-size: 11px;
        }
    }

}


/* ======================= RTING BLOCK HORIZONTAL */

.course-rating {
    line-height: 1;

    a,
    > div,
    > span {
        display: inline-block;
        vertical-align: middle;
    }

    .ratingnum {
        font-weight: $fwbold;
        color: $color_warning;
    }

    .mb2reviews-stars {
        margin: 0 3px;
    }

}




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

.mb2reviews-vhratings,
.mb2reviews-rating {

    .block & {
        font-size: .85rem;
    	color: var(--mb2-pb-textcolor_lighten);
    	margin-top: 3px;
        margin-bottom: 0;
    }

    .tgsdbc_dark .toggle-sidebar .block & {
        color: rgba(255,255,255,.5);
    }

}


.mb2reviews-rating-more {

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

        &.show {
            display: block;
        }
    }

    .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: 7px;
        border-radius: 999px;
    }

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

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

    }

    .rating-starlabel {
        width: 35px;

        i {
            color: $color_warning;
        }
    }

    .rating-progress {
        height: 7px;
        background-color: rgba(0,0,0,.25);
        border-radius: 999px;
    }

    .tgsdbc_dark .toggle-sidebar & {
        .rating-starcat {
            background-color: rgba(255,255,255,.1);
        }

        .rating-progress {
            background-color: rgba(255,255,255,.55);
        }
    }

}





/* 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 {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
}

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

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

.mb2reviews-review-header {
    margin-bottom: 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;
    }

}

.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;
    }

}





/* ======================= REVIEWS SUMMARY */


.mb2reviews-review-summary {
    display: flex;
    flex-flow: wrap;
    justify-content: space-between;
    width: 100%;

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

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

    .mb2reviews-rating {
        font-size: 3.5rem;
        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;
    align-items: center;
    max-width: 300px;
}

.mb2reviews-rating-details {
    width: 350px;
    max-width: calc(100% - 300px);
    border: solid 1px rgba(0,0,0,.1);
    padding: 17px;
    @include mb2_border_radius(3px);
}

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

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

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

}


/* Load more button */


.mb2reviews-more-wrap {
    text-align: center;
    padding-top: 30px;

    button,
    a {
        margin: 0 .45rem;
    }
}

.mb2reviews-more {

    .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;
        display: flex;
        flex-flow: column;

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

        .review-course {
            color: $color_warning;
            font-weight: var(--mb2-pb-fwmedium);
        }
    }

    .review-footer {
        margin-top: 15px;
        color: var(--mb2-pb-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);
        }
    }
}



/* ======================= RATING STARS LINK */

.mb2reviews-star-links {
    text-align: center;
}

.mb2reviews-star-link-item {
    display: inline-block;
    heigth: 26px;
    width: 30px;
    font-size: 26px;
    line-height: 1;
    text-align: center;
    color: rgba(0,0,0,.2);

    &.fill {
        color: var(--mb2-pb-color_warning);
    }
}
