/*!
* Visual Designer JQuery Plugin
* Author: Sam Zielke-Ryner
* Licensed under ...
*/

/*@import "frameworks/purecss/editor-grid.less";*/

.vd-wp-editor,
html body.vd-wp-editor {
    /* MUST have this overide other plugins styling */
    margin: 0 auto !important;
    margin-top: 120px !important;
    overflow: visible;
    position: static !important; // ensures medium editor y position correct
}

.iframe-scale {
    transform: scale(0.75) !important;
    -webkit-transform: scale(0.75) !important;
    -ms-transform: scale(0.75) !important;
    will-change: transform;
    /*box-shadow: rgba(0,0,0,.4) 5px 10px 10px !important;
height: auto !important;
overflow: visible !important;
margin-top: 100px !important;*/
    /*background-color: #fff !important;*/
}

.vd-tmpl-highlight {
    .vd-wp-editor {
        margin-top: auto !important;
    }

    .vd-main {
        background-color: transparent !important;

        >*:not(.vd-designer-tag) {
            visibility: hidden !important;
            opacity: 0 !important;
        }

        .vd-designer-tag {
            top: 0% !important;
            left: 0% !important;
            bottom: auto !important;
            right: auto !important;
            width: 100% !important;
            height: 100% !important;
            display: flex !important;
            flex-flow: column;
            align-content: center;
            justify-content: center;
            cursor: pointer !important;

            &:hover {
                background-color: @defCol;
                opacity: 1;
            }

            .vd-tag-title {
                vertical-align: middle !important;
                text-align: center;
                cursor: pointer !important;
            }

            .vd-popover-bottom {
                top: auto !important;
            }
        }
    }

    .vd-ele-highlighted {
        cursor: pointer !important;
    }

    /*.vd-tmp-highlight {
	/*TEMP DEBUG* /
	background-color: red !important;
	opacity: 0.5 !important;
}*/

    .vd-reset-pos {
        position: relative !important;
    }
}

.vd-hide-tmpl {
    /*min-height: 800px;*/
    background-color: #fff !important;

    /**:not(body) {
	max-height: 75vh;
}*/

    .vd-release {
        display: none !important;
    }
}

.vd-auto-hide {
    margin-top: 0px !important;
    /*overflow: hidden !important;*/

    /*body {
	overflow: hidden !important;
}*/

    #site-content,
    #content,
    .site-content,
    .content {
        max-height: 1000px !important;
        overflow: hidden !important;
    }
}

.vd-highlight-overlay {
    cursor: pointer;
    position: absolute;
    box-sizing: border-box;
    background-color: #f8c4d2;
    opacity: 0.5;
    pointer-events: none;
    z-index: 9999999;
}

.vd-auto-overlay {
    background-color: @defCol;
    opacity: 0.5;
    pointer-events: none;
}

.vd-main {
    box-sizing: border-box;
    border: solid 2px @borderCol  !important;

    &.vd-force-dimensions {
        min-height: 70vh !important;
    }

    &.vd-widget-selected .vd-designer-tag {
        background-color: @defCol;
        opacity: 1;
    }

    &.vd-deactivated {
        border-color: transparent !important;

        >.vd-designer-tag {
            display: none;
        }
    }

    &.vd-dragging {
        padding: 100px !important;
        transition: 800ms cubic-bezier(0.23, 1, 0.32, 1) !important;
    }
}

/* WordPress Specific */
#wpadminbar {
    display: none;
}

.vd-device-look {
    height: auto !important;
    /*position: relative !important;*/
    margin: auto !important;
    margin-top: 100px !important;
    margin-bottom: 100px !important;
    overflow-x: hidden !important;

    /* The horizontal line on the top of the device */
    &:before {
        content: '' !important;
        display: block !important;
        width: 60px !important;
        height: 5px !important;
        position: relative !important;
        top: -30px !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        background: #333 !important;
        border-radius: 10px !important;
        // override themes affecting this
        opacity: 1 !important;
        z-index: 9999 !important;
    }

    /* The circle on the bottom of the device */
    &:after {
        content: '' !important;
        display: block !important;
        width: 35px !important;
        height: 35px !important;
        position: relative !important;
        left: 50% !important;
        bottom: -65px !important;
        transform: translate(-50%, -50%) !important;
        background: #333 !important;
        border-radius: 50% !important;
        // override themes affecting this
        opacity: 1 !important;
        z-index: 9999 !important;
        top: auto !important;
    }
}

