dialog {
  animation: fade-out 0.4s ease-out;
  border-radius: var(--radius-md);
  padding: 3rem;
  color: var(--muted-color-text);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  min-width: 42rem;
  box-shadow: 4px 4px 8px 2px rgba(0, 0, 0, 0.1);
  margin: 0;
  max-width: 64rem;
  width: 100%;
  border: none;
}

.toast {
  opacity: 1 !important;
}

.backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 15%);
  z-index: 9000;
  backdrop-filter: blur(2px);
}

dialog[open] + .backdrop {
  display: block;
}

dialog[open] {
  animation: fade-in 0.4s ease-out;
}

dialog[open]::backdrop {
  animation: backdrop-fade-in 0.4s ease-out forwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes backdrop-fade-in {
  0% {
    background-color: rgb(0 0 0 / 0%);
  }

  100% {
    background-color: rgb(0 0 0 / 15%);
  }
}
