@import "./mixin.scss";

.toplevel_page_buzzolt-reviews-testimonials #wpcontent{
    padding-left: 0;
    min-height: 100vh;
    background: $base;
}
.buzzolt-reviews-testimonials-admin-container{
    box-sizing: border-box;
    width: 100%;
    & *{
        box-sizing: border-box;
    }
    @media screen and (min-width : 1201px) {
        display: flex;
        flex-direction: row;
        padding: 40px 40px 40px 20px;
    }
}
.buzzolt-reviews-testimonials-admin-sidebar{
    @media screen and (min-width : 1201px) {
        background: $baseFive;
        flex-basis: 300px;
        padding: 40px 20px 40px 20px;
    }
}
.buzzolt-reviews-testimonials-admin-logo{
    text-align: center;
    padding: 10px 0 50px 0;
    &>img{
        max-width: 200px;
    }
}
.buzzolt-reviews-testimonials-admin-actions{
    padding: 10px;
}
.buzzolt-reviews-testimonials-admin-action{
    padding: 0;
}
.buzzolt-reviews-testimonials-admin-action-main-item{
    cursor: pointer;
    position: relative;
    padding: 12px 10px 12px 3.2rem;
    border-radius: 4px;
    &>h3{
        font-size: 1.6rem;
        margin: 0;
        line-height: 1.1;
    }
    &>span{
        width: 1.6rem;
        height: 1.6rem;
        position: absolute;
        top: 17px;
        left: 13px;
    }
    &[data-type="active"]{
        background: $baseFour;
    }
    &:hover{
        background: $baseThree;
    }
}
.buzzolt-reviews-testimonials-testimonial-action-item{
    &>span{
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1.4rem' height='1.4rem' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 14h10q.425 0 .713-.288T18 13t-.288-.712T17 12H7q-.425 0-.712.288T6 13t.288.713T7 14m0-3h10q.425 0 .713-.288T18 10t-.288-.712T17 9H7q-.425 0-.712.288T6 10t.288.713T7 11m0-3h10q.425 0 .713-.288T18 7t-.288-.712T17 6H7q-.425 0-.712.288T6 7t.288.713T7 8M4 18q-.825 0-1.412-.587T2 16V4q0-.825.588-1.412T4 2h16q.825 0 1.413.588T22 4v15.575q0 .675-.612.938T20.3 20.3L18 18z'/%3E%3C/svg%3E") center no-repeat;
    }
}
.buzzolt-reviews-testimonials-setting-action-item{
    &>span{
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1.4rem' height='1.4rem' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.954 2.21a10 10 0 0 1 4.09-.002A4 4 0 0 0 16 5.07a4 4 0 0 0 3.457.261A10 10 0 0 1 21.5 8.877a4 4 0 0 0-1.5 3.122c0 1.264.586 2.391 1.501 3.124a10 10 0 0 1-2.045 3.543a4 4 0 0 0-3.456.261a4 4 0 0 0-1.955 2.86a10 10 0 0 1-4.09.004A4 4 0 0 0 8 18.927a4 4 0 0 0-3.457-.26A10 10 0 0 1 2.5 15.121A4 4 0 0 0 4 11.999c0-1.264-.587-2.39-1.502-3.124a10 10 0 0 1 2.045-3.542A4 4 0 0 0 8 5.07a4 4 0 0 0 1.954-2.86M12 15a3 3 0 1 0 0-6a3 3 0 0 0 0 6'/%3E%3C/svg%3E") center no-repeat;
    }
}
.buzzolt-reviews-testimonials-admin-action-sub-items{
    padding: 1em 1em 1em 3.2em;
    &>p{
        cursor: pointer;
        font-size: 1rem;
        padding: 0.7em;
        line-height: 1.1;
        margin: 0;
        border-radius: 4px;
        &:hover{
            background: $baseThree;
        }
        &[data-type="active"]{
            background: $baseFour;
        }
    }
}
.buzzolt-reviews-testimonials-admin-content{
    @media screen and (min-width : 1201px) {
        background: #ffffff;
        border-radius: 6px;
        flex-basis: calc( 100% - 700px );
        box-shadow: rgba(0,0,0,.07) 0px 0px 1px;
    }
}
.buzzolt-reviews-testimonials-admin-ads{
    @media screen and (min-width : 1201px) {
        flex-basis: 400px;
    }
}

