@import 'constants/index.scss';

$toast-width: 360px;

.toastWrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  z-index: $z-index + 10;
  overflow: hidden;
  * {
    -webkit-font-smoothing: antialiased;
  }
}

.toastOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0;
  transition: 0.2s linear;
  &.toastActive {
    opacity: 0.4 !important;
  }
}

.toast {
  opacity: 0;
  position: absolute;
  z-index: 2;
  background-color: #fff;
  outline: none;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  transition: 0.5s cubic-bezier(0.175, 0.5, 0.12, 1);
  transform: translate3d(-50%, 0, 0);
  bottom: 32px;
  left: 50%;
  min-width: 40vw;
  border-radius: 5px;
  * {
    font-family: 'Roboto', sans-serif;
  }

  &.toastActive {
    opacity: 1 !important;
    transform: translate3d(-50%, -50%, 0) !important;
  }
}
