/* Styles for the preview image option */
.tf-image-preview img {
    max-width: 100%;
    max-height: 200px;
    padding: 2px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
    background: #666;
}
.tf-image-preview img:hover {
    cursor: pointer;
}

/* note option padding issue */
.tf-note .updated p {
    margin-bottom: 4px;
}

@media screen and (min-width: 783px) {
    .tf-select-googlefont iframe {
        width: 100%;
        height: 120px;
        background: #FFF;
        background: rgba(255, 255, 255, .7);
        margin-top: 4px;
    }
    .form-table td.tf-select-googlefont fieldset label {
        display: inline-block;
        padding-left: 20px;
        width: 200px;
    }
}

/*
 * Base styling for admin pages
 */

/* main wrapper */
.titan-framework-panel-wrap.wrap {
    background: #FFF;
    border: 1px solid #eaeaea;
}
/* title */
.titan-framework-panel-wrap.wrap h2 {
    padding: 20px 15px;
    border-bottom: 1px solid #EEE;
    font-weight: normal;
    font-size: 21px;
    background: #333;
    color: #FFF;
}
.titan-framework-panel-wrap.wrap .nav-tab-wrapper + h2 {
    background: #333;
    color: #FFF;
    border: 0;
}
/* tabs */
.titan-framework-panel-wrap h2.nav-tab-wrapper, .titan-framework-panel-wrap h3.nav-tab-wrapper {
    border: 0;
    padding: 0;
    background: #1E8CBE;
}
.titan-framework-panel-wrap h2 .nav-tab {
    border: 0;
    margin: 0;
    background: transparent;
    padding: 10px 15px;
    color: #FFF;
    font-weight: normal;
    margin-right: 5px;
}
.titan-framework-panel-wrap h2 .nav-tab:hover {
    background: rgba(255, 255, 255, .2);
}
.titan-framework-panel-wrap h2 .nav-tab.nav-tab-active, .titan-framework-panel-wrap h2 .nav-tab.nav-tab-active:hover {
    background: rgba(0, 0, 0, .3);
}
/* option tables */
.titan-framework-panel-wrap .form-table th {
    padding-left: 15px;
}
.titan-framework-panel-wrap .form-table tr {
    border-bottom: 1px solid #eee;
}
/* submit buttons */
.titan-framework-panel-wrap table.form-table+p.submit {
    padding: 15px;
/*    margin-top: 5px;*/
    background: #333;
    margin: 0;
/*    border-bottom: 1px solid #EEE;*/
    border-radius: 0;
}
.titan-framework-panel-wrap table.form-table+p.submit+table.form-table {
    margin-top: 0;
}
.titan-framework-panel-wrap table.form-table+p.submit+table.form-table tbody tr.tf-heading:first-child th {
    padding-top: 30px;
    position: relative;
}
.titan-framework-panel-wrap table.form-table+p.submit+table.form-table tbody tr.tf-heading:first-child th h3 {
    font-size: 21px;
}
.titan-framework-panel-wrap table.form-table+p.submit+table.form-table tbody tr.tf-heading:first-child th:after {
    position: absolute;
    content: '';
    top: 0;
    left: -1px;
    right: -1px;
    height: 30px;
    z-index: 9;
    background: #F1F1F1;
}
.titan-framework-panel-wrap form p.submit:nth-last-of-type(1) {
    border-bottom: 0;
}
.titan-framework-panel-wrap .submit .button-primary, .titan-framework-panel-wrap .submit .button-secondary {
    background: #1E8CBE;
    border: 0;
    box-shadow: none;
    border-radius: 2px;
    height: auto;
    line-height: 36px;
    padding: 0 15px;
    margin-right: 10px;
}
.titan-framework-panel-wrap .submit .button-secondary {
    background: #777;
    color: #fff;
}
.titan-framework-panel-wrap .submit .button-primary:hover {
    background: #2980b9;
}
.titan-framework-panel-wrap .submit .button-secondary:hover {
    background: #666;
}
/* google font iframe */
.tf-select-googlefont iframe {
    background: #fafafa;
}
/* notifications */
.titan-framework-panel-wrap div.updated, .titan-framework-panel-wrap div.error {
    margin: 15px;
    box-shadow: none;
    border-top: 1px solid #EEE;
    border-right: 1px solid #EEE;
    border-bottom: 1px solid #EEE;
}
.titan-framework-panel-wrap h2 + div.updated, .titan-framework-panel-wrap h2 + div.error {
    background: #2ECC71;
    border: 0;
    color: #FFF;
    margin: 0;
}
.titan-framework-panel-wrap h2 + div.error {
    background: #e74c3c;
}
/* notes */
.titan-framework-panel-wrap .tf-note .updated {
    margin: 0;
    padding: 0;
    border: 0;
    font-style: italic;
    color: #999;
}
/* heading */
.titan-framework-panel-wrap .tf-heading th {
    padding: 0 15px;
    background: #333;
}
.titan-framework-panel-wrap .tf-heading th * {
    color: #fff;
    font-weight: normal;
}
/* radio-palette */
.tf-radio-palette span {
    display: inline-block;
    height: 40px;
}
.tf-radio-palette span span {
    width: 15px;
}
.tf-radio-palette > label > span {
    padding: 2px;
    border: 1px solid #ddd;
}
.tf-radio-palette input[type=radio] {
    vertical-align: top;
    margin-top: 17px;
}
.tf-radio-palette label {
    margin-left: 30px;
    white-space: nowrap;
}
.tf-radio-palette label:first-child {
    margin-left: 0
}
/* radio images */
.tf-radio-image label {
    margin-left: 30px;
    white-space: nowrap;
}
.tf-radio-image label:first-child {
    margin-left: 0;
}
.form-table .tf-radio-image input[type=radio] {
    margin-top: 0;
}
.tf-radio-image img {
    vertical-align: middle;
}