.buzzolt-reviews-testimonials-add-testimonial,
.buzzolt-reviews-testimonials-moderate-testimonial,
.buzzolt-reviews-testimonials-settings{
    padding: 40px;
    display: none;
}
.buzzolt-reviews-testimonials-testimonials{
    display: block;
}

.buzzolt-reviews-testimonials-testimonials{

}
.buzzolt-reviews-testimonials-testimonials-heading{
    padding: 40px;
    line-height: 1.1;
    border-bottom: 1px solid rgba(0,0,0,.07);
    &>h2{
        font-size: 2rem;
        margin: 0 0 0.4em 0;
    }
    &>p{
        font-size: 1rem;
        margin: 0;
    }
}
.buzzolt-reviews-testimonials-testimonials-error{
    margin: 0 0 1em 0;
    border: 1px dashed $colorOne;
    padding: 0.5em 1em;
    display: none;
    width: 80%;
    margin: 10% auto 0 auto;
    text-align: center;
}
.buzzolt-reviews-testimonials-testimonials-content{
    position: relative;
    min-height: 500px;
}
.buzzolt-reviews-testimonials-testimonials-list{
    width: 80%;
    margin: 3% 10% 5% 10%;
}
.buzzolt-reviews-testimonials-testimonials-overlay{
    background: #ffffff;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: block;
}
.buzzolt-reviews-testimonials-testimonials-overlay-content{
    padding: 100px 40px 40px 40px;
    &>p{
        text-align: center;
        margin: 0 0 0.5em 0;
        font-size: 1.6rem;
        font-weight: bold;
        &>span{
            @include buzzolt-reviews-testimonials-spinner(48px, $contrastTwo, $colorTwo, 6px);
            margin: 0 0 0 0.5em;       
        }
    }

}

.buzzolt-reviews-testimonials-testimonials-selector{
    margin: 10% 10% 0 10%;
    width: 80%;
    text-align: right;
}
.buzzolt-reviews-testimonials-testimonials-selector-inner{
    padding: 2.0em 3.0em;
    position: relative;
    display: inline-block;
    @media screen and (min-width : 1201px) {
        padding: 2.0em 35% 2.0em 3.0em;
    }
    &__message{
        font-size: 1.0rem;
        margin: 0;
        font-weight: bold;
        text-align: right;
        display: inline-block;
    }
}
.buzzolt-reviews-testimonials-testimonials-selector-inner .buzzolt-reviews-testimonials-admin-select{
    @media screen and (min-width : 1201px) {
        width: 70%;
    }
}

