[popover].toast {
  padding: 8px 12px;
  font-weight: 500;
  box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.15);
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0.375rem;
  text-decoration: none;
  text-align: center;
  z-index: 2147483647;
  border: none;
  margin: 0;
  animation: slideDown 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

[popover].toast:popover-open {
  display: inline-block;
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-165px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.toast--notice {
  color: var(--color-emerald-600);
  background-color: var(--color-emerald-50);
  border: 1px solid var(--color-emerald-100);
}

.toast--alert {
  color: var(--color-rose-600);
  background-color: var(--color-rose-50);
  border: 1px solid var(--color-rose-100);
}

@media only screen and (max-width: 360px) {
  [popover].toast {
    max-width: calc(100% - 30px);
  }
}
