@use '../../assets/styles/fonts';
@use '../../assets/styles/mixins';

.ff-dynamic-icon-container {
  position: fixed;
}

.ff-dynamic-icon {
  position: fixed;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999999;
  transition: transform 0.3s ease;
}

.ff-dynamic-icon:hover {
  background-color: var(--chatbot-icon-hover-color);
  border-radius: 50%;
}

.ff-chat-icon-hover {
  position: fixed;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.4s ease;
  z-index: 999;
}

.ff-dynamic-icon-container:hover .ff-chat-icon-hover {
  opacity: 1;
  visibility: visible;
}

.ff-dynamic-modal {
  background-color: var(--prompt-bg-color);
  border-radius: 20px;
  box-shadow: 0px 6px 15px var(--arrows-button-border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  transform: scale(0.5);
  transform-origin: bottom right;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  z-index: 9999999;

  &:after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    border-style: solid;
    border-width: 12px 12px 0 12px;
    border-color: var(--prompt-bg-color) transparent transparent transparent;
    z-index: 999;
  }

  &.open {
    transform: scale(1);
  }

  &-content {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  &-header {
    background-color: var(--brand-color);
    color: var(--tooltip-text-color);
    text-align: center;
    border-radius: 20px 20px 0 0;

    .header-container {
      @include mixins.horizontal-space-between();
      height: 32px;
      padding: 2px 5px;

      .header-left {
        @include mixins.center-vertical();
        flex-basis: 50%;

        span {
          padding-right: 4px;
        }
      }

      .header-right {
        @include mixins.center-vertical();
        justify-content: space-around;
        flex-basis: 14%;

        .action {
          cursor: pointer;
        }
      }
    }
  }

  &-body {
    flex: 1;
    overflow-y: auto;
    background: var(--prompt-bg-color);
  }

  &-footer {
    background: var(--prompt-bg-color);
    text-align: right;
    border-radius: 0px 0px 20px 20px;
  }
}

.ff-content-box {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  text-align: justify;
}