.buzzolt-reviews-testimonials-admin-select{
    font-size: 1.0rem;
    width: 100%;
    position: relative;
    background: $baseFour;
    @media screen and (min-width : 1201px) {
        width: 30%;
        position: absolute;
        top: 0.9em;
        right: 2%;
    }
    &__heading{
        margin: 0;
        font-size: 1.0rem;
        padding: 0.7em 4.0em 0.7em 1.0em;
        font-weight: bold;
        text-align: left;
    }
    &__icon{
        font-size: 1.6rem;
        width: 1.6em;
        height: 1.6em;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' aria-hidden='true' role='img' width='1.4em' height='1.4em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 24 24'%3E%3Cg fill='currentColor'%3E%3Crect x='3' y='11' width='18' height='2' rx='.95' ry='.95'/%3E%3Crect x='3' y='16' width='18' height='2' rx='.95' ry='.95'/%3E%3Crect x='3' y='6' width='18' height='2' rx='.95' ry='.95'/%3E%3C/g%3E%3C/svg%3E");
        background-position: center;
        background-repeat: no-repeat;
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        cursor: pointer;
    }
}
.buzzolt-reviews-testimonials-admin-select-options{
    width: 100%;
    padding: 1.0em 0;
    background-color: $baseFour;
    @media screen and (min-width : 1201px) {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 3;
    }
    display: none;
    &__item{
        margin: 0;
        font-size: 1.0rem;
        padding: 0.5em 1.0em;
        cursor: pointer;
        font-weight: bold;
        text-align: left;
    }
}
.buzzolt-reviews-testimonials-testimonials-empty{
    width: 80%;
    margin: 3% 10% 10% 10%;
    border: 1px dashed $contrastTwo;
    padding: 0.5em 1em;
}
.buzzolt-reviews-testimonials-testimonial-item{
    width: 100%;
    background: rgb(0, 0, 0, 0.02);
    &:nth-child(even){
        background: rgb(0, 0, 0, 0.04);
    }
    &__title{
        margin: 0;
        padding: 1.6em 3.0em;
        font-size: 1.0rem;
        @media (min-width: 1201px) {
            font-size: 1.4rem;
            font-weight: bold;
        }
        cursor: pointer;
    }
}
.buzzolt-reviews-testimonials-testimonial-item-content{
    padding: 0 3.0em 1.6em 3.0em;
    font-size: 1.0rem;
    display: none;
    @media (min-width: 1201px) {
        font-size: 1.4rem;
        font-weight: bold;
    }    
}
.buzzolt-reviews-testimonials-testimonial-item-meta{
    margin: 0 0 1.0em 0;
    &__item{
        border: 1px solid rgb(0, 0, 0, 0.4);
        padding: 0.3em 1.0em;
        display: inline-block;
        margin: 0 1.0em 0.5em 0;
        border-radius: 4px;
        &[data-type="rating"]{
            &>span{
                display: inline-block;
                width: 13px;
                height: 13px;
                background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13px' height='13px' viewBox='0 0 24 24'%3E%3Cpath fill='%23000000' d='M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm-3.42 14l-.95-4.08l3.16-2.73l-4.17-.36L12 6l-1.62 3.84l-4.17.36l3.16 2.73L8.42 17L12 14.84z'/%3E%3C/svg%3E") center no-repeat;
            }
        }
        &[data-rating="1"]{
            &>span{
                &:nth-child(1){
                    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13px' height='13px' viewBox='0 0 24 24'%3E%3Cpath fill='%239B1C1C' d='M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm-3.42 14l-.95-4.08l3.16-2.73l-4.17-.36L12 6l-1.62 3.84l-4.17.36l3.16 2.73L8.42 17L12 14.84z'/%3E%3C/svg%3E") center no-repeat;
                }
            }
        }
        &[data-rating="2"]{
            &>span{
                &:nth-child(1), &:nth-child(2){
                    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13px' height='13px' viewBox='0 0 24 24'%3E%3Cpath fill='%23D62828' d='M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm-3.42 14l-.95-4.08l3.16-2.73l-4.17-.36L12 6l-1.62 3.84l-4.17.36l3.16 2.73L8.42 17L12 14.84z'/%3E%3C/svg%3E") center no-repeat;
                }
            }
        }
        &[data-rating="3"]{
            &>span{
                &:nth-child(1), &:nth-child(2), &:nth-child(3){
                    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13px' height='13px' viewBox='0 0 24 24'%3E%3Cpath fill='%2340A083' d='M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm-3.42 14l-.95-4.08l3.16-2.73l-4.17-.36L12 6l-1.62 3.84l-4.17.36l3.16 2.73L8.42 17L12 14.84z'/%3E%3C/svg%3E") center no-repeat;
                }
            }
        }
        &[data-rating="4"]{
            &>span{
                background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13px' height='13px' viewBox='0 0 24 24'%3E%3Cpath fill='%2334836C' d='M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm-3.42 14l-.95-4.08l3.16-2.73l-4.17-.36L12 6l-1.62 3.84l-4.17.36l3.16 2.73L8.42 17L12 14.84z'/%3E%3C/svg%3E") center no-repeat;
                &:nth-child(5){
                    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13px' height='13px' viewBox='0 0 24 24'%3E%3Cpath fill='%23000000' d='M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm-3.42 14l-.95-4.08l3.16-2.73l-4.17-.36L12 6l-1.62 3.84l-4.17.36l3.16 2.73L8.42 17L12 14.84z'/%3E%3C/svg%3E") center no-repeat;
                }
            }
        }
        &[data-rating="5"]{
            &>span{
                background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13px' height='13px' viewBox='0 0 24 24'%3E%3Cpath fill='%23296655' d='M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm-3.42 14l-.95-4.08l3.16-2.73l-4.17-.36L12 6l-1.62 3.84l-4.17.36l3.16 2.73L8.42 17L12 14.84z'/%3E%3C/svg%3E") center no-repeat;
            }
        }
    }
}
.buzzolt-reviews-testimonials-testimonial-item-heading{
    font-size: 1.4rem;
    padding: 0;
    margin: 0;
    font-weight: bold;
}
.buzzolt-reviews-testimonials-testimonial-item-actual{
    margin: 1.0em 0 0 0;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: bold;
}

