/**
 * overall styling
 */
.tl_content h1.has-strong {
    font-weight: normal;
}

/**
 * multicolumn wizard styling
 */
.pixlscript-mcw .multicolumnwizard {
    /*width: 100%;*/
}

.pixlscript-mcw thead td,
.pixlscript-mcw thead th {
    background-color: white !important;
    border-bottom: 1px solid #dddddd;
}

.pixlscript-mcw td {
    padding: 10px 15px 10px 0;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.pixlscript-mcw td a img {
    top: -4px;
}

.pixlscript-mcw td:empty {
    display: none;
}

.pixlscript-mcw tr:nth-child(odd) td {
    background-color: #fafafa;
}

/* hide UI elements that won't work in a multicolumnwizard */
.pixlscript-mcw .toggleWrap {
    display: none;
}

.pixlscript-mcw input,
.pixlscript-mcw textarea,
.pixlscript-mcw .tl_select,
.pixlscript-mcw h3 + div {
    margin-bottom: 10px;
}

.pixlscript-mcw select {
    margin-bottom: 14px !important;
}

.pixlscript-mcw .tl_checkbox_single_container {
    padding: 25px 0 0;
}

.pixlscript-mcw .pixlscript-mcw-checkbox-inline .tl_checkbox_single_container {
    padding: 11px 0;
}

.pixlscript-mcw .mcw-checkbox-spaced .tl_checkbox_single_container {
    padding: 20px 0;
}

.pixlscript-mcw textarea {
    resize: vertical;
}

.pixlscript-mcw .operations {
    width: auto !important;
    vertical-align: top;
    padding: 23px 10px !important;
    border-left: 8px solid #fafafa;
}

.pixlscript-mcw tr:nth-child(odd) .operations {
    border-left-color: white;
}

.pixlscript-mcw .selector_container {
    max-width: 190px !important;
}

.pixlscript-mcw .wizard {
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .pixlscript-mcw .selector_container {
        max-width: 240px !important;
    }
}

.pixlscript-mcw .selector_container li {
    word-break: break-all;
}

/**
 * multicolumnwizard with block columns
 */
.pixlscript-mcw-block > table,
.pixlscript-mcw-block > table > thead,
.pixlscript-mcw-block > table > tbody,
.pixlscript-mcw-block > table > tbody > tr,
.pixlscript-mcw-block > table > thead > tr > th,
.pixlscript-mcw-block > table > tbody > tr > td {
    display: block;
}

.pixlscript-mcw-block > table {
    border: 1px solid #ddd;
}

.pixlscript-mcw-block > table > tbody > tr {
    position: relative;
    padding: 20px 100px 10px 10px;
    background: #fafafa;
}

.pixlscript-mcw-block tr:nth-child(even) {
    background: #EEEEEE;
}

.pixlscript-mcw-block .operations {
    position: absolute;
    right: 15px;
    top: 0;
    bottom: 0;
    vertical-align: middle;
}

.pixlscript-mcw-block input,
.pixlscript-mcw-block textarea {
    margin-bottom: 10px;
    width: 404px !important;
}

.pixlscript-mcw-block textarea {
    min-height: 100px;
}

/**
 * multicolumnwizard with grouped columns
 */
.pixlscript-mcw-columns table {
    border-top: 1px solid #cccccc;
    table-layout: fixed;
    min-width: 600px;
}

.pixlscript-mcw-columns table thead {
    display: none; /* must hide empty table-head so the first real row defines the fixed table-layout */
}

.pixlscript-mcw-columns tr td {
    border-bottom: 1px solid #cccccc;
}

.pixlscript-mcw-columns tr:nth-child(odd) td {
    background-color: #fafafa;
}

.pixlscript-mcw-columns td {
    padding: 20px 10px 10px;
}

.pixlscript-mcw-block input,
.pixlscript-mcw-block select,
.pixlscript-mcw-block textarea {
    margin-bottom: 10px;
    width: 404px !important;
}

.pixlscript-mcw-block .tl_chosen {
    width: 410px !important;
}

.pixlscript-mcw-block .wizard input {
    width: 386px !important;
}

.pixlscript-mcw-columns .upload {
    width: 120px;
}

.pixlscript-mcw-columns .text {
    width: 170px;
}

.pixlscript-mcw-columns .textarea {
    /* fluid width */
}

.pixlscript-mcw-columns .textarea-two-rows textarea {
    min-height: 61px !important;
}

.pixlscript-mcw-columns .operations {
    width: 70px;
}

.pixlscript-mcw-columns input[name*="url"] {
    width: calc(100% - 30px) !important;
}

/*
 * Multicolumn wizards with only one item don't need operations
 */
.pixlscript-mcw-single .operations {
    display: none !important;
}

/*
 * nested wizard
 */

.pixlscript-mcw-nested {
    margin: 0 !important;
    border: 0 !important;
}

.pixlscript-mcw-nested thead {
    display: none !important;
}

.pixlscript-mcw-nested tr {
    padding: 0 !important;
    background-color: transparent !important;
}

.pixlscript-mcw-nested td {
    padding: 4px 20px 4px 5px !important;
    background-color: transparent !important;
}

.pixlscript-mcw-nested input {
    margin-bottom: 0 !important;
}

.pixlscript-mcw-nested .operations {
    position: static !important;
    vertical-align: middle !important;
    padding: 0 5px !important;
    border-left: 0 none !important;
}

/*
 * Multicolumn wizards with only one item don't need operations
 */
.pixlscript-mcw-single .operations {
    display: none !important;
}

/*
 * Hide the ugly branding badge from tinyMCE
 */
.mce-branding-powered-by {
    display: none !important;
}

/**
 * Improve option wizard
 */
.tl_optionwizard {
    max-width: 770px;
}

.tl_optionwizard th:nth-child(1) {
    width: 75px;
}

.tl_optionwizard th:nth-child(2) {
    width: 300px;
}


/**
 * Content preview
 */
.wrapper_separator {
    background-color: #f9f9fb;
}

.wrapper_separator hr {
    margin: 15px 0 5px;
}

.selector_container .limit_height {
    border: 1px solid #eaeaea;
    padding: 5px;
}

.selector_container .limit_height .image img,
.tl_content .image img {
    float: left;
    width: 60px;
    height: auto;
    margin: 0 10px 10px 0 !important;
}

.tl_content .block,
.tl_content .download {
    clear: both;
}

.tl_content .link__label,
.tl_content .button__label {
    text-decoration: underline;
}

.tl_content button .button__label {
    text-decoration: none;
}

.tl_content .asset__action {
    display: none;
}

/**
 * Form preview
 */
.tl_content .widget {
    display: flex;
    flex-flow: row nowrap;
}

.tl_content .widget__label label {
    width: 200px;
}

.tl_content .widget__control input,
.tl_content .widget__control select,
.tl_content .widget__control textarea {
    width: 200px;
    box-sizing: border-box;
}

.tl_content .widget__control input[type="checkbox"],
.tl_content .widget__control input[type="radio"] {
    width: auto;
}

.tl_content .widget__control label {
    width: auto;
    max-width: 90%;
}

.tl_content .checkboxes-wrapper,
.tl_content .radios-wrapper {
    display: flex;
    flex-flow: row wrap;
    column-gap: 2em;
}

.tl_content .checkbox-wrapper,
.tl_content .radio-wrapper {
    display: flex;
    flex-flow: row nowrap;
    column-gap: .3em;
    align-items: flex-start;
}

.tl_content .checkbox-wrapper label,
.tl_content .radio-wrapper label {
    margin: 0;
    align-self: center;
}

/**
 * Submenu
 */
#tmenu button:hover {
    text-decoration: underline;
}

