.rich-text-editor,
.rich-text-editor-tools,
.rich-text-editor-view,
.rich-text-editor-source {
  display:block;
  margin:0;
  padding:0;
  background:none;
  font:inherit;
  color:inherit;
  border:0;
  outline:0;
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  box-sizing:border-box;
}

.rich-text-editor ::-webkit-input-placeholder {
  opacity:.5;
  color:inherit;
}

.rich-text-editor ::-moz-placeholder {
  opacity:.5;
  color:inherit;
}

.rich-text-editor ::placeholder {
  opacity:.5;
  color:inherit;
}

.rich-text-editor {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ICL);
  border-radius: 4px !important;
  background: var(--IBG);
  color: var(--PCL);
  line-height: 1.5em;
  position: relative;
  max-height: 520px;
  overflow: auto;
}

.rich-text-editor-tools {
  order: 0;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  width: 100%;
  min-height: 38px;
  padding: 8px 6px 2px 6px;
  background: var(--IBG);
  border-bottom: 1px solid var(--ICL);
  font: normal 400 14px Roboto, Arial, sans-serif;
  text-align: left;
  opacity: 1;
  visibility: visible;
  box-sizing: border-box;
}

.rich-text-editor-tools::after {
  content:"";
  display:table;
  clear:both;
}

