@import 'rtl';
@import 'dashboard/dashboard';

// $color_main: #4e0637;
$color_main: #651d81;
// $color_accent: #12b8d6;
// $color_accent: #3858e9;
$color_accent: #5838e9;
$color_accent_2: #9c2355;
$color_accent_3: #34ddb4;
$color_accent_4: #5890ff;
// $color_accent: #c2ea38;
$color_lighter_gray: #f1f1f1;
$color_light_gray: #d8d8d8;

$border_color: #80717b;

$mobile_max: 768px;
$laptop_max: 1366px;

$nav_tab_width: 180px;
$sidebar_width: 220px;

$input_border_radius: 6px;
// #adminmenu #toplevel_page_joli_table_of_contents_settings .menu-icon-generic div.wp-menu-image:before {
//     font-family: your_font !important;
//     content: '\eiconid';
//     font-size: 1.3em!important;
// }
.wpjoli-wrap h1 {
    padding: 0 !important;
    display: block !important;
}

.wpjoli-wrap.wrap {
    margin: 0 0 0 -20px;
}

#joli-title {
    width: 100%;
    margin-bottom: 24px;
    margin-bottom: 10px;
    background-color: $color_accent;
    // border-radius: $input_border_radius;
    display: flex;
    align-items: center;
    font-size: 10px;
    height: 40px;

    .h1-title {
        flex: 1;
        // display: block !important;
        color: #ebefff;
        text-transform: uppercase;
        font-weight: 500;
        font-size: 1.75em;
        font-size: em;
        // text-align: center;
        // border-bottom: 1px solid #{$color_accent};
        padding: 8px 16px;
    }

    .h1-subtitle {
        color: #ebefff;
        font-size: 1.5em;
        font-weight: 200;
        text-align: right;
        margin-right: 16px;
    }
}

.joli-toc-notice {
    a.button {
        margin-right: 5px;
    }
}

#safi-save-spinner {
    position: fixed;
    left: 50%;
    top: 50%;
}

#safi-save-alert {
    position: fixed;
    top: 50px;
    left: 50%;
    padding: 15px 20px;
    background: #e1fce1;
    box-shadow: 0 0 16px #00800061;
    border-radius: 8px;
    color: green;
    font-weight: 600;
    font-size: 1.15em;
}

.joli-is-hidden {
    display: none !important;
}

.safi-content-wrap {
    padding: 10px 20px 0 20px;
    /* display: flex; */
    margin: 16px 0;
    position: relative;
}

