/* Animation definitions */
.status-messages-wrapper--fixed {
  position: fixed;
  bottom: 0.6rem;
  right: 0.6rem;
  width: 24rem;
  z-index: 12;
}

.status-messages-wrapper--fixed .status-messages {
  display: none;
  margin-top: 1rem;
  opacity: 1;
  max-height: 100rem;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.5);
  transition: opacity 300ms 8s, max-height 100ms 8.5s, margin-top 100ms 8.5s;
}

.status-messages-wrapper--fixed .status-messages:not(:hover).already-opened {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
}

.status-messages-wrapper--fixed .status-messages .status-messages__close:before {
  transition: all 8s ease;
}

.status-messages {
  position: relative;
  background-repeat: no-repeat;
  background-size: 2rem 2rem;
  background-position: 1.5rem 0.84375rem;
  background-color: #202333;
  color: #FFF;
  padding-right: 4rem;
}

.status-messages .status-messages__inner {
  padding: 1rem 1rem 1rem 4.7rem;
}

.status-messages a {
  color: #FFF;
}

.status-messages pre {
  white-space: break-spaces;
}

.status-messages .status-messages__close {
  background: transparent;
  border: none;
  padding: 0;
  text-indent: -9999rem;
  width: 2.7rem;
  height: 2.7rem;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  overflow: hidden;
  box-sizing: border-box;
}

.status-messages .status-messages__close:hover, .status-messages .status-messages__close:focus {
  opacity: 0.5;
}

.status-messages .status-messages__close:before {
  background: #FFF;
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  bottom: -70%;
  right: 70%;
  bottom: 50%;
  right: 150%;
  z-index: 1;
  transform: rotate(45deg);
  transform-origin: bottom right;
  transition: all 6s ease;
}

.status-messages .status-messages__close span {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background-color: #202333;
  background-image: url("close.svg");
  background-repeat: no-repeat;
  background-size: 1rem 1rem;
  background-position: 50% 50%;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  margin: 1px;
  display: block;
}

.status-messages:not(:hover).already-opened .status-messages__close:before {
  bottom: -70%;
  right: 70%;
}

.status-messages.status-messages--error {
  background-image: url("sad.svg");
}

.status-messages.status-messages--status {
  background-image: url("smile.svg");
}

.status-messages.status-messages--warning {
  background-image: url("meh.svg");
}
