/* Стили для уведомлений формы подписки */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  width: 100%;
  pointer-events: none;
}

.notification {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
  border-left: 4px solid #4caf50;
}

.notification--visible {
  opacity: 1;
  transform: translateX(0);
}

.notification--success {
  border-left-color: #4caf50;
}

.notification--error {
  border-left-color: #f44336;
}

.notification__content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.notification__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
}

.notification--success .notification__icon {
  background-color: #4caf50;
}

.notification--error .notification__icon {
  background-color: #f44336;
}

.notification__message {
  font-family: var(--font-serif, Arial, sans-serif);
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
}

.notification__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.notification__close:hover {
  color: #333;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .notification {
    padding: 14px 16px;
  }

  .notification__message {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .notification-container {
    top: 5px;
    right: 5px;
    left: 5px;
  }

  .notification {
    padding: 12px 14px;
  }

  .notification__icon {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .notification__message {
    font-size: 0.85rem;
  }
}

