/* prettier-ignore */
:host small {
  position: absolute;
  font-size: 12px;
  bottom: -16px;
  left: 12px;
  text-align: left;
  transition: left 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
:host small:before {
  content: "|";
  position: absolute;
  left: -6px;
  font-weight: 100;
}

:host([disabled]) small {
  color: var(--bce-color-disable-n);
}

:host([focus]) small {
  color: var(--bce-color-n);
}

:host([error]) bce-label {
  color: var(--bce-color-error-n);
}
:host([error]) small {
  color: var(--bce-color-error-n);
}

@media screen and (min-width: 1024px) {
  :host(:not([compact])[label]) small {
    left: calc(25% + 12px);
  }
}
:host {
  --bce-color-l: var(--bce-color-primary-l);
  --bce-color-n: var(--bce-color-primary-n);
  --bce-color-d: var(--bce-color-primary-d);
  --bce-color-t: var(--bce-color-primary-t);
  position: relative;
  display: inline-block;
}
:host input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  cursor: pointer;
  background: linear-gradient(to right, var(--bce-color-n) var(--fill-width, 50%), var(--bce-color-light-d) 0);
}
:host input[type=range]::-webkit-slider-thumb {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background-color: var(--bce-color-n);
  border-radius: 50%;
}
:host input[type=range]::-moz-range-thumb {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  width: 14px;
  height: 14px;
  background-color: var(--bce-color-n);
  border-radius: 50%;
  border: none;
}

:host([block]),
:host([label]) {
  display: flex;
  flex-flow: column nowrap;
  margin: 20px 0;
  min-height: 40px;
}
:host([block]) input,
:host([label]) input {
  margin: 16px 0;
}

@media screen and (min-width: 1024px) {
  :host([label]) {
    flex-flow: row nowrap;
    align-items: center;
  }
  :host([label]) bce-label {
    flex: 1 0 25%;
  }
  :host([label]) input {
    margin: 0;
    flex: 0 0 75%;
  }
}