.tpc-note {
    background-color: #fafafa;
    margin-bottom: 10px;

    padding: 10px 15px;

    margin-left: -15px;
    margin-right: -15px;
}

.tpc-columns-wrapper,
.tpc-columns-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.tpc-columns-wrapper {
    margin-bottom: 15px;
}
.tpc-column {
    width: 50%;

    box-sizing: border-box;
}
.tpc-column-label {
    line-height: 1.5;
}

.tpc-columns-group .tpc-column:not(:last-child) {
    padding-right: 10px;
}
.tpc-columns-group .tpc-column:not(:first-child) {
    padding-left: 10px;
}
.tpc-columns-group .tpc-column p:first-child {
    margin-top: 0;
}

.tpc-column.tpc-full-width {
    width: 100%;
}

.tpc-posts-list {
    margin-top: 10px;
}
.tpc-posts-list label {
    display: block;
    float: left;
    clear: both;
    width: 100%;
}
.tpc-posts-list .tpc-item-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;

    text-overflow: ellipsis;
}
.tpc-posts-list label input[type=checkbox] {
    float: left;
    margin-top: 2px;
}

.tpc-accordeon {
    border: 1px solid #e5e5e5;
    margin-bottom: 10px;
}
.tpc-accordeon-top {
    position: relative;
    background-color: #fafafa;
    border: 1px solid #e5e5e5;
    cursor: pointer;
}

.tpc-accordeon-top h4 {
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 10px;
    padding-right: 50px;
    margin: 0;
    text-transform: capitalize;
}
.tpc-accordeon-top:hover {
    border-color: #999;
}
.tpc-accordeon-top:hover:after {
    color: #444;
}
.tpc-accordeon-top:after {
    content: '\f140';
    color: #a0a5aa;
    display: block;
    padding: 8px;
    font: 400 20px/1 dashicons;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
}
.tpc-accordeon-top.opened:after {
    content: '\f142';
}
.tpc-accordeon-body {
    padding: 10px;
    max-height: 120px;
    overflow-x: auto;
    display: none;
}
.tpc-accordeon-body:before,
.tpc-accordeon-body:after {
    content: "";
    clear: both;
}
.tpc-accordeon-body:after {
    display: table;
}

.tpc-template-params-inner {
    margin-left: -15px;
    margin-right: -15px;

    padding: 10px 15px;

    background-color: #fafafa;
}

.action-links > * {
    display: inline-block;
    vertical-align: middle;
    line-height: 28px;
}
.action-links > * + * {
    margin-left: 10px;
}

.tpc-template-params {}
.tpc-template-params h4 {
    margin-top: 0;
}
.tpc-template-params hr {
    margin: 0;
}

.tpc-preloader {
    position: relative;
}
.tpc-preloader:before {
    content: "";
    display: block;
    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    opacity: 0;

    transition: opacity 500ms ease;
    -webkit-transition: opacity 500ms ease;
    -moz-transition: opacity 500ms ease;
    -ms-transition: opacity 500ms ease;
    -o-transition: opacity 500ms ease;

    z-index: 1000;

    background-image: url(/wp-admin/images/spinner-2x.gif);
    background-color: rgba(255,255,255,0.4);
    background-position: center center;
    background-repeat: no-repeat;
}
.tpc-preloader.is-loading {}
.tpc-preloader.is-hidden:before {
    z-index: -1000;
}
.tpc-preloader.is-loading:before {
    opacity: 1;
}

.tpc-accordeon-body .dashicons {
    float: left;
    display: inline-block;
    padding: 0;
    margin-right: 2px;
    color: #ccc;
    border: 0 none;

    background: none;

    cursor: pointer;

    transition: color 250ms ease;
    -webkit-transition: color 250ms ease;
    -moz-transition: color 250ms ease;
    -ms-transition: color 250ms ease;
    -o-transition: color 250ms ease;
}
.tpc-accordeon-body .dashicons:focus {
    box-shadow: none;
    outline: none;
}
.tpc-accordeon-body .configured-item .dashicons {
    color: #333;
}
.tpc-accordeon-body .unsaved-item .dashicons {
    color: #999;
}
.tpc-accordeon-body .tpc-accordeon-item .dashicons:hover {
    color: #000;
}

