/* AEM Labs Limited - CSS: Toast Notifications
   =========================================== */

.notifications {
  position: fixed;
  top: 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;
}

.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: #dcfce7;
  background: rgba(22, 163, 74, 0.22);
  border-color: rgba(74, 222, 128, 0.35);
}

.notification--error {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(248, 113, 113, 0.35);
}

.notification--info {
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(147, 197, 253, 0.35);
}

.notification--warning {
  color: #ffedd5;
  background: rgba(234, 88, 12, 0.22);
  border-color: rgba(253, 186, 116, 0.4);
}
