/**
 * Assets manager styles
 * @author Webcraftic <wordpress.webraftic@gmail.com>
 * @copyright Webcraftic 05.09.2019
 */

html, body {
  overflow: hidden !important;
}

html {
  line-height: 1.15 !important;
  -webkit-text-size-adjust: 100% !important;
  box-sizing: border-box !important;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  background: #FFF !important;

  &, p {
    font-family: Arial, "Helvetica Neue", sans-serif;
  }
}

#WBCR-AM {

  @import "reset.less";

  span {
    display: inline;
    margin: 0;
  }

  /**
  * Placeholderss
  */

  input[type="text"]::-moz-placeholder {
    color: #cccccc;
  }

  input[type="text"]::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
    color: #cccccc;
  }

  input[type="text"]:-ms-input-placeholder, textarea:-ms-input-placeholder {
    color: #cccccc;
  }

  input[type="text"]::-ms-input-placeholder, textarea::-ms-input-placeholder {
    color: #cccccc;
  }

  input[type="text"]::placeholder, textarea::placeholder {
    color: #cccccc;
  }

  a {
    text-decoration: none;
    color: #007acc;
    border: none;
    background: none;

    &:hover {
      text-decoration: underline;
      border: inherit;
      background: inherit;
    }
  }

  button, [type=submit] {
    color: black;
    font-weight: 400;
    padding: 0;
    line-height: 1.5;
  }

  label {
    color: white;
    margin: 0;
    font-weight: 400;
  }

  select, [type=text] {
    height: 32px;
  }

  .visually-hidden {
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(100%);
    clip-path: inset(100%);
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    white-space: nowrap;
    border: 0;
  }

  // IMPORTS
  // --------------------------------------------------------------
  @import "tables.less";
  @import "tooltip.less";
  @import "float-panel.less";
  @import "tabs.less";
  // --------------------------------------------------------------
  /*.wam-help-hint {
    //display: inline-block;
    //width: 16px;
    //height: 16px;
    //line-height: 0 !important;
    //padding: 0;
    font-size: 11px;
    font-style: normal;
    text-align: left;
    color: #fff;
    background: #b4b5b5;
    border-radius: 2px;

    img {
      display: inline-block;
      margin: 3px 0 0 4px;
    }
  }*/

  .wam-help-hint {
    display: inline-block;
    position: relative;
    background: url(../img/help.png) no-repeat 0 0 transparent;
    height: 14px;
    width: 13px;
    cursor: help;
    vertical-align: middle;
    top: -1px;
  }

  .wam-asset-type {
    display: inline-block;
    padding: 5px 10px;
    font-size: 13px;
    text-transform: uppercase;
    text-align: center;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 15px;

    &--js {
      background: #ffcb1e;
      color: #403102;
    }

    &--css {
      background: #9757a5;
      color: #ffffff;
    }
  }

  .wam-colors--red {
    color: red;
  }

  .wam-colors--grey {
    color: grey;
  }

  // BUTTONS
  // ------------------------------------------------------------
  .wam-button {
    @buttonClass: ~"wam-button";

    display: inline-block;
    vertical-align: bottom;
    padding: 5px 10px;
    text-decoration: none;
    box-shadow: none;
    font-weight: 600;
    border-radius: 3px;

    &--small {
      padding: 2px 8px;
      font-size: 13px;
    }

    &.js-@{buttonClass}--hidden {
      display: none;
    }

    &:hover {
      cursor: pointer;
      text-decoration: none;
      box-shadow: none;
    }

    &:focus {
      outline: none;
      box-shadow: none;
    }

    &__icon {
      height: 28px;
      width: 28px;
      padding: 5px;
      line-height: 0;
    }

    &.js-@{buttonClass}__icon--cogs {
      background: url('../img/cogs.png') center no-repeat;
    }

    &.js-@{buttonClass}__icon--close {
      background: url('../img/close.png') center no-repeat;
    }

    &--default {
      background-color: #eceded;
      color: #222;
      border: 1px solid #c3c3c3;

      &:hover {
        cursor: pointer;
        background-color: #fff;
        border: 1px solid #c3c3c3;
      }
    }

    &--danger {
      //background-color: #ff7063;
      background-color: #fff;
      color: #ff7063;
      border: 1px solid #ff7063;

      &:hover {
        background-color: #fff;
        color: #222;
        border: 1px solid #c3c3c3;
      }
    }

    &--yellow {
      //background-color: #ffcb1e;
      background-color: #fff;
      color: #a5820e;
      border: 1px solid #ffcb1e;

      &:hover {
        background-color: #fff;
        color: #222;
        border: 1px solid #c3c3c3;
      }
    }
  }

  // -------------------------------------------------------------

  // CONTROLS
  // -------------------------------------------------------------
  .wam-select {
    @selectClass: ~"wam-select";

    display: inline-block;
    vertical-align: bottom;
    height: auto;
    padding: 4px 10px;

    &.js-@{selectClass}--enable {
      background: #efffde;
      color: #4e6f28;
      border: 1px solid #8bc34a;
    }

    &.js-@{selectClass}--disable {
      background: #ffdada;
      border: 1px solid #efc3c3;
      color: #774a4a;
    }

    &:focus {
      outline: none;
      box-shadow: none;
    }
  }

  // --------------------------------------------------------------

  &.wam-wrapper {
    min-width: 1365px;
    position: fixed;
    z-index: 99999999;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFF;
    overflow-y: auto;
  }

  .wam-content {
    display: block;
    width: 100%;
    margin: 0;
    padding: 62px 0 0 75px;
  }

  .wam-info-section {
    display: table;

    padding: 0 30px 30px;
    color: #5C5C5C;
    font-size: 15px;
    line-height: 21px;

    p {
      font-size: 15px;
      margin: 0;

      &:not(:last-child) {
        margin-bottom: 25px;
      }
    }

    .wam-info-section__warning, .wam-info-section__go-to-premium {
      display: table-cell;
      width: 49%;
      text-align: left;
      vertical-align: top;
      padding: 20px;
      background: #f9f9f9;
      //border: 1px dashed #d8d8d8;
      border-right: 2px solid #fff;

    }

    .wam-info-section__go-to-premium {
      background: #f9f9f9;
      //border: 1px dashed #e0cb14;
      border-left: 2px solid #fff;
      margin-left: 10px;

      h3 {
        position: relative;
        margin: 0 0 20px;
        padding: 10px 0;
        text-align: left;
        border-bottom: 2px solid #e2e2e2;
        vertical-align: bottom;

        span {
          display: block;
          font-size: 17px;
          font-weight: 600;
          color: #e47558;
          text-transform: uppercase;
        }
      }

      ul {
        list-style: none;
        margin-left: 5px;
        margin-bottom: 20px;
        padding: 0;

        li {
          margin-bottom: 5px;
          font-weight: 600;
          font-size: 15px;
          color: #7d8871;
          padding: 0;

          &:before {
            content: " ";
            display: inline-block;
            width: 0.4em;
            height: 0.7em;
            border: solid #8bc34a;
            border-width: 0 0.2em 0.2em 0;
            left: 0;
            margin-right: 10px;
            -webkit-transform: rotate(45deg);
            -moz-transform: rotate(45deg);
            -o-transform: rotate(45deg);
            transform: rotate(45deg);
          }
        }
      }
    }
  }

  .wam-plugin-settings {
    @pluginSettingsClass: ~"wam-plugin-settings";
    padding-bottom: 10px;

    &__controls {
      vertical-align: top;
    }

    .js-@{pluginSettingsClass}__conditions {
      display: none;
      padding: 20px;
    }
  }
}

