@import "variables.less";

.block-without-display(){
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    -moz-border-radius: 0px !important; /* Firefox */
    -webkit-border-radius: 0px !important; /* Safari, Chrome */
    -moz-box-shadow: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    box-sizing: content-box !important;
    clear: none !important;
    /*clip: auto !important;*/
    cursor: auto !important;
    float: none !important;
    height: auto !important;
    margin: 0 !important;
    min-height: none !important;
    max-height: none !important;
    height: auto !important;
    min-width: none !important;
    max-width: none !important;
    width: auto !important;
    opacity: 1 !important;
    outline: none !important;
    overflow: visible !important;
    padding: 0 !important;
    transform: none !important;
    vertical-align: baseline !important;
    visibility: visible !important;
    &:after, &:before{
        content: '';
    }
}
.block(){
    .block-without-display();
    display: block !important;
}

.motopress-default, .motopress-default:hover{
    .block();
    position: static !important;
}

.motopress-default-drag, .motopress-default-drag:hover{
    .block();
}

.text(){
    color: #000000 !important;
    line-height: 18px !important;
    text-align: auto !important;
    word-break: normal !important;
    text-align: left !important;
    word-spacing: normal !important;
    white-space: normal !important;
    unicode-bidi: normal !important;
    text-transform: none !important;
    text-shadow: none !important;
    text-indent: 0 !important;
    text-decoration: none !important;
    text-overflow: clip !important;
    word-wrap: normal !important;
    font-stretch: normal !important;
    font-weight: normal !important;
    font-family: arial, sans-serif !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-variant: normal !important;
    letter-spacing: normal !important;
}


.motopress-default-text, .motopress-text-default-text:hover{
    .text();
}

html, body {
    margin-top: 0px !important;
/*    height: 100%;*/
}
/*
#motopress-grid {
    position: relative;
    height: 100%;
}
#motopress-grid .row {
    height: 100%;
}
*/
#motopress-grid {
    display: none;
    .row .span1 {
        /*
        background: #ffcccc repeat-y;
        z-index: -1;
        height: 100%;
        */
        min-height: 0 !important;
    }
}
/*
#motopress-main {
    font: normal 12px/18px arial, sans-serif !important;
}
#page-container {
    position: relative;
    top: -100%;
    opacity: 0.5;
}
*/

.container:not(#motopress-grid) :not(.motopress-inactive) .row [class*="span"] {
    position: relative;
    min-height: 50px;
}

.motopress-drag-handle {
    position: absolute !important;
    top: 0px !important;
    left: 0px !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1001 !important;
    outline: #a8a8a8 dotted 1px !important;
    /*
    border: 1px dotted #A8A8A8 !important;
    margin: -1px 0 0 -1px !important;
    */
}
.motopress-drag-handle:hover {
    cursor: move !important;
}

.motopress-handle-top-in, .motopress-handle-bottom-in {
    position: absolute !important;
    /*left: 20px;
    width: -moz-calc(100% - 40px);
    width: -webkit-calc(100% - 40px);
    width: calc(100% - 40px);
    height: 10px;*/
    left: 0px !important;
    width: 100% !important;
    height: 25% !important;
}
.motopress-handle-top-in {
    top: 0px !important;
}
.motopress-handle-bottom-in {
    bottom: 0px !important;
}

.motopress-handle-left-out, .motopress-handle-right-out, .motopress-handle-left-in, .motopress-handle-right-in/*, .motopress-handle-wrapper-left, .motopress-handle-wrapper-right*/ {
    position: absolute !important;
    /*top: 0px;
    width: 10px;
    height: 100%;*/
    top: 25% !important;
    width: 25% !important;
    height: 50% !important;
}
.span1>.motopress-helper {
    .motopress-handle-left-out, .motopress-handle-right-out {
        width: 50% !important;
    }
    .motopress-handle-left-in, .motopress-handle-right-in {
        display: none !important;
    }
}
.motopress-handle-wrapper-left, .motopress-handle-wrapper-right {/* new */
    opacity: 0;
    position: absolute !important;
    top: 0px !important;
    width: 10px !important;
    height: 100% !important;
}
.motopress-handle-left-out {
    left: 0px !important;
}
.motopress-handle-right-out {
    right: 0px !important;
}
.motopress-handle-left-in {
    /*left: 10px;*/
    left: 25% !important;
}
.motopress-handle-right-in {
    /*right: 10px;*/
    right: 25% !important;
}
.motopress-handle-middle-out, .motopress-handle-middle-in {
    min-height: 7px !important;
    margin: 1px 0 !important;
    opacity: 0 !important;
}
.motopress-handle-middle-out {
    background-color: #fd8e2c !important;
    display: none;
}
.motopress-handle-middle-in {
    border: none !important;
}

