.toast-root {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  box-shadow: 0 12px 28px rgba(22, 22, 22, 0.16);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #171515;
  background: #ffffff;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-item.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.toast-item--success {
  background: #def7ec;
  border-color: #31c48d;
  color: #03543f;
}

.toast-item--error {
  background: #fde8e8;
  border-color: #f98080;
  color: #9b1c1c;
}

.toast-item--info {
  background: #e8f0ee;
  border-color: #1b4332;
  color: #1b4332;
}

.toast-item__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.toast-item__text {
  flex: 1;
  min-width: 0;
}

.toast-item__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.toast-item__close:hover {
  opacity: 1;
}

@media (max-width: 480px) {
  .toast-root {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}
