/* ===============================
   POS TOAST SYSTEM
================================*/

.pos-toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 99999;
  pointer-events: none;
}

/* Base Toast */
.pos-toast {
  min-width: 260px;
  max-width: 420px;
  background: #111827;
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, .25);

  animation: toastIn .25s ease;
  pointer-events: auto;
}

/* Success */
.pos-toast.success {
  background: #16a34a;
}

/* Error */
.pos-toast.error {
  background: #dc2626;
}

/* Warning */
.pos-toast.warning {
  background: #f59e0b;
}

/* Info */
.pos-toast.info {
  background: #1f2937;
}

/* Confirm Toast */
.pos-toast.confirm {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px;
}

.pos-toast-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.pos-toast-btn {
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.pos-toast-btn.confirm {
  background: #16a34a;
  color: #fff;
}

.pos-toast-btn.cancel {
  background: #e5e7eb;
  color: #111;
}

/* Animation */

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}


/* Rotate icon on reload */
@keyframes spinReload {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.icon.reload-anim {
  animation: spinReload 0.8s linear;
}