/* ===========================================
   TOAST COMPONENT
   =========================================== */

.toast {
  /* === Configuration === */
  --toast-bg: var(--bg-elevated);
  --toast-border: var(--border-subtle);
  --toast-shadow: var(--shadow-xl);
  --toast-padding: 0.75rem 1rem;
  --toast-radius: var(--radius-lg);

  /* === Base Styles === */
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--toast-bg);
  border: 1px solid var(--toast-border);
  border-radius: var(--toast-radius);
  padding: var(--toast-padding);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--toast-shadow);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
}

/* === States === */

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* === Subcomponents === */

.toast__icon {
  color: var(--brand);
  flex-shrink: 0;
}

.toast__message {
  /* Inherits from parent */
}

.toast svg {
  color: var(--brand);
  flex-shrink: 0;
}

/* === Responsive === */

@media (max-width: 640px) {
  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
}