#tmenu .ps-submenu .h2,
#tmenu .ps-submenu button {
    max-width: 16em;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 400;
    color: var(--header-text);
    border: 0;
    padding: 13px 26px 13px 12px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 400;
    border: 0;
    background: url(../img/chevron-down.svg) right 9px top 14px no-repeat;
}

#tmenu .ps-submenu ul.menu_level_1 {
    padding: 6px 0;
}

#tmenu .ps-submenu ul.menu_level_1 li a {
    padding: 6px 20px;
}

@media (max-width: 767px) {
    #tmenu .ps-submenu .h2,
    #tmenu .ps-submenu button {
        width: 40px;
        margin: 0 0 -2px;
        padding-right: 12px;
        overflow: hidden;
        white-space: nowrap;
        text-indent: 28px;
        background: url(../img/quicklinks.svg) center center no-repeat;
        background-size: 18px;
    }
}

/**
 * Sticky save bar
 */
@media (min-width: 992px) {
    .ps-sticky-save .tl_submit_container {
        position: fixed;
        bottom: -1px;
        z-index: 99;
        left: auto;
        border: 1px solid #d0d0d2;
        margin-left: -1px;
        margin-right: -1px;
    }

    .ps-sticky-save #main {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .ps-sticky-save #tl_helpBox {
        margin-left: 30px;
    }
}

.ps-sticky-save.popup .tl_submit_container {
    position: fixed;
    bottom: -1px;
    z-index: 99;
    left: auto;
    border: 1px solid #d0d0d2;
    margin-left: -1px;
    margin-right: -1px;
}

.ps-sticky-save.popup {
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.ps-sticky-save.popup #tl_helpBox {
    margin-left: 30px;
}

/**
 * Fixes
 */
.widget + .subpal .sort_hint {
    left: 340px;
}

ul.sortable li,
.tl_file_manager li .tl_left {
    word-break: break-all;
}

ul.sortable li .dirname,
ul.sortable li .tl_gray {
    word-break: normal;
}

#main .limit_toggler {
    background-color: transparent !important;
}

.chzn-container-multi + .tl_help {
    margin-top: 3px;
}

button.fake-button.disabled {
    cursor: not-allowed;
    opacity: .5;
    pointer-events: auto;
}

@media (max-width: 1279px) {
    .split-button ul .fake-button {
        border: 0;
        width: 100%;
        text-align: left;
        white-space: nowrap;
    }
}

.ps-group-widget-single {
    overflow: hidden;
}

.ps-group-widget-single .controls,
.ps-group-widget-single .widget-group--header,
.ps-group-widget-single .widget-group--footer {
    display: none !important;
}

.ps-group-widget-single .widget-group--container {
    margin-left: -15px;
    margin-right: -15px;
}

.ps-group-widget-single.widget-group .widget-group--element {
    margin: 0;
    background-color: transparent;
    border: 0 none;
    padding: 0;
}

/**
 * Widget group
 */
.widget-group .widget-group--element .controls {
    left: auto !important;
    right: -32px !important;
}

.widget-group .widget-group--element {
    margin-left: 0 !important;
}

/**
 * Meta with easy language
 */
.tl_metawizard [data-language*="_LS"] {
    display: none !important;
}