.motopress-start-drag {
    opacity: 1 !important;
    min-height: 5px !important;
    border: 1px dotted rgba(20, 170, 255, 1) !important;
}

.motopress-handle-wrapper-left {
    left: -10px !important;
}
.motopress-handle-wrapper-right {
    right: -10px !important;
}

.motopress-wrapper-helper-container {
    overflow: hidden !important;
    height: -moz-calc(~"100% - 20px") !important;
    height: -webkit-calc(~"100% - 20px") !important;
    height: calc(~"100% - 20px") !important;
}

.motopress-handle-wrapper {
    width: 10px !important;
    height: 10px !important;
    background-color: #ccc !important;
    margin-bottom: 10px !important;
}

.motopress-hover-wrapper-helper {
    background-color: red !important;
}

.motopress-hover-handle-wrapper {
    background-color: black !important;
}

.motopress-wrapper-highlight {
    position: absolute !important;
    display: none;
    background: rgba(255, 255, 255, 0.3) !important;
	z-index: 1000 !important;
}

.motopress-handle-layout-wrapper-left-out, .motopress-handle-layout-wrapper-right-out {
    position: absolute !important;
    top: 10px !important;
    width: 50% !important;
    height: -moz-calc(~"100% - 20px") !important;
    height: -webkit-calc(~"100% - 20px") !important;
    height: calc(~"100% - 20px") !important;
/*    background: #ccc;*/
/*    z-index: 1;*/
}
.motopress-handle-layout-wrapper-left-out {
    left: 0 !important;
}
.motopress-handle-layout-wrapper-right-out {
    right: 0 !important;
}

.motopress-block-content {
    overflow: hidden !important;
}

.motopress-block-highlight {
    box-shadow: 0 0 5px rgba(20, 170, 255, 1) inset !important;
}

.motopress-wrapper-helper {
    display: none;
}

/* ----------- INSERT HELPERS ----------- */
.motopress-line-helper-left-out, .motopress-line-helper-right-out, .motopress-line-helper-left-in, .motopress-line-helper-right-in, .motopress-line-helper-top-in, .motopress-line-helper-bottom-in, .motopress-line-helper-handle-middle {
    position: absolute !important;
    display: none;
    background: #464646 !important;
    z-index: 1004 !important;
}
.motopress-line-helper-left-out, .motopress-line-helper-right-out, .motopress-line-helper-left-in, .motopress-line-helper-right-in {
    width: 3px !important;
}
.motopress-line-helper-top-in, .motopress-line-helper-bottom-in, .motopress-line-helper-handle-middle {
    height: 3px !important;
}
.motopress-text-helper-left-out, .motopress-text-helper-right-out, .motopress-text-helper-left-in, .motopress-text-helper-right-in, .motopress-text-helper-top-in, .motopress-text-helper-bottom-in, .motopress-text-helper-handle-middle {
    .text();
    -webkit-border-radius: 3px !important;
    -moz-border-radius: 3px !important;
    border-radius: 3px !important;
    vertical-align: baseline !important;
    padding: 2px 4px !important;
    position: absolute !important;
    font-size: 12px !important;
    font-weight: normal !important;
    color: white !important;
    background-color: #464646 !important;
    z-index: 1004 !important;
    display: none;
}

