/* Custom bottom-center toast — independent of SweetAlert */

.rl-toast-host {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2147483000;
  width: max-content;
  max-width: min(440px, calc(100vw - 32px));
  pointer-events: none;
}

.rl-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 18px 12px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e8edf5;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
  color: #0f172a;
  pointer-events: auto;
  animation: rl-toast-in 0.22s ease-out;
}

.rl-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.rl-toast-icon .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 20;
  line-height: 1;
}

.rl-toast-success .rl-toast-icon {
  background: #10b981;
}

.rl-toast-warning .rl-toast-icon {
  background: #f59e0b;
}

.rl-toast-info .rl-toast-icon {
  background: #0c6af4;
}

.rl-toast-question .rl-toast-icon {
  background: #6366f1;
}

.rl-toast-text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes rl-toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html[data-theme="dark"] .rl-toast {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  color: #f1f5f9;
}
