/*!
 * VILLAGE v0.0.3 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions)
 */
@charset "UTF-8";

/* ¯¯¯¯¯¯¯¯¯ *\
  RANGE
\* ˍˍˍˍˍˍˍˍˍ */
.village-range-group {
  position: relative;
}

.village-range-group--valid::before,
.village-range-group--error::before {
  content: "";
  display: block;
  pointer-events: none;
  position: absolute;
  top: 0;
  right: -0.75rem;
  bottom: 0;
  left: -0.75rem;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0.125rem 100%;
}

.village-range {
  --thumb-size: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}

.village-range input[type=range] {
  outline: none;
  width: 100%;
}

.village-range__output {
  visibility: hidden;
  color: var(--text-active-village-primary);
}

.village-range__output,
.village-range__min,
.village-range__max {
  text-align: center;
  min-width: var(--thumb-size);
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.village-range[data-village-js-range] {
  --progress-left: 0;
  --progress-right: calc(var(--thumb-size) * 0.5);
}

.village-range[data-village-js-range]::before,
.village-range[data-village-js-range]::after {
  content: "";
  display: block;
  position: absolute;
  top: 1.625rem;
  right: 0;
  left: 0;
  width: 100%;
  height: 0.75rem;
  border-radius: 0.375rem;
}

.village-range[data-village-js-range]::before {
  outline-offset: -1px;
  box-shadow: inset 0 0 0 1px var(--border-action-high-village-primary);
}

.village-range[data-village-js-range]::after {
  clip-path: polygon(var(--progress-left) 0, var(--progress-right) 0, var(--progress-right) 100%, var(--progress-left) 100%);
  background-color: var(--background-active-village-primary);

  --idle: transparent;
  --hover: var(--background-active-village-primary-hover);
  --active: var(--background-active-village-primary-active);
}

.village-range[data-village-js-range] input[type=range] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  width: 100%;
  height: var(--thumb-size);
  z-index: 1;
}

.village-range[data-village-js-range] input[type=range]:not(:only-of-type) {
  pointer-events: none;
}

.village-range[data-village-js-range] input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  border: none;
  pointer-events: auto;
  z-index: calc(var(--ground) + 500);
  background-color: var(--background-raised-grey);
  --hover: var(--background-raised-grey-hover);
  --active: var(--background-raised-grey-active);
  filter: drop-shadow(var(--raised-shadow));
  background-color: var(--background-default-grey);

  --idle: transparent;
  --hover: var(--background-default-grey-hover);
  --active: var(--background-default-grey-active);
  border: 1px solid var(--border-action-high-village-primary);
}

.village-range[data-village-js-range] input[type=range]::-webkit-slider-thumb:active {
  z-index: 2;
}

.village-range[data-village-js-range] input[type=range]::-moz-range-thumb {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  border: none;
  pointer-events: auto;
  z-index: calc(var(--ground) + 500);
  background-color: var(--background-raised-grey);
  --hover: var(--background-raised-grey-hover);
  --active: var(--background-raised-grey-active);
  filter: drop-shadow(var(--raised-shadow));
  background-color: var(--background-default-grey);

  --idle: transparent;
  --hover: var(--background-default-grey-hover);
  --active: var(--background-default-grey-active);
  border: 1px solid var(--border-action-high-village-primary);
}

.village-range[data-village-js-range] input[type=range]::-moz-range-thumb:active {
  z-index: 2;
}

.village-range[data-village-js-range] .village-range__output {
  visibility: visible;
}

.village-range--sm {
  --thumb-size: 1rem;
}

.village-range--sm[data-village-js-range]::before,
.village-range--sm[data-village-js-range]::after {
  top: 1.5rem;
  height: 0.5rem;
  border-radius: 0.25rem;
}

.village-range--step[data-village-js-range] {
  --step-width: 0;
}

.village-range--step[data-village-js-range]::before,
.village-range--step[data-village-js-range]::after {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  background-repeat: repeat-x;
  background-size: var(--step-width) 100%;
  background-position: 0.625rem 0;
  background-clip: content-box;
}

.village-range--step.village-range--sm[data-village-js-range]::before,
.village-range--step.village-range--sm[data-village-js-range]::after {
  background-position: 0.375rem 0;
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}

.village-range--double .village-range__output {
  min-width: calc(var(--thumb-size) * 2);
}

.village-range--double[data-village-js-range] input[type=range] {
  width: calc(100% - var(--thumb-size));
}

.village-range--double[data-village-js-range] input[type=range]:nth-of-type(1) {
  margin-right: var(--thumb-size);
}

.village-range--double[data-village-js-range] input[type=range]:nth-of-type(2) {
  position: absolute;
  right: 0;
  top: 1.25rem;
}