.motopress-left-menu, .motopress-left-menu:hover {
    background: #fafafa !important;
    border: solid 1px #eeeeee !important;
    -moz-box-shadow: 0 2px 7px 3px rgba(0,0,0,0.11) !important;
    -webkit-box-shadow: 0 2px 7px 3px rgba(0,0,0,0.11) !important;
    -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#f3f3f3')";
    filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#f3f3f3');
    box-shadow: 0 2px 7px 3px rgba(0,0,0,0.11) !important;

    position: fixed !important;
    bottom: auto !important;
    left: -114px;
    right: auto !important;
    top: 5px !important;

    min-width: 140px !important;
    max-width: 140px !important;
    width: 140px !important;

    z-index: 1005;
    .motopress-left-menu-header, .motopress-left-menu-header:hover {
        background: #464646 !important;
        color: #ffffff !important;
        height: 35px !important;
        margin: 2px 2px 0 2px !important;

        .motopress-left-menu-header-text, .motopress-left-menu-text:hover{
            color: #ffffff !important;
            font-size: 12px !important;
            font-weight: bold !important;
            float: left !important;
            margin-left: 13px !important;
            margin-top: 8px !important;
            display: inline !important;
            max-width: 100px !important;
            max-height: 18px !important;
            overflow: hidden !important;
            white-space: nowrap !important;
        }
        .motopress-left-menu-header-plus, .motopress-left-menu-header-plus:hover{
            color: #ffffff !important;
            font-size: 22px !important;
            font-weight: bold !important;
            float: right !important;
            margin-top: 8px !important;
            margin-right: 6px !important;
            display: inline !important;
        }
    }
    .motopress-label-tips, .motopress-label-tips:hover{
        font-size: 12px!important;
        font-style: italic !important;
        color: #999999 !important;
        float: left !important;
        margin-left: 5px !important;
        padding-top: 7px !important;
        padding-bottom: 7px !important;
    }
}
.motopress-new-block, .motopress-new-block:hover {
    background-color: #fafafa !important;
    color: #333333 !important;
    padding: 4px !important;
    text-align: left !important;
    text-shadow: none !important;
    cursor: move !important;
    height: 22px !important;
    border-bottom: 1px solid #e7e7e7 !important;
    border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    padding-top: 7px !important;
    padding-bottom: 2px !important;
    display: block !important;
    width: 132px !important;
/*    padding: 8px 4px; */
    line-height: 14px !important;

    .motopress-left-menu-icon, .motopress-left-menu-icon:hover {
        background-image: url('../../images/leftMenu.png@{pluginVersionParam}') !important;
        cursor: move !important;
        display: inline !important;
        width: 18px !important;
        height: 17px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .motopress-new-block-marker-icon, .motopress-new-block-marker-icon:hover {
        background-position: 0 0 !important;
        width: 5px !important;
        margin-right: 5px !important;
        float: left !important;
    }
    .motopress-new-block-text, .motopress-new-block-text:hover {
        color: #333333 !important;
        display: inline !important;
        float: left !important;
        font-size: 14px !important;
        font-weight: normal !important;
        cursor: move !important;
        max-width: 100px !important;
        max-height: 22px !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }
    .motopress-new-block-static-icon, .motopress-new-block-static-icon:hover {
        background-position: -6px 0 !important;
        float: right !important;
    }
    .motopress-new-block-loop-icon, .motopress-new-block-loop-icon:hover {
        background-position: -25px 0 !important;
        float: right !important;
    }
    .motopress-new-block-dynamic-sidebar-icon, .motopress-new-block-dynamic-sidebar-icon:hover {
        background-position: -44px 0 !important;
        float: right !important;
    }
}
/* ------------------------------------- */

/* ------------ TOOLS ------------------ */
div.bootstrap-select.motopress-content-select{
    .block();
    float: right !important;
    position: relative !important;
    font-size: 0 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    .btn.dropdown-toggle{
        .block();
        text-decoration: none !important;
        box-sizing: border-box !important;
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        display: inline-block !important;
        padding: 4px 12px !important;
        text-align: center !important;
        vertical-align: middle !important;
        cursor: pointer !important;
        .filter-option{
            .block();
            .text();
            float: left !important;
            overflow: hidden !important;
            position: relative !important;
            right: 0 !important;
            left: 0 !important;
            bottom: auto !important;
            top: auto !important;
            font-family: arial,sans-serif !important;
            font-size: 13px !important;
            cursor: pointer !important;
        }
        .caret {
            .block();
            position: absolute !important;
            right: 0 !important;
            left: auto !important;
            bottom: auto !important;
            top: auto !important;
            cursor: pointer !important;
            margin-top: 8px !important;
            margin-left: 0 !important;
            display: inline-block !important;
            width: 0 !important;
            height: 0 !important;
            vertical-align: top !important;
            border-top: 4px solid #000000 !important;
            border-right: 4px solid transparent !important;
            border-left: 4px solid transparent !important;
            content: "" !important;
        }
    }
    .dropdown-menu{
        .block-without-display();
        position: absolute !important;
        top: 100% !important;
        float: left !important;
        padding: 5px 0 !important;
        margin: 2px 0 0 !important;
        list-style: none !important;
        list-style-image: none !important;
        border: 1px solid rgba(0, 0, 0, 0.2) !important;
        -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2) !important;
        -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2) !important;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2) !important;
        background: #ffffff !important;
        text-shadow: none !important;
        border-radius: 0 !important;
        -moz-border-radius: 0 !important;
        -webkit-border-radius: 0 !important;
        margin-top: 5px !important;
        width: 152px !important;
        left: -5px !important;
        z-index: 1003 ;
        ul{
            .block();
            position: static !important;
            list-style: none !important;
            padding: 0 !important;
            li[rel="0"]{
                display: none !important;
            }
            li{
                .block();
                position: static !important;
                z-index: 1003;
                > a{
                    .block();
                    .text();
                    cursor: pointer !important;
                    position: static !important;
                    font-family: arial,serif !important;
                    font-size: 13px !important;
                    display: block !important;
                    padding: 3px 20px !important;
                    color: #464646 !important;
                    clear: both !important;
                    font-weight: normal !important;
                    line-height: 18px !important;
                    white-space: nowrap !important;
                    text-decoration: none !important;
                    &:hover, &:focus{
                        cursor: pointer !important;
                        background: #eeeeee !important;
                        color: #464646 !important;
                    }
                }
            }
        }
    }
}
.motopress-tools{
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    min-width: 300px !important;
    min-height: 33px !important;
    text-align: left !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    line-height: 18px !important;
    &:hover{
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        bottom: auto !important;
        min-width: 300px !important;
        min-height: 33px !important;
        text-align: left !important;
        font-size: 12px !important;
        font-style: normal !important;
        font-weight: normal !important;
        font-variant: normal !important;
        line-height: 18px !important;
        z-index: 1003 ;
    }
    .motopress-tools-inner {
        position: absolute !important;
        top: 5px !important;
        right: 5px !important;
        left: auto !important;
        bottom: auto !important;
        background: #ececec !important;
        color: #464646 !important;
        border: solid 1px #d8d8d8 !important;
        border-radius: 3px !important;
        -moz-border-radius: 2px !important; /* Firefox */
        -webkit-border-radius: 2px !important; /* Safari, Chrome */
        //font-size: 18px !important;
        max-width: 100% !important;
        min-width: 57px !important;
        padding: 1px 4px 1px 4px !important;
        z-index: 1003 ;
        .tooltip{
            position: absolute !important;
            z-index: 1030 !important;
            visibility: visible !important;
            padding: 5px !important;
            font-size: 11px !important;
            &.in{
                opacity: 0.8 !important;
            }
            &.bottom{
                margin-top: 3px !important;
                .tooltip-arrow{
                    top: 0 !important;
                    left: 50% !important;
                    margin-left: -5px !important;
                    border-width: 0 5px 5px !important;
                    border-bottom-color: #000000 !important;
                }
            }
            &.top{
                margin-top: -3px !important;
                .tooltip-arrow {
                    bottom: 0 !important;
                    left: 50% !important;
                    margin-left: -5px !important;
                    border-width: 5px 5px 0 !important;
                    border-top-color: #000000 !important;
                }
            }
            .tooltip-arrow {
                position: absolute !important;
                width: 0 !important;
                height: 0 !important;
                border-color: transparent !important;
                border-style: solid !important;
                visibility: visible !important;
                font-size: 11px !important;
            }
            .tooltip-inner {
                max-width: 200px !important;
                padding: 3px 8px !important;
                color: #ffffff !important;
                text-align: center !important;
                text-decoration: none !important;
                background-color: #000000 !important;
                -webkit-border-radius: 0 !important;
                -moz-border-radius: 0 !important;
                border-radius: 0 !important;
            }
        }

        > * {
        /*    margin: 2px 2px 0 2px;*/
            float: right !important;
        }
        &:hover{
            z-index: 1004 ;
        }
        select.motopress-content-select{
            display: none !important;
        }
        div.motopress-content-select.bootstrap-select.btn-group{

            //max-width: 17px;
            margin-bottom: 0 !important;
            width: 15px !important;
            &:hover, &.open{
                width: auto !important;
            }
            &:hover,
            &.open,
            &:hover button.btn.dropdown-toggle.clearfix,
            &.open button.btn.dropdown-toggle.clearfix{
                //min-width: 100px !important;
                max-width: 500px !important;
                z-index: 1004 ;
            }
            &:hover button.btn.dropdown-toggle.clearfix,
            &.open button.btn.dropdown-toggle.clearfix{
                width: 100% !important;
                .filter-option {
                    display: block !important;
                    color: #464646 !important;
                }
                .caret
                {
                    color: #464646 !important;
                    right: 3px !important;
                }
            }
            &:active {
                border: none !important;
                outline: none !important;
            }
            button.btn.dropdown-toggle.clearfix{
                //padding-top: 3px !important;
                //padding-bottom: 3px !important;
                padding: 3px 6px !important;
                outline: none !important;
                //padding-right: 0 !important;
                width: 0 !important;
                color: #333333 !important;
                text-transform: none !important;
                .caret {
                    margin-top: 7px !important;
                    right: 0 !important;
                }
                .filter-option{
                    position: relative !important;
                    left: 0 !important;
                    right: 0 !important;
                    margin-right: 21px !important;
                    margin-left: 0 !important;
                    display:none !important;
                }
            }
            .dropdown-menu{
                min-width: 100px !important;
                width: auto !important;
                overflow: hidden !important;
                max-width: 500px !important;
                box-sizing: content-box !important;
                ul{
                    list-style: none !important;
                    li[rel="0"] {
                        display: none !important;
                    }
                    li > a{
                        color: #464646 !important;
                        &:hover, &:active, &:link, &:visited{
                            color: #464646 !important;
                        }
                    }
                }
            }
            option {
                background-color: #ffffff !important;
            }
            .dropdown-toggle, .dropdown-toggle:hover,
            .btn-group.open .dropdown-toggle, .dropdown-toggle:focus{
                background: #ebebeb !important;
                border: none !important;
                border-radius: 0 !important;
                -moz-border-radius: 0!important;
                -webkit-border-radius: 0!important;
                outline: none !important;
                box-shadow: none !important;
                font: normal 12px/18px arial, sans-serif !important;
            }
        }
        .motopress-edit-content-btn, .motopress-remove-block-btn {
            margin: 5px 3px !important;
            cursor: pointer !important;
        }
    }
}
.sidebar .motopress-tools .dropdown-menu ul li{
    background: none !important;
    padding: 0 !important;
}

