/* =========================================
   TEXT UTILITIES
========================================= */

.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* =========================================
   TOAST ANIMATIONS
========================================= */

.toast-enter {
  animation: toastEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-exit {
  animation: toastExit 0.25s ease-in forwards;
}

.toast-progress {
  width: 100%;
  transform-origin: left;
  animation: toastProgress 3s linear forwards;
}


/* Toast Entry */

@keyframes toastEnter {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}


/* Toast Exit */

@keyframes toastExit {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(30px) scale(0.96);
  }
}


/* Toast Progress */

@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}


/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

  .toast-enter,
  .toast-exit,
  .toast-progress {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }

}
