@import 'partials/_colors';

#lock-wrapper {
  width: 300px;
  margin: 30px auto;
}


#wpwrap {
  
  #panel-help {
     p, li {
       font-size: 1.1em;
     }
    
    ul {
      list-style-type disc
      padding-left 2em
    }
  }

  .a0-wrap {

    .link {
      color:aText;
    }

    .a0-header {
      text-align:center;
      border-bottom:1px solid separatorBorder;
      a {
        outline:none;
        border: none;
        box-shadow: none;
      }
      img.a0-header-logo {
        height:55px;
        margin: 30px auto;
      }
    }

    #connections .loading {
      margin: 0 -15px 30px;
      background: loadingBG;
      color:loadingText;
      text-align:center;
      line-height: 41px;
      border-radius: 3px;

      .a0-spinner-css {
        width:25px;
        height:25px;
        position: relative;
        top: 7px;
        margin-right:10px;

        border-top-color: rgba(loadingText,.3);
        border-right-color: rgba(loadingText,.3);
        border-bottom-color: rgba(loadingText,.3);
        border-left-color: rgba(loadingText,.9);
      }
    }

    small, .small {
      font-size: 70%;
    }

    h1, .h1, h2, .h2, h3, .h3 {
      margin-top: 0;
    }

    h3 {
      background: transparent;
      padding: 0;
    }

    p {
      &.const-setting-notice {
        margin: 0 0 0.4em;
      }
    }

    code {
      background: #e1e1e1;
      color: #777;
      line-height: 2em;

      &.code-block {
        display: block;
        overflow-wrap: break-word;
        white-space: pre-wrap;
        word-wrap: break-word;
        word-break: break-all;
        padding: 0.75em 1em;
      }
    }

    textarea.code {
      font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
      font-size: 12px;
      line-height: 19px;
      padding: 10px;
    }

    .a0-buttons {
      margin: 20px 0;

      &.extra-space {
        margin-top:50px;
      }
    }

    form {
      margin:0;

      [disabled] {
        opacity: 0.5;
        font-size: 0.9em;
        margin-top: 0.3em;
      }
    }

    .container-fluid {
      max-width:750px;
    }

    .bg-danger {
      padding: 17px;
      font-size: 15px;
      margin: 30px 0;
    }

    .updated.settings-error {

      margin: 5px 0;

      p {
        font-size: 14px;
        text-align: left;
        color: text;
      }
    }
  }

  .a0-step-text {
    margin:30px 0 0;
  }

  .a0-settings-form[data-tab-showing="help"] #submit {
    display: none;
  }

  .a0-steps {
    background-color:#F2F5F8;
    padding-top:120px;
    padding-bottom:120px;
    height: 0;

    .a0-progress {
      border-top:4px solid stepBG;
      margin: auto;
      float: none;
    }

    .steps {
      position:relative;
      top:-27px;
      text-align: center;

      span {
        display:inline-block;
        width:50px;
        height:50px;
        border-radius:30px;
        line-height: 50px;
        text-align: center;
        background-color:stepBG;
        color:stepText;
        font-weight:bold;
        font-size:15px;
      }

      p {
        display:none;
        color:stepDescriptionText;
        font-weight: bold;
        padding-top: 10px;
        font-size: 15px;
        width: 105px;
        margin: auto;
      }

      .active span{
        background-color:activeStepBG;
      }

      .active p{
        display:block;
      }

    }

  }

  .consent-disclaimer {
    .logo {
      width: 100px;
      margin: 20px 0;
    }
  }

  .a0-message {
    line-height: 24px;
    font-size: 12px;
    border-radius: 3px;
    position: relative;
    color:text;
    padding: 15px;

    &.a0-step-text {
      font-size: 14px;
    }

    &.multiline {
      line-height: 25px;
      padding:10px 20px;
    }

    &.a0-notice {
      background-color: noticeBG;
      color:noticeText;
    }

    &.a0-tip {
      background-color: tipBG;

      a {
        color:text;
      }
    }
    &.a0-warning {
      background: #fff7c9;
      color: #786600;
      a.link {
        color: #786600;
        font-decoration:underline;
      }
    }

    b {
      font-weight:bold;
      text-transform:uppercase;
    }

    a {
      text-decoration:underline;
    }

    img {
      position:absolute;
      left:20px;
      top:20px;
    }

    .a0-button {
      border: 0;
      margin: -4px;
      margin-left: 10px;
      font-size: 12px;
      line-height: 12px;
      padding: 10px 15px;
    }
  }
  
  .connections {
    border-top: 1px #d0d2d3 solid;
    border-left: 1px #d0d2d3 solid;

    .connection {
      float:left;
      // width:50%;
      border-top:none;
      background-color:#F7F7F7;

      border-right: 1px #d0d2d3 solid;
      border-bottom: 1px #d0d2d3 solid;

      .a0-switch {
        float:right;
        position: relative;
        top: 35px;
        right: 15px;
      }

      .logo {
        width:100px;
        height:70px;
        margin: 15px;
        padding-right: 15px;
        padding-left: 15px;

        .logo-child {
          width:100px;
          height:70px;

          background-repeat: no-repeat;
          background-position: center center;
          // background-size: contain;
          background-size: 80%;
        }

        &[data-logo="SAP"] {
          .logo-child {
            background-size: 80%;
          }
        }

        &[data-logo="Twitter"] {
          .logo-child {
            background-size: 60%;
          }
        }

        &[data-logo="Box"] {
          .logo-child {
            background-size: 70%;
            transform: translateX(-10%);
          }
        }

        &[data-logo="vk"] {
          .logo-child {
            background-size: 55%;
          }
        }
      }
    }
  }

  .a0-switch {
    display:inline-block;

    input {
      display:none
    }
    label {
      position:relative;
      display:block;
      width:50px;
      height:30px;
      border-radius:15px;
      background-color:#A9A9A9;
    }
    input:checked + label {
      background-color:#45DB5E;
    }
    label::before {
      position:absolute;
      content:" ";
      width:26px;
      height:26px;
      border-radius:13px;
      top:2px;
      left:2px;
      background-color:#FFFFFF;
      box-shadow: 0 0 1px 0 rgba(0,0,0,0.25),0px 4px 11px 0 rgba(0,0,0,0.08),-1px 3px 3px 0 rgba(0,0,0,0.14);

      transition: left 300ms cubic-bezier(0.42,0.8,0.58,1.2);
    }
    input:checked + label::before {
      left: 22px;
    }
  }

  .a0-db-connection {

    padding-right: 90px;
    position: relative;

    .a0-step-text {
      margin: 30px 0;
    }

    .a0-switch {
      position: absolute;
      right: 20px;
      top: 60px;
    }
  }

  @-webkit-keyframes loaderAnim {
    0% {
      -webkit-transform: rotate(0deg);
      transform: rotate(0deg);
    }

    100% {
      -webkit-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }

  @keyframes loaderAnim {
    0% {
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
      transform: rotate(0deg);
    }

    100% {
      -webkit-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -ms-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }

  @-moz-keyframes loaderAnim {
    0% {
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      transform: rotate(0deg);
    }

    100% {
      -webkit-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }

  .a0-spinner-css{
    display:inline-block;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 2px solid rgba(0,0,0,0.3);
    border-right: 2px solid rgba(0,0,0,0.3);
    border-bottom: 2px solid rgba(0,0,0,0.3);
    border-left: 2px solid rgba(0,0,0,0.9);
    -webkit-animation: loaderAnim .8s infinite linear;
    animation: loaderAnim .8s infinite linear;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background-clip: padding-box;
    width: 40px;
    height: 40px;
  }

  .lock {
    padding-top:30px;
    position:relative;

    .loading {
      position:absolute;
      top:30px;
      bottom:0;
      background: rgba(255,255,255,0.5);
      z-index:9999;
      margin:auto;
      width:300px;
      display:none;

      .vcenter-wrapper {
        display: table;
        height: 100%;
        margin: auto;
      }

      .centrix {
        display: table-cell;
        vertical-align: middle;
      }

    }

    &.loading .loading {
      display:block;
    }
    &.loading {
      #a0-lock {
        overflow:hidden;
      }
    }

    #a0-lock {
      margin:auto;
      width:300px;
    }
  }

  .a0-admin-creation {

    margin-top:20px;

    input[type=text],
    input[type=password],
    input[type=url] {
      width:100%;
      border:1px solid adminFormBorder;
      height: 50px;
      line-height: 1em;
      padding: 10px;

      &#admin-email {
        border-radius: 3px 3px 0 0;
        background-color: adminFormBG;
      }
      &#admin-password {
        border-top: none;
        border-radius: 0 0 3px 3px;
      }
    }
  }

  .a0-final-step {
    text-align:center;

    h1 {
      margin-bottom: 0px;
      margin-top: 30px;
    }

    @-webkit-keyframes fill {
      100% {
        box-shadow: inset 0px 0px 0px 45px #7ac142;
      }
    }
    @keyframes fill {
      100% {
        box-shadow: inset 0px 0px 0px 45px #7ac142;
      }
    }

    .checkmark {
      width: 90px;
      height: 90px;
      border-radius: 50%;
      display: block;
      stroke-width: 2;
      stroke: #fff;
      stroke-miterlimit: 10;
      margin: 0 auto;
      box-shadow: inset 0 0 0 #7ac142;
      -webkit-animation: fill 0.4s ease-in-out 0.7s forwards, scale 0.3s ease-in-out 1.1s both;
      animation: fill 0.4s ease-in-out 0.7s forwards, scale 0.3s ease-in-out 1.1s both;

      .checkmark__check {
        transform-origin: 50% 50%;
      }
      .checkmark__circle {
        stroke-dasharray: 166;
        stroke-dashoffset: 166;
        stroke-width: 2;
        stroke-miterlimit: 10;
        stroke: #7ac142;
        -webkit-animation: stroke 0.6s 0.4s cubic-bezier(0.65, 0, 0.45, 1) forwards;
        animation: stroke 0.6s 0.4s cubic-bezier(0.65, 0, 0.45, 1) forwards;
      }
    }
  }

  .settings {
    h3 {
      margin: 1.25em 0 0.75em;
    }
    
    hr {
      margin: 2em 0
    }

    .a0-message.manage {
      margin-bottom: 30px;
      margin-top: 30px;
    }

    .nav-tabs {
      margin: 30px 0;
      border-bottom: 1px solid rgb(217, 217, 217);
      font-size: 1.2em;

      a {
        color:aText;
        box-shadow: none;
        text-decoration: none;
        display: inline-block;
        padding: 0.5em 0;
        margin: 0 2em -1px 0;
        
        &:hover {
          color: black;
        }
        
        &.a0-active-tab {
          border-bottom: 1px solid black;
          color: black;
        }
      }
    }

    .a0-step-text {
      margin: 0 0 30px;
    }
    .top-margin {
      margin-top: 30px;
    }
    .no-bottom-margin {
      margin-bottom: 0;
    }

    .form-table th,
    .form-table label,
    .form-wrap label {
      color: formFieldsText;
    }

    input[type=text],
    input[type=password],
    input[type=url],
    textarea {
      border:1px solid settingsInputBorder;
      padding: 0 10px;
      border-radius: 3px 3px 3px 3px;
      width: 100%;
      color:text;
    }

    input[type=text],
    input[type=password],
    input[type=url] {
      line-height: 1em;
      height: 40px;
    }

    #wpa0_icon_url {
      width: 50%;
      display: inline-block;
    }

    .subelement {
      padding:5px 0;
    }

    .link {
      font-weight: bold;
      text-decoration: underline;
      cursor: pointer;
    }

    .nav>li>a {
      padding: 10px 0;
      margin-right: 40px;
      font-size: 15px;

      @media (max-width: 768px) {
        margin-right: 10px;
      }
    }
    .nav>li>a:hover, .nav>li>a:focus {
      text-decoration: none;
      background-color: #fff;
      border-color: transparent transparent #ddd;
    }

    .nav-tabs>li.active>a, .nav-tabs>li.active>a:hover, .nav-tabs>li.active>a:focus {
      color: #33B6E3;
      border-color:transparent transparent #33B6E3;
    }

    .form-wrap p, p.description, p.help, span.description {
      font-style: normal;
      color: softText;
    }

    p.description,
    span.description {
      font-size: 14px;
      line-height: 1.5em;
    }

    label {
      margin-right: 10px;
    }

    .connections {
      margin-top:30px;
    }
  }

  .a0-table {
    margin: 2em 2%;
    width: 96%;
  }

  #manuallySetToken {
    margin-right:15px;
  }

  .a0-feedback {
    background-color: profileBG;
    padding:30px;
    margin-top: 30px;
    border-radius: 3px;

    h2 {
      font-size:18px;
      margin-bottom:15px;
      &.message {
        margin:0;
      }
    }

    .a0-separator {
      margin:20px 0;
    }

    input.feedback_calification {
      display:none;
    }

    input:checked + .feedback-face {
      opacity:1;
    }

    .a0-buttons {
      margin:15px 0 0;

      .a0-button{
        min-width: auto;
        cursor:pointer;
      }
    }

    textarea {
      padding:10px;
      height:90px;
    }

    .feedback-face {
      width:40px;
      height:40px;
      display:inline-block;
      background-size:contain;
      opacity:0.4;
      margin-right:30px;
      cursor:pointer;

      &:hover {
        opacity:0.7;
      }

      &.calification-1 {
        background-image: url('../img/rates/01.svg');
      }
      &.calification-2 {
        background-image: url('../img/rates/02.svg');
      }
      &.calification-3 {
        background-image: url('../img/rates/03.svg');
      }
      &.calification-4 {
        background-image: url('../img/rates/04.svg');
      }
      &.calification-5 {
        background-image: url('../img/rates/05.svg');
      }
    }
  }

  .a0-vert-radio {
    margin: 0 0 1.25em;

    label {
      margin: 0;
    }

    p {
      padding-left: 24px;
    }

    input {
      margin-right: 8px;
    }

    .code-block {
      padding: 0.5em 1em;
      font-size: 11px;
    }
  }
}
