/* Stylesheet for the TPL Settings */
#tpl-options-main-title {
  margin-bottom: 20px;
}
#tpl-settings-tabs {
  max-width: 1200px;
}
.clearfix {
  clear: both;
}
.tpl-field input {
  padding: 3px 8px;
}
.tpl-meta-option {
  margin-top: 24px;
  width: 100%;
}
.tpl-meta-option .tpl-meta-option-label {
  width: 30%;
  max-width: 200px;
  padding-right: 20px;
  display: block;
  float: left;
  font-weight: bold;
}
.tpl-meta-option .tpl-meta-option-wrapper {
  display: block;
  float: left;
  width: 70%;
}
.tpl-meta-option .tpl-button-container {
  width: calc(70% + 220px);
}
.tpl-meta-option button {
  margin-top: 20px;
  margin-bottom: 20px;
}
.tpl-meta-option .tpl-combined-wrapper button {
  margin-bottom: 0;
}
.tpl-meta-option .tpl-datatype-container button {
  margin-top: 0;
}
.tpl-meta-option .tpl-field {
  clear: both;
}
.tpl-meta-option .tpl-field .tpl-button-container {
  width: 100%;
}
.ui-tabs {
  position: relative;
  padding: .2em;
  zoom: 1;
}
.ui-tabs .ui-tabs-nav {
  margin: 0;
  padding: .3em .3em 0;
  border-bottom: 1px solid #ccc;
}
.ui-tabs .ui-tabs-nav li {
  list-style: none;
  position: relative;
  top: 1px;
  margin: 0 0.2em -4px 0;
  border-bottom: 0 !important;
  padding: 0;
  white-space: nowrap;
}
.ui-tabs .ui-tabs-nav li a {
  float: left;
  padding: .5em 1em;
  text-decoration: none;
  color: #222;
  font-weight: bold;
  font-size: 16px;
  background: #ddd;
  outline: none;
  box-shadow: none;
  cursor: pointer;
}
.ui-tabs .ui-tabs-nav li.ui-tabs-selected {
  margin-bottom: 0;
  padding-bottom: 1px;
}
.ui-tabs .ui-tabs-nav li.ui-tabs-active a {
  background: #f1f1f1;
  cursor: default;
}
.ui-tabs .ui-tabs-panel {
  display: block;
  border-width: 0;
  padding: 1em 1.4em;
  background: none;
}
.ui-tabs .ui-tabs-hide {
  display: none !important;
}
.static {
  font-weight: bold;
}
.tpl-optiondesc {
  padding: 10px 10px 30px !important;
  border-bottom: 1px solid #ccc;
  font-style: italic;
  color: #aaa;
}
tr:last-child .tpl-optiondesc {
  border-bottom: 0;
}
.tpl_settings_page_wrap p.submit {
  margin-top: 0;
}
.tpl-button-row td {
  padding-top: 0;
}
.tpl-error {
  border: 1px solid #a00;
  border-radius: 3px;
  background: rgba(255, 0, 0, 0.2);
  display: inline-block;
  padding: 4px 12px;
  color: #a00;
}
.tpl-global-error {
  display: block;
  padding: 8px 15px;
}
.tpl-global-error p {
  margin: 0;
  padding: 0;
}
.tpl-datatype-container {
  width: 100%;
  max-width: 800px;
  display: flex;
}
.tpl-datatype-container .tpl-datatype-prefix,
.tpl-datatype-container .tpl-datatype-suffix {
  display: inline-block;
  line-height: 40px;
  background-color: #ddd;
  text-align: center;
  padding: 0 10px;
  margin: 0;
}
.tpl-datatype-container input:not([type=button]),
.tpl-datatype-container select,
.tpl-datatype-container textarea {
  width: 100%;
  min-width: 0;
}
.tpl-datatype-container input,
.tpl-datatype-container select {
  height: 100%;
  min-height: 40px;
  margin: 0;
}
.tpl-default-value {
  color: #888;
  display: block;
  clear: both;
}
.tpl-admin-hide {
  display: none !important;
}
.tpl-admin-icon {
  font-size: 1.6em;
  display: inline-block;
  color: #bbb;
  position: relative;
  cursor: pointer;
  text-align: center;
}
.tpl-admin-icon.tpl-admin-question {
  color: #bbb;
  margin-left: 6px;
  font-size: 1.33333333em;
}
/* Common (both front and backend) stylesheet for the TPL Settings */
.tpl-field::after {
  display: block;
  content: '';
  clear: both;
}
.tpl-repeat {
  margin-bottom: 20px;
  position: relative;
  width: 100%;
  border: 2px solid #ddd;
}
.tpl-repeat:last-child {
  margin-bottom: 0;
}
.tpl-repeat > .tpl-field-inner {
  padding: 20px;
  background-color: #f8f8f8;
}
.tpl-repeat > .tpl-field-inner::after {
  clear: both;
  display: block;
  content: '';
}
.tpl-repeat-header {
  height: 40px;
  display: flex;
  border-bottom: 2px solid #ddd;
  background-color: #fff;
  overflow: hidden;
}
.tpl-repeat-header.tpl-repeat-header-closed {
  border-bottom: 0;
}
.tpl-repeat-header * {
  line-height: 40px;
}
.tpl-repeat-header .tpl-admin-icon {
  min-width: 44px;
  color: #bbb;
  background: #ddd;
  height: 100%;
}
.tpl-repeat-header .tpl-header-title-preview * {
  vertical-align: middle;
}
.tpl-repeat-header .tpl-header-title-preview i {
  margin-bottom: 4px;
  margin-right: 6px;
}
.tpl-header-title {
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
}
.tpl-header-title-instance {
  color: #999;
  margin-right: 10px;
}
.tpl-arranger::before {
  content: "\f0b2";
}
.tpl-remover::before {
  content: "\f068";
}
.tpl-toggle-close::before {
  content: "\f077";
}
.tpl-toggle-open::before {
  content: "\f078";
}
.tpl-button-container {
  text-align: right;
  margin-top: 5px;
  clear: both;
}
.tpl-button-container button {
  padding: 6px 24px;
  border: 1px solid #999;
  border-radius: 2px;
  background: linear-gradient(to bottom, #fafafa 0%, #dcdcdc 100%);
}
.tpl-button-container button:active {
  background: linear-gradient(to bottom, #c8c8c8 0%, #dcdcdc 100%);
}
.tpl-button-container input::-webkit-calendar-picker-indicator {
  display: none;
}
.tpl-button-container input[type=date]::-webkit-inner-spin-button,
.tpl-button-container input[type=date]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tpl-meta-option-label .fa {
  vertical-align: middle;
}
.tpl-nodecor {
  text-decoration: none;
}
.tpl-datatype-container label[class*=checked-] {
  width: 1em;
  height: 1em;
  font-size: 2em;
  position: relative;
  display: inline-block;
  margin-bottom: 0;
  cursor: pointer;
}
.tpl-datatype-container label[class*=checked-]::before {
  font-family: "Font Awesome 5 Free";
  content: "\f0c8";
  color: #444;
  position: absolute;
  left: 0;
}
.tpl-datatype-container label[class*=checked-].checked-1::before {
  content: "\f14a";
}
.tpl_settings_page_wrap .tpl-dt-boolean .tpl-default-value {
  margin-top: 0.2em;
}
.tpl-field.tpl-dt-color .wp-picker-active {
  position: relative;
  z-index: 5;
  background: #fff;
  width: 260px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
}
.tpl-field.tpl-dt-color input {
  min-height: 0;
  float: left;
}
.tpl-field.tpl-dt-color .tpl-color-field {
  height: 25px;
}
.tpl-color-preview {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 1px solid #ddd;
  vertical-align: text-bottom;
}
.tpl-dt-combined::after {
  display: block;
  content: '';
  clear: both;
}
.tpl-dt-combined .tpl-field {
  margin-bottom: 20px;
  margin-top: 2px;
}
.tpl-dt-combined .tpl-field::after {
  content: '';
  display: block;
  clear: both;
}
.tpl-dt-combined .tpl-field:last-child {
  margin-bottom: auto;
}
.tpl-dt-combined .tpl-button-container {
  margin-bottom: 20px;
}
.tpl-dt-combined .tpl-dt-combined:not(.tpl-repeat) {
  border: 2px solid #ddd;
  padding: 20px;
}
.tpl-combined-wrapper {
  float: left;
  width: 100%;
}
.tpl-subitem-repeat-wrapper {
  margin-bottom: 20px;
}
.ui-datepicker {
  border: 1px solid #ddd;
  background: #fff;
  padding: 10px 5px;
  position: relative;
}
.ui-datepicker .ui-datepicker-header {
  position: relative;
}
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  font-size: 1.33333333em;
  line-height: 0.75em;
  vertical-align: -15%;
  width: 1.28571429em;
  text-align: center;
  cursor: pointer;
  color: transparent;
}
.ui-datepicker .ui-datepicker-prev::after,
.ui-datepicker .ui-datepicker-next::after {
  display: block;
  color: #444;
  position: absolute;
  top: 2px;
}
.ui-datepicker .ui-datepicker-prev {
  float: left;
}
.ui-datepicker .ui-datepicker-prev::after {
  left: 5px;
  content: "\f104";
}
.ui-datepicker .ui-datepicker-next {
  float: right;
}
.ui-datepicker .ui-datepicker-next::after {
  right: 5px;
  content: "\f105";
}
.ui-datepicker .ui-datepicker-title {
  text-align: center;
}
.ui-datepicker .ui-datepicker-calendar {
  margin-top: 12px;
  border-top: 1px solid #ddd;
  padding-top: 8px;
}
.ui-datepicker .ui-datepicker-calendar td {
  text-align: center;
  width: 2.2em;
}
.ui-datepicker .ui-datepicker-calendar td a {
  text-decoration: none;
}
.ui-datepicker .ui-datepicker-calendar td.ui-datepicker-current-day a::before {
  content: '[';
  margin-right: 2px;
}
.ui-datepicker .ui-datepicker-calendar td.ui-datepicker-current-day a::after {
  content: ']';
  margin-left: 2px;
}
.tpl-uploader .tpl-image-container {
  height: 150px;
  width: 150px;
  position: relative;
  float: left;
  margin-right: 16px;
  margin-bottom: 8px;
}
.tpl-uploader .tpl-image-container .tpl-closer {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 32px;
  height: 32px;
  border-radius: 100%;
  background-color: #222;
  opacity: 0.75;
  padding: 0;
}
.tpl-uploader .tpl-image-container .tpl-closer::before {
  content: "\00d7";
  font-weight: bold;
  line-height: 32px;
  font-size: 32px;
}
.tpl-uploader .tpl-uploaded-image {
  cursor: pointer;
}
.tpl-image-preview {
  height: 30px;
  width: auto;
  vertical-align: middle;
  margin-bottom: 4px;
  margin-right: 6px;
}
.tpl-img-placeholder {
  cursor: pointer;
}
.select2 .select2-selection {
  border: 1px solid #ddd;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
  border-radius: 0;
}
body .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  top: 0;
}
#wpbody .select2-selection.select2-selection--single {
  height: 40px;
}
#wpbody .select2-selection.select2-selection--single .select2-selection__rendered {
  line-height: 40px;
}
.select2-dropdown {
  border: 1px solid #ddd;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
  border-radius: 0;
}
textarea {
  width: 100%;
}
.tpl-dt-tinymce .tpl-textarea-wrapper {
  width: 100%;
}
.tpl-dt-tinymce .mce-wp-dfw {
  display: none;
}
.tpl-dt-tinymce .mce-tinymce {
  width: 100%;
}
#tpl_theme_options_wrap .tpl-dt-tinymce i.mce-i-wp_help:before {
  content: "\f223";
  font: normal 20px/1 dashicons;
  position: relative;
  top: -2px;
  left: -2px;
}
#tpl_theme_options_wrap .tpl-dt-tinymce i.mce-i-wp_adv:before {
  content: "\f212";
  font: normal 20px/1 dashicons;
  position: relative;
  top: -2px;
  left: -2px;
}
.tpl-dt-tinymce .mce-container iframe {
  min-height: 150px;
}
.postbox-container .tpl-dt-tinymce {
  border: 1px solid #ddd;
  max-width: 800px;
}
/* Enter your custom LESS code for different media sizes */
@media (max-width: 1280px) {
  .tpl-meta-option .tpl-meta-option-wrapper,
  .tpl-meta-option .tpl-button-container {
    width: 100%;
  }
  .tpl-meta-option .tpl-meta-option-label {
    padding-bottom: 6px;
  }
  .tpl-meta-option button {
    margin-top: 12px;
    margin-bottom: 12px;
  }
  .tpl-repeat {
    margin-bottom: 12px;
  }
  .tpl-repeat > .tpl-field-inner {
    padding: 12px;
  }
}
@media (max-width: 1040px) {
  .tpl-field:not(.tpl-repeat) > .tpl-field-inner {
    padding-right: 0px;
  }
}
