:root {
  --eb-toast-z: 10000;
}

.eb-toast-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: var(--eb-toast-z);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: 320px;
  pointer-events: none;
}

.eb-toast {
  pointer-events: auto;
  position: relative;
  width: 100%;
  min-width: 200px;
  max-width: 320px;
  padding: 10px 36px 10px 15px;
  border-radius: 4px;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

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

.eb-toast.is-leaving {
  opacity: 0;
  transform: translateX(24%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.eb-toast.success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.eb-toast.error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.eb-toast.info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

.eb-toast.warn {
  background-color: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}

.eb-toast__title {
  font-weight: 600;
  margin-bottom: 4px;
  text-align: center;
}

.eb-toast__msg {
  text-align: center;
}

.eb-toast__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.65;
  padding: 0 2px;
}

.eb-toast__close:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .eb-toast-wrap {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    align-items: stretch;
  }

  .eb-toast {
    max-width: none;
  }
}