.rich-text-editor-tools a,
.rich-text-editor-tools button {
  float: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  margin: 0;
  padding: 0;
  background: none;
  color: var(--TXT, #000);
  text-decoration: none;
  border: 0;
  border-radius: 4px;
  outline: 0;
  cursor: pointer;
  font: inherit;
  box-sizing: border-box;
}

.rich-text-editor-tools a span,
.rich-text-editor-tools button span {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.rich-text-editor-tools svg {
  display:inline-block;
  vertical-align:middle;
  width:1em;
  height:1em;
  line-height:1em;
  font-weight:normal;
  font-style:normal;
  text-decoration:none;
  fill:currentColor;
}

.rich-text-editor-tools a:focus,
.rich-text-editor-tools a:hover,
.rich-text-editor-tools button:focus,
.rich-text-editor-tools button:hover {
  background: var(--ABG1, #eff);
  color: var(--ACL2, #fff) !important;
}

.rich-text-editor-tools a:focus i,
.rich-text-editor-tools a:hover i,
.rich-text-editor-tools a:focus span,
.rich-text-editor-tools a:hover span,
.rich-text-editor-tools a:focus svg,
.rich-text-editor-tools a:hover svg,
.rich-text-editor-tools a:focus i::before,
.rich-text-editor-tools a:hover i::before,
.rich-text-editor-tools a:focus .fa::before,
.rich-text-editor-tools a:hover .fa::before,
.rich-text-editor-tools a:focus .fas::before,
.rich-text-editor-tools a:hover .fas::before,
.rich-text-editor-tools a:focus .far::before,
.rich-text-editor-tools a:hover .far::before,
.rich-text-editor-tools a:focus .fab::before,
.rich-text-editor-tools a:hover .fab::before,
.rich-text-editor-tools button:focus i,
.rich-text-editor-tools button:hover i,
.rich-text-editor-tools button:focus span,
.rich-text-editor-tools button:hover span,
.rich-text-editor-tools button:focus svg,
.rich-text-editor-tools button:hover svg,
.rich-text-editor-tools button:focus i::before,
.rich-text-editor-tools button:hover i::before,
.rich-text-editor-tools button:focus .fa::before,
.rich-text-editor-tools button:hover .fa::before,
.rich-text-editor-tools button:focus .fas::before,
.rich-text-editor-tools button:hover .fas::before,
.rich-text-editor-tools button:focus .far::before,
.rich-text-editor-tools button:hover .far::before,
.rich-text-editor-tools button:focus .fab::before,
.rich-text-editor-tools button:hover .fab::before {
  color: var(--ACL2, #fff) !important;
  fill: var(--ACL2, #fff) !important;
}

.rich-text-editor-tools .rich-text-editor-separator {
  display: block;
  width: 0.3px;
  height: 35px;
  margin: -6px 6px;
  background: var(--ICL);
  flex: 0 0 auto;
  align-self: stretch;
}

.rich-text-editor-view {
  order: 1;
  display: block;
  min-height: 400px;
  padding: 14px;
  color: inherit;
  overflow: visible;
  cursor: text;
  box-sizing: border-box;
}

.rich-text-editor.expand .rich-text-editor-view {
  min-height: 400px;
}

.rich-text-editor:hover .rich-text-editor-tools,
.rich-text-editor-view:focus + .rich-text-editor-source + .rich-text-editor-tools,
.rich-text-editor-source:focus + .rich-text-editor-tools {
  -webkit-transition-delay:.125s;
  -moz-transition-delay:.125s;
  transition-delay:.125s;
  opacity:1;
  visibility:visible;
}

.rich-text-editor.source .rich-text-editor-tools a,
.rich-text-editor.source .rich-text-editor-tools button,
.rich-text-editor.source .rich-text-editor-tools .rich-text-editor-separator {
  display: none;
}

.rich-text-editor.source .rich-text-editor-tools .rich-text-editor-t\:x,
.rich-text-editor.source .rich-text-editor-tools .rich-text-editor-t\:source {
  display: flex;
  margin-left: auto;
}

.rich-text-editor.source .rich-text-editor-tools .rich-text-editor-t\:x i::before,
.rich-text-editor.source .rich-text-editor-tools .rich-text-editor-t\:source i::before {
  content: "\f00d";
}

.rich-text-editor-source {
  order: 2;
  width: 100%;
  min-height: 400px;
  background: var(--BBG, #def);
  color: var(--PCL);
  font: normal 400 14px "Courier New", Courier, monospace;
  padding: 14px;
  overflow: auto;
  resize: vertical;
  display: block;
  box-sizing: border-box;
}

.rich-text-editor.view .rich-text-editor-source {
  width:0 !important;
  height:0 !important;
  min-width:0 !important;
  min-height:0 !important;
  border:0 !important;
  overflow:hidden !important;
  position:absolute !important;
  top:1em;
  left:1em;
  margin:0 !important;
  padding:0 !important;
  background:none !important;
  color:transparent !important;
  box-shadow:none !important;
  opacity:0 !important;
}

.rich-text-editor.source .rich-text-editor-view {
  display:none;
}

.rich-text-editor-dialog {
  position: absolute;
  top: 44px;
  left: 12px;
  right: auto;
  bottom: auto;
  width: auto;
  height: auto;
  padding: 0;
  display: none;
  background: var(--IBG);
  border: 1px solid var(--ICL);
  border-radius: 4px;
  z-index: 50;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.rich-text-editor-dialog input {
  display: block;
  width: 120px;
  height: 34px;
  margin: 0;
  padding: 0 10px;
  background: var(--IBG);
  color: var(--PCL);
  border: 0;
  outline: 0;
  font: normal 400 14px Roboto, Arial, sans-serif;
  box-sizing: border-box;
}

.rich-text-editor.dialog .rich-text-editor-dialog {
  display: block;
}

.rich-text-editor.dialog .rich-text-editor-view {
  display: block;
}

.rich-text-editor.dialog .rich-text-editor-source {
  display: block;
}

.rich-text-editor.error {
  border-color:#f00;
}

.rich-text-editor-view:empty::before {
  content:attr(placeholder);
  opacity:.4;
}

.rich-text-editor-view:focus::before {
  display:none;
}

.rich-text-editor-view a {
  color:#00f;
  text-decoration:underline;
}

.rich-text-editor-view mark {
  background:#ff0;
  color:inherit;
}

.rich-text-editor-view b,
.rich-text-editor-view strong {
  font-weight:bold;
}

.rich-text-editor-view i,
.rich-text-editor-view em {
  font-style:italic;
}

.rich-text-editor-view u,
.rich-text-editor-view ins {
  text-decoration:underline;
}

.rich-text-editor-view del {
  text-decoration:line-through;
}

.rich-text-editor-view code {
  font-family:'Courier New',Courier,'Nimbus Mono L',Monospace;
}

.rich-text-editor-view ul,
.rich-text-editor-view ol {
  margin: 0 0 1em 1.5em;
  padding: 0;
}

.rich-text-editor-view li {
  margin: 0 0 .35em 0;
  padding: 0;
}

.rich-text-editor-tools .rich-text-editor-font-popup .rich-text-editor-font-option {
  display: block;
  width: 100px;
  min-width: 100px;
  max-width: 180px;
  height: auto;
  min-height: 34px;
  margin: 0;
  padding: 8px 10px;
  background: var(--IBG);
  color: var(--PCL);
  border: 0;
  border-radius: 4px;
  text-align: left;
  justify-content: flex-start;
  cursor: pointer;
  font: normal 400 14px Roboto, Arial, sans-serif;
  line-height: 1.2em;
  white-space: nowrap;
  box-sizing: border-box;
}

.rich-text-editor-tools .rich-text-editor-font-popup .rich-text-editor-font-option:hover,
.rich-text-editor-tools .rich-text-editor-font-popup .rich-text-editor-font-option.active {
  background: var(--ABG1);
  color: var(--ACL2, #fff) !important;
}

.rich-text-editor-tools .rich-text-editor-font-popup .rich-text-editor-font-option:hover i,
.rich-text-editor-tools .rich-text-editor-font-popup .rich-text-editor-font-option.active i,
.rich-text-editor-tools .rich-text-editor-font-popup .rich-text-editor-font-option:hover span,
.rich-text-editor-tools .rich-text-editor-font-popup .rich-text-editor-font-option.active span {
  color: var(--ACL2, #fff) !important;
}