/* 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);
  color: var(--bce-con2-surface);
}
:host small:before {
  content: "";
  position: absolute;
  left: -6px;
  font-weight: 100;
}

:host([disabled]) small {
  color: var(--bce-con3-surface);
}

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

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

@media screen and (min-width: 1024px) {
  :host(:not([compact])[label]) small {
    left: calc(25% + 12px);
  }
}
:host {
  --bce-c300:var(--bce-c300-primary);
  --bce-c400:var(--bce-c400-primary);
  --bce-c500:var(--bce-c500-primary);
  --bce-c600:var(--bce-c600-primary);
  --bce-c700:var(--bce-c700-primary);
  --bce-con1:var(--bce-con1-primary);
  --bce-con2:var(--bce-con2-primary);
  --bce-con3:var(--bce-con3-primary);
  --bce-con4:var(--bce-con4-primary);
  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-c500) var(--fill-width, 50%), var(--bce-c500-ghost) 0);
}
:host input[type=range]::-webkit-slider-thumb {
  --bce-c-surface:var(--bce-c001-surface);
  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-c500);
  border-radius: 50%;
}
:host input[type=range]::-moz-range-thumb {
  --bce-c-surface:var(--bce-c001-surface);
  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-c500);
  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%;
  }
}