.lea-snackbar {
  width: 300px;
  max-width: 100%;
  position: fixed;
  z-index: 99999;

  &.top {
    animation: snackbar-top 0.5s forwards ease;
    top: 2rem;
    right: 2rem;
  }

  &.bottom {
    animation: snackbar-bottom 0.5s forwards ease;
    bottom: 2rem;
    right: 50%;
    transform: translate(50%);
  }
}

.lea-snackbar-container {
  position: relative;
  float: left;
  width: 100%;
  padding: 1rem;
  background-color: #fafafa;
  border-left: 8px solid $accent;
  border-radius: $border-radius;
  box-shadow: 2px 2px 6px rgba($color: $black, $alpha: 0.1);
  box-sizing: border-box;
  font-size: 0.6rem;
  color: $dark-grey;

  &.success {
    border-left-color: $green;
  }

  &.error {
    border-left-color: $red;
  }

  &.accent {
    border-left-color: $accent;
  }

  .lea-snackbar-close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.75);
  }

  .lea-snackbar-content-container {
    display: flex;

    .lea-snackbar-content {
      display: flex;
      align-items: center;
      flex: 1;
      font-size: 14px;
      padding-right: .5rem;
    }
  }
}

@keyframes snackbar-top {
  0% {
    right: -500px;
  }

  50% {
    right: 3rem;
  }

  100% {
    right: 2rem;
  }
}

@keyframes snackbar-bottom {
  0% {
    bottom: -500px;
  }

  50% {
    bottom: 3rem;
  }

  100% {
    bottom: 2rem;
  }
}