.safi-wrap {
    padding : 10px 20px 0 20px;
    display: flex;
    margin: 16px 0;
    position: relative;

    @media (max-width: $mobile_max) {
        margin-left: -10px;
    }

    &.joli-is-saving {
        user-select: none;
        pointer-events: none;
        filter: grayscale(1) opacity(0.5);
    }

    p.description {
        color: #808080;
        font-style: italic;
        font-size: 12px !important;
        line-height: 1.25;
        // margin-left: 5px;

        &.danger {
            color: red;
        }
    }

    input[type=checkbox],
    input[type=color],
    input[type=date],
    input[type=datetime-local],
    input[type=datetime],
    input[type=email],
    input[type=month],
    input[type=number],
    input[type=password],
    input[type=radio],
    input[type=search],
    input[type=tel],
    input[type=text],
    input[type=time],
    input[type=url],
    input[type=week],
    select,
    textarea {
        border: 1px solid #{$border_color}50;
        // border: none;
        border-radius: $input_border_radius;
        // box-shadow: inset 0 1px 2px rgba(0, 0, 0, .07);
        background-color: #c5c1c417;
        color: #5f164e;
        outline: 0;
        transition: 50ms border-color ease-in-out;
        padding: 3px 26px 3px 20px;
        height: initial;
        min-height: 34px;
        max-width: 250px;
    }

    input[type=checkbox] {
        border-radius: 4px !important;
        min-width: 24px;
        min-height: 24px;
        padding: 5px 0 0 5px !important;
        margin-right: 10px;
        box-shadow: none;
    }

    /* The switch - the box around the slider */
    .joli-switch {
        position: relative;
        display: inline-block;
        width: 44px;
        height: 24px;

        /* Hide default HTML checkbox */
        input {
            opacity: 0;
            width: 0;
            height: 0;

            &:checked+.slider {
                background-color: $color_accent;
            }

            // &:focus+.slider {
            //     box-shadow: 0 0 1px #2196F3;
            // }

            &:checked+.slider:before {
                transform: translateX(20px);
            }
        }


    }

    /* The slider */
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        -webkit-transition: .4s;
        transition: .4s;

        &:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            -webkit-transition: .4s;
            transition: .4s;
        }

        &.round {
            border-radius: 34px;

            &:before {
                border-radius: 50%;
            }
        }
    }

    .joli-radio-icon {
        display: inline-block;

        input[type=radio] {
            position: absolute;
            left: -9999px;
            visibility: hidden;

            &+div {
                position: relative;
                border: 1px solid transparent;
                background-color: #f7f7f7;
                height: 40px;
                width: 40px;
                font-size: 1rem;
                display: flex;
                justify-content: center;
                align-items: center;
                border-radius: 4px;
                margin-right: 5px;
                margin-bottom: 5px;

                &:hover {
                    background: $border_color;
                    color: white;
                }
            }

            &:checked+div {
                background: #ffffff;
                border: 1px solid $border_color;

                &:hover {
                    color: inherit;
                }
            }
        }

    }

    .joli-checkboxes-item {
        display: inline-block;

        input[type=checkbox] {
            position: absolute;
            left: -9999px;
            visibility: hidden;

            &+div {
                position: relative;
                border: 1px solid transparent;
                color: gray;
                background-color: #f7f7f7;
                height: 32px;
                width: 32px;
                font-size: 90%;
                display: flex;
                justify-content: center;
                align-items: center;
                border-radius: 4px;
                margin-right: 5px;
                margin-bottom: 5px;
                // font-style: italic;
                user-select: none;

                &:hover {
                    background: $border_color;
                    color: white;
                    font-style: normal;
                    border: 1px solid white;
                }
            }

            &:checked+div {
                background: #cfffcd;
                background: $color_accent;
                // border: 1px solid $border_color;
                color: white;
                font-weight: bold;
                font-style: normal;

                &:hover {
                    // color: inherit;
                    // border: 1px solid white;
                }
            }
        }

    }


    textarea {
        border-radius: $input_border_radius !important;
    }

    input.disabled,
    input:disabled,
    select.disabled,
    select:disabled,
    textarea.disabled,
    textarea:disabled {
        cursor: default !important;
        background: rgba(255, 255, 255, .5) !important;
        border-color: rgba(222, 222, 222, .75) !important;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04) !important;
        color: rgba(51, 51, 51, .5) !important;

    }

    input.disabled,
    input:disabled {
        +.slider {
            cursor: default !important;
            background: #f1f1f1 !important;
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04) !important;
        }

    }

    button.button.wp-color-result {
        // border: 0.9px solid $border_color !important;
        border: 1px solid #{$border_color}50;
        border: 1px solid #d4ced3;
        // border: none;
        border-radius: $input_border_radius;
        // box-shadow: inset 0 1px 2px rgba(0, 0, 0, .07);
        background-color: #c5c1c417;
        // border: none;
        // border-radius: $input_border_radius !important;
        // box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
        /* box-shadow: none !important; */
        /* background-color: #5f164e17; */
        color: #5f164e;
        outline: 0;
        transition: 50ms border-color ease-in-out;
        padding: 0 0 0 35px !important;
        height: initial !important;
        overflow: hidden;
    }

    .button .color-alpha {
        width: 35px !important;
    }

    .wp-color-result-text {
        border-radius: 0 2px 2px 0;
        // border-left: 1px solid #d4ced3;
        color: #555;
        display: block;
        line-height: 2;
        padding: 0 6px;
        text-align: center;
        border: 1px solid $border_color;
        border: none;
        /* border-radius: 40px !important; */
        // box-shadow: inset 0 1px 2px rgba(0, 0, 0, .07);
        // background-color: #f1eaef;
        color: #5f164e;
        outline: 0;
        transition: 50ms border-color ease-in-out;
        padding: 6px 10px !important;
        height: initial !important;
        display: table-cell;
    }

    .joli-css-unit-field {
        label {
            display: inline-flex;
            // box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
            border-radius: $input_border_radius;
            border: 1px solid #{$border_color}50;
            margin: 0 !important;

            // border: 1px solid #d4ced3;
            // border: none;
            input,
            select {
                margin: 0;
                border: none;
                // border-radius: 0;
                box-shadow: none;
            }

            input {
                border-top-right-radius: 0;
                border-bottom-right-radius: 0;
                padding-right: 0;
                max-width: 60px;
            }

            select {
                border-top-left-radius: 0;
                border-bottom-left-radius: 0;
                padding-left: 8px;
            }
        }
    }

    .joli-title {
        position: relative;
        text-transform: uppercase;
        font-weight: 100;
        font-size: 1.6em;
        // text-align: center;
        /* border-bottom: 3px solid #5f164e38; */
        // padding: 12px 0;
        // margin-bottom: 30px;
        margin: 16px 0;
        width: fit-content;
        color: #5f164e;

        padding-left: 10px;
        border-left: 6px solid #ee772140;

        .joli-styling {
            font-weight: 400;
            position: relative;

            &:after {
                // content: '';
                // display: block;
                // border-bottom: 11px solid #ee772140;
                // width: 46px;
                // position: absolute;
                // left: -4px;
                // bottom: 0px;
                // z-index: 50;
                // border-radius: 15px;

            }
        }

    }

    aside.joli-sidebar {

        width: $sidebar_width;

        @media (min-width: $laptop_max) {
            width: 250px;
        }

        .joli-sidebar-content {
            // width: $sidebar_width;
            position: sticky;
            top: 40px;
        }

        .joli-sidebar-item {
            position: relative;
            margin: 0 0 1em 1em;
            border-radius: 4px;
            background-color: white;
            padding: 12px 15px;
            box-shadow: 0 0 10px #dddddd;
            text-align: center;
            overflow: hidden;

            @at-root .joli-sidebar-header {
                display: flex;
                margin: -12px -15px -12px -15px; 
                border-bottom: 1px solid #f1f1f1;
                text-decoration: none;

                >img {
                    border-radius: 4px 0 0 0;
                    width: 72px;
                }

                h3 {
                    display: flex;
                    margin: 0;
                    align-items: center;
                    justify-content: center;
                    padding: 0 15px;
                    font-size: 14px;
                    flex: 1;
                }
            }

            @at-root .joli-sidebar-body {
                display: none;
            }

            &:hover{
                .joli-sidebar-body {
                    padding-top: 12px;
                    display: block;
                }
            }


            h3 {
                margin-top: 0;
                text-align: center;
            }
        }
    }

    .joli-plugin-description {
        // text-align: justify;
        font-size: 90%;
        line-height: 1.2;
        color: #808080;
    }

    .joli-gopro-notice {
        // position: sticky;
        // top: 40px;

        text-align: center;
        // background: #{$color_accent}1c;
        // border: 1px solid #{$color_accent}30;
        // background: #beb0ff;
        // background: #b0fff3;
        border-radius: $input_border_radius;
        // border: 1px solid #{$color_accent}30;
        // padding: 12px 15px 7px 15px;
        // color: #341c9d;
        margin: 0;

        h3 {
            color: #2700d6;
        }

        ul {
            font-size: 0.9em;
            list-style-type: disc;
            display: inline-block;
            text-align: left;
            // columns: 2;
            // column-gap: 3em;
            margin: 0 0 0 20px;

            li {
                margin-bottom: 0;
                line-height: 1.2;
            }
        }
    }

    .joli-quickstart-notice {
        background: #{$color_accent}2b;
        border: none;
        // border: 1px solid #{$color_accent_2}30;
        padding: 3px 10px;
        margin: 0;
        border-radius: 4px;
        margin-top: 5px;
        font-size: 0.9em;

        p {
            position: relative;
            font-weight: bold;
            color: $color_main;
            font-size: 1.2em;
            margin: 5px;

            &::before {
                content: "\276F";
                display: inline-flex;
                height: 20px;
                transform: rotate(90deg);
                display: inline-flex;
                align-items: center;
                justify-content: center;
                margin-right: 5px;
            }
        }

        ol {
            display: none;
            margin: 0 10px 7px 20px;

            li {
                margin-bottom: 0;
                font-size: 1em;
            }
        }

        &:hover {
            ol {
                display: block;
            }
        }
    }

    .joli-header-top,
    .joli-header {
        z-index: 1;
        display: flex;
        flex-direction: column;
        width: $nav_tab_width;
        position: absolute;
        // top: 0;
    }

    @media (max-width: $mobile_max) {

        .joli-header {
            width: 60px;
        }

        .joli-nav-title {
            font-size: 0;
        }

    }

    .joli-logo {
        padding: 15px;

        >a {
            display: block;
        }

        img {
            max-width: 100%;
        }

        &.logo-incontent {
            max-width: 200px;
            margin: 0 auto;
        }

        @media (max-width: $mobile_max) {
            padding: 0;

            &:after {
                content: '';
                // background: url(../img/wpjoli-logo-new-small.png);
                display: block;
                width: 50px;
                height: 50px;
                /* position: absolute; */
                background-repeat: no-repeat;
                background-size: cover;
                z-index: 12342;
                background-position-x: 12px;
                margin-top: 10px;
                margin-bottom: 10px;
            }

            img {
                display: none;
            }
        }
    }

    .joli-nav {
        display: flex;
        flex-direction: column;

        .joli-nav-item {
            cursor: pointer;
            position: relative;
            display: flex;
            align-items: center;
            padding: 0 48px 0 16px;
            height: 44px;
            line-height: 1.15em;
            text-decoration: none;
            color: #121116;
            border-top: 1px solid #E0E4E9;
            border-bottom: 1px solid transparent;
            border-left: 2px solid transparent;
            overflow: hidden;
            transition: all 100ms ease-out;
            font-size: 90%;

            &:last-child {
                border-bottom: 1px solid #E0E4E9;
            }

            @media (max-width: $mobile_max) {
                padding: 16px 8px 16px 12px;
            }

            &#tab-general::before {
                background-image: url(../icons/gear.svg);
            }

            &#tab-template::before {
                background-image: url(../icons/template-alt.svg);
            }

            &#tab-image::before {
                background-image: url(../icons/picture.svg);
            }

            &#tab-automation::before {
                // content: url(../icons/automation.svg);
                background-image: url(../icons/automation.svg);
            }

            &::before {
                content: "";
                position: absolute;
                height: 24px;
                width: 24px;
                background-size: 24px;
                right: 16px;
                text-align: center;
                line-height: 1;
                opacity: 0.4;
                top: calc(50% - 12px);
            }

            &:focus {
                outline: none;
                box-shadow: none;
            }

            &:hover,
            &.nav-tab-active {
                color: #121116;
                background: #fff;
                border-left: 5px solid $color_accent;
                box-shadow: -8px 0 8px $color_light_gray;
                border-radius: 5px 0 0 5px;
                border-top: 1px solid transparent;
                border-bottom: 1px solid transparent;
                margin-bottom: 0;

                .joli-nav-title {
                    color: black;
                }

            }

            &.nav-tab-active {
                &::before {
                    //calculate final color from svg filter
                    // https://codepen.io/sosuke/pen/Pjoqqp
                    filter: invert(24%) sepia(96%) saturate(6318%) hue-rotate(252deg) brightness(97%) contrast(88%);
                    opacity: 1;
                }
            }

            .joli-nav-title {
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: .5px;
                color: gray;
            }
        }
    }

    .joli-version p {
        text-align: center;
        color: #cccccc;
        font-style: italic;
    }

    .joli-content {
        position: relative;
        flex: 1;
        margin-left: $nav_tab_width;

        @media (max-width: $mobile_max) {
            margin-left: 60px;
        }

        h2 {
            display: none;
            // color: $color_main;
            // text-transform: uppercase;
            // font-size: 1.2em;
            // font-weight: 500;
            // background-color: $color_main;
            /* border: 2px solid #55103f; */
            color: white;
            padding: 10px 0;
            text-transform: uppercase;
            font-size: 1.75em;
            font-weight: 700;
            // border-radius: 4px;
            // margin-left: -15px;
            margin-bottom: 0;

            // background: linear-gradient(180deg, #4e063714 50%, transparent 100%);
            // border-top: 2px solid #4e0637;
            color: $color_accent;
            // border-radius: 0;
            font-weight: 700;

            &:after {
                display: none;
                content: '';
                // border-bottom: 1px solid $color_light_gray;
                // margin-top: 10px;
                border-bottom: none;
                margin-top: 0;
            }

            +.form-table {
                margin-top: 20px;
                // margin-left: 40px;
            }
        }

        .joli-section-desc {
            // background-color: #fafafa;
            color: #808080;
            // padding: 2px 16px;
            // border-bottom: 1px solid #f8f8f8;
            // border-radius: $input_border_radius;
            // font-style: italic;
            margin-left: 0px;
            border-bottom: 1px solid #f7f7f7;
            background: linear-gradient(0deg, #fcfcfc, transparent 50%);

            p {
                font-size: 90% !important;
            }
        }

        .joli-tab-content {
            padding: 10px 30px 30px;
            background: white;
            border-style: none;
            border-radius: 6px;
            box-shadow: 0 0 10px #dddddd;

            @media (max-width: $mobile_max) {
                padding: 10px 15px 15px;
            }
        }


        .joli-header-wrap {
            position: relative;
        }

    }

    .joli-pro-only {
        color: $color_accent_2;
        font-weight: bold;
    }

    img {
        max-width: 100%;
    }

    .joli-submit {
        position: fixed;
        bottom: 40px;
        // right: 40px;
        right: 290px;
        display: flex;
        z-index: 1;

        @media (max-width: $mobile_max) {
            bottom: 10px;
            right: 10px;
        }

        &.joli-submit-inline {

            display: block;
            position: relative;
            // right: 0;
            bottom: inherit;
            right: inherit;

            // top: 50%;
            // transform: translateY(-19px);
            .joli-save-info {
                justify-content: center;

                >input {
                    margin: 20px 0;
                }
            }

            @media (max-width: $mobile_max) {
                display: none;
            }
        }

        .joli-save-info {
            position: relative;
            display: flex;
            border-radius: 50px;

            .joli-info-text {
                border-radius: 50px;
                background: #faddc7;
                align-items: center;
                padding: 0 50px 0 20px;
                position: absolute;
                // width: max-content;
                height: 100%;
                display: flex;
                opacity: 0;
                // right: 0;
                // margin-right: 82%;
                left: 0;
                transition: all 0.75s linear;
                color: bf5708;
                font-style: italic;
                font-size: 12px;

                &.open {
                    transition: all 0.75s linear;
                    display: flex;
                    opacity: 1;
                    left: initial;
                    right: 0;
                    margin-right: calc(100% - 40px);
                    width: max-content;
                }
            }
        }

        input[type=submit] {
            border: 2px solid $color_accent;
            background: white;
            color: $color_accent;
            font-weight: 700;
            font-size: 12px;
            border-radius: 50px;
            box-shadow: none;
            text-shadow: none;
            text-transform: uppercase;
            vertical-align: initial;
            padding: 3px 20px;
            height: initial;
            transition: all 0.2s ease-in-out;
            z-index: 10;

            &:hover {
                border: 2px solid $color_accent;
                background: $color_accent;
                color: white;
            }
        }
    }

    .joli-post-type-tabs {
        display: flex;
        flex-wrap: wrap;

        .joli-post-type-tab {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            padding: 0 0 4px 0;
            margin: 0 5px;
            text-align: center;
            width: 50px;
            justify-content: space-between;
            margin-bottom: 5px;

            &.joli-pro:before {
                content: 'PRO';
                position: absolute;
                color: #9c2355;
                font-size: 10px;
                font-weight: 700;
                top: 31px;
                left: 25px;
                z-index: 1;

            }

            &:first-of-type {
                width: auto;
                justify-content: start;
            }

            &::after {
                content: '';
                position: absolute;
                right: -6px;
                color: #d4d4d4;
                font-weight: normal;
                height: 100%;
                width: 1px;
                background: #e9e9e9;

            }

            a.joli-post-type-tab-item {
                &:hover {
                    text-decoration: underline;
                    color: $color_accent;
                }

            }

            span.joli-post-type-tab-item {
                color: #80808080;
            }

            .joli-post-type-tab-item {
                margin-bottom: 5px;
                text-decoration: none;
                font-size: 90%;
                line-height: 1;
                user-select: none;
                color: $color_accent_4;
            }

            &.--joli-tab-active {
                .joli-post-type-tab-item {
                    text-decoration: underline;
                    font-weight: bold;
                    color: $color_accent;
                }
            }

            // &::after {
            //     content: '|';
            //     position: absolute;
            //     right: -12px;
            //     // margin: 0 5px;
            //     color: #d4d4d4;
            //     font-weight: normal;
            // }

            &:last-child::after {
                content: none;
            }
        }
    }

    input[class=joli-post-type-check] {
        border-radius: 4px !important;
        min-width: 16px;
        height: 16px;
        min-height: 16px;
        padding: initial !important;
        margin: 0;
    }

    #joli-export-import-wrap {
        display: flex;
        background-color: white;
        background-color: #f1f1f1;
        border: 1px dashed lightgray;
        box-shadow: 0 0 10px #dddddd;
        border-radius: 6px;
        position: absolute;
        /* padding: 20px; */
        /* left: 50%; */
        /* transform: translateX(-50%); */
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        top: 0;
        z-index: 2;

        >div {
            padding: 8px 12px;
            display: flex;
            align-items: center;

            &:first-of-type {
                border-right: 1px dashed lightgray;
            }

            h3 {
                margin-right: 12px;
            }
        }

    }

    #joli-export-import-close {
        cursor: pointer;
        position: absolute;
        right: 0px;
        // top: 10px;

        &:hover {
            color: $color_accent;
        }

        .dashicons {
            font-size: 24px;
        }
    }
}