/* Modals */
.ui-dialog {
    min-width: 30vw;
    max-width: 600px;

    width: 90vw;

    margin: 0 auto;

    background-color: #fff;
    border: 2px solid #f5f5f5;
    border-radius: 2px;

    box-sizing: border-box;

    z-index: 9999;
}
.ui-widget-overlay {
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 9990;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    cursor: pointer;
}
.ui-dialog-titlebar,
.ui-dialog-buttonpane {
    padding: 15px;
}
.ui-dialog-titlebar {
    border-bottom: 2px solid #f5f5f5;
    background-color: #fafafa;
    padding-right: 30px;
    position: relative;
}
.ui-dialog-title {
    font-weight: bold;
    font-size: 1em;
}

.tpc-dialog {
    padding: 15px;
}
.tpc-dialog-ui-wrapper {
    display: block;
}
.tpc-dialog-ui-wrapper + .tpc-dialog-ui-wrapper {
    margin-top: 10px;
}
.tpc-modal-ui-element {
    display: block;
    min-width: 100%;
    max-width: 100%;
}
textarea.tpc-modal-ui-element {
    min-height: 50px;
    max-width: 50vw;
    max-height: 300px;
    resize: both;
}

.tpc-modal-media-element .tpc-modal-ui-preview {
    width: 100%;
    max-width: 100%;
    height: 100px;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.tpc-modal-media-element.is-empty .tpc-button-group {
    padding-right: 0;
}
.tpc-modal-media-element.is-empty .tpc-button-group .button:not(.button-primary),
.tpc-modal-media-element.is-empty .tpc-modal-ui-preview,
.tpc-modal-media-element.is-empty .tpc-delete-button {
    display: none;
}
.tpc-modal-param-title {
    display: inline-block;
    margin-bottom: 5px;
}
.tpc-modal-ui-preview {
    margin-bottom: 5px;
}
.tpc-dialog-insert-shortcode {}

.ui-button {
    background: none;
    border: 0 none;
    padding: 0;

    display: inline-block;
}
.ui-dialog-titlebar-close {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
}
.ui-dialog-titlebar-close:before {
    font-size: 20px;
    line-height: 1;
    font-family: dashicons;
    font-weight: 400;
    content: "\f335";
    display: inline-block;
    color: inherit;
}
.ui-dialog-titlebar-close .ui-button-text {
    display: none;
}
.ui-dialog-titlebar-close:hover {
    opacity: 0.7;
}

.ui-dialog-buttonpane {
    clear: both;
}
.ui-dialog-buttonpane .ui-button + .ui-button {
    margin-left: 15px;
}

/* Buttons */
.tpc-button-group {
    position: relative;
    padding-right: 40px;
}
.tpc-button-group:before,
.tpc-button-group:after {
    content: "";
    display: table;
    clear: both;
}
.tpc-button-group > * {
    float: left;
}
.tpc-button-group > *:first-child {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}
.tpc-button-group > *:last-child {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}
.tpc-button-group .button-primary {
    width: 100%;
}
.tpc-button-group .button:not(.button-primary) {
    position: absolute;
    width: 40px;
    min-width: 40px;

    top: 0;
    bottom: 0;
    right: 0;
}
.tpc-button-group.tpc-top-stacked > *:first-child {
    border-top-left-radius: 0px;
}
.tpc-button-group.tpc-top-stacked > *:last-child {
    border-top-right-radius: 0px;
}

/* Spinner */
.tpc-columns-wrapper label + .ui-spinner {
    display: block;
}
.tpc-columns-wrapper .ui-spinner {
    display: inline-block;
    position: relative;
}
.tpc-columns-wrapper .ui-spinner .ui-spinner-button {
    position: absolute;
    cursor: pointer;

    user-select: none;

    right: 3px;
}
.tpc-columns-wrapper .ui-spinner .ui-spinner-up {
    top: -3px;
    z-index: 10;
}
.tpc-columns-wrapper .ui-spinner .ui-spinner-down {
    bottom: -3px;
}
.tpc-columns-wrapper .ui-spinner-input {
    padding-right: 14px;
}


/* TPC Dashicons */
.tpc-dashicons-middled {
    vertical-align: middle;
}

.tpc-settings-page {

}
.tpc-settings-page h2 {
    margin-bottom: 30px !important;
}
.tpc-form-group {
    display: block;
    margin-top: 10px;
}
.tpc-form-group:first-child {
    margin-top: 0;
}

.tpc-form-group {
    font-size: 1.2em;
}

.tpc-form-group span {
    margin: 10px 0;
}
.tpc-form-group small {
}
.tpc-form-group input,
.tpc-form-group select {
    margin-top: 10px;
    min-width: 250px;
}