#tdc-live-panel {
  //////////////////////////////////////////////////////////
  // COD FIXURI
  .td-box-description {
    padding-bottom: 15px;
  }

  .td-box-content {
    padding-bottom: 25px;
  }

  .td-wrapper-radio-buttons {
    padding-bottom: 0;
  }

  ul {
    margin: 0;
  }
  //////////////////////////////////////////////////////////


  .td-box {
    margin: 0;
  }

  .td-box-header {
    padding-left: 12px;
    padding-right: 12px;
    box-shadow: none;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
  }

  .tdc-panel-menu {
    cursor: pointer;

    &:hover {
      color: #4db2ec;
    }
  }

  .td-box-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .td-box-control-full {
    width: 100%;
  }


  .td-box-content-wrap {
    //padding: 0 12px 0 12px;
  }

  .td-wrapper-radio-buttons {
    a {
      width: auto;
      max-width: 100%;
      margin-right: 0;
    }
  }

  .td_panel_box_header_style {
    .td-small-wrapper-o-separator {
      margin-bottom: 20px;
      margin-right: 20px;

      &:nth-child(2n) {
        margin-right: 0;
      }
    }
    .td-visual-selector-o-img {
      padding: 5px !important;
    }
  }

  .td_panel_box_articles_auto_loading {
    .td-box-content {
      padding-top: 28px;
      padding-bottom: 16px;
    }

    .td-box-autoload-status,
    .td-box-autoload-count,
    .td-box-autoload-scroll-percent {
      .td-box-description,
      .td-box-control-full {
        display: inline-block;
        float: none;
        vertical-align: middle;
      }
      .td-box-description {
        width: 179px;
        padding-top: 1px;
        padding-right: 25px;
        padding-bottom: 0;
      }

      .td-box-control-full {
        width: 68px;

        input {
          width: 100%;
        }
      }
    }

    .td-box-autoload-status,
    .td-box-autoload-type {
      .clearfix();
    }

    .td-box-autoload-status {
      margin-bottom: 21px;

      .td-checkbox {
        margin-bottom: 0;
      }
    }

    .td-box-autoload-type {
      margin-bottom: 27px;

      .td-box-description {
        padding-bottom: 10px;
      }

      ul {
        margin-top: 6px;
      }

      li {
        margin-left: 18px;
      }
    }

    .td-box-autoload-count, .td-box-autoload-scroll-percent {
        margin-bottom: 21px;

      .td-box-description .td-box-title {
        top: 0;
      }
      input {
        margin-bottom: 0;
      }

    }
  }
}

.tdc-window-frame {
  footer {
    &:after {
      clear: both;
      content: '';
      display: block;
    }
  }
}

#tdc-menu-settings,
#tdc-page-settings,
#tdc-zone {
  box-sizing: border-box;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 101; // over live panel
  margin: 0 auto;
  display: none;
  .box-shadow(0px 0px 20px 1px rgba(0,0,0,0.15));


  header {
    height: 35px;
    background-color: #000;

    .title {
      padding: 9px 0 0 19px;
      float: left;
      font-size: 12px;
      color: #fff;
      pointer-events: none;
    }
  }

  footer {
    padding: 10px;
    background-color: #f1f1f1;
    border-style: solid;
    border-color: #e3e3e3;
    border-width: 1px 0 0 0;
    box-sizing: border-box;
  }
}
#tdc-menu-settings,
#tdc-page-settings {
  width: 1100px;
  min-width: 800px;
  height: 620px;
  min-height: 400px;
  background-color: #fff;

  .content {
    height: calc(~"100% - 85px");
  }
}
#tdc-zone {
  min-width: 440px;
  width: 440px;
  background-color: #f1f1f1;
  transform-style: preserve-3d;
  backface-visibility: hidden;

  header {
    transform: translateZ(0);
  }

  .content {
    padding: 18px 22px 22px;
    transform: translateZ(0);
  }
}


.tdc-iframe-close-button {
  position: relative;
  float: right;
  width: 35px;
  height: 35px;
  text-align: center;
  color: #fff;
  cursor: pointer;
  .transition(background-color 0.05s ease-in-out);

  &:hover {
    background-color: #268ac2;
  }

  &:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    content: '';
    display: block;
    width: 19px;
    height: 19px;
    background: url('../images/sidebar/spritesheet.png');
    background-repeat: no-repeat;
    background-position: -5px -126px;
  }
}
.tdc-iframe-apply-button,
.tdc-iframe-ok-button {
  position: relative;
  float: right;
  background-color: #000;
  margin-left: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  cursor: pointer;
  .transition(background-color 0.05s ease-in-out);

  &:hover {
    background-color: #268ac2;
  }

  &:before {
    display: block;
    padding: 0 18px;
    line-height: 29px;
  }
}

.tdc-iframe-apply-button {
  &:before {
    content: 'Apply';
  }
}

.tdc-iframe-ok-button {
  &:before {
    content: 'Ok';
  }
}


#tdc-wpeditor {
  box-sizing: border-box;
  position: fixed;
  border: 1px solid #ddd;
  height: 750px;
  min-width: 650px; // to allow media library create galleries
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 101; // over live panel
  margin: 0 auto;
  background-color: #FFFFFF;
  display: none;
  .box-shadow(0px 0px 20px 1px rgba(0,0,0,0.15));

  header {
    margin: -1px 0 0 -1px;
    height: 35px;
    background-color: #000;

    #title {
      padding: 9px 0 0 19px;
      float: left;
      font-size: 12px;
      color: #fff;
    }
  }

  .content {
    height: calc(~"100% - 35px");
  }
}

/* ----------------------------------------------------------------------------------------
  When a element is dropped, the job is running and we're waiting for new content
*/

@keyframes tdc-dropped-colorchange {
  0%    {opacity: 0.5}
  50%   {opacity: 1}
  100%  {opacity: 0.5}
}

@-webkit-keyframes tdc-dropped-colorchange {
  0%    {opacity: 0.5}
  50%   {opacity: 1}
  100%  {opacity: 0.5}
}


.tdc-dropped,
.tdc-dropped-wpeditor {

  // hide the play icon, it appears over the loader due to z-index issues
  .td-video-play-ico {
    display: none;
  }

  //background-color: green;
  position: relative;

  max-height: 600px;
  min-height: 120px;
  overflow: hidden;
  margin-bottom: 45px;

  &:before {
    top:0;
    left:0;
    display: block;
    height: 100%;
    width:100%;
    position: absolute;
    content: '';
    z-index: 1;
    min-height: 100px;
    background-color: white;
  }

  &:after  {
    top:0;
    left:0;
    display: block;
    height: 100%;
    width:100%;
    position: absolute;
    background: #F1F1F1 url("../images/loader.gif") no-repeat;
    content: '';
    z-index: 2;
    background-position: center;

    animation: tdc-dropped-colorchange 1s linear infinite;
    -webkit-animation: tdc-dropped-colorchange 1s linear infinite;

  }
}


.tdc-dropped-wpeditor {
  max-height: none;
}

.clear-position {
  .transform_important(none);
}