/* Translate
   ========================================================================== */
/* Translate icon (Smarty filter) */
.live-edit-wrap {
    position: relative;
}
.live-edit-wrap .editable-click,
.live-edit-wrap a.editable-click,
.live-edit-wrap a.editable-click:hover {
    border-bottom: none !important;
}
.live-edit-wrap .cm-live-edit {
    display: inline-block;
    outline: 1px dashed #999;
    outline-offset: -1px;
}
.live-edit-wrap .ty-icon-live-edit {
    background-color: #e6e6e6;
    background-image: -moz-linear-gradient(top, #fff, #e6e6e6);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fff), to(#e6e6e6));
    background-image: -webkit-linear-gradient(top, #fff, #e6e6e6);
    background-image: -o-linear-gradient(top, #fff, #e6e6e6);
    background-image: linear-gradient(to bottom, #fff, #e6e6e6);
    border: 1px solid #cccccc;
    -webkit-box-shadow: 0 0 2px #ddd;
    box-shadow: 0 0 2px #ddd;
    color: #333 !important;
    cursor: pointer;
    filter: alpha(opacity=0);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe5e5e5', GradientType=0);
    font-size: 11px;
    height: 16px;
    line-height: 16px;
    opacity: 0;
    padding: 0 2px;
    position: absolute;
    -webkit-transform: translateZ(0);
    width: 12px;
    z-index: 1050;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}
.live-edit-wrap .ty-icon-live-edit:hover {
    background-color: #dbdbdb;
    background-image: -moz-linear-gradient(top, #e0e0e0, #f3f3f3);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e0e0e0), to(#f3f3f3));
    background-image: -webkit-linear-gradient(top, #e0e0e0, #f3f3f3);
    background-image: -o-linear-gradient(top, #e0e0e0, #f3f3f3);
    background-image: linear-gradient(to bottom, #e0e0e0, #f3f3f3);
    color: #111 !important;
}
.live-edit-wrap .ty-icon-live-edit:before {
    line-height: 18px;
    margin-left: 1px;
}
.live-edit-wrap:hover .ty-icon-live-edit {
    opacity: 1;
    filter: alpha(opacity=100);
}
/* Highlight original text (Smarty filter) */
.live-edit-item,
.live-edit-item p {
    font-style: initial;
}
/** Live editor **/
.ty-live-editor-dialog .ui-dialog-titlebar-close {
    display: none;
}
div.ui-dialog.ty-live-editor-dialog .ui-dialog-title {
    width: 100%;
}
.ty-live-editor__input {
    width: 100%;
}
.ty-live-editor__input-wrapper {
    padding-bottom: 10px;
}
.ty-live-editor__input--textarea {
    min-height: 100px;
}
.ui-dialog.ty-live-editor-dialog .ui-dialog-content {
    min-height: auto !important;
}
.cm-live-editor-empty-element {
    background-color: #ccc;
    color: #fff;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}
/* Templates
   ========================================================================== */
/*
 * Template: templates/common/template_editor.tpl
 * Template: /js/tygh/design_mode.js
 */
.template-over {
    position: absolute;
    display: none;
    z-index: 1025;
    background: #c0ff00;
}
/* Template icon (Smarty filter) */
.template-box .ty-icon-edit {
    position: absolute;
    z-index: 99;
    padding: 2px 3px;
    width: 13px;
    height: 13px;
    background: #3e3e3e;
    color: white;
    font-size: 14px;
    cursor: pointer;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
.ty-template-list-menu {
    position: absolute;
    margin-left: -2px;
    background: white;
    display: none;
    z-index: 1030;
    border: 1px solid #3e3e3e;
    border-radius: 4;
    border-top-left-radius: 0;
}
.ty-template-list-menu li {
    padding: 5px 8px;
    cursor: pointer;
}
.ty-template-list-menu li:hover {
    background: #f3f3f3;
    color: #303030;
}
.ty-templates__list {
    margin: 10px 4px;
}
.ty-templates__list .active {
    color: #ff0000;
    cursor: default;
}
.ty-templates__list li {
    padding-left: 10px;
    cursor: pointer;
}
.ty-templates__tree,
.ty-templates__content {
    background: #f0f0f0;
    border: 1px solid #888888;
}
.ty-templates__tree {
    float: left;
    width: 30%;
    height: 400px;
    padding: 22px 6px 6px 6px;
    border-right: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.ty-templates__tree-title {
    margin: -22px 0 0;
    padding: 3px 0 3px 3px;
    font: bold 100% Arial, Helvetica, sans-serif;
}
.ty-templates__tree-wrapper {
    overflow: auto;
    height: 100%;
    border: 1px solid #d7d7d7;
    background: #fff;
}
.ty-templates__content {
    position: relative;
    float: left;
    width: 70%;
    height: 400px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.ty-templates__text {
    width: 100%;
    height: 100%;
}
.ace_editor p,
.ace_editor div,
.ace_editor span,
.ace_editor i {
    font-family: 'Monaco', 'Menlo', 'Droid Sans Mono', 'Courier New', monospace !important;
}
/* Landscape phone to desktop/tablet */
@media (max-width: 767px) {
    .ty-templates__content,
    .ty-templates__tree {
        width: 100%;
        float: none;
    }
    .ty-templates__tree {
        height: 200px;
        border-right: 1px solid #888888;
        border-bottom: 0;
    }
    .ty-templates__content {
        margin-bottom: 10px;
    }
    .editable-input {
        max-width: 400px !important;
    }
}
/* Phone */
@media (max-width: 480px) {
    .ty-templates__buttons .ty-btn {
        margin-bottom: 15px;
        float: none;
    }
    .editable-input {
        max-width: 200px !important;
    }
}
