.titaui-user-message__msg {
  position: relative;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.titaui-user-message__msg:hover {
  cursor: pointer;
  background: #5c8eff;
}

.titaui-user-message__msg img {
  width: 22px;
  height: 22px;
}

.titaui-user-message__msg-img {
  transform-origin: 50% 0%;
  animation: bell-shake 1s infinite ease;
}

.titaui-user-message__msg-total {
  position: absolute;
  background: #fe5042;
  border-radius: 18px;
  font-size: 12px;
  color: #ffffff;
  line-height: 16px;
  padding: 0 4px;
  top: -4px;
  left: 12px;
  text-align: center;
  min-width: 8px;
}

.titaui-user-message__popup-right-top-enter {
  opacity: 0;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  animation-timing-function: linear;
  animation-play-state: paused;
}

.titaui-user-message__popup-right-top-enter-active {
  animation-name: titaPopupInRT;
  animation-play-state: running;
}

.titaui-user-message__popup-right-top-appear {
  opacity: 0;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  animation-timing-function: linear;
  animation-play-state: paused;
}

.titaui-user-message__popup-right-top-appear-active {
  animation-name: titaPopupInRT;
  animation-play-state: running;
}

.titaui-user-message__popup-right-top-leave {
  animation-duration: 0.1s;
  animation-fill-mode: both;
  animation-timing-function: linear;
  animation-play-state: paused;
}

.titaui-user-message__popup-right-top-leave-active {
  animation-name: titaPopupOutRT;
  animation-play-state: running;
}

.titaui-user-message__popup-right-bottom-enter {
  opacity: 0;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  animation-timing-function: linear;
  animation-play-state: paused;
}

.titaui-user-message__popup-right-bottom-enter-active {
  animation-name: titaPopupInRB;
  animation-play-state: running;
}

.titaui-user-message__popup-right-bottom-appear {
  opacity: 0;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  animation-timing-function: linear;
  animation-play-state: paused;
}

.titaui-user-message__popup-right-bottom-appear-active {
  animation-name: titaPopupInRB;
  animation-play-state: running;
}

.titaui-user-message__popup-right-bottom-leave {
  animation-duration: 0.1s;
  animation-fill-mode: both;
  animation-timing-function: linear;
  animation-play-state: paused;
}

.titaui-user-message__popup-right-bottom-leave-active {
  animation-name: titaPopupOutRB;
  animation-play-state: running;
}

.titaui-user-message__hr-notice {
  width: 42px;
  height: 42px;
  background: linear-gradient(180deg, #4e90ff 0%, #2879ff 100%);
  box-shadow: 0px 4px 12px 0px rgba(40, 121, 255, 0.3), inset 0px 0px 6px 2px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 36px;
  right: 24px;
  z-index: 2;
}

.titaui-user-message__hr-notice img {
  width: 32px;
  height: 42px;
}

@keyframes titaPopupInRT {
  0% {
    opacity: 0;
    transform-origin: 100% 0%;
    transform: scale(0, 0);
  }

  100% {
    opacity: 1;
    transform-origin: 100% 0%;
    transform: scale(1, 1);
  }
}

@keyframes titaPopupInRB {
  0% {
    opacity: 0;
    transform-origin: 100% 100%;
    transform: scale(0, 0);
  }

  100% {
    opacity: 1;
    transform-origin: 100% 100%;
    transform: scale(1, 1);
  }
}

@keyframes titaPopupOutRT {
  0% {
    opacity: 1;
    transform-origin: 100% 0%;
    transform: scale(1, 1);
  }

  100% {
    opacity: 0;
    transform-origin: 100% 0%;
    transform: scale(0, 0);
  }
}

@keyframes titaPopupOutRB {
  0% {
    opacity: 1;
    transform-origin: 100% 100%;
    transform: scale(1, 1);
  }

  100% {
    opacity: 0;
    transform-origin: 100% 100%;
    transform: scale(0, 0);
  }
}

@keyframes bell-shake {
  5%,
  25%,
  45% {
    transform: rotate(8deg);
  }

  0%,
  10%,
  30%,
  50% {
    transform: rotate(-8deg);
  }

  15%,
  35%,
  55% {
    transform: rotate(4deg);
  }

  20%,
  40%,
  60% {
    transform: rotate(-4deg);
  }

  65%,
  100% {
    transform: rotate(0deg);
  }
}