.motopress-layout-wrapper-tools {
    position: absolute !important;
    top: 0 !important;
    left: -20px !important;
    right: auto !important;
    bottom: auto !important;
    color: #333 !important;
    font-size: 18px !important;
    max-width: 20px !important;
    max-height: 100% !important;
    padding: 0 !important;
    z-index: 1003;
    overflow: visible !important;
    cursor: pointer !important;
    &:hover{
        position: absolute !important;
        top: 0 !important;
        left: -20px !important;
        right: auto !important;
        bottom: auto !important;
    }

    div.bootstrap-select.btn-group.motopress-content-select{
        /*.block();*/
        float: none !important;
        display: inline-block !important;
        margin: 0 !important;
        width: 20px !important;
        &:hover{
            width: 160px !important;
        }

        button.btn.dropdown-toggle{
            width: 20px !important;
            margin: 0 !important;
            .filter-option{
                display: none !important;
            }
            &:hover{
                width: 160px !important;
                .filter-option{
                    display: block !important;
                }
            }
        }
        button.btn.dropdown-toggle, button.btn.dropdown-toggle:hover, div.bootstrap-select.motopress-content-select.btn-group.open button.btn.dropdown-toggle{
            background: #ececec !important;
            border: solid 1px #d8d8d8 !important;
            border-radius: 3px !important;
            -moz-border-radius: 2px !important;
            -webkit-border-radius: 2px !important;
            outline: none !important;
            box-shadow: none !important;
            font: normal 12px/18px Arial, sans-serif !important;
            overflow: hidden !important;
            padding: 4px 0 !important;
            .filter-option {
                color: #464646 !important;
                cursor: pointer !important;
            }
            .caret {
                right: 5px !important;
                color: #464646 !important;
                cursor: pointer !important;
            }
        }
        button.btn.dropdown-toggle:hover {
            padding-left: 12px !important;
            padding-right: 12px !important;
        }
        .dropdown-menu{
            left: 0 !important;
            margin-top: 2px !important;
            width: 160px !important;
        }
    }



}


