@use '../abstracts' as *;

/* Molecule - time picker */

.m-time-picker{
  display: flex;
  justify-content: center;
  position: absolute;
  overflow-y: clip;
  width: 100%;
  height: 100%;
  padding: 10px 0 10px 2px;

  loop-scroll-column {
    flex: 1 1 50%;
  }

  &__list {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 40px;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-y: scroll;
    scrollbar-width: none;
    scroll-snap-type: y mandatory;

    &::-webkit-scrollbar {
      display: none;  /* Safari and Chrome */
    }

    &__item{
      display: flex;
      justify-content: center;
      position: relative;
      cursor: pointer;
      scroll-snap-align: start;

      button{
        @extend %buttonUnstyled;
        @include outlineOnFocus($border-radius: 1px);
        width: auto;
        min-width: 0;
        margin: 0;
        padding: toRem(7) toRem(4);
      }
    }
  }

  .disable-scroll {
    overflow-y: hidden;
  }
}

