/**
 * Copyright (c) 2015 Gorilla, Inc. (http://www.gorillagroup.com)
 */

/* General Menu Styles */
#incontexteditor {
    background-color: #1b1b1b;
    font: bold 14px/48px Arial, sans-serif;
    color: #fff;
    z-index: 10000;
    position: relative;
    -webkit-box-shadow: 0 0 12px 0 rgba(21,21,21,.75);
    -moz-box-shadow: 0 0 12px 0 rgba(21,21,21,.75);
    -o-box-shadow: 0 0 12px 0 rgba(21,21,21,.75);
    box-shadow: 0 0 12px 0 rgba(21,21,21,.75);
}

#incontexteditor .left {
    float: left !important;
}

#incontexteditor .right {
    float: right !important;
}

/* Show/Hide Menu */
#incontexteditor.affix {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    -webkit-transition: top 0.3s;
    -moz-transition: top 0.3s;
    -o-transition: top 0.3s;
    transition: top 0.3s;
}

#incontexteditor.affix.sleep {
    top: -100px;
}

#incontexteditor.affix.no-trans {
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
    transition: none;
}

/* Logo and CMS Toggle */
#incontexteditor .logo-container {
    padding: 10px 14px;
    display: block;
    float: left;
    border-right: 1px solid #575757;
}

#incontexteditor .mage-logo {
    width: 26px;
    height: 28px;
    display: block;
    float: left;
    text-indent: -9999px;
    overflow: hidden;
    background: url(../../images/gorilla/incontexteditor/sprite.png) no-repeat 0 0;
}

#incontexteditor .cms {
    float: left;
    padding: 0 16px;
    border-right: 1px solid #575757;
}

#incontexteditor .cms span,
#incontexteditor .cms a {
    float: left;
    color: #fff;
}

#incontexteditor_cms_toggle {
    width: 44px;
    height: 23px;
    margin: 12px 0;
    display: block;
    text-indent: -9999px;
    overflow: hidden;
    margin-left: 16px;
    background: url(../../images/gorilla/incontexteditor/sprite.png) no-repeat -44px -28px;
}

#incontexteditor_cms_toggle.active {
    background: url(../../images/gorilla/incontexteditor/sprite.png) no-repeat 0 -28px;
}

/* Menu */
#incontexteditor .menu,
#incontexteditor .submenu {
    margin: 0;
    padding: 0;
    list-style: none;
}

#incontexteditor .menu {
    float: left;
    margin: 0;
    padding: 0;
    list-style: none;
}

#incontexteditor .menu.admin {
    border-left: 1px solid #575757;
}

#incontexteditor .menu.admin span {
    font-weight: normal;
}

#incontexteditor .parent {
    float: left;
    height: 48px;
    padding: 0 43px 0 14px;
    position: relative;
    cursor: pointer;
}

#incontexteditor .parent:before {
    content: ' ';
    width: 15px;
    height: 9px;
    display: block;
    position: absolute;
    right: 14px;
    top: 20px;
    background: url(../../images/gorilla/incontexteditor/sprite.png) no-repeat -27px -10px;
}

#incontexteditor .parent:hover {
    background-color: #000;
}

#incontexteditor .parent:hover .submenu {
    display: block;
}

#incontexteditor .submenu {
    display: none;
    width: 270px;
    position: absolute;
    top: 48px;
    left: 0;
    background-color: #000;
}

#incontexteditor .submenu li {
    border: 1px solid #575757;
    border-top: none;
    text-align: left;
}

#incontexteditor .submenu li a {
    color: #fff;
    text-decoration: none;
    line-height: 22px;
    padding: 13px 16px;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

#incontexteditor .submenu li:first-child {
    border-top: 1px solid #575757;
}

#incontexteditor .admin .submenu {
    left: auto;
    right: 0;
}

/* CMS Highlights */
.cms-overlay-container {
    display: inline-block;
}

.cms-overlay {
    position: absolute;
    background-color: rgba(0,0,0,.2);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    -webkit-transition: background-color 0.3s, opacity 0.3s;
    -moz-transition: background-color 0.3s, opacity 0.3s;
    -o-transition: background-color 0.3s, opacity 0.3s;
    transition: background-color 0.3s, opacity 0.3s;
}

.cms-overlay.active {
    opacity: 1;
}

.cms-overlay-button {
    width: 20px;
    height: 20px;
    background-color: #d86107;
    text-align: center;
    -webkit-transition: width 0.3s, height 0.3s;
    -moz-transition: width 0.3s, height 0.3s;
    -o-transition: width 0.3s, height 0.3s;
    transition: width 0.3s, height 0.3s;
}

.cms-overlay .cms-overlay-button span {
    font: 18px/1 Arial, sans-serif;
    color: #fff;
    padding: 11px 0;
    opacity: 0;
    display: block;
}

.cms-overlay:hover {
    background-color: rgba(0,0,0,.8);
}

.cms-overlay:hover .cms-overlay-button {
    width: 80px;
    height: 40px;
}

.cms-overlay:hover .cms-overlay-button span {
    opacity: 1;
    -webkit-transition: opacity 0.1s linear 0.3s;
    -moz-transition: opacity 0.1s linear 0.3s;
    -o-transition: opacity 0.1s linear 0.3s;
    transition: opacity 0.1s linear 0.3s;
}

@media(max-width: 1024px) {
    #incontexteditor,
    .cms-overlay {
        display: none;
    }
}