/**
 * @file
 * Styles for the automatic annotation field.
 *
 * Greys out the annotation field when "generate automatically" is checked.
 * The plain textarea (string_long) is greyed natively by the disabled
 * attribute; these rules cover the CKEditor 5 formatted field (text_long),
 * which is switched to read-only by the module's JS.
 */

/* Higher specificity than CKEditor's own
 * `.ck.ck-editor__main > .ck-editor__editable` rule, which otherwise wins on
 * source order and resets the background to white. */
.ck.ck-editor__main > .ck-editor__editable.ck-read-only {
  background-color: #eaeaea;
  color: #6c6c6c;
  cursor: not-allowed;
}

.ck-editor:has(.ck-editor__editable.ck-read-only) .ck-toolbar {
  opacity: 0.5;
  pointer-events: none;
}
