/* ==========================================================================
   KAYAN LUXURY FASHION — TOAST NOTIFICATION SYSTEM
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: var(--space-md);
  inset-inline-end: var(--space-md);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  pointer-events: none;
  max-width: 400px;
  width: calc(100% - 2 * var(--space-md));
}

.toast {
  position: relative;
  background: var(--brand-obsidian-ink);
  color: var(--brand-raw-alabaster);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  pointer-events: auto;
  overflow: hidden;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: transform 0.35s var(--ease-spring), opacity 0.3s ease;
}

.toast.active {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast.closing {
  transform: translateX(100%);
  opacity: 0;
}

[dir="rtl"] .toast.closing {
  transform: translateX(-100%);
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-icon.success { color: #10B981; }
.toast-icon.warning { color: #F59E0B; }
.toast-icon.error { color: #EF4444; }
.toast-icon.info { color: var(--brand-bronze-light); }

.toast-message {
  flex: 1;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.4;
}

.toast-action {
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-bronze-light);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 4px;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  color: #FFFFFF;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--color-accent);
  width: 100%;
  transform-origin: left;
}

[dir="rtl"] .toast-progress {
  transform-origin: right;
}
