div.JSFormHtmlEditor {
  position: relative;
  width: 100%;
  border: 1px solid #d5d5d5;
  background-color: #fff;
}

div.JSFormHtmlEditorToolbar {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  border-bottom: 1px solid #d5d5d5;
  background-color: #f5f5f5;
}

div.JSFormHtmlEditorToolbarRow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-width: 0;
}

span.JSFormHtmlEditorToolbarGroup {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  min-width: 0;
}

span.JSFormHtmlEditorToolbarButtonTooltip {
  display: inline-flex;
}

button.JSFormHtmlEditorToolbarButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #c8c8c8;
  border-radius: 3px;
  background-color: #fff;
  color: var(--lor-color-dark);
  cursor: pointer;
}

button.JSFormHtmlEditorToolbarButton:disabled {
  opacity: 0.65;
  cursor: default;
}

button.JSFormHtmlEditorToolbarButton.is-active {
  border-color: var(--lor-color-editor-active);
  background-color: var(--lor-color-editor-active);
  color: #fff;
}

button.JSFormHtmlEditorToolbarButton.is-active:hover {
  border-color: var(--lor-color-editor-active-hover);
  background-color: var(--lor-color-editor-active-hover);
}

span.JSFormHtmlEditorToolbarSeparator {
  width: 1px;
  height: 22px;
  margin: 0 3px;
  background-color: #c8c8c8;
}

div.JSFormHtmlEditorSurface {
  min-height: 160px;
  max-height: 420px;
  height: auto;
  padding: 14px;
  background-color: #fff;
  color: #666;
  font-family: 'OS', Verdana, Arial, Helvetica, sans-serif;
  cursor: text;
  caret-color: var(--lor-color);
  line-height: 1.5;
  outline: none;
  overflow-x: hidden;
  overflow-y: auto;
  resize: vertical;
}

div.JSFormLine div.JSFormInput div.JSFormHtmlEditorSurface::selection {
  background-color: var(--lor-color-water);
  color: #fff;
}

div.JSFormLine div.JSFormInput div.JSFormHtmlEditorSurface::-moz-selection {
  background-color: var(--lor-color-water);
  color: #fff;
}

div.JSFormLine div.JSFormInput div.JSFormHtmlEditorSurface:focus {
  box-shadow: 0 0 2px var(--lor-color);
}

div.JSFormHtmlEditorSurface em,
div.JSFormHtmlEditorSurface i {
  font-style: italic;
}

div.JSFormHtmlEditorSurface p {
  min-height: 1.5em;
  margin: 0 0 0.8em;
}

div.JSFormHtmlEditorSurface p:last-child {
  margin-bottom: 0;
}

div.JSFormHtmlEditorSurface h1,
div.JSFormHtmlEditorSurface h2,
div.JSFormHtmlEditorSurface h3,
div.JSFormHtmlEditorSurface h4,
div.JSFormHtmlEditorSurface h5,
div.JSFormHtmlEditorSurface h6 {
  margin: 0 0 0.8em;
  color: inherit;
  font-family: inherit;
}

div.JSFormHtmlEditorSurface h1:last-child,
div.JSFormHtmlEditorSurface h2:last-child,
div.JSFormHtmlEditorSurface h3:last-child,
div.JSFormHtmlEditorSurface h4:last-child,
div.JSFormHtmlEditorSurface h5:last-child,
div.JSFormHtmlEditorSurface h6:last-child {
  margin-bottom: 0;
}

div.JSFormHtmlEditorSurface blockquote {
  margin: 0 0 0.8em;
  padding: 10px 10px 10px 20px;
  border-left: 4px solid var(--lor-color);
  background-color: #fafafa;
  font-family: monospace;
}

div.JSFormHtmlEditorSurface blockquote > p:last-child,
div.JSFormHtmlEditorSurface blockquote > h1:last-child,
div.JSFormHtmlEditorSurface blockquote > h2:last-child,
div.JSFormHtmlEditorSurface blockquote > h3:last-child,
div.JSFormHtmlEditorSurface blockquote > h4:last-child,
div.JSFormHtmlEditorSurface blockquote > h5:last-child,
div.JSFormHtmlEditorSurface blockquote > h6:last-child {
  margin-bottom: 0;
}

div.JSFormHtmlEditorSurface blockquote:last-child {
  margin-bottom: 0;
}

div.JSFormHtmlEditorSurface img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  cursor: pointer;
}

div.JSFormHtmlEditorSurface img.is-selected {
  outline: 2px solid var(--lor-color-editor-active);
  outline-offset: 1px;
}

div.JSFormHtmlEditorImageControls {
  display: none;
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

div.JSFormHtmlEditorImageControls button {
  display: inline-flex;
  position: absolute;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--lor-color-editor-active);
  border-radius: 3px;
  background-color: var(--lor-color-editor-active);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}

div.JSFormHtmlEditorImageControls button:hover {
  border-color: var(--lor-color-editor-active-hover);
  background-color: var(--lor-color-editor-active-hover);
}

button.JSFormHtmlEditorImagePreview {
  top: 4px;
  right: 4px;
}

button.JSFormHtmlEditorImageResizeHandle {
  right: -13px;
  bottom: -13px;
  cursor: nwse-resize;
}

button.JSFormHtmlEditorImageResizeHandle i {
  transform: rotate(90deg);
}

div.JSFormHtmlEditorSurface ul,
div.JSFormHtmlEditorSurface ol {
  margin: 0 0 0.8em;
  padding-left: 2em;
}

div.JSFormLine div.JSFormInput div.JSFormHtmlEditorSurface ul li {
  list-style-type: disc !important;
}

div.JSFormLine div.JSFormInput div.JSFormHtmlEditorSurface ol li {
  list-style-type: decimal !important;
}

div.JSFormLine div.JSFormInput div.JSFormHtmlEditorSurface ul li ul,
div.JSFormLine div.JSFormInput div.JSFormHtmlEditorSurface ul li ol,
div.JSFormLine div.JSFormInput div.JSFormHtmlEditorSurface ol li ul,
div.JSFormLine div.JSFormInput div.JSFormHtmlEditorSurface ol li ol {
  display: block;
}

div.JSFormHtmlEditorSurface ul li,
div.JSFormHtmlEditorSurface ol li {
  margin: 0 0 0.1em !important;
}

div.JSFormHtmlEditorSurface ul li:last-child,
div.JSFormHtmlEditorSurface ol li:last-child {
  margin-bottom: 0 !important;
}

div.JSFormHtmlEditorSurface ul:last-child,
div.JSFormHtmlEditorSurface ol:last-child {
  margin-bottom: 0;
}

div.JSFormHtmlEditor textarea.JSForm_html_value {
  display: none;
}