
.rx-toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 360px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}

.rx-toast {
  pointer-events: all;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(51, 51, 51, 0.13);
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(.22, .68, 0, 1.2), opacity 0.28s ease;
}

.rx-toast.rx-toast--in {
  transform: translateX(0);
  opacity: 1;
}

.rx-toast.rx-toast--out {
  transform: translateX(120%);
  opacity: 0;
}

.rx-toast-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.rx-toast--success .rx-toast-icon {
  background: rgba(0, 167, 110, 0.12);
  color: #007a50;
}

.rx-toast--error .rx-toast-icon {
  background: rgba(181, 95, 95, 0.12);
  color: #9e3a3a;
}

.rx-toast--warn .rx-toast-icon {
  background: rgba(176, 115, 43, 0.13);
  color: #8a5718;
}

.rx-toast--info .rx-toast-icon {
  background: rgba(51, 51, 51, 0.07);
  color: #333;
}

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

.rx-toast-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  margin: 0 0 2px;
}

.rx-toast--success .rx-toast-title {
  color: #005c3c;
}

.rx-toast--error .rx-toast-title {
  color: #7a2a2a;
}

.rx-toast--warn .rx-toast-title {
  color: #7a4a10;
}

.rx-toast--info .rx-toast-title {
  color: #333;
}

.rx-toast-msg {
  margin: 0;
  color: #5f5a54;
  font-size: 13px;
}

.rx-toast-close {
  flex: 0 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #9b948c;
  padding: 0;
  line-height: 1;
}

.rx-toast-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 20px 20px;
  width: 100%;
  transform-origin: left;
  animation: rx-shrink 4s linear forwards;
}

.rx-toast--success .rx-toast-bar {
  background: #00a76e;
}

.rx-toast--error .rx-toast-bar {
  background: #b55f5f;
}

.rx-toast--warn .rx-toast-bar {
  background: #b0732b;
}

.rx-toast--info .rx-toast-bar {
  background: #333;
}

@keyframes rx-shrink {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