@media screen and (max-width: 1367px) {
  #WBCR {
    p {
      font-size: 13px;
    }

    .wam-content {
      padding: 32px 0 0 75px;
    }

    .wam-float-panel__left {
      .wam-float-panel__item_value {
        display: block;
      }
    }

    .wam-float-panel__right {
      .wam-table__checkbox-text {
        font-size: 13px;
      }

      .wam-float-panel__reset, .wam-float-panel__save {
        font-size: 12px;
      }

      .wam-float-panel__checkbox-text {
        font-size: 12px;
        display: block;
        line-height: 1.5;

      }

      .wam-float-panel__close {
        width: 30px;
        height: 30px;
        margin: 0 10px 0 15px;
        border: 3px solid #FFF;
      }
    }

    .wam-info-section {
      padding: 0;

      &, p {
        font-size: 13px;
      }

      .wam-info-section__warning {
        padding: 20px 20px 30px;
      }
    }

    .wbcr-gnz-button__pro {
      font-size: 12px;
    }

    .wam-table {
      margin: 0;

      th {
        font-size: 13px;
      }

      .wam-table__item {
        .wam-table__item-name {
          font-size: 14px;
        }

        .wam-table__item-author, .wam-table__item-version, .wbcr-use-by-comment {
          &, a {
            font-size: 12px;
          }
        }
      }

      .wam-table__script-name {
        font-size: 14px;

        b {
          font-size: 11px;
          font-weight: lighter;
          padding: 3px 7px;
          margin-right: 8px;
        }
      }

      .wam-table__script-path {
        a {
          font-size: 11px;
        }
      }

      .wam-table__column_switch {
        width: 10%;

        .wam-table__th-external-plugin, em {
          font-size: 10px;
        }

        b {
          font-size: 12px;
        }
      }

      .wam-table__column_condition {
        width: 35%;
      }
    }
  }
}

@media screen and (max-width: 1600px) {
  #WBCR {
    .wam-float-panel__data-main {
      display: none;
    }

    .wam-float-panel__data-hidden {
      display: block;
    }
  }
}