.joli-pro-only {
    color: $color_accent_2;
    font-weight: bold;
}


.joli-nav-tab {
    border-radius: 7px 7px 0 0;

    &.nav-tab-active {
        background-color: #ffffff;
        border-bottom: 1px solid #ffffff;
    }
}

.joli-section {

    &.hidden {
        // transition: all 0.5s linear;
        visibility: hidden !important;
        height: 0;
        width: 0;
    }
}

.joli-tab-content {
    padding: 10px 30px 30px;
    background: white;
    border-width: 0 1px 1px 1px;
    border-style: solid;
    border-color: #cccccc;
    min-height: 500px;

    &.post-settings {
        min-height: 100px;
        padding: 30px !important;
        box-sizing: border-box;
        // padding: 10px 20px !important;
        // box-shadow: none !important;
    }

    #tab-settings table.form-table tr {
        // opacity: 0;
        display: none;
        border-bottom: 1px solid #f7f7f7;

        &:last-of-type {
            border-bottom: none;
        }

        &.active {
            // transition: all 0.5s linear;
            display: block;
            margin-left: 10px;
            margin-left: 40px;
            // opacity: 1;

            @media (max-width: $mobile_max) {
                margin-left: 10px;
            }
        }

        &.hidden {
            // transition: none;
            display: none !important;
            // visibility: hidden !important;
            // height: 0;
            // width: 0;
        }
    }

    input::placeholder,
    textarea::placeholder {
        font-style: italic;
        color: #ccc;
    }

    // h2:after {
    //     display: block;
    //     content: '';
    //     border-bottom: 1px solid #dddddd;
    //     margin-top: 10px;
    // }

    .joli-admin-image {
        margin-top: 10px;
        border: 2px solid $color_lighter_gray;
        background: #ffffff;
        border-radius: 6px;
        max-width: 100%;

        &.hidden {
            display: none;
        }
    }

    details.primer {
        border: 1px solid #e0e4e9;
        border-radius: 6px;
        padding: 15px;
        background: #fefcfe;
        box-sizing: border-box;

        summary {
            cursor: pointer;
        }
    }

    .joli-cta-button {
        border: none;
        background: $color_main;
        color: white;
        font-weight: 600;
        font-size: 1.5em;
        border-radius: 50px;
        box-shadow: none;
        text-shadow: none;
        vertical-align: initial;
        padding: 10px 15px;
        height: initial;
        -webkit-transition: all 0.2s ease-in-out;
        transition: all 0.2s ease-in-out;
    }

    .joli-cta-button:hover {
        background: $color_accent;
    }

    .pro-wrap {
        max-width: 900px;
        border-radius: 7px;
        margin: 0 auto;
        background: #fbf9f9;
        border: 1px solid #e5e5e5;
        padding: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;


        @media (max-width: $mobile_max) {
            padding: 0;
            border: none;
            background: initial;
        }

        .pro-table {
            max-width: 600px;
        }

        td,
        th {
            vertical-align: middle;
            height: 3em;
            // font-size: 1.8em;

            &.feature-name {
                font-weight: 600;
            }

            &.featured {
                text-align: center;
                border-left: 1px solid #e1e1e1;
                min-width: 90px;
                padding: 0;
            }
        }

        .dashicons {
            font-size: 2em;
            width: initial;
            height: initial;
        }

        .dashicons-no {
            color: #808080;
        }

        .dashicons-yes {
            color: rgb(6, 175, 105);
        }
    }

    .joli-settings-tab-pane {
        display: block;

    }

    // .tab-pane{
    //     display: none;

    // }

    // .tab-pane.active{
    //     display: block;
    // }

    .joli-pro,
    .joli-new {
        >th {
            &::after {
                content: 'PRO';
                color: $color_accent_2;
                font-size: 10px;
                margin-left: 5px;
                margin-top: 0px;
                position: absolute;
                font-weight: 700;
            }
        }
    }

    .joli-pro {

        cursor: default;

        >th {
            color: #a0a4aa;
        }

        .description {
            color: rgba(51, 51, 51, .5) !important;
        }

        div.joli-html-label {
            color: black;

            &:hover {
                background: inherit;
            }

            &::after {
                content: 'PRO';
                color: $color_accent_2;
                font-size: 10px;
                left: 50%;
                transform: translateX(-50%);
                bottom: -7px;
                position: absolute;
                font-weight: 700;
            }
        }
    }

    .joli-is-global {

        cursor: default;

        >th {
            color: #a0a4aa;
        }

        .description {
            color: rgba(51, 51, 51, .5) !important;
        }

        input+label {

            color: rgba(51, 51, 51, .5) !important;
        }

        div.joli-html-label {
            color: black;

            &:hover {
                background: inherit;
            }
        }
    }

    .joli-new {
        >th {
            &::after {
                content: 'NEW';
                color: $color_accent;
            }
        }
    }

    .safi-post-edit {
        .joli-header {
            width: 160px;
        }
    }

    @at-root .joli-field-info {
        position: relative;
        cursor: pointer;
        margin-left: 5px;
        color: #{$color_accent}80;

        &+.joli-info-bubble {
            transform: translateY(calc(-100% - 30px));
            z-index: 10;
            // border: 1px solid #{$color_accent}80;
            background-color: white;
            font-weight: 500;
            font-size: 90%;
            color: $color_accent;
            position: absolute;
            display: none;
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px #{$color_accent}40;
            box-shadow: 0 0 10px #80808040;
        }

        &:hover {
            color: $color_accent;

            &+.joli-info-bubble {
                display: block;
            }

        }
    }

    .joli-dimensions-control {
        display: flex;

        ul {
            display: flex;
            margin: 0;

            li {
                display: flex;
                flex-direction: column;
                margin-bottom: 0;

                &:first-of-type {
                    input.joli-dimension-input {
                        border-radius: $input_border_radius 0 0 $input_border_radius;
                    }
                }

                &:last-of-type {
                    input.joli-dimension-input {
                        border-radius: 0 $input_border_radius $input_border_radius 0;
                    }
                }
            }
        }

        .joli-dimensions-lock {
            position: relative;
            height: 34px;
            width: 28px;
            margin: 0 5px;


            &::after {
                content: "\f225";
                position: absolute;
                width: 28px;
                height: 34px;
                left: 0;
                top: 6px;
            }

            &.--joli-is-locked {
                &::after {
                    content: "\f103";
                    color: $color_accent;
                }
            }
        }



        input.joli-dimension-input {
            position: relative;
            width: 64px;
            padding: 0;
            text-align: center;
            border-radius: 0;

            &::before {
                content: attr(data-dimension);
                position: absolute;
                top: 0;
                display: block;
                width: 64px;
                height: 16px;
            }
        }

        label.joli-dimension-label {
            text-align: center;
            text-transform: uppercase;
            font-size: 9px;
            font-weight: 600;
            margin-bottom: 0 !important;
            // color: $color_accent;
        }


        select.joli-dimensions-units {
            // margin-left: 5px;
            height: 34px;
        }

        .joli-dimensions-clear {
            margin-left: 5px;
        }
    }


    @mixin visu {
        border: 1px solid #80808080;
        padding: 5px;
        background-color: #ffffff20;
    }

    @at-root .safi-v-highlight {
        background-color: $color_accent !important;
        border-color: $color_accent !important;
        color: white !important;
    }

    @at-root span.safi-v-highlight {
        padding: 2px 4px !important;
    }

    .safi-v-wrap {
        margin: 1em 0;
    }

    .safi-v-main {
        margin: 10px;
        @include visu;
        font-size: 12px;
        min-width: 360px;
    }

    .safi-v-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        @include visu;
        margin-bottom: 5px;
        min-height: 30px;
        font-size: 14px
    }

    .safi-v-toggle {
        @include visu;
    }

    .safi-v-body {
        @include visu;
    }

    ol.safi-v-headings {
        list-style-type: none;
        margin: 0;
        // @include visu;

        li {
            margin: 0 0 5px 0;
            @include visu;

            &:last-child {
                margin-bottom: 0;
            }


        }
    }

    // .safi-hint{
    //     font-size: 90%;
    // }

}


// .joli-nav-tab-wrapper{
//     .joli-nav-tab{
//         display: none;
//     }

//     .joli-nav-tab.nav-tab-active{
//         display: block;
//     }
// }