@keyframes pulse {
  0% {
    transform: scale(.2);
  }
  50% {
    transform: scale(.5);
  }
  100% {
    transform: scale(.2);
  }
}

& {
  .lbaic {
    &-footer {
      position: relative;
      width: 100%;
      max-width: var(--lbaic-chat-max-w, 926px);
      grid-area: footer;
      margin-inline-start: auto;
      margin-inline-end: auto;
      padding: 24px 20px 20px;
    }

    &-agent-off {
      position: absolute;
      top: 4px;
      right: 20px;
      height: 15px;
      display: flex;
      align-items: center;

      &-in {
        color: var(--lbaic-agent-end-color);

        &, &:not(:hover):not(:active):not(.has-background) {
          height: 100%;
          display: flex;
          align-items: center;
          gap: 4px;
          cursor: pointer;
        }

        &:hover {
          .lbaic-agent-off-label {
            color: var(--lbaic-agent-end-hover-color);
          }

          .lbaic-agent-off-button-i {
            opacity: 1;
            visibility: visible;
            color: var(--lbaic-agent-end-hover-color);
          }

          .lbaic-agent-off-button-in{
            &:before{
              opacity: 0;
              visibility: hidden;
            }
          }
        }
      }

      &-button {
        &-in {
          width: 12px;
          height: 12px;
          position: relative;
          display: flex;
          align-items: center;
          justify-content: center;

          &:before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background-color: #22c55e;
            border-radius: 50%;
            z-index: -1;
            animation: pulse 1.7s ease-in-out infinite;
            opacity: 1;
            visibility: visible;
            transition: opacity 100ms ease-in-out, visibility 100ms ease-in-out;
          }
        }

        &-i {
          width: 12px;
          height: 12px;
          color: var(--lbaic-agent-end-color);
          transition: color 100ms ease-in-out, opacity 100ms ease-in-out, visibility 100ms ease-in-out;
          opacity: 0;
          visibility: hidden;
        }
      }

      &-label {
        color: var(--lbaic-agent-end-color);
        font-size: var(--lbaic-fs-12);
        font-weight: var(--lbaic-fw-400);
        line-height: var(--lbaic-lh-14);
        letter-spacing: -0.15px;
        transition: color 100ms ease-in-out;
      }
    }
  }
}