.moly-toast-region {
  position: fixed;
  z-index: 1000;
  top: 5.5rem;
  right: 1.25rem;
  display: grid;
  gap: 0.7rem;
  width: min(24rem, calc(100vw - 2rem));
  pointer-events: none;
}

.moly-toast {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: start;
  gap: 0.75rem;
  padding: 0.9rem 0.85rem 0.9rem 0.9rem;
  color: #f7f4ec;
  background: #101b3b;
  border: 1px solid rgba(255, 194, 19, 0.4);
  border-left: 3px solid #ffc213;
  box-shadow: 0 1rem 2.2rem rgba(4, 10, 28, 0.25);
  pointer-events: auto;
  animation: moly-toast-in 0.28s ease both;
}

.moly-toast--error {
  border-color: rgba(255, 148, 148, 0.6);
  border-left-color: #ef7777;
}

.moly-toast__mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #101b3b;
  font-weight: 800;
  background: #ffc213;
  border-radius: 50%;
}

.moly-toast--error .moly-toast__mark {
  background: #ef7777;
}

.moly-toast__copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.moly-toast__copy strong {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.moly-toast__copy span {
  color: rgba(247, 244, 236, 0.72);
  font-size: 0.75rem;
  line-height: 1.45;
}

.moly-toast__close {
  padding: 0.05rem 0.2rem;
  color: rgba(247, 244, 236, 0.72);
  font-size: 1.3rem;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.moly-toast__close:hover,
.moly-toast__close:focus-visible {
  color: #fff;
}

.moly-toast.is-closing {
  animation: moly-toast-out 0.22s ease both;
}

@keyframes moly-toast-in {
  from { opacity: 0; transform: translate3d(1rem, -0.5rem, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes moly-toast-out {
  from { opacity: 1; transform: translate3d(0, 0, 0); }
  to { opacity: 0; transform: translate3d(1rem, -0.5rem, 0); }
}

@media (max-width: 640px) {
  .moly-toast-region {
    top: 5.9rem;
    right: 0.75rem;
    width: calc(100vw - 1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .moly-toast,
  .moly-toast.is-closing {
    animation: none;
  }
}
