$background-color: #0a0d15;

#performance-kit {
  width: auto;
  margin: 0;
  display: block;
  margin: 20px 20px 0 0;
  h2 {
    margin: 0;
  }
  a {
    text-decoration: none;
    display: inline-flex;
  }
  .kit-title {
    background-color: $background-color;
    padding: 22px 40px;
    color: #fff;
    font-weight: 600;
    font-size: 21px;
    vertical-align: middle;
    margin: -20px -20px 0 -20px;
    display: flex;
    align-items: center;
    .logo {
      vertical-align: bottom;
      margin-right: 12px;
    }
    .plugin-name {
      color: #FFF;
    }
    .version {
      font-size: 12px;
      margin-top: 9px;
      margin-left: 10px;
      text-decoration: none;
      color: #fff;
    }
  }
  .title-nav {
    display: flex;
    order: 1;
    margin-left: auto;
    a {
      font-weight: 500;
      color: rgba(255, 255, 255, 0.5);
      font-size: 13px;
      text-decoration: none;
      margin: 0 0 0 8px;
      background-color: rgba(255, 255, 255, 0.1);
      height: 37px;
      display: flex;
      align-items: center;
      line-height: 37px;
      border-radius: 100px;
      padding: 0 18px;
      transition: 0.3s all;
      &.active {
        background-color:rgba(255, 255, 255, 0.2);
        color: #FFF;
      }
      &:hover {
        color: #fff;
      }
      span {
        display: inline-block;
      }
      svg {
        margin-right: 5px;
      }
    }
  }
  textarea {
    &.kit-option {
      min-width: 500px;
      border: none;
      border-radius: 4px;
      padding: 15px;
      margin-bottom: 0;
      margin-top: 0;
      background-color: #f1f1f1;
    }
  }
  .nav-tab-wrapper {
    background-color: $background-color;
    margin: 0 -20px;
    padding: 0 23px;
    border: none;
    .nav-tab {
      background-color: transparent;
      border: none;
      color: rgba(255,255,255,0.45);
      padding: 6px 12px 12px 12px;
      border-bottom: 2px solid transparent;
      transition: 0.3s all;
      &.nav-tab-active {
        color: #FFF;
        border-bottom: 3px solid #f1f1f1;
      }
      &:hover,
      &:focus {
        outline: none;
        box-shadow: none;
        color: #FFF;
      }
    }
  }
  .kit_wrapper {
    .pk-section {
      background-color: #FFF;
      border-radius: 0;
      box-shadow: 0px 2px 2px rgba(0,0,0,0.05);
      margin: 20px 0;
      border: 1px solid #e8e8e8;
    }
  }
  p.submit {
    margin-bottom: 0;
    padding: 0 40px 30px 40px;
  }
  div.updated {
    margin: 15px 0 -5px 0;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    border-left-color: #46b450;
    border-left-width: 4px;
  }
  div.notice-warning {
    margin: 15px 0 -5px 0;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    border-left-color: #ffb900;
    border-left-width: 4px;
  }
  div.notice-error, 
  div.error {
    margin: 15px 0 -5px 0;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    border-left-color: #dc3232;
    border-left-width: 4px;
  }
  .kit-faq {
    background-color: #FFF;
    border-radius: 6px;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.05);
  }
  .kit-accordion {
    border: 1px solid #e8e8e8;
    cursor: pointer;
    padding: 18px 40px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
    background-color: transparent;
    border-bottom: 1px solid #e8e8e8;
    &.active:after {
      content: "\2212";
    }
  }
  .kit-accordion:after {
    content: '\002B';
    color: #777;
    font-weight: bold;
    float: right;
    margin-left: 5px;
  }

  .kit-panel {
    padding: 0 40px;
    background-color: #F8F8FA;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    &.active {
      padding: 20px 40px;
      border-bottom: 1px solid #e8e8e8;
      max-height: auto;
    }
  }

  .woocommerce_wrapper {
    position: relative;
    //filter: blur(3px);
  }
}