.village-range--double.village-range--step[data-village-js-range]::before,
.village-range--double.village-range--step[data-village-js-range]::after {
  background-size: 0;
}

.village-range[data-village-js-range] input[type=range]:disabled::-webkit-slider-thumb {
  border: 1px solid var(--border-disabled-grey);
}

.village-range[data-village-js-range] input[type=range]:disabled::-moz-range-thumb {
  border: 1px solid var(--border-disabled-grey);
}

.village-range__min,
.village-range__max {
  color: var(--text-mention-grey);
}

.village-range--step[data-village-js-range]::before {
  background-image: radial-gradient(circle at 2px 50%, var(--background-action-high-village-primary) 0, var(--background-action-high-village-primary) 1px, transparent 1px);
}

.village-range--step[data-village-js-range]::after {
  background-image: radial-gradient(circle at 2px 50%, var(--background-action-low-village-primary) 0, var(--background-action-low-village-primary) 2px, transparent 2px);
  box-shadow: inset 10px 0 0 0 var(--border-active-village-primary), inset -10px 0 0 0 var(--border-active-village-primary);
}

.village-range--step.village-range--sm[data-village-js-range]::after {
  box-shadow: inset 6px 0 0 0 var(--border-active-village-primary), inset -6px 0 0 0 var(--border-active-village-primary);
}

.village-range-group--error::before {
  background-image: linear-gradient(0deg, var(--border-plain-error), var(--border-plain-error));
}

.village-range-group--valid::before {
  background-image: linear-gradient(0deg, var(--border-plain-success), var(--border-plain-success));
}

.village-range-group--disabled .village-range[data-village-js-range]::before {
  box-shadow: inset 0 0 0 1px var(--border-disabled-grey);
}

.village-range-group--disabled .village-range[data-village-js-range]::after {
  background-color: var(--background-disabled-grey);

  --idle: transparent;
  --hover: var(--background-disabled-grey-hover);
  --active: var(--background-disabled-grey-active);
}

.village-range-group--disabled .village-range--step[data-village-js-range]::before {
  background-image: radial-gradient(circle at 2px 50%, var(--background-disabled-grey) 0, var(--background-disabled-grey) 1px, transparent 1px);
}

.village-range-group--disabled .village-range--step[data-village-js-range]::after {
  background-image: radial-gradient(circle at 2px 50%, var(--background-default-grey) 0, var(--background-default-grey) 2px, transparent 2px);
}

