/* Toastify toasts are fixed overlays, so they never participate in page layout. */
.toastify {
  position: fixed;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  width: max-content;
  min-width: min(280px, calc(100vw - 32px));
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #fff;
  background: #30213f;
  box-shadow: 0 12px 36px rgba(20, 10, 30, 0.3);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}

.toastify.on {
  opacity: 1;
}

.toastify-right {
  right: 16px;
}

.toastify-left {
  left: 16px;
}

.toastify-center {
  right: 0;
  left: 0;
  margin-right: auto;
  margin-left: auto;
}

.toastify-top {
  top: -150px;
}

.toastify-bottom {
  bottom: -150px;
}

.toastify .toast-close {
  flex: 0 0 auto;
  margin: -4px -5px -4px 0;
  padding: 4px 5px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}

.toastify .toast-close:hover,
.toastify .toast-close:focus-visible {
  opacity: 1;
}

@media (max-width: 360px) {
  .toastify {
    right: 8px;
    left: 8px;
    width: auto;
    min-width: 0;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toastify {
    transition: none;
  }
}
