.notification-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  max-width: 290px;
  width: 100%;
  pointer-events: none;
}

.notification-container > * {
  pointer-events: auto;
}

.notification {
  position: relative;
  height: 72px;
  padding: 15px;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  background-color: var(--bg-color);
  box-shadow: 0px 16px 40px 0px rgba(16, 26, 48, 0.22);
  overflow: hidden;
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
}

html[data-theme="dark"] .notification {
  border-color: var(--field);
}

.notification--visible {
  transform: translateX(0);
  opacity: 1;
}

.notification--hiding {
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
}

.notification__header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.notification__icon {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 11px;
}

.notification__icon--success {
  background-color: var(--green-light);
}

.notification__icon--error {
  background-color: #ef4444;
}

.notification__icon svg {
  width: 20px;
  height: 20px;
}

.notification__content {
  flex: 1;
  min-width: 0;
}

.notification__title {
  padding-right: 28px;
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0%;
  color: var(--text-dark);
}

.notification__description {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0%;
  color: var(--gray-dark);
}

.notification__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: #f1f3f6;
  cursor: pointer;
}

html[data-theme="dark"] .notification__close {
  background-color: var(--field);
}

.notification__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  overflow: hidden;
}

.notification__progress-bar {
  height: 100%;
  transition: width 0.1s linear;
  width: 100%;
}

.notification__progress-bar--success {
  background: var(--green-light);
}

.notification__progress-bar--error {
  background: #ef4444;
}

@media (max-width: 767px) {
  .notification {
    height: 62px;
    padding: 12px;
  }

  .notification__icon {
    width: 32px;
    height: 32px;
  }

  .notification__content {
    padding-right: 40px;
  }

  .notification__title {
    padding-right: 0;
    font-size: 14px;
  }

  .notification__close {
    top: 50%;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
  }

  .notification__close svg {
    width: 8px;
    height: 8px;
  }

  .notification__progress {
    height: 4px;
  }
}