.village-range-group--disabled .village-range__output,
.village-range-group--disabled .village-range__min,
.village-range-group--disabled .village-range__max {
  color: var(--text-disabled-grey);
}
@media (min-width: 36em) {
  /*! media sm */

  /*! media sm */
}
@media (min-width: 48em) {
  /*! media md */

  /*! media md */
}
@media (min-width: 62em) {
  /*! media lg */

  /*! media lg */
}
@media (min-width: 78em) {
  /*! media xl */

  /*! media xl */
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .village-range__output,
  .village-range__min,
  .village-range__max {
    min-width: 1.5rem;
  }

  .village-range input[type=range] {
    padding: 0;
  }

  .village-range[data-village-js-range] {
    justify-content: flex-start;
  }

  .village-range[data-village-js-range]::after {
    content: none;
    background-color: hsl(180, 75%, 25%);
  }

  .village-range[data-village-js-range] .village-range__max {
    margin-left: auto;
  }

  .village-range[data-village-js-range] input[type=range] {
    margin-top: -0.25rem;
  }

  .village-range[data-village-js-range] input[type=range]::-ms-track {
    height: 0.75rem;
    background: transparent;
    border-color: transparent;
    border-width: 0.625rem 0;
    color: transparent;
  }

  .village-range[data-village-js-range] input[type=range]::-ms-fill-lower {
    height: 0.75rem;
    border-radius: 0.375rem;
  }

  .village-range[data-village-js-range] input[type=range]::-ms-thumb {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    z-index: 500;
    background-color: #fff;
    border: 1px solid hsl(180, 75%, 25%);
  }

  .village-range[data-village-js-range] input[type=range]:not(:only-of-type) {
    pointer-events: auto;
  }

  .village-range[data-village-js-range].village-range--double {
    background-position-y: 1.625rem;
    background-repeat: no-repeat;
  }

  .village-range[data-village-js-range].village-range--double .village-range__output {
    min-width: 3rem;
  }

  .village-range[data-village-js-range].village-range--double input[type=range] {
    width: calc(100% - 1.5rem);
  }

  .village-range[data-village-js-range].village-range--double input[type=range]::-ms-fill-lower {
    background-color: transparent;
  }

  .village-range[data-village-js-range].village-range--double input[type=range]:nth-of-type(1) {
    margin-right: 1.5rem;
    z-index: 2;
  }

  .village-range[data-village-js-range].village-range--double input[type=range]:nth-of-type(2) {
    left: 1.5rem;
  }

  .village-range--sm[data-village-js-range] .village-range__output,
  .village-range--sm[data-village-js-range] .village-range__min,
  .village-range--sm[data-village-js-range] .village-range__max {
    min-width: 1rem;
  }

  .village-range--sm[data-village-js-range] input[type=range]::-ms-track {
    height: 0.5rem;
    border-width: 0.5rem 0;
  }

  .village-range--sm[data-village-js-range] input[type=range]::-ms-fill-lower {
    height: 0.5rem;
  }

  .village-range--sm[data-village-js-range] input[type=range]::-ms-thumb {
    width: 1rem;
    height: 1rem;
  }

  .village-range--sm[data-village-js-range].village-range--double {
    background-position-y: 1.5rem;
  }

  .village-range--sm[data-village-js-range].village-range--double .village-range__output {
    min-width: 2rem;
  }

  .village-range--sm[data-village-js-range].village-range--double input[type=range] {
    width: calc(100% - 1rem);
  }

  .village-range--sm[data-village-js-range].village-range--double input[type=range]:nth-of-type(1) {
    margin-right: 1rem;
  }

  .village-range--sm[data-village-js-range].village-range--double input[type=range]:nth-of-type(2) {
    left: 1rem;
  }

  .village-range[data-village-js-range]::before {
    box-shadow: inset 0 0 0 1px hsl(180, 75%, 25%);
  }

  .village-range[data-village-js-range] input[type=range]:disabled::-ms-thumb {
    border: 1px solid #e5e5e5;
  }

  .village-range__output {
    color: hsl(180, 75%, 25%);
  }

  .village-range__min,
  .village-range__max {
    color: #666;
  }

  .village-range--step[data-village-js-range]::before {
    background-image: radial-gradient(circle at 2px 50%, hsl(180, 75%, 25%) 0, hsl(180, 75%, 25%) 1px, transparent 1px);
  }

  .village-range--step[data-village-js-range]::after {
    background-image: radial-gradient(circle at 2px 50%, hsl(180, 80%, 93%) 0, hsl(180, 80%, 93%) 2px, transparent 2px);
    box-shadow: inset 10px 0 0 0 hsl(180, 75%, 25%), inset -10px 0 0 0 hsl(180, 75%, 25%);
  }

  .village-range--step.village-range--sm[data-village-js-range]::after {
    box-shadow: inset 6px 0 0 0 hsl(180, 75%, 25%), inset -6px 0 0 0 hsl(180, 75%, 25%);
  }

  .village-range-group--error::before {
    background-image: linear-gradient(0deg, hsl(0, 45%, 43%), hsl(0, 45%, 43%));
  }

  .village-range-group--valid::before {
    background-image: linear-gradient(0deg, hsl(90, 45%, 43%), hsl(90, 45%, 43%));
  }

  .village-range-group--disabled .village-range[data-village-js-range]::before {
    box-shadow: inset 0 0 0 1px #e5e5e5;
  }

  .village-range-group--disabled .village-range[data-village-js-range]::after {
    background-color: #e5e5e5;
  }

  .village-range-group--disabled .village-range--step[data-village-js-range]::before {
    background-image: radial-gradient(circle at 2px 50%, #e5e5e5 0, #e5e5e5 1px, transparent 1px);
  }

  .village-range-group--disabled .village-range--step[data-village-js-range]::after {
    background-image: radial-gradient(circle at 2px 50%, #fff 0, #fff 2px, transparent 2px);
  }

  .village-range-group--disabled .village-range__output,
  .village-range-group--disabled .village-range__min,
  .village-range-group--disabled .village-range__max {
    color: #929292;
  }
}
@media all and (-ms-high-contrast: none) and (-ms-high-contrast: none), (-ms-high-contrast: none) and (-ms-high-contrast: active), (-ms-high-contrast: active) and (-ms-high-contrast: none), (-ms-high-contrast: active) and (-ms-high-contrast: active) {
  .village-range[data-village-js-range] input[type=range]::-ms-fill-lower {
    background-color: hsl(180, 75%, 25%);
  }

  .village-range[data-village-js-range] input[type=range]:disabled::-ms-fill-lower {
    background-color: #e5e5e5;
  }

  .village-range[data-village-js-range].village-range--double {
    background-image: linear-gradient(to right, hsl(180, 75%, 25%) 0, hsl(180, 75%, 25%) 100%);
  }
}