body.vd-rtablet {
    border: 16px black solid !important;
    border-top-width: 60px !important;
    border-bottom-width: 60px !important;
    border-radius: 36px !important;
    box-shadow: rgba(0, 0, 0, .4) 5px 10px 10px !important;
    .vd-device-look();
}

body.vd-rmobile {
    border: 16px black solid !important;
    border-top-width: 60px !important;
    border-bottom-width: 60px !important;
    border-radius: 36px !important;
    box-shadow: rgba(0, 0, 0, .4) 5px 10px 10px !important;
    .vd-device-look();
}

body.vd-modal-open {
    overflow: hidden;
}

.vd-nav-sticky {
    top: 75px !important;
}

.vd-force-dimensions {
    min-height: 200px !important;
}

.vd-device-menu {
    display: block;
}

.vd-trash-bin {
    display: none;
}

[vd-type] {
    &.vd-structural-widget:not(.vd-collapsable) {
        overflow: visible !important; // to show widget tags
    }

    /*&:empty,
> *:empty {
	min-width: 25px;
	display: block;
}

	// Override editor 
	&.vd-icon-widget:empty,
&.vd-icon-widget > *:empty,
	&.vd-icontxt-widget:empty,
&.vd-icontxt-widget > *:empty {
	min-width: auto;
	display: initial;
}*/

    &.ui-sortable-helper {
        opacity: 0.5;
        max-width: 200px;
        max-height: 150px;
    }
}

.vd-widget-hover {
    // outline: 2px dashed @hoverCol  !important;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='@{hoverColEx}' stroke-width='5' stroke-dasharray='6%2c 14' stroke-dashoffset='7' stroke-linecap='square'/%3e%3c/svg%3e");
}

.vd-widget-selected {
    // outline: 2px dashed @defCol  !important;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='@{defColEx}' stroke-width='5' stroke-dasharray='6%2c 14' stroke-dashoffset='7' stroke-linecap='square'/%3e%3c/svg%3e");
}

.vd-section-widget,
.vd-row-widget,
.vd-column-widget,
.vd-html-widget,
.vd-container-widget {
    &:empty {
        min-height: 200px;
        // outline: 2px dashed @borderCol;
        background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='@{hoverColEx}' stroke-width='5' stroke-dasharray='6%2c 14' stroke-dashoffset='7' stroke-linecap='square'/%3e%3c/svg%3e");
    }
}

.vd-slide {

    /*&.vd-widget-hover {
	border: 2px dashed @hoverCol !important;
}*/
    &.vd-widget-selected {
        border: 2px dashed @defCol  !important;
    }
}

.vd-sortable-placeholder {
    background-color: @selectedBkCol;
    border: dashed 2px @selectedBkCol;
    display: block;
    height: 20px;
    transition: 800ms cubic-bezier(0.23, 1, 0.32, 1);
}

.vd-row-widget>.vd-sortable-placeholder {
    min-width: 100px;
}

.vd-support {
    #vd-support-type {
        width: 100%;
    }
}

.vd-editor-nag {
    padding: 15px 20px;
    padding-bottom: 12px;
    background-color: rgb(51, 51, 51);
    color: rgb(238, 238, 238);
    position: fixed;
    bottom: 5px;
    left: 5px;
    z-index: 99999999;
    border-radius: 2px;
    box-shadow: rgba(40, 40, 40, 0.7) 0px 2px 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;

    &:hover {
        background-color: #444;
        color: #fff;
    }

    .vd-editor-nag-close {
        /*position: absolute;
	top: 5px;
	right: 5px;*/
        min-width: auto !important;
        display: inline-block;
        margin-left: 10px;
        vertical-align: middle;
    }
}

#vd-tag-cnt {
    // position: relative;
}

/* Frameworks */
.vd-wpmenu-framework {
    min-height: 15vh;
}