.alert-box-wrapper {
  position: fixed;
  right: 0;
  bottom: 0;
  margin: 1rem;
  color: var(--primary);
  z-index: var(--alert-z);
  font-size: 1rem;
}

.alert-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.alert {
  max-width: min(90vw, 400px);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: medium;
  border-radius: 12px;
  border: 1px solid var(--offset);
  border-left: 8px solid var(--alert-colour);
  background-color: var(--background);
  color: var(--contrast);
  box-shadow: var(--soft-shadow);
}

.alert-expired {
  display: none;
}

.alert-content {
  flex: 1;
}

.alert-close {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50% 50%;
  transition: all 0.25s;
}

.alert-close:hover,
.alert-close:focus {
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.1);
}
