#toasts {
  min-height: 0;
  position: fixed;
  right: 20px;
  top: 20px;
  width: 400px;
  z-index: 1100;
}

#toasts .toast {
  z-index: 1100;
  background: #BCBCBC;
  border-radius: 4px;
  box-shadow: 4px 4px 3px rgba(0, 0, 0, .5);
  color: navy;
  cursor: default;
  margin: 10px;
  opacity: 0;
  position: relative;
  padding: 10px;
  font-size: 115%;
  transform: translateY(15%);
  transition: opacity .5s ease-in-out, transform .5s ease-in-out;
  width: 100%;
  will-change: opacity, transform;
} 

#toasts .success {
  background: #26d68a;
  border: 2px solid #188656;
}

#toasts .warning {
  background: #ffa533;
  border: 2px solid #aa6d22;
}

#toasts .info {
  background: #fcfc9f;
  border: 2px solid #b9b975;
}

#toasts .error {
  background: #f44336;
  border: 2px solid #ab2e26;
}

#toasts .toast.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s ease-in-out, transform .5s ease-in-out;
}

#toasts .toast.hide {
  height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: all .5s ease-in-out;
}

#toasts .toast .close {
  cursor: pointer;
  font-size: 24px;
  height: 16px;
  margin-top: -10px;
  font-weight: bolder;
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
}
