/* Multifacture → CSS: Toast Notifications
→  Built by AEM Labs
   ================= */

.notifications {
  position: fixed;
  top: calc(var(--navbar-height, 60px) + 16px);
  right: 16px;
  z-index: 10050;
  max-width: min(420px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  pointer-events: none;
}

.notifications:empty {
  display: none;
}

.notifications .notification {
  pointer-events: auto;
}

.notification {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.notification.notification--leaving {
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
}

.notification__message {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.notification__dismiss {
  flex-shrink: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.notification__dismiss:hover {
  transform: scale(1.1) rotate(180deg);
}

.notification--success {
  color: #166534;
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.notification--error {
  color: #991b1b;
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.notification--info {
  color: #1e40af;
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(147, 197, 253, 0.45);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.notification--warning {
  color: #9a3412;
  background: rgba(234, 88, 12, 0.14);
  border-color: rgba(253, 186, 116, 0.5);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15);
}
