@mixin bottom-sheet ($bgcolor, $fontcolor) {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: 999999;
  animation: bottom-sheet-fade 0.5s forwards;
  .lea-bottom-sheet {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background-color: $white;
    box-shadow: 4px -4px 8px rgba($color: $black, $alpha: 0.2);
    border-radius: #{$border-radius} #{$border-radius} 0 0;
    animation: bottom-sheet 0.5s forwards;
    background-color: $bgcolor;
    color: $fontcolor;
    transition: background-color 1s, color 1s;
  }

  @keyframes bottom-sheet-fade {
    0% {
      background-color: rgba($color: $black, $alpha: 0);
    }
    100% {
      background-color: rgba($color: $black, $alpha: 0.5);
    }
  }

  @keyframes bottom-sheet {
    0% {
      bottom: -100vh;
    }
    100% {
      bottom: 0;
    }
  }
}

.lea-bottom-sheet-container{
    @include bottom-sheet ($white, $black);
}

.dark-mode .lea-bottom-sheet-container{
    @include bottom-sheet ($darker-grey, $white);
}
