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;
}

body.JSFormHtmlEditorFullscreenActive {
  overflow: hidden;
}

div.JSFormHtmlEditor.is-fullscreen {
  position: fixed;
  z-index: 2147483646;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  border: 0;
}

div.popup_outer.JSFormHtmlSourceEditorPopup,
div.JSFormHtmlSourceEditorPopup {
  z-index: 2147483647 !important;
}

div.JSFormHtmlEditor.is-fullscreen div.JSFormHtmlEditorToolbar {
  position: sticky;
  z-index: 3;
  top: 0;
  flex: 0 0 auto;
}

div.JSFormHtmlEditor.is-fullscreen div.JSFormHtmlEditorSurface {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  height: auto;
  resize: none;
}

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;
}

span.JSFormHtmlEditorFormatPicker,
span.JSFormHtmlEditorTranslatePicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
}

span.JSFormHtmlEditorLanguageSpinner {
  display: none;
  position: relative;
  flex: 0 0 20px;
  width: 20px !important;
  height: 20px !important;
  margin: 0;
}

span.JSFormHtmlEditorLanguageSpinner.is-visible {
  display: inline-block;
}

button.JSFormHtmlEditorToolbarButton span.JSFormHtmlEditorLanguageSpinner {
  flex: 0 0 20px;
}

button.JSFormHtmlEditorToolbarButton[data-command="languagePolish"] > i.fa-spinner,
button.JSFormHtmlEditorToolbarButton[data-command="languagePolish"] > svg.fa-spinner {
  display: none !important;
}

button.JSFormHtmlEditorToolbarButton[data-command="languagePolish"] > i.fa-spinner.is-visible,
button.JSFormHtmlEditorToolbarButton[data-command="languagePolish"] > svg.fa-spinner.is-visible {
  display: inline-block !important;
}

span.JSFormHtmlEditorFormatPicker i.JSFormHtmlEditorFormatPickerIcon {
  display: none;
  color: var(--lor-color-dark);
  font-size: 1.1em;
}

select.JSFormHtmlEditorToolbarSelect {
  box-sizing: border-box;
  height: 30px;
  min-width: 120px;
  padding: 0 6px;
  border: 1px solid #c8c8c8;
  border-radius: 3px;
  background-color: #fff;
  color: var(--lor-color-dark);
  cursor: pointer;
}

div.JSFormHtmlEditorToolbar select.JSFormHtmlEditorToolbarSelect {
  width: auto;
  height: 30px;
  padding: 0 6px;
}

select.JSFormHtmlEditorToolbarSelect:disabled {
  opacity: 0.65;
  cursor: default;
}

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.JSFormHtmlGlyphToolbarIcon {
  font-size: 1.25em;
  line-height: 1;
}

div.JSFormHtmlGlyphPickerPopup div.JSFormHtmlGlyphPicker {
  display: flex;
  flex-direction: column;
  min-width: 360px;
  max-width: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  background-color: #fff;
}

div.JSFormHtmlGlyphPickerPopup div.JSFormHtmlGlyphPickerTabs {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  width: 100%;
  background-color: var(--lor-color);
}

div.JSFormHtmlGlyphPickerPopup ul.JSFormHtmlGlyphPickerCategories {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  margin: 0 !important;
  background-color: var(--lor-color) !important;
}

div.JSFormHtmlGlyphPickerPopup ul.JSFormHtmlGlyphPickerCategories li {
  background-color: #f4f4f4 !important;
  box-shadow: inset 0 -10px 10px -8px rgba(85, 85, 85, 0.66);
  color: #555 !important;
  transform: translateY(2px);
}

div.JSFormHtmlGlyphPickerPopup ul.JSFormHtmlGlyphPickerCategories li:hover {
  background-color: var(--lor-color-dark) !important;
  color: #fff !important;
}

div.JSFormHtmlGlyphPickerPopup ul.JSFormHtmlGlyphPickerCategories li.chosen {
  background-color: #fff !important;
  box-shadow: none;
  color: #555 !important;
  font-weight: bold;
  min-height: 47px;
  transform: translateY(0);
}

div.JSFormHtmlGlyphPickerPopup div.JSFormHtmlGlyphPickerContent {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: auto !important;
  flex: 1 1 auto;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  padding: 12px 8px 12px 12px;
  background-color: #fff;
  overflow: hidden;
}

div.JSFormHtmlGlyphPickerPopup
  div.JSFormHtmlGlyphPickerContent
  > div.JSFormHtmlGlyphCategoryPanel {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  box-sizing: border-box;
  width: auto;
  height: auto !important;
  padding: 12px;
  background-color: #fff;
  overflow: auto;
}

div.JSFormHtmlGlyphPickerPopup div.JSFormHtmlGlyphPickerRecent {
  flex: 0 0 auto;
  padding: 0 0 8px;
  background-color: var(--lor-color);
}

div.JSFormHtmlGlyphPickerPopup div.JSFormHtmlGlyphPickerRecent + div.JSFormHtmlGlyphPickerTabs {
  margin-top: 0;
}

div.JSFormHtmlGlyphPickerPopup div.JSFormHtmlGlyphPickerGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 5px;
}

