@use "variables";
@use "global";

#toast-container {
  display:block;
  position: fixed;
  z-index: 10000;

  @media #{variables.$small-and-down} {
    min-width: 100%;
    bottom: 0%;
  }
  @media #{variables.$medium-only} {
    left: 5%;
    bottom: 7%;
    max-width: 90%;
  }
  @media #{variables.$large-and-up} {
    top: 10%;
    right: 7%;
    max-width: 86%;
  }
}

.toast {
  @extend .z-depth-1 !optional;
  border-radius: 2px;
  top: 35px;
  width: auto;
  margin-top: 10px;
  position: relative;
  max-width:100%;
  height: auto;
  min-height: variables.$toast-height;
  line-height: 1.5em;
  background-color: variables.$toast-color;
  padding: 10px 25px;
  font-size: 1.1rem;
  font-weight: 300;
  color: variables.$toast-text-color;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: default;

  // Smooth transitions for position changes when toasts are added/removed
  transition: transform 300ms cubic-bezier(0.215, 0.61, 0.355, 1),
              opacity 300ms cubic-bezier(0.215, 0.61, 0.355, 1),
              margin-top 300ms cubic-bezier(0.215, 0.61, 0.355, 1),
              max-height 300ms cubic-bezier(0.215, 0.61, 0.355, 1),
              padding-top 300ms cubic-bezier(0.215, 0.61, 0.355, 1),
              padding-bottom 300ms cubic-bezier(0.215, 0.61, 0.355, 1);

  .toast-action {
    color: variables.$toast-action-color;
    font-weight: 500;
    margin-right: -25px;
    margin-left: 3rem;
  }

  &.rounded{
    border-radius: 24px;
  }

  @media #{variables.$small-and-down} {
    width: 100%;
    border-radius: 0;
  }
}
