.has-sidebar {
  float: left;
  max-width: calc(100% - 300px);
}

.has-right-sidebar #post-body-content {
  margin-right: 0;
}

.cf:before, .cf:after, .post-style .gallery:before, .post-style .gallery:after {
  content: '.';
  display: block;
  overflow: hidden;
  visibility: hidden;
  font-size: 0;
  line-height: 0;
  width: 0;
  height: 0;
}

.cf:after, .post-style .gallery:after {
  clear: both;
}

.about-left-menu {
  float: left;
  padding: 20px 40px 0 0;
}

.content-about-box {
  float: left;
  width: 69%;
  padding: 20px 0 0;
}

.content-about-box .block-title {
  float: left;
  margin-top: 0;
}

.debranding-block {
  margin: 0 0 20px;
  border: 1px solid #c3c3c3;
  padding: 20px 20px 0;
  box-shadow: 0 1px 1px #c3c3c3;
  width: 100%;
  position: relative;
  float: left;
}

.debranding-block p {
  float: left;
  width: 100%;
}

.debranding-block label {
  width: 22%;
  text-align: right;
  float: left;
}

.debranding-block input,
.debranding-block textarea,
.debranding-block select {
  width: 70%;
  margin-left: 20px;
  float: left;
}

a.nav-tab-active {
  pointer-events: none;
  cursor: default;
}

a.nav-tab:focus {
  box-shadow: none;
}

.debranding-tab {
  display: none;
}

.debranding-tab.active {
  display: block;
}

.debranding-tab label {
  //width: 40%;
}

.debranding-spin, .debranding-success-tip {
  display: none;
  float: left;
  margin: 5px 10px 0;
}

.debranding-success-tip #success {
  color: #0b0;
}

.debranding-success-tip #error {
  color: #b00;
}

.unit {
  margin-left: 5px;
  color: #666;
}

.debranding-about-screen h1 {
  margin: 1.5em 0;
}

.debranding-about-screen h1 small {
  color: #aaa;
  display: block;
  font-size: 0.5em;
  font-weight: normal;
  margin: 7px 0 0 20px;
}

.debranding-inline-menu {
  line-height: 1.5em;
  margin: 1.5em 0;
}

.debranding-inline-menu a {
  border-right: 1px dotted #ccc;
  display: inline-block;
  line-height: 1.5em;
  padding: 0 0.7em;
  text-decoration: none;
}

.debranding-inline-menu a:first-child {
  padding-left: 0;
}

.debranding-inline-menu a:last-child {
  border-right: medium none;
  display: inline-block;
  padding-right: 0;
}

.debranding-clearfix::before, .su-clearfix::after {
  content: " ";
  display: table;
}

.debranding-clearfix::after {
  clear: both;
}

.debranding-about-screen .debranding-about-column {
  float: left;
  margin-bottom: 1em;
  width: 400px;
}

.debranding_custom_media_image {
  margin: 0 0 0 0;
  padding: 0;
  width: calc(34% - 20px);
  float: left;
}

.code-textarea {
  width: 100%;
}

.image-settings {
  width: 66%;
  float: left;
  padding-left: 20px;
  /*padding-bottom: 16px;*/
}

.debranding-row::after {
  clear: both;
  content: "";
  display: block;
  width: 100%;
  padding: 1em 0;
  margin: 0 0 0.8em;
}

.debranding-th {
  color: #222;
  float: left;
  font-weight: 600;
  line-height: 1.3;
  padding: 20px 10px 20px 0;
  vertical-align: top;
  width: 200px;
}

.debranding-repeat-group-wrap .debranding-th, .postbox-container .debranding-th {
  padding: 0 2% 0 0;
  width: 18%;
}

.debranding-th label {
  display: block;
  padding: 5px 0;
}

.debranding-row .left-fields, .debranding-row .right-fields {
  width: 50%;
  float: left;
}

.form-field.debranding td {
  position: relative;
}

.form-field.debranding .left-fields, .form-field.debranding .right-fields {
  width: 50%;
  float: left;
}

