$vc_accent: #0473aa;

/*------------------------------------------------------------------
[# Chosen Select]
-------------------------------------------------------------------*/
.vcex-chosen,
.vc-chosen,
.vcex-chosen-alt {

    .chosen-results {
        max-height: 160px;
    }

    &.chosen-container{
        width: 100% !important;

        ul.chosen-results li.highlighted {
            background: $vc_accent;
        }

        /* Static positioning for chosen dropdowns.
        .chosen-drop {
            position: static;
            z-index: 1;
            margin: 0;
            clip: none;
            display: none;
            border-radius: 4px;
            border: 1px solid #7e8993;
            border-color: #d2d2d2;
        }

        &.chosen-with-drop .chosen-drop {
            display: block;
        }*/

    }

    /*
    &.chosen-container-single {

        .chosen-single {
            color: #32373c;
            font-size: 14px;
            height: 36px;
            line-height: 36px;
            padding-left: 10px;
            background: #fff;
            border-color: #ddd;
            background: #dcdcdc;
            box-shadow: none;
            @include border-radius( 3px );

            div {
                color: #000;
                top: 7px;
                right: 2px;
            }

        }

    }

    */

}

/*------------------------------------------------------------------
[# Abstracts]
-------------------------------------------------------------------*/
.clr::after,
.wpex-clr::after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    zoom: 1;
}

.vcex-clear {
    clear: both;
}

.vcex-t-exclusive {
    color:#9d8967;
    border: 1px solid #ffeccc;
    background-color:#fff4e2;
    padding:0.6em;
}

.vcex-noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}

/*------------------------------------------------------------------
[# Backend Views]
-------------------------------------------------------------------*/
.vcex-backend-view-images {
    display: flex;
    flex-wrap: wrap;

    img {
        display: block;
        width: auto;
        height: 75px;
        margin-right: 10px;
        margin-top: 10px;
    }

}

.vcex-backend-view-ba {
    display: flex;
    flex-wrap: nowrap;

    div {
        margin-right: 10px;
        margin-top: 10px;
    }

    img {
        display: block;
        width: auto;
        height: 75px;
    }

}

.vcex_wpb_image_holder {

    img {
        max-height: 75px;
    }

}

/*------------------------------------------------------------------
[# Custom Params]
-------------------------------------------------------------------*/

/* Responsive setting */
.vcex-trbl-param {
    padding-top: 4px;
}
.vcex-trbl-param .vcex-item,
.vcex-rs-param .vcex-item {
	position: relative;
    margin-right: 10px;
    white-space: nowrap;
    float: left;
    display: inline-block;
    margin-bottom: 6px;

    .rtl & {
        float: right;
        margin-right: 0;
        margin-left: 10px;
    }

}

.vcex-trbl-param .vcex-icon,
.vcex-rs-param .vcex-icon {
    display: block;
    float: left;
    width: 36px;
    height:30px;
    color: #fff;
    text-align: center;
    background: $vc_accent;
    border-radius: 3px 0 0 3px;

    .rtl & {
        float: right;
        border-radius: 0 3px 3px 0;
    }
}

.vcex-rs-param .vcex-icon .dashicons {
    top: 5px;
    position: relative;
}

.vcex-apply-all .dashicons,
.vcex-trbl-param .vcex-icon .dashicons {
    font-size: 18px;
    top: 7px;
    position: relative;
}

.vcex-rs-param .vcex-flip .dashicons {
    -ms-transform: rotate( 90deg );
    -webkit-transform: rotate( 90deg );
    transform: rotate( 90deg );
}

.vcex-trbl-param .vcex-input,
.vcex-rs-param .vcex-input {
    height: 30px;
    padding: 0;
    width: 60px;
    text-align: center;
    border-radius: 0 3px 3px 0;
    .rtl & {
        border-radius: 3px 0 0 3px;
    }
}

.vcex-trbl-param .vcex-hidden,
.vcex-rs-param .vcex-hidden {
	display: none;
}

/* Responsive columns */
.vcex-responsive-columns-param {
    padding: 10px 0;
    background: #f9f9f9;
    border: 1px solid #eee;

    .vc_col-sm-6 {
        padding-top: 5px;
        padding-bottom: 5px;
    }

}


/* On/Off switch */
.vcex-ofswitch {
    float: left;
    width: 100px;
    margin: 6px 0 10px;
    border-radius: 3px;

    .rtl & {
       float: right;
    }

}

.vcex-ofswitch .vcex-btn {
    display: block;
    float: left;
    text-transform: uppercase;
    background: #dcdcdc;
    color: #5e5e5e;
    font-size: 11px;
    font-weight: 600;
    width: 50%;
    text-align: center;
    cursor: pointer;
    transition: 0.25s all ease-in-out;
    line-height: 32px;
    padding: 0 8px;
    border: 0;

    .rtl & {
       float: right;
    }

    &:hover {
        outline: none;
    }

    &.vcex-on {
        border-radius: 3px 0 0 3px;
        .rtl & {
            border-radius: 0 3px 3px 0;
        }
    }

    &.vcex-off {
        border-radius: 0 3px 3px 0;
        .rtl & {
            border-radius: 3px 0 0 3px;
        }

    }

    &.vcex-active {
        background: #666;
        color: #fff;
        outline: none;

        &.vcex-on {
            background: #6dab3c;
            color: #fff;
        }

    }

}