.motopress-drag-layout-wrapper-handle{
    cursor: move;
}
.motopress-content-layout-wrapper-btn, .motopress-remove-layout-wrapper-btn{
    cursor: pointer;
}

/*
.popover {
    .block();
    .text();
    position: absolute !important;
    width: 276px !important;
    -webkit-background-clip: padding-box !important;
    -moz-background-clip: padding !important;
    background-clip: padding-box !important;
    border: 1px solid #ccc !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2) !important;
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2) !important;
    margin-left: -10px !important;
    background-color: #fafafa !important;
    padding: 2px !important;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    z-index: 1004 !important;

    .popover-content p,
    .popover-content ul,
    .popover-content ol {
        .block();
        .text();
        margin-bottom: 0 !important;
    }
    .arrow,
    .arrow:after {
        position: absolute !important;
        display: inline-block !important;
        width: 0 !important;
        height: 0 !important;
        border-color: transparent !important;
        border-style: solid !important;
    }

    *{
        font-family: arial, sans-serif !important;
    }
    .arrow{
        top: 50% !important;
        right: -10px !important;
        left: auto !important;
        bottom: auto !important;
        margin-top: -10px !important;
        border-width: 10px 0 10px 10px !important;
        border-color: transparent !important;
        border-left-color: #ffffff !important;
        position: absolute !important;
        display: inline-block !important;
        width: 0 !important;
        height: 0 !important;
        border-style: solid !important;
        &:after{
            content: "" !important;
            z-index: -1 !important;
            border-width: 11px 0 11px 11px !important;
            border-left-color: rgba(0, 0, 0, 0.25) !important;
            bottom: -11px !important;
            right: -1px !important;
        }
    }
    .popover-title{
        .block();
        .text();
        background-color: #454545 !important;
        color: #ffffff !important;
        font-family: arial,sans-serif !important;
        text-shadow: none !important;
        text-align: center !important;
        border-radius: 0 !important;
        -webkit-border-radius: 0 !important;
        -moz-border-radius: 0 !important;
        margin: 0 !important;
        padding: 8px 14px !important;
        font-size: 14px !important;
        font-weight: normal !important;
        line-height: 18px !important;
        border-bottom: 1px solid #ebebeb !important;
    }
    .popover-content{
        .block();
        .text();
        padding: 9px 14px !important;
        font-size: 12px !important;
        line-height: 18px !important;
        color: #9f9694 !important;
        p{
            margin: 0 0 9px !important;
            font-size: 12px !important;
            line-height: 18px !important;
            color: #9f9694 !important;
            a{
                color: #ba3d49 !important;
                outline: none !important;
                text-decoration: none !important;
                font-size: 12px !important;
                line-height: 18px !important;
            }
        }
    }
}
*/

