@keyframes lbaic-loading-bar {
  0%, 100% {
    transform: translate3d(-100%, 0, 0);
  }

  50% {
    transform: translate3d(100%, 0, 0);
  }
}

.lbaic-loading-bar {
  --lbaic-loading-bg: linear-gradient(90deg, rgba(var(--lbaic-white-rgb), 0) 0%, var(--lbaic-main) 50%, rgba(var(--lbaic-white-rgb), 0) 100%);

  position: absolute;
  right: 0;
  top: 0;
  left: 0;
  z-index: 10000;

  &-in {
    width: 100%;
    height: 2px;
    background-image: var(--lbaic-loading-bg);
    transform: translate3d(-100%, 0, 0);
    animation: lbaic-loading-bar 4200ms linear infinite;
  }
}

.lbaic-chat-loader {
  position: relative;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #F4F4F4;
  background-image:none;
  transform: translate3d(-50%, -50%, 0);

  &-in {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-image: var(--lbaic-intro-header-bg);
    animation: spin 1s linear infinite;
  }

  &:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background-color: var(--lbaic-chat-bg);
    transform: translate3d(-50%, -50%, 0);
    z-index: 1;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
}



