@import "variables.less";

html, body, #wpwrap, #wpcontent, #wpbody, #wpbody-content {
    height: 100%;
}
body{
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* Navbar */
.motopress-navbar-preview {
    min-width: auto !important;
}
.motopress-navbar.mp_navbar {
    margin-bottom: 0;
    position: relative;
    #motopress-logo {
        display: inline-block;
        float: left;
        margin-top: 11px;
        margin-right: 40px;
    }
    *{
        font-family: arial, sans-serif;
    }
    .navbar-inner{
        min-height: 53px;
        border-radius: 0;
        -moz-border-radius: 0;
        -webkit-border-radius: 0;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
    }
    ul.nav > li{
        margin-top: 12px;
        margin-right: 10px;
        margin-bottom: 0;
        > span{
            font-size: 13px;
            color: #858585;
        }
    }
    @media (max-width: 1200px) {
        .bootstrap-select, .bootstrap-select button {
            width: 150px;
        }
    }
    @media (min-width: 1200px) {
        .bootstrap-select, .bootstrap-select button {
            width: 190px;
        }
    }
    .bootstrap-select button:hover, .btn-group.open .btn.dropdown-toggle{
        background: #ffffff;
        border: solid 1px #cccccc;
        outline: none !important;
        box-shadow: none;
    }
    .bootstrap-select{
        z-index: 1002;
        span, a{
            font-size: 14px;
        }
        button{
            background: #ffffff;
            border: solid 1px #cccccc;
            -webkit-border-radius: 0 !important;
            -moz-border-radius: 0 !important;
            border-radius: 0 !important;
            outline: none !important;
            text-decoration: none !important;
        }
        button .caret, button .caret:hover{
            border-top-color: #000000;
            border-bottom-color: #000000;
        }
        a:hover{
            background-color: #eeeeee;
        }
        .dropdown-menu li > a:hover, .dropdown-menu li > a:focus, .dropdown-submenu:hover > a {
            background: #eeeeee !important;
            color: #000000;
        }
        .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);
        }

        .dropdown-menu{
            margin-top: 3px;
            background: #ffffff;
            border-radius: 0;
            -moz-border-radius: 0;
            -webkit-border-radius: 0;
            .optgroup-div{
                padding-bottom: 10px;
            }
        }

    }
    #motopress-duplicate-template {
        margin-left: 10px;
    }
    #motopress-page-templates-wrapper{
        margin-left: 20px;
    }
    #motopress-page-templates-wraper>span{
        position: relative;
        top: -1px;
    }
    #motopress-show-hide-blocks{
        margin-top: 10px;
        > i{
            font-size: 15px;
        }
    }
    button {
        margin-right: 5px;
    }
    #screenViews {
        text-align: center;
        width: 48px;
        border: 1px solid transparent;
        box-sizing: border-box;
        margin-right: 0;
        margin-top: 12px;
        &:hover{
            background-color: #f0f0f0;
            border: solid 1px #d8d8d8;
            border-radius: 3px;
            -moz-border-radius: 2px;
            -webkit-border-radius: 2px;
        }
        &:active{
            background: #e0e0e0; /* Old browsers */
            background: -moz-linear-gradient(top, #e3e3e3 0%, #dadada 100%); /* FF3.6+ */
            background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e3e3e3), color-stop(100%,#dadada)); /* Chrome,Safari4+ */
            background: -webkit-linear-gradient(top, #e3e3e3 0%,#dadada 100%); /* Chrome10+,Safari5.1+ */
            background: -o-linear-gradient(top, #e3e3e3 0%,#dadada 100%); /* Opera 11.10+ */
            background: -ms-linear-gradient(top, #e3e3e3 0%,#dadada 100%); /* IE10+ */
            background: linear-gradient(to bottom, #e3e3e3 0%,#dadada 100%); /* W3C */
            filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e3e3e3', endColorstr='#dadada',GradientType=0 ); /* IE6-9 */
            box-shadow: inset 0 0 3px 1px #cdcdcd;
            border: solid 1px #bdbdbd;
            border-radius: 3px;
            -moz-border-radius: 2px;
            -webkit-border-radius: 2px;
        }
        #currentViewMode {
            float: left;
            margin-left: 6px;
        }
        .screen-views-icon {
            background-image: url('../../images/screenViews.png@{pluginVersionParam}');
            width: 21px;
            height: 21px;
            margin: 0;
            padding: 0;
        }
        .screen-views-desktop-icon {
            background-position: 0 0;
        }
        .screen-views-tablet-icon {
            background-position: 0 -23px;
        }
        .screen-views-phone-icon {
            background-position: 0 -44px;
        }
        .screen-views-editor-icon {
            background-position: 0 -66px;
        }
        .dropdown-menu{
            min-width: 44px;
            border-radius: 0;
            -moz-border-radius: 0;
            -webkit-border-radius: 0;
            margin-top: 3px;
            padding-top: 1px;
            padding-bottom: 1px;
            li{
                margin-bottom: 0;
                .screen-views-icon {
                    margin: 7px auto;
                }
                >a:hover{
                    background: #eeeeee !important;
                }
            }
        }
        *{
            z-index: 1005;
        }
        a{
            padding: 4px 0;
        }
        hr{
            padding: 0;
            margin: 0;
            margin-top: 1px;
        }
    }

    .dropdown-menu:after, .dropdown-menu:before{
        display: none !important;
    }
}

.motopress-btn(){
    color: #ffffff;
    font-family: arial, sans-serif;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    line-height: normal;
    padding: 7px 8px 7px 8px;
    display: inline-block;
    height: 30px;
}
.btn-red{
    .motopress-btn;
    border: #cc3e2d 1px solid;
    background: #dc4a38; /* Old browsers */
    background: -moz-linear-gradient(top, #dc4a38 0%, #d04836 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dc4a38), color-stop(100%,#d04836)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #dc4a38 0%,#d04836 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #dc4a38 0%,#d04836 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #dc4a38 0%,#d04836 100%); /* IE10+ */
    background: linear-gradient(to bottom, #dc4a38 0%,#d04836 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dc4a38', endColorstr='#d04836',GradientType=0 ); /* IE6-9 */
    -moz-box-shadow: 1px 1px 1px #f7e8e6;
    -webkit-box-shadow: 1px 1px 1px #f7e8e6;
    box-shadow: 1px 1px 1px #f7e8e6;
}
.btn-red:hover{
    border: #b0281a 1px solid;
    color: #ffffff;
    -moz-box-shadow: 1px 1px 0px #e0d1d1;
    -webkit-box-shadow: 1px 1px 0px #e0d1d1;
    box-shadow: 1px 1px 0px #e0d1d1;
}
.btn-red:active, .btn-red.active{
    border: #b72b1a 1px solid;
    background: #c63927; /* Old browsers */
    background: -moz-linear-gradient(top, #c73927 0%, #c53927 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#c73927), color-stop(100%,#c53927)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #c73927 0%,#c53927 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #c73927 0%,#c53927 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #c73927 0%,#c53927 100%); /* IE10+ */
    background: linear-gradient(to bottom, #c73927 0%,#c53927 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c73927', endColorstr='#c53927',GradientType=0 ); /* IE6-9 */
    box-shadow: inset 0 0 4px 1px #be3220;
}
.btn-red:disabled{
    border: #e08b81 1px solid;
    background: #e99288; /* Old browsers */
    background: -moz-linear-gradient(top, #e99288 0%, #e39186 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e99288), color-stop(100%,#e39186)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #e99288 0%,#e39186 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #e99288 0%,#e39186 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #e99288 0%,#e39186 100%); /* IE10+ */
    background: linear-gradient(to bottom, #e99288 0%,#e39186 100%); /* W3C */
    -moz-box-shadow: 1px 1px 1px #f7e8e6;
    -webkit-box-shadow: 1px 1px 1px #f7e8e6;
    box-shadow: 1px 1px 1px #f7e8e6;
    cursor: default;
}
.btn-blue{
    .motopress-btn;
    background: #4787ed; /* Old browsers */
    border: #3079ed 1px solid;
}
.btn-blue:hover{
    border: #1b67df 1px solid;
    color: #ffffff;
    -moz-box-shadow: 1px 1px 0px #b8c3d5;
    -webkit-box-shadow: 1px 1px 0px #b8c3d5;
    box-shadow: 1px 1px 0px #b8c3d5;
}
.btn-blue:active, .btn-blue.active{
    border: #1762da 1px solid;
    background: #407de0; /* Old browsers */
    background: -moz-linear-gradient(top, #4a89ee 0%, #3874d6 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4a89ee), color-stop(100%,#3874d6)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #4a89ee 0%,#3874d6 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #4a89ee 0%,#3874d6 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #4a89ee 0%,#3874d6 100%); /* IE10+ */
    background: linear-gradient(to bottom, #4a89ee 0%,#3874d6 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4a89ee', endColorstr='#3874d6',GradientType=0 ); /* IE6-9 */
    box-shadow: inset 0 0 4px 1px #2a68ca;
}
.btn-blue:disabled{
    border: #78a8f3 1px solid;
    background: #87b1f3; /* Old browsers */
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    cursor: default;
}
.btn-default{
    .motopress-btn;
    background: #f0f0f0;
    color: #5f5f5f;
    border: #d8d8d8 1px solid;
}
.btn-default:hover{
    border: #c6c6c6 1px solid;
    -moz-box-shadow: 1px 1px 0px #ededed;
    -webkit-box-shadow: 1px 1px 0px #ededed;
    box-shadow: 1px 1px 0px #ededed;
}
.btn-default:active, .btn-blue.active{
    border: #bdbdbd 1px solid;
    background: #e2e2e2; /* Old browsers */
    background: -moz-linear-gradient(top, #e5e5e5 0%, #dedede 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e5e5e5), color-stop(100%,#dedede)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #e5e5e5 0%,#dedede 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #e5e5e5 0%,#dedede 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #e5e5e5 0%,#dedede 100%); /* IE10+ */
    background: linear-gradient(to bottom, #e5e5e5 0%,#dedede 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e5e5e5', endColorstr='#dedede',GradientType=0 ); /* IE6-9 */
    box-shadow: inset 0 0 4px 1px #d4d4d4;
}
.btn-default:disabled{
    border: #e8e8e8 1px solid;
    color: #9f9f9f;
    background: #f6f6f6; /* Old browsers */
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    cursor: default;
}

/* Flash Message */
#motopress-flash {
    position: absolute;
    width: 100%;
    text-align: center;
    z-index: 1001;
    .alert {
        margin: 0 200px;
        .motopress-close {
            opacity: 0.5;
        }
    }
}

/* Close */
.motopress-close, .motopress-close:hover {
    float: right;
    cursor: pointer;
    margin-top: 4px !important;
    margin-right: -6px;
}

/* Validation Message */
.motopress-validation-error {
    font-size: 12px;
    border: 1px solid #eed3d7;
    background-color: #f2dede;
    color: #b94a48;
    padding: 0 4px;
}

/* Iframe */
#motopress-iframe-wrapper, #motopress-preview-iframe-wrapper {
    position: relative;
    /*top: -80%;*/
    width: 100%;
    height: 0;
    height: -moz-calc(~"100% - 60px");
    height: -webkit-calc(~"100% - 60px");
    height: calc(~"100% - 60px");
}
#motopress-preview-iframe-wrapper {
    display: none;
}
#motopress-iframe, #motopress-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
#motopress-preview-iframe {
    display: block;
    margin: 0 auto;
}

/* Modal */
@media (max-width: 767px) {
    .modal {
        left: 50%;
        right: auto;
        &.fade.in {
            top: 50%;
            }
    }
}
@media (max-width: 480px) {
    .modal {
        left: 50%;
        right: auto;
        &.fade.in {
            top: 50%;
        }
    }
}

#motopress-static-editor-modal,
#motopress-duplicate-modal,
#motopress-confirm-modal,
#motopress-welcome-modal {
    background-color: #f0f0f0;
    width: 50%;
    margin: -250px 0 0 -25%;
    border: solid 2px #f0f0f0;
    border-radius: 0px;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
}
#motopress-static-editor-modal .modal-header,
#motopress-duplicate-modal .modal-header,
#motopress-confirm-modal .modal-header,
#motopress-welcome-modal .modal-header {
    background-color: #454545;
    color: #ffffff;
    font-size: 14px;
    font-weight: normal;
}
#motopress-static-editor-modal .modal-header > #staticModalLabel,
#motopress-duplicate-modal .modal-header > #duplicateModalLabel,
#motopress-confirm-modal .modal-header > #confirmModalLabel,
#motopress-welcome-modal .modal-header > #welcomeModalLabel {
    margin-top: 0;
    margin-bottom: 0;
}
#motopress-static-editor-modal .modal-body > #motopress-static-name,
#motopress-duplicate-modal .modal-body > #motopress-new-template-name {
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    width: 100%;
    height: 30px;
}

/* Static */
#motopress-static-editor-modal {
    width: 70%;
    margin: -250px 0 0 -35%;
    .modal-body {
        .blockName-label {
            color: #858585;
        }
        min-height: 400px;
        max-height: 400px;
        .wp-editor-container {
            height: 100%;
        }
        #motopress-static-content-html, #motopress-static-content-tmce {
            display: none;
        }
    }
    .mceIframeContainer{
        background-color: #fff;
    }

}
@media (min-width: 1200px) {
    #motopress-static-editor-modal {
        width: 1100px;
        margin: -250px 0 0 -550px;
    }
}
#motopress-static-content_ifr {
    max-height: 200px;
    height: 200px !important;
}
#motopress-static-content {
  height: 245px !important;
  max-height: 245px;
  margin: 0;
}

/* Duplicate */
#motopress-duplicate-modal {
    width: 400px;
    margin: -250px 0 0 -200px;
}

/* Media library */
.thumbnail {
    display: block;
    padding: 0;
    line-height: normal;
    border: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    -webkit-transition: 0;
    -moz-transition: 0;
    -o-transition: 0;
    transition: 0;

    img {
        max-width: none;
        width: auto;
        height: auto;
        vertical-align: baseline;
        border: 0;
    }
}

/* Preload */
#motopress-preload {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    background-image: url("../../images/loading.gif@{pluginVersionParam}");
    background-repeat: no-repeat;
    background-position: 50% 50%;
    opacity: 0.8;
    z-index: 10000
}