/* Кнопка закрытия всплывающего сообщения в правом верхнем углу */

.notification {
  position: relative;
}

.notification-content {
  font-size: 0.9rem
}

.notification-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  padding: 4px 8px;
  border-radius: 4px;
  outline: none;
}

.notification-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}


/* Анимация исчезновения */
.notification-exit {
  animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
    max-height: 200px;
    margin-bottom: 8px;
    padding: 12px 40px 12px 16px;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    padding: 0 40px 0 16px;
    overflow: hidden;
  }
}
