/* ------------------------------------------------------------------ */
/* Flitt payment status alerts (toasts)                               */
/* ------------------------------------------------------------------ */

.wte-flitt-alerts {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100000;
  /* above the modal overlay */
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  pointer-events: none;
}

/* To move alerts to the top-right instead, swap `bottom` for `top` above. */

.wte-flitt-alert {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  line-height: 1.4;
  color: #1a1a1a;
  background: #ffffff;
  border: 2px solid #9ca3af;

  /* Start hidden; JS adds .is-visible on the next frame to animate in. */
  opacity: 0;
  transform: translateX(16px);
  transition:
    opacity 0.2s ease-out,
    transform 0.2s ease-out;
}

.wte-flitt-alert.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.wte-flitt-alert.is-leaving {
  opacity: 0;
  transform: translateX(16px);
  transition:
    opacity 0.15s ease-in,
    transform 0.15s ease-in;
}

.wte-flitt-alert--info {
  border-color: #2563eb;
  background: #eff6ff;
}

.wte-flitt-alert--success {
  border-color: #16a34a;
  background: #f0fdf4;
}

.wte-flitt-alert--error {
  border-color: #dc2626;
  background: #fef2f2;
}

.wte-flitt-alert--warning {
  border-color: #d97706;
  background: #fffbeb;
}

.wte-flitt-alert-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 0;
}

.wte-flitt-alert-close:hover {
  opacity: 1;
}

.flitt-modal {
  display: none !important;
}