#performance-kit .kit-option {
  margin: 25px 0;
  padding: 0 40px;
  position: relative;
}

#performance-kit .kit-option span {
  font-size: 14px;
  font-weight: 600;
}

#performance-kit .switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  vertical-align: middle;
  margin-right: 10px;
}

/* Hide default HTML checkbox */
#performance-kit .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
#performance-kit .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

#performance-kit .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.25s;
  transition: 0.25s;
}

#performance-kit input:checked + .slider {
  background-color: rgb(48, 209, 88);
}

#performance-kit input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

#performance-kit input:checked + .slider:before {
  -webkit-transform: translateX(17px);
  -ms-transform: translateX(17px);
  transform: translateX(17px);
}

/* Rounded sliders */
#performance-kit .slider.round {
  border-radius: 2px;
}

#performance-kit .slider.round:before {
  border-radius: 1px;
}

#performance-kit .section-title h3 {
  margin-bottom: 5px;
}

#performance-kit .option-tooltip {
  display: inline-block;
  position: relative;
  float: right;
  margin-right: 5px;
}

#performance-kit .option-title {
  display: inline-block;
  position: relative;
  min-width: 275px;
}

#performance-kit .select {
  display: inline-block;
  position: relative;
}

#performance-kit .select select {
  min-height: 35px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: inset 0px 0px 4px rgba(0, 0, 0, 0.05);
  width: 240px;
}

#performance-kit span.tooltip {
  display: inline-block;
  margin-left: 4px;
  height: 15px;
  width: 15px;
  vertical-align: top;
  text-align: center;
  line-height: 15px;
  font-size: 12px;
  background: #e0e0e0;
  color: #b3b3b3;
  border-radius: 100px;
  vertical-align: middle;
}

#performance-kit span.tooltip-text {
  position: absolute;
  min-width: 150px;
  font-size: 11px;
  color: #fff;
  background-color: #23282d;
  margin-left: 10px;
  padding: 8px 12px;
  font-weight: 400;
  border-radius: 2px;
  opacity: 0;
  visibility: hidden;
  z-index: 9;
  transition: 0.3s all;
  top: 50%;
  transform: translate(0, -50%);
}

#performance-kit span.tooltip:hover ~ span.tooltip-text {
  opacity: 1;
  visibility: visible;
}

#performance-kit .section-title { 
  padding: 27px 40px;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

#performance-kit .section-title h3 {
  margin: 7px 0 8px 0;
  font-size: 18px;
}

#performance-kit .section-title p {
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
}

#performance-kit .kit-button {
  background: #007cba;
  padding: 0 12px;
  border-color: #007cba;
  height: 32px;
  line-height: 30px;
  font-weight: 500;
}

#performance-kit .option-text {
  display: inline-block;
}

#performance-kit .option-text .text {
  font-size: 13px;
}

#performance-kit .option-text .text.green {
  color: #4ad068;
}

#performance-kit .option-text .text.red {
  color: #fd8f1b;
}

#performance-kit .notification {
  margin: 25px 40px;
  background-color: #e4e4e4;
  padding: 8px 14px;
  border-radius: 4px;
  max-width: 600px;
  &.woocommerce {
    margin: 25px 0;
    &.green {
      background-color: #2ac14b;
      color: #fff;
    }
  }
  svg {
    vertical-align: text-bottom;
    margin-right: 5px;
  }
}


#performance-kit .woocommerce_wrapper.active:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.6);
  z-index: 9; 
}

#performance-kit input[type="number"],
#performance-kit input[type="text"] {
  min-height: 35px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: inset 0px 0px 4px rgba(0, 0, 0, 0.05);
  min-width: 280px; 
}

.toplevel_page_performance-kit {
  &.current {
    img {
      opacity: 1!important;
    }
  }
}

#performance-kit .notice.is-dismissible {
	margin-top: 10px;
	margin-bottom: -10px;
	border-color: #e8e8e8;
	border-left-color: #46b450;
}