/* Joinchat Premium settings page */

/* License */
.license-status {
  display: inline-block;
  font-weight: 700;
  color: #00a32a;
  vertical-align: middle;
}

.license-status--inactive {
  font-weight: 700;
  color: #d63638;
}

.license-status .dashicons,
.license-status .dashicons {
  vertical-align: bottom;
}

.license-status + button {
  vertical-align: middle !important;
  margin-left: 20px !important;
}

.joinchat-ad {
  display: inline-block;
  padding: 2px 7px;
  margin: 2px 0;
  border: 1px dashed #f9603a;
  border-radius: 4px;
  background: #fff;
}

/* Checkbox Toggle UI */
.widefat input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  width: auto;
  height: auto;
  vertical-align: middle;
  position: relative;
  border: 0;
  outline: 0;
  cursor: pointer;
  margin: 0 4px;
  background: none;
  box-shadow: none;
}

.widefat input[type="checkbox"]:focus {
  box-shadow: none;
}

.widefat input[type="checkbox"]:after {
  content: '';
  font-size: 8px;
  font-weight: 400;
  line-height: 18px;
  text-indent: -14px;
  color: #ffffff;
  width: 36px;
  height: 18px;
  display: inline-block;
  background-color: #a7aaad;
  border-radius: 72px;
  box-shadow: 0 0 12px rgb(0 0 0 / 15%) inset;
}

.widefat input[type="checkbox"]:before {
  content: '';
  width: 14px;
  height: 14px;
  display: block;
  position: absolute;
  top: 2px;
  left: 2px;
  margin: 0;
  border-radius: 50%;
  background-color: #ffffff;
}

.widefat input[type="checkbox"]:checked:before {
  left: 20px;
  margin: 0;
  background-color: #ffffff;
}

.widefat input[type="checkbox"],
.widefat input[type="checkbox"]:before,
.widefat input[type="checkbox"]:after {
  transition: ease .15s;
}

.widefat input[type="checkbox"]:checked:after {
  content: 'ON';
  background-color: #2271b1;
}

@media (max-width: 782px) {
  .widefat input[type="checkbox"]:checked:before,
  .widefat th input[type="checkbox"]:before,
  .widefat thead td input[type="checkbox"]:before,
  .widefat tfoot td input[type="checkbox"]:before {
    width: 14px;
    height: 14px;
    margin: 0;
  }
}