div.JSFormHtmlGlyphPickerPopup button.JSFormHtmlGlyphButton {
  min-width: 42px;
  min-height: 38px;
  padding: 3px;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  background-color: #fff;
  color: var(--lor-color-dark);
  cursor: pointer;
  font-size: 1.25em;
}

div.JSFormHtmlGlyphPickerPopup button.JSFormHtmlGlyphButton:hover,
div.JSFormHtmlGlyphPickerPopup button.JSFormHtmlGlyphButton:focus {
  border-color: var(--lor-color-editor-active);
  background-color: #f5f5f5;
  box-shadow: 0 0 2px var(--lor-color);
  outline: none;
}

div.JSFormHtmlGlyphPickerPopup span.JSFormHtmlGlyphPickerEmpty {
  color: #666;
  font-size: 0.9em;
}

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,
div.JSFormHtmlEditor.is-fullscreen div.JSFormHtmlEditorSurface::selection {
  background-color: var(--lor-color-water);
  color: #fff;
}

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

div.JSFormLine div.JSFormInput div.JSFormHtmlEditorSurface:focus,
div.JSFormHtmlEditor.is-fullscreen 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 p.command {
  padding: 8px 10px;
  background-color: var(--lor-color-water);
  color: #fff;
  font-family: monospace;
}

div.JSFormHtmlEditorSurface a.button,
div.JSFormHtmlEditorSurface a.jsform_html_link {
  display: inline-block;
  padding: 5px 10px;
  background-color: var(--lor-color-water);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

div.JSFormHtmlEditorSurface a.button:hover,
div.JSFormHtmlEditorSurface a.button:focus,
div.JSFormHtmlEditorSurface a.jsform_html_link:hover,
div.JSFormHtmlEditorSurface a.jsform_html_link:focus {
  background-color: var(--lor-color-editor-active-hover);
  color: #fff !important;
  text-decoration: none !important;
}

div.JSFormHtmlEditorSurface a.button + a.button,
div.JSFormHtmlEditorSurface a.jsform_html_link + a.jsform_html_link {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

div.JSFormHtmlEditorSurface a.button:has(+ a.button),
div.JSFormHtmlEditorSurface a.jsform_html_link:has(+ a.jsform_html_link) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 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 + blockquote {
  margin-top: -0.8em;
  padding-top: 0;
}

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;
}

div.JSFormHtmlEditorImageControls.is-clipped-right
  button.JSFormHtmlEditorImageResizeHandle {
  right: 4px;
}

div.JSFormHtmlEditorImageControls.is-clipped-bottom
  button.JSFormHtmlEditorImageResizeHandle {
  bottom: 4px;
}

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

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

div.JSFormHtmlEditor.is-fullscreen div.JSFormHtmlEditorSurface ul {
  margin: 12px 0;
}

div.JSFormHtmlEditor.is-fullscreen div.JSFormHtmlEditorSurface ol {
  margin-left: 42px !important;
}

div.JSFormHtmlEditor.is-fullscreen div.JSFormHtmlEditorSurface ul li,
div.JSFormHtmlEditor.is-fullscreen div.JSFormHtmlEditorSurface ol li {
  padding: 0 0 0 20px;
}

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

div.JSFormLine div.JSFormInput div.JSFormHtmlEditorSurface ol li,
div.JSFormHtmlEditor.is-fullscreen 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,
div.JSFormHtmlEditor.is-fullscreen div.JSFormHtmlEditorSurface ul li ul,
div.JSFormHtmlEditor.is-fullscreen div.JSFormHtmlEditorSurface ul li ol,
div.JSFormHtmlEditor.is-fullscreen div.JSFormHtmlEditorSurface ol li ul,
div.JSFormHtmlEditor.is-fullscreen 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;
}

div.JSFormHtmlSourceEditor {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

div.JSFormHtmlSourceEditor div.JSFormLine.textarea {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

div.JSFormHtmlSourceEditor div.JSFormLine.textarea label.JSFormMainLabel {
  flex: 0 0 auto;
  width: 100%;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 10px;
}

div.JSFormHtmlSourceEditor div.JSFormLine.textarea div.JSFormInput {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

div.JSFormHtmlSourceEditor textarea.JSForm_textarea {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 320px;
  font-family: Consolas, 'Courier New', monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

div.JSFormHtmlSourceEditor div.JSFormHtmlSourceError {
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid #c00;
  border-radius: 4px;
  color: #900;
  background-color: #fff5f5;
}

div.JSFormHtmlTranslation {
  min-width: 320px;
  padding: 8px 4px 4px;
}

div.JSFormHtmlTranslation p {
  margin: 0 0 14px;
}

div.JSFormHtmlTranslation p.JSFormHtmlTranslationDetected {
  color: #666;
  font-size: 0.95em;
}

label.JSFormHtmlTranslationLabel {
  display: block;
  margin-bottom: 6px;
  color: var(--lor-color-editor-active);
}

select.JSFormHtmlTranslationTarget {
  width: 100%;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #666;
  background-color: #fff;
  font-size: 1em;
}

div.JSFormHtmlTranslation p.JSFormHtmlTranslationStatus {
  min-height: 1.25em;
  margin-bottom: 0;
  color: #666;
}