.site-toast-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  display: flex;
  width: min(390px, calc(100vw - 32px));
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.site-toast {
  --toast-color: #77c95c;
  --toast-soft: #e3f4dc;
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  align-items: center;
  min-height: 80px;
  overflow: hidden;
  padding: 14px 12px 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .2);
  color: #555;
  pointer-events: auto;
  transform: translateX(calc(100% + 28px));
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}

.site-toast.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.site-toast.is-leaving {
  transform: translateX(calc(100% + 28px));
  opacity: 0;
}

.site-toast--error {
  --toast-color: #ef5350;
  --toast-soft: #fde4e3;
}

.site-toast--warning {
  --toast-color: #f3a72f;
  --toast-soft: #fff1d9;
}

.site-toast--info {
  --toast-color: #3b82f6;
  --toast-soft: #dbeafe;
}

.site-toast__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 4px solid var(--toast-soft);
  border-radius: 50%;
  color: var(--toast-color);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.site-toast__message {
  padding: 0 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.site-toast__close {
  align-self: start;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 2px;
}

.site-toast__close:hover {
  color: #4b5563;
}

.site-toast__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--toast-color);
  transform-origin: left;
  animation: site-toast-progress var(--toast-duration, 4500ms) linear forwards;
}

@keyframes site-toast-progress {
  to { transform: scaleX(0); }
}

@media (max-width: 575.98px) {
  .site-toast-container {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .site-toast {
    min-height: 72px;
  }

  .site-toast__message {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-toast {
    transition: opacity .01ms;
  }
}
