& {
  position: var(--lbaic-position, static);
  top: var(--lbaic-layout-t);
  right: var(--lbaic-layout-r);
  bottom: var(--lbaic-layout-b);
  left: var(--lbaic-layout-l);
  z-index: var(--lbaic-z-index, 999999);
  scrollbar-color: var(--lbaic-main) transparent;
  scrollbar-width: thin;

  .lbaic {
    &-grid {
      position: var(--lbaic-grid-position, absolute);
      top: var(--lbaic-grid-t, unset);
      right: var(--lbaic-grid-r);
      bottom: var(--lbaic-grid-b, 0);
      left: var(--lbaic-grid-l);
      display: grid;
      grid-auto-flow: column;
      align-items: end;
      gap: 10px;
      pointer-events: none;
      z-index: var(--lbaic-grid-z-index, unset);
    }

    &-chat {
      position: var(--lbaic-chat-position, static);
      top: var(--lbaic-chat-t, 0);
      right: var(--lbaic-chat-r, 0);
      left: var(--lbaic-chat-l, 0);
      width: var(--lbaic-chat-w);
      height: var(--lbaic-chat-h);
      max-height: var(--lbaic-chat-max-h);
      //transform: translate3d(var(--lbaic-chat-transform));
      pointer-events: all;
      z-index: var(--lbaic-chat-z-index, 999);
      // Ensure chatbot is isolated from custom scroll libraries
      touch-action: auto;
      overscroll-behavior: contain;

      &-in {
        height: 100%;
        background-color: var(--lbaic-chat-bg);
        border-radius: var(--lbaic-chat-radius);
        box-shadow: var(--lbaic-chat-shadow);
        transform: var(--lbaic-chat-in-transform);
        opacity: var(--lbaic-chat-in-opacity);
        transform-origin: var(--lbaic-chat-in-transform-origin);
        animation: var(--lbaic-chat-in-animation);
      }

      &-inner {
        height: 100%;
        display: grid;
        grid-template-rows: 64px 1fr auto;
        grid-template-areas: 'header' 'body' 'footer';
        opacity: var(--lbaic-chat-inner-opacity);
        animation: var(--lbaic-chat-inner-animation);
        overflow: hidden;
      }
    }
  }
  &-chatbot-icons {
    top: -9999px;
    left: -9999px;
    width: 0;
    height: 0;
    opacity: 0;
    z-index: -9999;

    svg {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }
  }
}