.alert-info {
  animation: site-alert-enter .22s ease-out both;
}

.site-flash-toast {
  margin: 18px 0;
  text-align: left;
}

.site-flash-toast.is-error {
  border-color: #ffd0d0;
  color: #d93b3b;
}

.site-flash-toast.is-toast-consumed {
  display: none !important;
}

.toastify.site-toastify {
  width: min(420px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  padding: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  color: inherit;
}

.toastify.site-toastify .toast-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(18, 53, 91, .08);
  color: #12355b;
  font-size: 19px;
  line-height: 1;
  opacity: 1;
  text-shadow: none;
}

.site-toast {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  overflow: hidden;
  min-height: 76px;
  padding: 16px 54px 16px 16px;
  border: 1px solid #d8e8f5;
  border-left: 7px solid var(--toast-accent, #0057a8);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  color: #12355b;
  box-shadow: 0 18px 42px rgba(18, 53, 91, .18);
  backdrop-filter: blur(12px);
}

.site-toast::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--toast-accent, #0057a8), rgba(255, 255, 255, .1));
  transform-origin: left;
  animation: site-toast-progress var(--toast-duration, 5200ms) linear forwards;
}

.site-toast-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--toast-soft, #edf8ff);
  color: var(--toast-accent, #0057a8);
  font-size: 22px;
}

.site-toast-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.site-toast-title {
  color: #12355b;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.site-toast-message {
  color: #5c6670;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.site-toast-success {
  --toast-accent: #2ead68;
  --toast-soft: #eaf7ef;
}

.site-toast-error {
  --toast-accent: #d93b3b;
  --toast-soft: #fff0f0;
}

.site-toast-warning {
  --toast-accent: #d79d00;
  --toast-soft: #fff4c2;
}

.site-toast-info {
  --toast-accent: #0057a8;
  --toast-soft: #edf8ff;
}

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

@keyframes site-alert-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .alert-info {
    animation: none;
  }

  .site-toast::after {
    animation: none;
  }

  .toastify {
    transition: none !important;
  }
}

@media (max-width: 520px) {
  .toastify.site-toastify {
    width: calc(100vw - 20px);
  }

  .site-toast {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 14px 48px 14px 14px;
    border-radius: 16px;
  }

  .site-toast-icon {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }
}
