.notification-container {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
}

/* Desktop - bottom right */
@media (min-width: 768px) {
  .notification-container {
    bottom: 20px;
    right: 20px;
    max-width: 350px;
  }
}

/* Mobile - bottom centered */
@media (max-width: 767px) {
  .notification-container {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 350px;
  }
}

/* Notification */
.notification-popup {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(244, 29, 29, 0.31);
  padding: 16px;
  margin-bottom: 10px;
  pointer-events: auto;
  animation: slideIn 0.4s ease-out;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* icon */
.notification-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Treść */
.notification-content {
  flex: 1;
}

.notification-text {
  color: #202020;
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

.notification-time {
  color: #1e1e1e;
  font-size: 12px;
  margin-top: 4px;
}

.notification-timestamp {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
}

.notification-buyer {
  font-weight: 700;
  color: #1f2937;
}

.notification-product {
  color: #10b981;
  font-weight: 600;
}

/* close button */
.notification-close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.notification-close:hover {
  color: #333;
}

/* In animation */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile - animation */
@media (max-width: 767px) {
  @keyframes slideIn {
    from {
      transform: translateY(100px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}

/* Out animation */
@keyframes slideOut {
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

@media (max-width: 767px) {
  @keyframes slideOut {
    to {
      transform: translateY(100px);
      opacity: 0;
    }
  }
}

.notification-popup.hiding {
  animation: slideOut 0.3s ease-in forwards;
}