.content-generator-text-area {
  .form-label {
    display: inline-block;
    padding-bottom: var(--spacing-2);
  }

  .ck-editor__editable {
    min-height: 15rem;
  }

  .content-generator-text-area__action-button {
    position: absolute;
    margin-top: var(--spacing-1);
    margin-left: var(--spacing-1);
  }

  .ck-editor__editable {
    padding-left: calc((var(--spacing-1) * 2) + 22px) !important;
  }

  .content-generator-text-area__context-menu {
    padding: var(--spacing-2);

    animation: var(--conductor-pop-in);
    /* @todo get this out of the design system */
    border-radius: 8px;

    background: var(--white);
    box-shadow: var(--shadow-4);

    color: var(--slate-12);
    font-size: var(--font-size-1);

    > li {
      padding: var(--spacing-2);
      /* @todo get this out of the design system */
      border-radius: 4px;

      cursor: pointer;
      &:hover, &:focus {
        background: var(--blue-3);
      }

      .lucide {
        display: inline-block;
        width: var(--spacing-3);
        height: var(--spacing-3);
        margin-right: var(--spacing-2);
      }
    }

  }

  .content-generator-text-area__action-button--draft-options-open {
    right: 0;
    left: 0;
  }

  .content-generator-text-area__context-menu--draft-options {
    display: flex;
    flex-direction: column;
    margin: 0 var(--spacing-3) var(--spacing-4);
    padding: var(--spacing-4);

    border: 1px solid var(--slate-3);

    box-shadow: var(--shadow-6);

    /* @todo replace this with global form styles. */
    textarea {
      margin-bottom: var(--spacing-4);
      padding: var(--spacing-1);

      border: var(--form-border);
      border-radius: var(--form-border-radius);
      outline: none;
    }

    .tag-input__container {
      margin-bottom: var(--spacing-4);
    }
  }

  .content-generator-text-area__buttons {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-2);
  }

  .content-generator-text-area--is-streaming .text-editor .ck-editor__editable {
    animation: glow 1.5s ease-in-out infinite;

    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  }

  .content-generator-text-area__streaming-overlay {
    height: 100%;
  }

  .content-generator-text-area__streaming-overlay-inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);

    align-items: center;
    margin: var(--spacing-4);
    padding-top: var(--spacing-7);

    .lucide-sparkles {
      color: var(--blue-9);
    }

    .lucide-info {
      width: var(--font-size-3);
      height: var(--font-size-3);
    }
  }

  .content-generator-text-area__message {
    display: flex;
    margin: var(--spacing-4);
    padding: var(--spacing-3);

    border: 1px solid var(--blue-6);
    border-radius: var(--radius-medium-3);

    background: var(--blue-2);
    gap: var(--spacing-2);
  }

  .content-generator-text-area__message--error {
    border-color: var(--red-9);

    background: var(--red-4);
  }

  .conductor__button {
    align-self: flex-end;
  }
}
