/**
 * checkbox styles from pretty-checkbox.css
 * only those we need: .pretty, .state, .p-warning-o
 * .p-default was removed (.pretty.p-default) - we don't use any alt classes
 * 
 * A pure CSS library to beautify checkbox and radio buttons
 *
 * Source: https://github.com/lokesh-coder/pretty-checkbox
 * Demo: https://lokesh-coder.github.io/pretty-checkbox
 *
 * Copyright (c) 2017 Lokesh rajendran
 */

.pretty {
  position: relative;
  display: inline-block;
  margin-right: .5em;
  white-space: nowrap;
  line-height: 1;
}

.pretty input {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 1em;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.pretty .state label {
  position: initial;
  display: inline-block;
  font-weight: normal;
  margin: 0;
  text-indent: 1.5em;
  min-width: calc(1em + 2px);
}

.pretty .state label:before,
.pretty .state label:after {
  content: '';
  width: calc(1em + 2px);
  height: calc(1em + 2px);
  display: block;
  box-sizing: border-box;
  border-radius: 0;
  border: 1px solid transparent;
  z-index: 0;
  position: absolute;
  left: 0;
  top: calc((0% - (100% - 1em)) - 8%);
  background-color: transparent;
}

.pretty .state label:before {
  border-color: var(--wp--preset--color--medium-light-grey);
}

.pretty .state label:after {
  transform: scale(0.6);
}

.pretty input:checked ~ .state label:after {
  background-color: var(--wp--preset--color--medium-light-grey) !important;
}

.pretty input:checked ~ .state.p-warning-o label:before {
  border-color: var(--wp--preset--color--medium-orange);
}

.pretty input:checked ~ .state.p-warning-o label:after {
  background-color: transparent;
}

.pretty:not(.p-fill) input:checked ~ .state.p-warning-o label:after {
  background-color: var(--wp--preset--color--medium-orange) !important;
}

/*print preview mode if it's ever used - prefixes still required*/
@media print {
  .pretty .state:before,
  .pretty .state label:before,
  .pretty .state label:after,
  .pretty .state .icon {
    color-adjust: exact;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}