:root,
:host {
  --w-e-textarea-bg-color: #fff;
  --w-e-textarea-color: #000;
  --w-e-textarea-font-size: 16px;
  --w-e-textarea-border-color: #ccc;
  --w-e-textarea-slight-border-color: #e8e8e8;
  --w-e-textarea-slight-color: #d4d4d4;
  --w-e-textarea-slight-bg-color: #f5f2f0;
  --w-e-textarea-selected-border-color: #B4D5FF;
  --w-e-textarea-handler-bg-color: #4290f7;
}

.editor-generate-preview-wrapper {
  padding-left: 1em;
  padding-right: 1em;
  font-size: var(--w-e-textarea-font-size);
}

.w-e-text-container {
  position: relative;
  margin: 0;
  padding: 0;
  height: 100%;
  outline: none;
  background-color: var(--w-e-textarea-bg-color);
  color: var(--w-e-textarea-color);
  box-sizing: border-box;
}
.w-e-text-container > *:first-child {
  margin-top: 0;
}

.w-e-text-container li, .w-e-text-container p, .w-e-text-container td, .w-e-text-container th {
  line-height: 1.5
}

.w-e-text-container h1 {
  font-size: 2.25em;
  margin: 0.67em 0;
  font-weight: 700;
}

.w-e-text-container h2 {
  font-size: 2em;
  margin: 0.65em 0;
  font-weight: 700;
}

.w-e-text-container h3 {
  font-size: 1.75em;
  margin: 0.65em 0;
  font-weight: 600;
}

.w-e-text-container h4 {
  font-size: 1.5em;
  margin: 0.6em 0;
  font-weight: 600;
}

.w-e-text-container h5 {
  font-size: 1.25em;
  margin: 0.5em 0;
  font-weight: 600;
}

.w-e-text-container p {
  font-size: 1em;
  margin: 0.25em 0
}

.w-e-text-container span {
  text-indent: 0
}

.w-e-text-container blockquote {
  line-height: 1.5;
  background-color: var(--w-e-textarea-slight-bg-color);
  border-left: 8px solid var(--w-e-textarea-selected-border-color);
  display: block;
  font-size: 100%;
  margin: 10px 0;
  padding: 10px;
}

.w-e-text-container ul,
.w-e-text-container ol {
  padding-left: 2em;
}

.w-e-text-container [data-w-e-type="todo"] {
  position: relative;
  padding-left: 2em;

}

.w-e-text-container [data-w-e-type="todo"] input[type='checkbox'] {
  position: absolute;
  top: 0.35em;
  left: 0.75em;
}

.w-e-text-container [data-w-e-type="todo"] input[type='checkbox']:disabled {
  color: red;
}

.w-e-text-container hr {
  background-color: var(--w-e-textarea-border-color);
  display: block;
  margin: 1em auto;
  height: 1px;
  border: 0;
}


.w-e-text-container img {
  display: inline !important;
  max-width: 100%;
  min-width: 20px;
  min-height: 20px;
  object-fit: scale-down;
  cursor: default;
}

.w-e-text-container video {
  margin: auto;
  max-width: 100%;
}

.w-e-text-container table {
  margin: 1em 0;
  border-collapse: collapse
}

.w-e-text-container table td,
.w-e-text-container table th {
  border: 1px solid var(--w-e-textarea-border-color);
  line-height: 1.5;
  min-width: 30px;
  padding: 3px 5px;
  text-align: left
}

.w-e-text-container table th {
  background-color: var(--w-e-textarea-slight-bg-color);
  font-weight: 700;
  text-align: center
}

.w-e-text-container pre {

}

.w-e-text-container pre > code {
  display: block;
  margin: .5em 0;
  padding: 1em;
  background-color: var(--w-e-textarea-slight-bg-color);
  border: 1px solid var(--w-e-textarea-slight-border-color);
  border-radius: 4px 4px;
  font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
  font-size: 14px;
  line-height: 1.5;
  text-indent: 0;
  text-align: left;
  text-shadow: 0 1px #fff;
  word-wrap: normal;
  -webkit-hyphens: none;
  hyphens: none;
  overflow: auto;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  white-space: pre;
  word-break: normal;
  word-spacing: normal;
}

.w-e-text-container pre > code .token.cdata,
.w-e-text-container pre > code .token.comment,
.w-e-text-container pre > code .token.doctype,
.w-e-text-container pre > code .token.prolog {
  color: #708090
}

.w-e-text-container pre > code .token.punctuation {
  color: #999
}

.w-e-text-container pre > code .token.namespace {
  opacity: .7
}

.w-e-text-container pre > code .token.boolean,
.w-e-text-container pre > code .token.constant,
.w-e-text-container pre > code .token.deleted,
.w-e-text-container pre > code .token.number,
.w-e-text-container pre > code .token.property,
.w-e-text-container pre > code .token.symbol,
.w-e-text-container pre > code .token.tag {
  color: #905
}

.w-e-text-container pre > code .token.attr-name,
.w-e-text-container pre > code .token.builtin,
.w-e-text-container pre > code .token.char,
.w-e-text-container pre > code .token.inserted,
.w-e-text-container pre > code .token.selector,
.w-e-text-container pre > code .token.string {
  color: #690
}

.w-e-text-container pre > code .language-css .token.string,
.w-e-text-container pre > code .style .token.string,
.w-e-text-container pre > code .token.entity,
.w-e-text-container pre > code .token.operator,
.w-e-text-container pre > code .token.url {
  color: #9a6e3a
}

.w-e-text-container pre > code .token.atrule,
.w-e-text-container pre > code .token.attr-value,
.w-e-text-container pre > code .token.keyword {
  color: #07a
}

.w-e-text-container pre > code .token.class-name,
.w-e-text-container pre > code .token.function {
  color: #dd4a68
}

.w-e-text-container pre > code .token.important,
.w-e-text-container pre > code .token.regex,
.w-e-text-container pre > code .token.variable {
  color: #e90
}

.w-e-text-container pre > code .token.bold,
.w-e-text-container pre > code .token.important {
  font-weight: 700
}

.w-e-text-container pre > code .token.italic {
  font-style: italic
}

.w-e-text-container pre > code .token.entity {
  cursor: help
}


.w-e-text-container code {
  background-color: var(--w-e-textarea-slight-bg-color);
  border-radius: 3px;
  font-family: monospace;
  padding: 3px
}