.debranding-metabox .debranding-field-list > .debranding-row:first-of-type > .debranding-td, .debranding-metabox .debranding-field-list > .debranding-row:first-of-type > .debranding-th, .debranding-metabox > .debranding-row:first-of-type > .debranding-td, .debranding-metabox > .debranding-row:first-of-type > .debranding-th {
  border: 1px #DFDFDF solid;
}

.debranding-repeat-group-wrap .debranding-th + .debranding-td, .postbox-container .debranding-th + .debranding-td {
  float: right;
  width: 80%;
}

.debranding-repeat-group-wrap .debranding-td, .postbox-container .debranding-td {
  line-height: 1.3;
  margin-bottom: 0;
  padding: 0;
}

.debranding-th + .debranding-td {
  float: left;
}

.debranding-td {
  line-height: 1.3;
  max-width: 100%;
  padding: 15px 10px;
  vertical-align: middle;
}

.inner-sidebar .inside span {
  width: 100%;
  display: block;
  margin: 10px 0;
}

a.debrand_button {
  padding: 4px;
  display: block;
  text-decoration: none;
  border: none;
}

#debrand_products .debrand_button {
  padding-left: 35px;
  background-repeat: no-repeat;
  background-position: 5px 50%;
}

.decomments {
  background-image: url('../img/decomments.png');
}

.destatistics {
  background-image: url('../img/destatistics.png');
}

.mistape {
  background-image: url('../img/mistape.png');
}

.deadblocker {
  background-image: url('../img/deadblocker.png');
}

.defeed {
  background-image: url('../img/defeed.png');
}

h1.debranding-title {
  text-align: center;
  font-size: 24px;
  color: #333;
  margin: 20px 0 10px;
}

.debranding-title small {
  font-size: 12px;
  color: #c5c5c5;
}

.right-description {
  border-left: 1px #DFDFDF solid;
  float: right;
  padding-left: 15px;
  //margin-left: 10px;
  width: 31%;
}

//.inblock-label {
//  border-left: 1px #DFDFDF solid;
//  padding-left: 15px;
//  margin-left: 10px;
//}

.left-fields {
  width: 65%;
  position: relative;
  float: left;
  padding-right: 10px;
}

.inside::after {
  content: '';
  display: block;
  /* clear: both; */
  height: 0;
  width: 100%;
  overflow: hidden;
}

.wp-picker-container .wp-color-result {
  /*margin: 0;*/
}

.inside input.numeric, .debranding td .numeric {
  width: 20%;
}

.debrand-admin-settings-saved input[type="submit"] {
  float: left;
}

.debrand-admin-settings-saved .spinner {
  float: left;
}

#debranding_metabox h2.hndle, #debranding_metabox h3.hndle, #debranding_metabox h4.hndle {
  padding-bottom: 0;
}

#debranding_metabox .hndle img {
  height: 20px;
}

.debranding .debrand-logo, .tax-debranding .debrand-logo {
  height: 40px;
}

.form-field.tax-debranding {
  margin: 20px 0 0 0;
}

.form-table .debranding th {
  padding-bottom: 0;
}

.inner-sidebar .inside.debrand-about div {
  width: 100%;
  display: block;
  margin: 10px 0;
}

.debrand-about {

  .hover-image {
    position: relative;
    cursor: pointer;
    transition: $time color ease-in-out;
    &:before {
      position: absolute;
      top: 3px;
      left: 0;
      font-size: 15px;
    }
    &:hover {
      color: $color-lightgrey;
      &:before {
        color: $color-base;
      }
    }

    .tooltip-img {
      display: none;
      position: absolute;
      top: 0;
      right: calc(100% + 20px);
      z-index: 100;
      box-shadow: 0 0 10px 3px rgba(0,0,0,0.3);
    }

    &.tooltip-show {
      .tooltip-img {
        display: block;
      }
    }
  }
}

a.decoagency {
  font-size: 14px;
  text-decoration: none;
  font-weight: bold;
}

.radio-background {
  margin-left: 25px;
  display: inline-block;
}

.radio-background label {
  vertical-align: top;
}

.debranding-tab .postbox .hndle {
  cursor: default;
}

.left-fields .item {
  width: 100%;
  display: block;
  margin-bottom: 25px;
  float: left;
}

