.popup {
  display: flex;
  position: fixed;
  width: 100%;
  justify-content: center;
  z-index: 12;
}

.chat_noti_mess {
  display: none;
  width: 96%;
  max-width: 500px;
  position: fixed;
  top: 20px;
  background-color: var(--card-bgc);
  padding: 1rem;
  cursor: default;
  border-radius: 1rem;
  gap: 10px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.236);
  animation: popup 0.5s forwards;
}

.chat_noti_mess .img_chat_user_noti {
  display: flex;
}
.img_chat_user_noti > img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.chat_noti_mess .mess_user {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.user_sec_not {
  display: flex;
  gap: 10px;
}

.time_notifi_d {
  font-size: 0.85rem;
  opacity: 0.7;
}

.close_btn_notifi_d {
  position: absolute;
  right: 1rem;
  top: 1rem;
  cursor: pointer;
}

.mess_user > p {
  opacity: 0.8;
  max-height: 57px;
  overflow: hidden;
  cursor: default;
}

.animate {
  animation: popup 0.5s forwards;
}

@keyframes popup {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  50% {
    transform: translateY(15px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Hiding the pop-up */
.hide {
  animation: hidePop 0.5s forwards;
}

/* Animation to hide the pop-up */
@keyframes hidePop {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-15px);
  }
}
