@import 'scss/styles.scss';

.range-slider-holder {
  .ngx-slider-selection-bar {
    width: auto !important;
  }
}

.filter-middle-holder {
  padding-top: 4px;
  width: 100%;

  &.location-middle-padding {
    padding-top: 16px;
    overflow: hidden !important;
  }

  &.location-slider-middle-padding {
    padding-top: 12px;
    padding-bottom: 8px;
    overflow: hidden !important;
    .ta-ngx-slider,
    .custom-slider-commission {
      margin-bottom: 7px !important;
    }
  }

  .range-text {
    padding-left: 4px;
    padding-right: 8px;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    color: $white-2;
  }

  .range-flex-holder {
    width: 100%;

    .ta-ngx-slider,
    .custom-slider-commission {
      margin-top: 8px;
      margin-bottom: 8px;

      .custom-slider-text {
        margin-bottom: 0px !important;
      }

      .ngx-slider {
        height: 6px;
        margin: 0 !important;

        .ngx-slider-bar {
          border-radius: 4px;
          background: $ta-black;
        }

        .ngx-slider-pointer {
          width: 40px;
          height: 18px;
          box-shadow: none !important;
          border: none !important;
          outline: none !important;
          opacity: 0 !important;
        }

        .ngx-slider-selection {
          background-color: $ta-blue-9 !important;
        }

        .ngx-slider-bubble {
          position: absolute;
          top: -7.5px;
          width: 40px;
          height: 18px;
          display: flex;
          justify-content: center;
          align-items: center;

          color: $white-2 !important;
          font-size: 11px !important;

          background-color: $bw6-2;
          font-weight: bold !important;

          border-radius: 2px;
          box-shadow: 0 0 4px rgb(0 0 0 / 16%) !important;
          z-index: 1;
          cursor: pointer;

          &::after {
            padding-left: 2px;
            content: 'mi';
          }
        }

        .ngx-slider-combined {
          opacity: 0 !important;
          width: 0px !important;
          padding: 0px !important;
        }
      }
    }
  }

  &.slider-two-holder {
    padding-left: 4px;
    padding-right: 4px;

    .ta-ngx-slider,
    .custom-slider-commission {
      .ngx-slider-pointer {
        width: 24px;
        height: 24px;
      }

      .ngx-slider-bubble {
        width: 24px;
        height: 24px;
        overflow: hidden;
        &::after {
          content: '';
        }
      }

      .ngx-slider-pointer-min {
        background-color: $white-2 !important;
        border-radius: 2px !important;
        box-shadow: 0px 0px 4px rgb(0 0 0 / 15%) !important;
      }

      .ngx-slider-pointer-max {
        background-color: $white-2 !important;
        border-radius: 2px !important;
        box-shadow: 0px 0px 4px rgb(0 0 0 / 15%) !important;
      }
    }
    .ta-ngx-slider,
    .money-slider-filter {
      .ngx-slider-bubble {
        display: none;
      }
      .ngx-slider-bar {
        border-radius: 4px;
        background: $ta-black;
      }
      .ngx-slider-pointer {
        width: 24px;
        height: 18px;
      }
      .ngx-slider-pointer-min {
        background-color: $ta-blue-18 !important;
        border-radius: 2px !important;
        box-shadow: 0px 0px 4px rgb(0 0 0 / 15%) !important;
        outline: none;
      }

      .ngx-slider-pointer-max {
        background-color: $ta-blue-18 !important;
        border-radius: 2px !important;
        box-shadow: 0px 0px 4px rgb(0 0 0 / 15%) !important;
        outline: none;
      }
      .ngx-slider-selection {
        background: $ta-black !important;
      }
    }
  }

  &.closePointers {
    .ta-ngx-slider,
    .custom-slider-commission {
      .ngx-slider-pointer-min {
        box-shadow: 0.3px -0.49px 4.4px rgb(0 0 0 / 30%) !important;
        outline: none;
      }

      .ngx-slider-pointer-max {
        box-shadow: 0.3px -0.49px 4.4px rgb(0 0 0 / 30%) !important;
        outline: none;
      }
    }
  }

  &.areaFilterPadding {
    padding-bottom: 10px;
  }
}
