#notification_wrapper {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  pointer-events: none; /* Щоб повідомлення не заважали взаємодії з іншими елементами */
}

.notification {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #f0f0f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 7px;
  min-width: 420px;
  min-height: 95px;
  margin-bottom: 10px;
  opacity: 1;
  position: relative; /* Додаємо, щоб позиціонувати внутрішні елементи */
  overflow: hidden; /* Прибираємо вихід background за межі повідомлення */
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: all;
}

.notification.fade-out {
  opacity: 0;
  transform: translateY(-20px);
}

.background {
  position: absolute;
  left: -50px;
  /* height: 200px;
  width: 200px; */
  height: 250px;
  width: 250px;
  transform: translateX(-50%);
  border-radius: 50%;
  z-index: 0;
  overflow: hidden; /* Зменшуємо розмір і усуваємо проблему з видимістю */
}

.success {
  background-color: hsl(85deg 53% 57% / 20%);
}

.error {
  background: hsl(0deg 72% 59% / 20%);
}

.icon {
  margin-right: 10px;
  z-index: 1;
  padding: 1rem;
  width: 72px;
  height: 72px;
}

.message .title {
  font-weight: bold;
  font-size: 13px;
  color: hsl(225.52deg 19.21% 29.61%);
}

.message .text {
  color: #a4a6b3;
  font-size: 12px;
  margin-top: 0.25rem;
}

.close-icon {
  position: absolute;
  top: 13px;
  right: 13px;
  background: hsl(232deg 8.98% 67.25% / 25%);
  padding: 7px;
  border-radius: 50%;
  cursor: pointer;
  width: 26px;
  height: 26px;
  transition: 0.25s;
  z-index: 2; /* Впевнюємося, що кнопка закриття має високий пріоритет */
}

.close-icon:hover {
  background: hsl(232deg 8.98% 67.25% / 50%);
}
