/*!
* Visual Designer JQuery Plugin
* Author: Sam Zielke-Ryner
* Licensed under ...
*/

/*.vd-release * {
line-height: normal;
}*/


body.vd-tmpl-highlight .vd-menu-group:not(.vd-manager-menu) {
    display: none;
}

//.vd-manager {

.vd-menu-group {
    z-index: 150000;

    /* Fix to top right */
    position: fixed;
    right: 5px;
    top: 5px;
    max-width: 60%;

    .iris-picker {
        z-index: 150000;
    }
}

.vd-menu {
    .vd-form;
    .vd-container-widget;
    .vd-base-horz;
    .anim-slide-bottom;

    display: none;
    padding: 0;

    input,
    select,
    textarea,
    ul,
    .vd-slider,
    .vd-input-cnt {
        /*&:extend(.vd-form input);*/
        min-height: 51px !important;
        box-sizing: border-box;
        vertical-align: top;
        margin-top: 1px;
        color: #555;
    }

    input,
    select {
        height: 53px !important;
        width: auto;
        background-color: #fff !important;
    }

    textarea {
        min-height: 100px !important;
        resize: vertical;
        white-space: pre-line;
        width: auto;
        background-color: #fff !important;
    }

    .vd-input-cnt {
        >* {
            display: inline-block;
        }
    }

    .vd-slider {
        border-radius: 4px;
        border: 1px solid #aaa;
        background: #fff;
        font-size: 1.1em;
        position: relative;
        text-align: left;
    }

    .vd-slider .ui-slider-handle {
        position: absolute;
        z-index: 2;
        cursor: default;
        -ms-touch-action: none;
        touch-action: none;
        width: 15px !important;
        height: 15px !important;
        background: none !important; // need to override external styles
        background-color: @defCol  !important;
        border-radius: 50% !important;
        border: solid 1px #fff;
        -moz-border-radius: 50% !important;
        -webkit-border-radius: 50% !important;
        box-sizing: border-box;
    }

    .vd-slider:not(.ui-slider-vertical) {
        padding: 0px !important;
        width: 400px !important;
        max-width: 400px !important;
        margin: 20px 10px !important;
        height: 11px !important;
        min-height: 11px !important;

        .ui-slider-handle {
            top: -3px !important;
            margin-left: -10px;
        }
    }

    .vd-slider.ui-slider-vertical {
        padding: 0px !important;
        min-width: 11px !important;
        height: 350px !important;
        vertical-align: top !important;
        margin-left: 7px !important;
        margin-right: 7px !important;
        top: 12px !important;
        width: 11px !important;

        .ui-slider-handle {
            left: -3px !important;
            margin-bottom: -10px;
        }
    }
}

.vd-menu-show {
    display: flex;
}

.vd-pro-mixin(@bottomPx: 5px, @opacityVal: 0.65) {
    &.vd-pro::after {
        content: " PRO ";
        position: absolute;
        bottom: @bottomPx;
        right: 0px;
        background-color: orange;
        color: #eee;
        font-weight: 900;
        text-align: center;
        transform: rotatez(-45deg);
        overflow: hidden;
        padding: 5px;
        font-size: 10px;
        clip-path: circle(45%);
        -webkit-clip-path: circle(45%);
        opacity: @opacityVal;
    }
}

.vd-menu .vd-menu-btn {
    align-self: flex-start; // Important so the height doesn't stretch
    /*white-space: nowrap;*/
    .vd-pro-mixin;

    &:hover,
    &:active,
    &:visited,
    &:focus {
        background-color: @hoverCol;

        &.vd-pro::after {
            opacity: 1;
        }
    }

    .iris-picker {
        position: absolute !important;
        right: 10px !important;
        height: 209px !important;
        border-radius: 2px;

        .iris-picker-inner {
            height: 145px;
        }

        .iris-square {
            margin-right: 0px !important;
            height: 100% !important;
        }

        .iris-strip {
            display: inline !important;
            width: 12px !important;
            height: 100% !important;
            margin-left: 7px !important;
        }
    }

    &.vd-menu-hidden {
        display: none !important;
    }

    .vd-col-container {
        padding: 4px 3px;
        box-sizing: border-box;
        clear: both;

        .vd-col-input {
            min-height: 20px !important;
            height: auto !important;
            width: 100%;
            border-radius: 2px;
            border-style: solid;
        }
    }

    &.vd-selected {
        background-color: @selectedCol  !important;
    }
}

/*.vd-menu-btn.vd-selected {
background-color: @selectedCol !important;
}*/

.vd-icon {
    line-height: normal !important;
    vertical-align: middle;
    line-height: 33px !important;
    font-size: 24px !important;

    &.fab {
        font-size: 22px !important;
    }
}

.vd-menu-vertical {
    position: fixed !important;
    right: 0;
    top: 50%;
    z-index: 150000;
    transform: translate(0%, -50%);
    -ms-transform: translate(0%, -50%);
    -webkit-transform: translate(0%, -50%);
}

.vd-manager-menu {
    /* Dock Top left*/
    left: 5px !important;
    right: auto !important;
    max-width: 40% !important;

    .vd-menu {
        text-align: left;
    }

    .vd-menu-group {
        left: 5px !important;
        text-align: left !important;
        right: auto !important;
        /*pointer-events: none; // allow click events to flow through to widgets underneath*/
    }

    .vd-popover-widget:hover .vd-popover,
    .vd-popover-widget:active .vd-popover {
        right: auto !important;
        left: 0px !important;
    }
}

input.vd-multi-input {
    width: 75px;
}

.vd-menu-txt-btn {
    box-sizing: border-box;
    padding-top: 7px;
    height: 50px;
    width: 52px;
    text-align: center;
}

.vd-selector {
    display: inline-block;
    width: 345px;
    height: 345px;
    padding: 0;
    overflow-y: scroll;
    background-color: #eee;
    padding: 5px;
    box-shadow: rgba(0, 0, 0, .4) 0 1px 3px;

    .vd-selector-item {
        .vd-pro-mixin(8px, 1);
        position: relative;
        /* For above to vd-pro work */
        padding: 10px;
        text-align: center;
        float: left;
        width: 32px;
        box-sizing: content-box;
        color: #777;

        i {
            vertical-align: middle;
            color: #777;
            font-size: 32px;
            box-sizing: content-box;
        }

        &:hover {
            background-color: rgba(255, 255, 255, 0.75);
        }
    }
}

.vd-simple .vd-menu-btn:not([vd-simple]) {
    display: none !important;
}

//}

@media (max-width: 768px) and (orientation:portrait) {
    .vd-manager-menu {
        left: auto;
    }

    .vd-manager .vd-menu {
        width: auto;
        flex-direction: column !important;
    }
}