.alert-message {
  line-height: 20px;
  font-size: 15px;
  padding-bottom: 12px;
}

#alerts {
  width: 400px;
  top: 80px;
  right: 20px;
  position: fixed;
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 0;
}

.alert {
  width: 100%;
  margin-bottom: 8px;
  display: block;
  position: relative;
  border-left: 4px solid;
  right: -450px;
  opacity: 0;
  line-height: 1;
  padding: 0;
  transition: right 400ms, opacity 400ms, line-height 300ms 100ms, padding 300ms 100ms;
  display: table;
  border-radius: 4px;
}

.alert:hover {
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.open {
  right: 0 !important;
  opacity: 1 !important;
  line-height: 2 !important;
  padding: 15px !important;
  transition: line-height 200ms, padding 200ms, right 350ms 200ms, opacity 350ms 200ms !important;
}

.alert-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
}

.alert-block {
  width: 80%;
  width: -webkit-calc(100% - 10px);
  width: calc(100% - 60px);
  text-align: left;
  display: table-cell;
  vertical-align: middle;
  padding-left: 10px;
}

.alert-block em, .alert-block small {
  font-size: .75em;
  opacity: .75;
  display: block;
  margin-top: 5px;
}

.alert i {
  font-size: 2em;
  width: 1.5em;
  max-height: 48px;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.alert-success {
  color: #fff;
  border-color: #539753;
  background-color: #8fbf2f;
}

.alert-error {
  color: #fff;
  border-color: #dc4a4d;
  background-color: #f25c5d;
}

.alert-trash {
  color: #fff;
  border-color: #dc4a4d;
  background-color: #f25c5d;
}

.alert-info {
  color: #fff;
  border-color: #076d91;
  background-color: #3397db;
}

.alert-warning {
  color: #fff;
  border-color: #dd6137;
  background-color: #f7931d;
}

@media (max-width: 768px) {
  #alerts {
    width: 90%;
    right: 5%;
    top: 70px;
  }
}
