/* Copyright (c) Jupyter Development Team.
 * Distributed under the terms of the Modified BSD License.
 */

/* Custom CSS for nouislider */

.noUi-connect {
  background: rgb(33, 150, 243);
}

.noUi-horizontal {
  height: var(--jp-widgets-slider-track-thickness);
}

.noUi-vertical {
  width: var(--jp-widgets-slider-track-thickness);
  height: 100%;
}

.noUi-horizontal .noUi-handle {
  width: var(--jp-widgets-slider-handle-size);
  height: var(--jp-widgets-slider-handle-size);
  border-radius: 50%;
  top: calc(
    (
        var(--jp-widgets-slider-track-thickness) -
          var(--jp-widgets-slider-handle-size)
      ) / 2
  );
  right: calc(var(--jp-widgets-slider-handle-size) / -2);
}

.noUi-vertical .noUi-handle {
  height: var(--jp-widgets-slider-handle-size);
  width: var(--jp-widgets-slider-handle-size);
  border-radius: 50%;
  right: calc(
    (
        var(--jp-widgets-slider-handle-size) -
          var(--jp-widgets-slider-track-thickness)
      ) / -2
  );
  top: calc(var(--jp-widgets-slider-handle-size) / -2);
}

.noUi-handle:after {
  content: none;
}

.noUi-handle:before {
  content: none;
}

.noUi-target {
  background: #fafafa;
  border-radius: 4px;
  border: 1px;
  /* box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB; */
}

.ui-slider {
  border: var(--jp-widgets-slider-border-width) solid var(--jp-layout-color3);
  background: var(--jp-layout-color3);
  box-sizing: border-box;
  position: relative;
  border-radius: 0px;
}

.noUi-handle {
  width: var(--jp-widgets-slider-handle-size);
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: #fff;
  cursor: default;
  box-shadow: none;
  outline: none;
}

.noUi-target:not([disabled]) .noUi-handle:hover,
.noUi-target:not([disabled]) .noUi-handle:focus {
  background-color: var(--jp-widgets-slider-active-handle-color);
  border: var(--jp-widgets-slider-border-width) solid
    var(--jp-widgets-slider-active-handle-color);
}

[disabled].noUi-target {
  opacity: 0.35;
}

.noUi-connects {
  overflow: visible;
  z-index: 0;
  background: var(--jp-layout-color3);
}

.noUi-vertical .noUi-connect {
  width: calc(100% + 2px);
  right: -1px;
}

.noUi-horizontal .noUi-connect {
  height: calc(100% + 2px);
  top: -1px;
}
