@use 'ej2-base/styles/common/mixin' as *;
@include export-module('e-inlineaiassist-theme') {
  .e-inlineaiassist {
    background: $inline-ai-assist-bg;
    box-shadow: $inline-ai-assist-popup-box-shadow;
    &.e-popup {
      border: $inline-ai-assist-popup-border;
    }
    .e-response-text {
      color: $inline-ai-assist-response-text-color;
    }

    .e-toolbar-item::after {
      background-color: transparent;
    }
    .e-toolbar,
    .e-toolbar-items,
    .e-toolbar .e-toolbar-items .e-tbar-btn {
      background: transparent;
      border: none;
      box-shadow: none;
    }

    .e-footer {
      background: $inline-ai-assist-footer-bg;
      .e-assist-textarea::-webkit-scrollbar-thumb {
        background: rgba(153, 153, 153, 1);
      }
      .e-assist-textarea[placeholder]:empty::before {
        color: $inline-ai-assist-textarea-placeholder-color;
      }
      &:not(.e-footer-template) {
        &.e-footer-focused {
          border-bottom-color: $inline-ai-assist-footer-focused-border-color;
        }
        .e-inline-send {
          color: $inline-ai-assist-send-color;
          &.disabled {
            color: $inline-ai-assist-send-disabled-color;
          }
        }
      }
      .e-footer-icons-wrapper {
        .e-toolbar .e-toolbar-item {
          .e-tbar-btn {
            &:focus {
              box-shadow: none;
            }
            &:hover:not(:focus-visible),
            &:active {
              background: transparent;
              box-shadow: none;
              .e-icons {
                color: $inline-ai-assist-send-color;
              }
              .e-icons.disabled {
                color: $inline-ai-assist-send-disabled-color;
              }
              .e-inline-stop {
                color: $inline-ai-assist-response-stopper-item-color;
                @if ($theme-name == 'fluent2-highcontrast') {
                  color: rgba(27, 26, 25, 1);
                }
              }
            }
            &:focus:not(:focus-visible) {
              outline: none;
              box-shadow: none;
              background: transparent;
            }
          }
        }
      }
      .e-inline-stop.e-icons {
        color: $inline-ai-assist-response-stopper-item-color;
        background-color: $inline-ai-assist-response-stopper-bg-color;
        @if ($theme-name == 'fluent2-highcontrast') {
          color: rgba(27, 26, 25, 1);
        }
      }
    }

    .e-content:has(.e-output-container) {
      background: $inline-ai-assist-content-bg;
      border-bottom: $inline-ai-assist-content-border-bottom;
    }

    .e-indicator {
      background: $inline-ai-assist-indicator-bg;
      animation: e-inline-indicator-blink 1s infinite;
    }
    .e-indicator-text {
      color: $inline-ai-assist-textarea-placeholder-color;
    }

    @keyframes e-inline-indicator-blink {
      50% {
        background: $inline-ai-assist-indicator-blink-bg;
        height: .2rem;
      }
    }
  }
  .e-inlineaiassist-selected-text {
    background: $inline-ai-assist-text-selection-bg;
    color: $inline-ai-assist-text-selection-color;
  }
}
