.vgt-toast {
  position: fixed;
  top: 1.15rem;
  left: 50%;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: min(92vw, 420px);
  transform: translateX(-50%);
  pointer-events: none;
}

.vgt-toast__item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ebe4d8;
  box-shadow: 0 14px 40px rgba(20, 18, 16, 0.16);
  color: #141210;
  font-family: var(--vgt-ui);
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.vgt-toast__item.is-in {
  opacity: 1;
  transform: translateY(0);
}

.vgt-toast__item.is-out {
  opacity: 0;
  transform: translateY(-10px);
}

.vgt-toast__icon {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 0.05rem;
  line-height: 0;
}

.vgt-toast__icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

.vgt-toast__body {
  flex: 1 1 auto;
  min-width: 0;
}

.vgt-toast__title {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
}

.vgt-toast__message {
  display: block;
  margin-top: 0.1rem;
  color: #5c564e;
  font-size: 0.82rem;
}

.vgt-toast__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #8a8378;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
}

.vgt-toast__close:hover {
  background: #f3eee6;
  color: #3f3a34;
}

.vgt-toast__item.is-success .vgt-toast__icon {
  background: #e8f8ef;
  color: #027a48;
}

.vgt-toast__item.is-error .vgt-toast__icon {
  background: #fdecea;
  color: #d92d20;
}

.vgt-toast__item.is-info .vgt-toast__icon {
  background: #f8f1e4;
  color: #9a7b2f;
}

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