.popover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1004;
    display: none;
    width: 276px;
    padding: 2px;
    background-color: #fafafa;
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);

  // Offset the popover to account for the popover arrow
  &.top     { margin-bottom: 10px; }
  &.right   { margin-left: 10px; }
  &.bottom  { margin-top: 10px; }
  &.left    { margin-right: 10px; }

}

.popover-title {
    .text();
    margin: 0 !important; // reset heading margin
    padding: 8px 14px !important;
    font-family: arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: normal !important;
    line-height: 18px !important;
    color: #fff !important;
    text-align: center !important;
    background-color: #454545 !important;
    border-bottom: 1px solid #ebebeb !important;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

.popover-content {
    .block();
    .text();
    padding: 9px 14px !important;
    font-size: 12px !important;
    line-height: 18px !important;
    color: #9f9694 !important;
    p {
        margin: 0 0 9px !important;
        font-size: 12px !important;
        line-height: 18px !important;
        color: #9f9694 !important;
        a {
            color: #ba3d49 !important;
            outline: none !important;
            text-decoration: none !important;
            font-size: 12px !important;
            line-height: 18px !important;
        }
    }
}

// Arrows
.popover .arrow,
.popover .arrow:after {
  position: absolute;
  display: inline-block;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
}
.popover .arrow:after {
  content: "";
  z-index: -1;
}

.popover {
  &.top .arrow {
    bottom: -10px;
    left: 50%;
    margin-left: -10px;
    border-width: 10px 10px 0;
    border-top-color: #fff;
    &:after {
      border-width: 11px 11px 0;
      border-top-color: rgba(0,0,0,.25);
      bottom: -1px;
      /*left: -11px;*/
    }
  }
  &.right .arrow {
    top: 50%;
    left: -10px;
    margin-top: -10px;
    border-width: 10px 10px 10px 0;
    border-right-color: #fff;
    &:after {
      border-width: 11px 11px 11px 0;
      border-right-color: rgba(0,0,0,.25);
      bottom: -11px;
      left: -1px;
    }
  }
  &.bottom .arrow {
    top: -10px;
    left: 50%;
    margin-left: -10px;
    border-width: 0 10px 10px;
    border-bottom-color: #fff;
    &:after {
      border-width: 0 11px 11px;
      border-bottom-color: rgba(0,0,0,.25);
      top: -1px;
      left: -11px;
    }
  }
  &.left .arrow {
    top: 50%;
    right: -10px;
    margin-top: -10px;
    border-width: 10px 0 10px 10px;
    border-left-color: #fff;
    &:after {
      border-width: 11px 0 11px 11px;
      border-left-color: rgba(0,0,0,.25);
      bottom: -11px;
      right: -1px;
    }
  }
}


/* ------------------------------------- */

/* ------------- RESIZER -------------- */
.ui-resizable-handle {
/*    background: rgba(120, 100, 120, 0.5);*/
    z-index: 1;
    opacity: 0;
}
.ui-resizable-se {
    bottom: -5px !important;
    right: -5px !important;
}
/*.ui-resizable-handle:hover {
    background: rgba(51, 153, 255, 0.1);
}*/
.motopress-resizer-helper {
    background: rgba(51, 153, 255, 0.3);
}
/*
.motopress-empty {
    background-color: #ccc;
}
*/
[class*="span"]:first-child > .motopress-helper > .motopress-splitter {
    display: none;
}
.motopress-splitter {
    position: absolute;
    top: 0px;
    height: 100%;
    cursor: col-resize;
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAADCAYAAABS3WWCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABlJREFUeNpiWLFixX+G////MzAxAAFAgAEAPI4F90fyasUAAAAASUVORK5CYII=") repeat-y center center;
    z-index: 1;
    &:hover {
        //opacity: 1.0;
    }
}
@media (min-width: 980px) {
    .motopress-splitter {
        margin-left: -15px;
        width: 10px;
    }
}
@media (min-width: 1200px) {
    .motopress-splitter {
        margin-left: -25px;
        width: 20px;
    }
}


/* -------- Resizer icons -------- */
/*.ui-resizable-e, .ui-resizable-w, .ui-resizable-s, .ui-resizable-e:hover, .ui-resizable-w:hover, .ui-resizable-s:hover {
    background-repeat: no-repeat;
    background-position: 50% 50%;
}
.ui-resizable-e:hover, .ui-resizable-w:hover, .ui-resizable-s:hover {
    background-repeat: no-repeat;
    background-position: 50% 50%;
}
.ui-resizable-e, .ui-resizable-w {
    background-image: url("../../images/resizer-icon-ew.png");
}
.ui-resizable-s {
    background-image: url("../../images/resizer-icon-s.png");
}
.ui-resizable-e:hover, .ui-resizable-w:hover {
    background-image: url("../../images/resizer-icon-ew-hover.png");
}
.ui-resizable-s:hover {
    background-image: url("../../images/resizer-icon-s-hover.png");
}
*/

.dropdown-menu li > a:hover,
.dropdown-menu li > a:focus,
.dropdown-submenu:hover > a {
  text-decoration: none;
  color: #333;
  background-color: #f3f3f3;
  background-color: #f5f5f5;
  background-image: -moz-linear-gradient(top, #f3f3f3, #ededed);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f3f3f3), to(#ededed));
  background-image: -webkit-linear-gradient(top, #f3f3f3, #ededed);
  background-image: -o-linear-gradient(top, #f3f3f3, #ededed);
  background-image: linear-gradient(to bottom, #f3f3f3, #ededed);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffededed', endColorstr='#ffededed', GradientType=0);
}

.nav .dropdown-toggle .caret {
  border-top-color: #333;
  border-bottom-color: #333;
}

.motopress-empty .motopress-handle-right-out, .motopress-empty .motopress-handle-left-out {
    top: 0;
    bottom: 0;
    width: 50% !important;
    height: 100%;
}

.motopress-show{
    display: block !important;
}

.motopress-hide{
    display: none !important;
}

.motopress-camera {
    display: block;
    pointer-events: none;
    cursor: default;
}

.motopress-inactive {
    pointer-events: none;
    cursor: default;
}

#sidebar {
    overflow: visible;
}

.motopress-wrapper {
    z-index: auto !important;
    overflow: visible !important;
}