/* Custom Selects */
.vcex-select-buttons-param {
    padding-top: 6px;
    font-size: 13px;

    .vcex-opt {
        display: inline-block;
        padding: 0 12px;
        line-height: 30px;
        text-align: center;
        margin-right: 6px;
        margin-bottom: 4px;
        cursor: pointer;
        color: #32373c;
        border: 1px solid #7e8993;
        box-shadow: none;
        border-radius: 3px;
        background: none;

        .rtl & {
            float: right;
            margin-right: initial;
            margin-left: 6px;
        }


        .dashicons {
            line-height: inherit;
        }
        &:hover {
            background: #efefef;
            outline: none;
        }
        &.vcex-active {
            background: $vc_accent;
            color: #fff;
            border-color: transparent;
            cursor: default;
            outline: 0;
            box-shadow: none;
            -webkit-appearance: none;
        }
    }

    &.vcex-no-active-bg .vcex-opt {
        border-width: 2px;
        &:hover,
        &.vcex-active {
            background: none;
            border-color: $vc_accent;
        }
    }

    .vcex-opt-italic {
        font-style: italic;
    }

     .vcex-opt-oblique {
        font-style: oblique;
    }

    .vcex-opt-underline {
        text-decoration: underline;
    }

    .vcex-opt-overline {
        text-decoration: overline;
    }

    .vcex-opt-line-through {
        text-decoration: line-through;
    }

}

/* Sorter */
.vcex-sorter-param {

    li {
        cursor: move;
        background: #fafafa;
        color: #23282d;
        padding: 0 12px;
        line-height: 36px;
        font-size: 13px;
        font-weight: 600;
        border: 1px solid #ccd0d4;
        box-shadow: 0 1px 1px rgba(0,0,0,.04);
        overflow: hidden;
        white-space: nowrap;
        &:hover {
            border-color: #999;
            box-shadow: 0 1px 2px rgba(0,0,0,.1);
        }

        > a {
            float: right;
            font-size: 21px;
            color: #5cb85c;

            .rtl & {
                float: left;
            }

        }

        &.vcex-disabled {

            > a {
                color: #72777c;
            }

        }

    }

}

/* Custom Alignments */
.vcex-alignments-param {
    padding-top: 6px;

    .vcex-alignment-opt {
        width: 50px;
        line-height: 30px;
        height: 30px;
        padding: 0;
        float: left;
        border-radius: 3px;
        text-align: center;
        border-radius: 4px;
        border: 1px solid #7e8993;
        background-color: #fff;
        color: #32373c;
        margin-right: 6px;
        cursor: pointer;

        .rtl & {
            float: right;
            margin-right: 0;
            margin-left: 6px;
        }


        .dashicons {
            line-height: inherit;
        }
        &.vcex-default {
            padding: 0 10px;
            width: auto;
        }
        &:hover {
            background: #eee;
            outline: 0;
        }
        &.vcex-active {
            outline: 0;
            color: #fff;
            background: $vc_accent;
            border-color: transparent;
        }
    }

}

/* Attach Images */
.wpb_el_type_vcex_attach_images,
.wpb_el_type_vcex_attach_image {

    // Add new image square button.
    .gallery_widget_add_images {
        margin-top: 0;
        display: block;
        float: left;
        height: 80px;
        width: 80px;
        background: #f5f5f5;
        border: 1px solid #dfdfdf;
        font-size: 0;
        color: #F5F5F5;
        position: relative;

        &:hover {
          color: #c8c8c8;
          border-color: #c8c8c8;
          text-decoration: none;
        }

        &:focus {
          box-shadow: none;
        }

        .rtl & {
            float: right;
        }

    }

    .vc-composer-icon {
      font-size: 18px;
      color: #87D148;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }

    .vc_icon-remove {
        display: block;
        position: absolute;
        background: red;
        height: 15px;
        width: 15px;
        top: auto;
        left: auto;
        bottom: 0;
        right: 0;

        &:hover {
            background: #000;
        }

        .vc-composer-icon {
            font-size: 14px;
            color: #fff;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .rtl & {
            left: 0;
            right: auto;
        }

    }

}

/* Colorpicker */
.vcex-color-param {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: start;
    flex-wrap: wrap;
    min-height: 36px;

    .vcex-color-param__select,
    .vcex-color-param__picker {
        width: auto;
    }

    .vcex-color-param__select {
        min-width: 25%;
    }

    .vc_color-picker {
        display: none;
        margin-left: 10px;
    }

    .vcex-color-param__preview {
        display: none;
        height: 30px;
        width: 50px;
        border-radius: 4px;
        margin-left: 10px;
        box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
        border: 1px solid transparent;
    }

}

/* Subheading */
.wpb_el_type_vcex_subheading .edit_form_line > div {
    background: #0473aa;
    color: #fff;
    margin-top: 20px;
    padding: 10px;
}

/* Textfield Unit */
.vcex-textfield-unit-param {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: start;
    flex-wrap: wrap;
}

.vcex-textfield-unit-param input[type="text"] {
    width: 200px;
    max-width: 100%;
    margin-right: 5px;
}

.vcex-textfield-unit-param select {
    width: auto;
}



.vcex_wpb_image_holder {
    margin: 0;
    padding-top: 10px;
    clear: both;
}

/* Colors @deprecated in 4.9.6
.vcex-colors-select-param {
    padding-top: 6px;
    .vcex-opt {
        width: 28px;
        height: 28px;
        line-height: 28px;
        float: left;
        margin-right: 4px;
        padding: 0;
        border: 1px solid #7e8993;
        border-radius: 3px;
        cursor: pointer;
        text-align: center;
        font-size: 14px;
        padding: 0;
        color: #32373c;
        transition: border-color 0.2s ease;
        &:hover,
        &.vcex-active {
            outline: 0;
            box-shadow: none;
            border-color: $vc_accent;
        }

        .rtl & {
            float: right;
            margin-left: initial
            margin-left: 4px;
        }

    }
}*/

/*------------------------------------------------------------------
[# Element Icons]
-------------------------------------------------------------------*/
@import "icons";