/*!
 * VILLAGE v0.0.3 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions)
 */
@media print {
  .village-toggle label {
    color: #161616;
  }

  .village-toggle label::before {
    color: hsl(180, 75%, 25%);
    content: "";
    display: block;
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .village-toggle label::after {
    color: hsl(180, 75%, 25%);
    box-shadow: inset 0 0 0 1px hsl(180, 75%, 25%);
    background-color: #fff;
  }

  .village-toggle input[type=checkbox] {
    box-shadow: inset 0 0 0 1px hsl(180, 75%, 25%);
  }

  .village-toggle input[type=checkbox]:checked {
    background-color: hsl(180, 75%, 25%);
  }

  .village-toggle input[type=checkbox]:disabled {
    box-shadow: inset 0 0 0 1px #e5e5e5;
  }

  .village-toggle input[type=checkbox]:disabled:checked {
    background-color: #e5e5e5;
  }

  .village-toggle input[type=checkbox]:disabled ~ .village-toggle__label::before {
    color: #929292;
  }

  .village-toggle input[type=checkbox]:disabled ~ .village-toggle__label::after {
    color: #929292;
    box-shadow: inset 0 0 0 1px #e5e5e5;
  }

  .village-toggle .village-hint-text {
    color: #666;
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .village-toggle--border-bottom {
    box-shadow: inset 0 -1px 0 0 #ddd;
  }

  .village-toggle--error label,
  .village-fieldset--error .village-toggle label {
    color: hsl(0, 45%, 43%);
  }

  .village-toggle--error label::before,
  .village-fieldset--error .village-toggle label::before {
    color: hsl(0, 45%, 43%);
  }

  .village-toggle--error label::after,
  .village-fieldset--error .village-toggle label::after {
    box-shadow: inset 0 0 0 1px hsl(0, 45%, 43%);
  }

  .village-toggle--valid label,
  .village-fieldset--valid .village-toggle label {
    color: hsl(90, 45%, 43%);
  }

  .village-toggle--valid label::before,
  .village-fieldset--valid .village-toggle label::before {
    color: hsl(90, 45%, 43%);
  }

  .village-toggle--valid label::after,
  .village-fieldset--valid .village-toggle label::after {
    box-shadow: inset 0 0 0 1px hsl(90, 45%, 43%);
  }
}
@media print and (-ms-high-contrast: none), print and (-ms-high-contrast: active) {
  .village-toggle label::before {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='40' stroke='hsl(180, 75%, 25%)' height='24' viewBox='0 0 40 24' fill='transparent' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='39' height='23' rx='11.5' /%3E%3C/svg%3E");
  }

  .village-toggle input[type=checkbox]:checked ~ .village-toggle__label::before {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='40' stroke='hsl(180, 75%, 25%)' height='24' viewBox='0 0 40 24' fill='hsl(180, 75%, 25%)' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='39' height='23' rx='11.5' /%3E%3C/svg%3E");
  }

  .village-toggle input[type=checkbox]:checked ~ .village-toggle__label::after {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='hsl(180, 75%, 25%)' d='M10 15.17l9.2-9.2 1.4 1.42L10 18l-6.36-6.36 1.4-1.42z'/%3E%3C/svg%3E");
  }

  .village-toggle input[type=checkbox]:disabled:checked ~ .village-toggle__label::before {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='40' stroke='%23e5e5e5' height='24' viewBox='0 0 40 24' fill='%23e5e5e5' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='39' height='23' rx='11.5' /%3E%3C/svg%3E");
  }

  .village-toggle input[type=checkbox]:disabled:checked ~ .village-toggle__label::after {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23929292' d='M10 15.17l9.2-9.2 1.4 1.42L10 18l-6.36-6.36 1.4-1.42z'/%3E%3C/svg%3E");
  }

  .village-toggle input[type=checkbox]:disabled ~ .village-toggle__label::before {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='40' stroke='%23e5e5e5' height='24' viewBox='0 0 40 24' fill='transparent' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='39' height='23' rx='11.5' /%3E%3C/svg%3E");
  }

  .village-toggle--error label::before,
  .village-fieldset--error .village-toggle label::before {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='40' stroke='hsl(0, 45%, 43%)' height='24' viewBox='0 0 40 24' fill='transparent' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='39' height='23' rx='11.5' /%3E%3C/svg%3E");
  }

  .village-toggle--error input[type=checkbox]:checked ~ .village-toggle__label::before,
  .village-fieldset--error .village-toggle input[type=checkbox]:checked ~ .village-toggle__label::before {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='40' stroke='hsl(0, 45%, 43%)' height='24' viewBox='0 0 40 24' fill='hsl(180, 75%, 25%)' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='39' height='23' rx='11.5' /%3E%3C/svg%3E");
  }

  .village-toggle--valid label::before,
  .village-fieldset--valid .village-toggle label::before {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='40' stroke='hsl(90, 45%, 43%)' height='24' viewBox='0 0 40 24' fill='transparent' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='39' height='23' rx='11.5' /%3E%3C/svg%3E");
  }

  .village-toggle--valid input[type=checkbox]:checked ~ .village-toggle__label::before,
  .village-fieldset--valid .village-toggle input[type=checkbox]:checked ~ .village-toggle__label::before {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='40' stroke='hsl(90, 45%, 43%)' height='24' viewBox='0 0 40 24' fill='hsl(180, 75%, 25%)' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='39' height='23' rx='11.5' /%3E%3C/svg%3E");
  }
}
