@import 'moda-themes/themes';
@import '02-ocl/01-ocl-font-styles.scss';
@import 'fontcustom/fontcustom.scss';

.SizeSlider {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 5px 0px;
  height: 32px;

  &__Rail {
    white-space: nowrap;
    transition: transform 200ms;
  }

  &__Viewer {
    overflow: hidden;
    width: 100%;
  }

  &__Cell {
    width: 50%;
    display: inline-flex;
    justify-content: space-evenly;
    text-align: center;
  }

  &__Item {
    font-family: font-family('sans');
    color: color('black');
    border: 1px solid color('cashmere');
    background-color: color('white');
    padding: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    font-size: 12px;
    line-height: 20px;
    flex: 1 1 0;
    width: 0;
    margin: 0px 5px;
    user-select: none;

    &:hover {
      background-color: color('noise');
      outline: none;
    }

    &:active {
      border: 1px solid color('black');
      background-color: color('noise');
      outline: none;
    }

    &--selected {
      border: 1px solid color('black');
      outline: none;
    }
  }

  &__Item--sold-out {
    color: color('cashmere');
    outline: none;
    background: linear-gradient(
      to bottom right,
      #fff calc(50% - 1px),
      color('cashmere'),
      #fff calc(50% + 1px)
    );
  }

  &__Arrow {
    border: none;
    font-size: 16px;
    outline: 0;
    cursor: pointer;
    z-index: 2;
    text-decoration: none;
    background-color: color('white');

    &::before {
      color: color('nokia');
    }

    &:disabled {
      pointer-events: none;
      cursor: initial;
      color: color('nokia');
    }
  }
}
