$root: 'slider';

.#{$root} {
  padding-top: 30px;
  width: 100%;

  &--disabled {
    opacity: 0.6;
    pointer-events: none;
  }

  &__thumb {
    align-items: center;
    background: linear-gradient(180deg, #f5f0eb 0%, #e6e4e1 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.1);
    color: #000;
    cursor: pointer;
    display: flex;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 600;
    height: 25px;
    justify-content: center;
    letter-spacing: 1px;
    line-height: 15px;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    transition: height 200ms linear;
    width: 59px;
    outline: none;

    &--disabled {
      background: linear-gradient(180deg, rgb(204, 204, 204) 0%, rgb(166, 166, 166) 100%);
      border: none;
      box-shadow: none;
      color: rgb(103, 106, 115);
    }

    &::after {
      background: rgba(0, 0, 0, 0.1);
      border-bottom-left-radius: 5px;
      border-bottom-right-radius: 5px;
      bottom: 0;
      content: '';
      height: 0;
      position: absolute;
      width: 100%;
    }

    &::before {
      border: 1px solid rgba(0, 0, 0, 0.3);
      bottom: 3px;
      content: '';
      display: none;
      left: 50%;
      position: absolute;
      transform: translate(-50%, -50%);
      width: 29px;
    }

    &:hover {
      height: 35px;
      padding-bottom: 10px;
      transition: padding-bottom 200ms linear;
      z-index: 3 !important;

      &::after {
        background: rgba(0, 0, 0, 0.1);
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        bottom: 0;
        content: '';
        height: 10px;
        position: absolute;
        transition: height 200ms linear;
        width: 100%;
      }

      &::before {
        display: block;
      }
    }
  }

  &__thumb-text {
    text-align: center;
    width: 49px;
  }

  &__track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    height: 4px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    &:nth-of-type(2) {
      background-color: #f29f85;
    }

    &--disabled {
      &:nth-of-type(2) {
        background-color: rgb(128, 128, 128);
      }
    }
  }
}
