/* ========================================
 * Global Toast
 * ======================================== */

.rswcf-toast-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999999;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;

  width: auto;
  max-width: calc(100vw - 48px);

  pointer-events: none;
}

/* Toast */
.rswcf-toast {
  display: flex;
  align-items: center;
  gap: 10px;

  width: 355px;
  max-width: 100%;

  min-height: 52px;
  box-sizing: border-box;

  padding: 14px 16px;

  background: #ffffff;
  border: 1px solid #e5e2dc;
  border-radius: 8px;

  color: #17202f;

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04);

  pointer-events: auto;
  cursor: pointer;

  /* Initial state */
  opacity: 0;
  transform: translateY(50px);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* Toast visible */
.rswcf-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toast removing */
.rswcf-toast.is-removing {
  opacity: 0;
  transform: translateY(50px);
}

/* ========================================
 * Icon
 * ======================================== */

.rswcf-toast__icon {
  width: 20px;
  height: 20px;

  flex: 0 0 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  line-height: 1;
}

.rswcf-toast__icon .fa {
  line-height: 1;
}

/* ========================================
 * Message
 * ======================================== */

.rswcf-toast__message {
  flex: 1;
  min-width: 0;
}

/* ========================================
 * Success
 * ======================================== */

.rswcf-toast--success .rswcf-toast__icon {
  color: #111827;
}

/* ========================================
 * Error
 * ======================================== */

.rswcf-toast--error .rswcf-toast__icon {
  color: #dc2626;
}

/* ========================================
 * Warning
 * ======================================== */

.rswcf-toast--warning .rswcf-toast__icon {
  color: #d9981c;
}

/* ========================================
 * Info
 * ======================================== */

.rswcf-toast--info .rswcf-toast__icon {
  color: #317ec7;
}

/* ========================================
 * Mobile
 * ======================================== */

@media (max-width: 600px) {
  .rswcf-toast-container {
    right: 16px;
    left: 16px;
    bottom: 16px;

    max-width: none;

    align-items: stretch;
  }

  .rswcf-toast {
    width: 100%;
  }
}
