:host {
  box-sizing: border-box;
}

.range-container {
  display: flex;
  flex-direction: column;
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-regular);
  font-size: var(--typography-size-body-sm);
  line-height: var(--line-height-body-sm);
  letter-spacing: var(--font-letter-spacing-default);
  user-select: none;

  .form-control {
    position: relative;
    display: flex;
    justify-self: center;
    align-self: center;
    gap: 4px;
    color: var(--color-text-action);
  }

  .sliders-control {
    position: relative;
  }

  @mixin range-style {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    pointer-events: all;
    width: 24px;
    height: 24px;
    background: var(--color-surface-primary);
    border: var(--border-size-sm) solid var(--color-icon-action);
    border-radius: var(--border-radius-round);
    box-shadow: 0 0 0 1px var(--color-icon-action);
    cursor: pointer;
  }

  input[type="range"]::-moz-range-thumb {
    @include range-style;
  }

  input[type="range"]::-webkit-slider-thumb {
    @include range-style;
  }

  input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    height: 12px;
    width: 100%;
    position: absolute;
    background-color: var(--color-surface-disabled);
    &.from-slider {
      height: 0;
      z-index: 1;
      margin-top: 8px;
    }
  }

  .range-label {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 1rem;
    color: var(--color-text-disabled);
  }
}
