.jstEditor {
  border-width: 0 1px 1px 1px;
  border-style: solid;
  border-color: var(--body-color);
  background: #f7f7f7;
}
.jstEditor textarea,
.jstEditor iframe {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  border: 1px solid #fbfbfb;
  width: 100%;
  padding: 0.5em calc(0.5em + 1em) 0.5em 0.5em;
  min-height: 100px;
}
body.rtl .jstEditor textarea,
body.rtl .jstEditor iframe {
  padding: 0.5em 0.5em 0.5em calc(0.5em + 1em);
}

.jstEditor textarea:focus,
.jstEditor iframe:focus {
  border-color: #bee74b;
}
.toolbar_bottom .jstEditor {
  border-top-width: 1px;
}
.jstElements {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 3px 5px 3px 10px;
  overflow: hidden;
  line-height: 30px;
  border: 1px solid;
  position: relative;
}
.toolbar_bottom .jstElements {
  border-top-width: 0;
}
.jstElements select,
.jstElements button {
  vertical-align: middle;
}
.jstElements select {
  width: 12em;
}
.jstElements button {
  width: 30px;
  height: 28px;
  border-style: solid;
  border-width: 1px;
  margin-left: 2px;
  margin-bottom: 2px;
  border-color: #323232;
  background-color: #f7f7f7;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: 16px;
  box-shadow: none;
}
.jstElements button:hover,
.jstElements button:focus {
  border-color: #ddd;
  background-color: #fff;
}
.jstElements button span {
  display: none;
}
.jstElements span {
  display: inline-block;
  vertical-align: top;
}
span.jstSpacer {
  width: 8px;
}
.jstSwitcher {
  display: flex;
  list-style: none;
  margin: 0;
  padding: inherit;
  background: #dfdfdf;
  border-top: 1px solid #999;
}
.jstSwitcher li {
  display: inline;
  margin: 0;
  padding: 0.125em 1em;
}
.jstSwitcher li.jstSwitcherCurrent {
  color: #fff;
  background: #677374;
  border-radius: 0 0 2px 2px;
}
.jstSwitcher a {
  color: #333;
  font-weight: normal;
  border-bottom: none !important;
}
/* Buttons
-------------------------------------------------------- */

button.jstb_strong {
  background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_strong.svg);
}
button.jstb_em {
  background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_em.svg);
}
button.jstb_ins {
  background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_ins.svg);
}
button.jstb_del {
  background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_del.svg);
}
button.jstb_quote {
  background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_quote.svg);
}
button.jstb_code {
  background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_code.svg);
}
button.jstb_mark {
  background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_mark.svg);
}
button.jstb_br {
  background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_br.svg);
}
button.jstb_blockquote {
  background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_bquote.svg);
}
button.jstb_pre {
  background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_pre.svg);
}
button.jstb_ul {
  background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_ul.svg);
}
button.jstb_ol {
  background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_ol.svg);
}
button.jstb_link {
  background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_link.svg);
}
button.jstb_img {
  background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_img.svg);
}
button.jstb_img_select {
  background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_img_select.svg);
}
button.jstb_post_link {
  background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_post.svg);
}
button.jstb_removeFormat {
  background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_clean.svg);
  position: absolute;
  right: 5px;
  bottom: 3px;
}
/* WYSIWYG Iframe */

.wysiwygIframe {
  border-width: 1px;
  border-style: solid;
  border-color: #000 #ccc #ccc #000;
  width: 100%;
}
/* WYSIWYG Document */

body.wysiwygDoc {
  color: #000;
  background: #f9f9f9;
  margin: 0;
  padding: 2px;
  border: none;
}
.wysiwygDoc code {
  color: #666;
  font-weight: bold;
}
body.wysiwygDoc > p:first-child {
  margin-top: 0;
}
