/*!
* Visual Designer JQuery Plugin
* Author: Sam Zielke-Ryner
* Licensed under ...
*/

.vd-tag-widget {
    .vd-container-widget;
    .vd-base-horz;
    .vd-c-middle;

    align-items: stretch;
    flex-flow: nowrap !important;
    font-weight: 800;
    font-family: sans-serif;
    font-size: 16px !important;
    text-transform: uppercase;
    background-color: #000;
    color: #fff;
    z-index: 149999;
    opacity: 0.5;
    width: auto;
    position: absolute;
    letter-spacing: initial; // Override purecss grid letter spacing
    padding: 0;

    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;

    &.ui-sortable-helper {
        height: auto !important;
    }

    &:hover {
        background-color: @defCol;
        opacity: 1;
    }

    &:active {
        background-color: #ce2350;
        opacity: 1;
    }

    &.vd-deactivated {
        background-color: #aaa;
    }

    &.vd-dynamic {
        border-top: solid 7px @dynamicCol;
    }

    &.vd-global {
        border-top: solid 7px @glbStyleCol;
    }
}

.vd-tag-btn {
    padding: 10px;
    cursor: hand;
    cursor: pointer;
    color: #fff;

    &:hover,
    &:active {
        color: #fff;
    }
}

.vd-tag-title {
    .vd-tag-btn;
    align-self: center !important;
    line-height: 1 !important;
    word-break: normal !important;

    &.vd-draggable {
        cursor: move !important;
        cursor: all-scroll !important;
    }
}

.vd-tag-parent-btn {
    .vd-tag-btn;
    border-left: solid 2px #fff;

    .vd-icon {
        line-height: normal !important;
    }
}

.vd-t-btns {
    border-left: solid 2px #fff;
}

.vd-t-btn {
    color: #fff;
    padding: 3px 1px;
    display: block !important;

    i {
        color: #fff;
        vertical-align: middle !important;
        font-size: 12px;
        padding: 2px 4px;
    }

    &:hover {
        background-color: @hoverCol;
    }
}

.vd-designer-tag {
    .vd-tag-widget;
    left: 0px !important;
    right: auto !important;
    bottom: calc(100% + 3px) !important;
    top: auto !important;
    z-index: 149900;

    .vd-t-btns {
        display: none;
    }

    .vd-tag-title {
        cursor: hand !important;
        cursor: pointer !important;
    }
}