.button-block {
  width: 35%;
  float: left;
  margin-top: 10px;
  margin-right: 2%;

  label {
    display: inline-block;
    vertical-align: middle;
  }

  input {
    display: inline-block;
    vertical-align: middle;
  }
}

.repeat-block {
  width: 20%;
  float: left;
  margin-top: 14px;
}

.repeat-block label {
  vertical-align: top;
}

.background-type {
  display: inline-block;
}

.basic-settings .item:last-child {
  margin-bottom: 0;
}

.basic-settings .button-block {
  width: 45%;
  margin-right: 5%;
}

.debranding-background-settings {
  @extend %clr;

  .item {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 5px 0;
    margin-bottom: 15px;
    transition: $time background-color ease-in-out;
    //border-bottom: 1px dashed rgba(0,0,0,0.2);
    &:hover {
      //background-color: rgba(0,0,0,0.05);
    }
  }

  .setting-name {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 34%;
  }

  .radio-background {
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: 22%;
    margin-left: 0;
  }

  .background-type {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 70%;
    .radio-background {
      display: block;
      width: 100%;
      margin-bottom: 10px;
    }
  }

  .margin-block {
    display: inline-block;
    vertical-align: middle;
    margin: -18px 0 0 10px;
    height: 20px;
    > label {
      vertical-align: middle;
      width: auto;
      display: inline-block;
    }
    .numeric {
      display: inline-block;
      width: 50px;
    }
  }
  

}

.inp-wrapper {
  width: 60%;
}

//.debrand-link-block {
//  display: table;
//  width: 100%;
//}
//
.debrand-link-conf {
  margin-right: 20px;
  display: inline-block;

  label {
    display: inline-block;
  }

  input {
    display: inline-block;
    margin: 0;
  }
}

.deactivated {
  opacity: .5;
  pointer-events: none;
}

.debrand-wrapper-class {
  margin-top: 5px;
}
//  > * {
//    display: inline-block;
//    vertical-align: baseline;
//  }
//  &:nth-of-type(1) {
//    width: 100%;
//  }
//  &:nth-of-type(2) {
//    width: 370px;
//  }
//}

.debranding-image-block {

  .button-block {
    width: auto;
  }
}

@media screen and (max-width: 1350px) {
  .metabox-holder.has-right-sidebar {
    display: table;
    #post-body-content {
      margin-right: 0;
    }
  }
  .inner-sidebar {
    float: none;
  }
  .has-sidebar.sm-padded {
    float: none;
    max-width: 100%;
  }
  .inner-sidebar {
    width: 100%;

    #side-sortables {
      width: auto;
    }

    .postbox {
      float: left;
      width: 32%;
      min-width: 0;
      margin-right: 2%;
      box-sizing: border-box;
      &:nth-of-type(3n) {
        margin-right: 0;
      }
    }
  }
  .debrand-about .hover-image .tooltip-img {
    right: auto;
    left: calc(100% + 20px);
    width: 50vw;
  }
}

@media screen and (max-width: 1150px) {

  .right-description {
    float: none;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.2);
  }
  .left-fields {
    float: none;
    width: 100%;
    &:after {
      content: '';
      display: block;
      width: 100%;
      height: 0px;
      overflow: hidden;
      overflow: hidden;
      clear: both;
    }
  }
}

@media screen and (max-width: 600px) {
  .button-block {
    float: none;
    width: 100%;
    margin-top: 20px;
  }
  .basic-settings .button-block {
    width: 100%;
    margin-right: 0;
  }
  .debranding-background-settings {
    .item,
    .setting-name,
    .radio-background {
      display: block;
    }
    .setting-name {
      margin-bottom: 10px;
    }
    .radio-background {
      padding-top: 5px;
      margin-bottom: 10px;
    }
    .margin-block {
      display: block;
      float: none;
      margin: 0 0 10px 30px;
      height: auto;
    }
    .debranding_custom_media_image {
      width: 100%;
    }
    .image-settings {
      padding: 20px 0 0;
      width: 100%;
    }
    .debrand-link-conf {
      margin: 10px 0 0;
    }
  }
  .inner-sidebar .postbox {
    width: 100%;
    margin: 0 0 20px;
  }
  .inside input.numeric, .debranding td .numeric {
    width: auto;
    max-width: 170px;
  }
}