.buzzolt-reviews-testimonials-testimonial-item-actions{
    width: 100%;
    padding: 1.2em 0 0 0;
}
.buzzolt-reviews-testimonials-testimonial-item-approve{
    @include buzzolt-reviews-testimonials-rounded-button(16px, $colorTwo, $colorThree, 10px, 36px);
    position: relative;
    margin: 0 0.5em 0 0;
    &__overlay{
        @include buzzolt-reviews-testimonials-rounded-button(16px, $colorTwo, $colorThree, 10px, 36px);
        z-index: 3;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
        cursor: default;
    }
    &__spinner{
        @include buzzolt-reviews-testimonials-spinner(16px, #000, #fff, 2px);
        position: absolute;
        top: 50%;
        left: 50%;
        margin: -8px 0 0 -8px;
        z-index: 5;
        display: none;
        cursor: default;
    }
}
.buzzolt-reviews-testimonials-testimonial-item-delete{
    @include buzzolt-reviews-testimonials-rounded-button(16px, $contrastOne, $colorThree, 10px, 36px);
    position: relative;
    margin: 0 0.5em 0 0;
    &__overlay{
        @include buzzolt-reviews-testimonials-rounded-button(16px, $contrastOne, $colorThree, 10px, 36px);
        z-index: 3;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
        cursor: default;
    }
    &__spinner{
        @include buzzolt-reviews-testimonials-spinner(16px, $baseThree, $colorFour, 2px);
        position: absolute;
        top: 50%;
        left: 50%;
        margin: -8px 0 0 -8px;
        z-index: 5;
        display: none;
        cursor: default;
    }
}
.buzzolt-reviews-testimonials-testimonial-item-error{
    display: inline-block;
    color: $colorFour;
    font-weight: bold;
    font-size: 1.0rem;
}

.buzzolt-reviews-testimonials-testimonials-pagination{
    width: 80%;
    display: none;
    margin: 0 10% 10% 10%;
    padding: 0 0 0 4em;
}

.buzzolt-reviews-testimonials-pagination-item{
    font-size: 1.2em;
    padding: 0.4em 0.9em;
    background: $containerSubHeader;
    margin: 0 0.3em 0.6em 0.3em;
    display: inline-block;
    cursor: pointer;
    &:hover{
        background: $containerMainSelectBg;
    }
    &:first-child{
        padding: 0.4em 1.2em;
        margin-left: 0 !important;
    }
    &:last-child{
        padding: 0.4em 1.2em;
    }
    &--active{
        background: $containerHeader;
        cursor: auto;
        &:hover{
            background: $containerHeader;
        }
    }
    &--disabled{
        cursor: default !important;
        opacity: 0.3;
        &:hover{
            background: $containerSubHeader;
        }
    }
}
.buzzolt-reviews-testimonials-request-testimonial{
    display: none;
}
.buzzolt-reviews-testimonials-request-testimonial-heading{
    padding: 40px;
    line-height: 1.1;
    border-bottom: 1px solid rgba(0,0,0,.07);
    &>h2{
        font-size: 2rem;
        margin: 0 0 0.4em 0;
    }
    &>p{
        font-size: 1rem;
        margin: 0;
    }
}
.buzzolt-reviews-testimonials-request-testimonial-error{
    margin: 0 0 1em 0;
    border: 1px dashed $colorOne;
    padding: 0.5em 1em;
    display: none;
    width: 80%;
    margin: 10% auto 0 auto;
    text-align: center;
}
.buzzolt-reviews-testimonials-request-testimonial-content{
    position: relative;
    min-height: 500px;
    padding: 40px;
}

.buzzolt-reviews-testimonials-request-testimonial-page{
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 8px;
    padding: 20px;
    margin: 0 0 5% 0;
    &>h3{
        font-size: 1.6rem;
        margin: 0 0 0.4em 0;
    }
    &>p{
        font-size: 1rem;
        margin: 0 0 1em 0;
    }
}
.buzzolt-reviews-testimonials-request-testimonial-page-selector{
    max-width: 500px;
    &>select{
        width: 100%;
    }
    &>.select2-container{
        width: 100% !important;
    }
}
.buzzolt-reviews-testimonials-request-testimonial-page-message{
    max-width: 500px;
    display: none;
    margin: 0 0 0.4em 0;
    border: 1px dashed $contrastTwo;
    padding: 5px 10px;
    &[data-type="error"]{
        border: 1px dashed $colorFour;
    }
}
.buzzolt-reviews-testimonials-request-testimonial-page-save{
    &>span{
        @include buzzolt-reviews-testimonials-rounded-button(18px, #000, #fff, 8px, 36px);
        display: inline-block;
        &[data-type="disabled"]{
            opacity: 0.3;
            cursor: default;
        }
    }
}
.buzzolt-reviews-testimonials-request-testimonial-contact{
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 8px;
    margin: 0 0 5% 0;

}
.buzzolt-reviews-testimonials-request-testimonial-contact-heading{
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,.07);
    &>h3{
        font-size: 1.6rem;
        margin: 0 0 0.4em 0;
    }
    &>p{
        font-size: 1rem;
        margin: 0 0 1em 0;
    }
}
.buzzolt-reviews-testimonials-request-testimonial-contact-form{
    padding: 40px;
}
.buzzolt-reviews-testimonials-request-testimonial-contact-item{
    max-width: 500px;
    margin: 0 0 3em 0;
    &>h4{
        font-size: 1.2rem;
        margin: 0 0 5px 0;
    }
    &>p{
        font-size: 1.0rem;
        margin: 0 0 0.7em 0;
        &>input[type="text"]{
            padding: 5px 10px;
            width: 100%;
        }
        &>textarea{
            width: 100%;
        }
    }
    &>.buzzolt-reviews-testimonials-request-testimonial-contact-error{
        display: none;
        font-size: 1rem;
        color: $colorFour;
    }
}
.buzzolt-reviews-testimonials-request-testimonial-contact-message{
    max-width: 500px;
    display: none;
    margin: 0 0 2em 0;
    border: 1px dashed $contrastTwo;
    padding: 5px 10px;
    &[data-type="error"]{
        border: 1px dashed $colorFour;
    }  
}
.buzzolt-reviews-testimonials-request-testimonial-contact-alert{
    max-width: 500px;
    border: 1px solid $colorSix;
    background: $colorFive;
    padding: 5px 10px 5px 60px;
    margin: 0 0 2em 0;
    color: #000;
    position: relative;
    min-height: 60px;
    &::after{
        content: '';
        width: 40px;
        height: 40px;
        position: absolute;
        top: 5px;
        left: 10px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40px' height='40px' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m-4-5h8v2H8zm4-15C7.86 2 4.5 5.36 4.5 9.5c0 3.82 2.66 5.86 3.77 6.5h7.46c1.11-.64 3.77-2.68 3.77-6.5C19.5 5.36 16.14 2 12 2'/%3E%3C/svg%3E") center no-repeat;
    }
}
.buzzolt-reviews-testimonials-request-testimonial-contact-save{
    &>span{
        @include buzzolt-reviews-testimonials-rounded-button(18px, #000, #fff, 8px, 36px);
        display: inline-block;
        &[data-type="disabled"]{
            opacity: 0.3;
            cursor: default;
        }
    }
}
