.notifications {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100% - 36px));
  pointer-events: none;
}

.notification {
  display: grid;
  grid-template-columns: 4px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 14px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(18, 18, 18, 0.96);
  color: #f7f7f7;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
  animation: notification-in 0.22s ease-out;
  pointer-events: auto;
}

.notification::before {
  content: "";
  width: 4px;
  height: 100%;
  min-height: 46px;
  background: #ffffff;
}

.notification.is-error::before {
  background: #ffffff;
}

.notification.is-success::before {
  background: #ffffff;
}

.notification-title {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 950;
}

.notification-message {
  margin: 0;
  color: #b5b5b5;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.notification-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  color: #f7f7f7;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.notification.is-hiding {
  animation: notification-out 0.18s ease-in forwards;
}

@keyframes notification-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes notification-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (max-width: 640px) {
  .notifications {
    top: 82px;
    right: 10px;
    width: calc(100% - 20px);
  }
}
