div[data-editorjs-holder],
.data-editorjs-holder {
	display: inline-block;
	width: 100%;
	padding: 0;
}

.codex-editor {
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    z-index: 1;
}


/* Общие стили для блоков */
.cdx-block {
    margin-bottom: 20px;
}

/* Стили для заголовков */
.cdx-block.ce-header {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 10px;
}

h1.cdx-block.ce-header { font-size: 2.5em; }
h2.cdx-block.ce-header { font-size: 2em; }
h3.cdx-block.ce-header { font-size: 1.75em; }
h4.cdx-block.ce-header { font-size: 1.5em; }
h5.cdx-block.ce-header { font-size: 1.25em; }
h6.cdx-block.ce-header { font-size: 1em; }

/* Стили для параграфов */
.cdx-block.ce-paragraph {
    line-height: 1.6;
    font-size: 1em;
}

.ce-quote{
    border-left:5px solid grey;
    padding-left:15px;
}

/* Стили для списков */
.cdx-block.cdx-list {
    padding-left: 20px;
    margin-bottom: 10px;
}

.cdx-list__item {
    line-height: 1.5;
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start; /* Выравнивание по верхнему краю для чекбоксов */
}

.cdx-list__item > span {
    display: inline-block; /* Чтобы текст обтекал */
}

.cdx-list__item > input[type="checkbox"] {
    margin-right: 5px;
    margin-top: 4px; /* Чтобы чекбокс был примерно посередине текста */
}

.cdx-list-ordered {
    list-style-type: none;
    counter-reset: list-counter; /* Сбрасываем главный счетчик */
}

.cdx-list-ordered > .cdx-list__item {
    counter-increment: list-counter; /* Увеличиваем главный счетчик для каждого элемента */
    position: relative; /* Для позиционирования псевдоэлемента */
}

.cdx-list-ordered > .cdx-list__item::before {
    content: counter(list-counter) ". "; /* Выводим главный счетчик */
    display: inline-block;
    margin-right: 5px;
    text-align: right;
    min-width: 1em;
}

/* CSS для вложенных списков */
.cdx-list-ordered .cdx-list__item ol {
  list-style-type: none;
  counter-reset: nested-counter; /* Сбрасываем счетчик вложенных элементов */
  padding-left: 20px; /* Отступ для вложенных списков */
}


.cdx-list-ordered .cdx-list__item ol .cdx-list__item {
  counter-increment: nested-counter; /* Увеличиваем счетчик вложенных элементов */
}

.cdx-list-ordered .cdx-list__item ol .cdx-list__item::before {
  content: counter(list-counter) "." counter(nested-counter) " ";
  display: inline-block;
  margin-right: 5px;
    text-align: right;
    min-width: 2em;
}

.cdx-list-unordered {
    list-style-type: none;
}

.cdx-list-unordered > .cdx-list__item::before {
    content: "• ";
    display: inline-block;
    margin-right: 5px;
}

.cdx-list-unordered > .cdx-list__item ul > .cdx-list__item::before {
    content: "◦ ";
    color: #777;
}

.cdx-list-unordered > .cdx-list__item ul > .cdx-list__item ul > .cdx-list__item::before {
  content: "▪ ";
    color: #aaa;
}
.cdx-list-checklist {
    list-style-type: none;
    padding-left: 0;
}
.cdx-list-checklist > .cdx-list__item > input {
    margin-right: 5px;
}

/* Стили для разделителей */
.cdx-block.ce-delimiter {
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

.ce-block__content,
.ce-toolbar__content{
    max-width: 850px;
}

.ce-block__content {
    position: relative;
    margin: 0 auto;
    -webkit-transition: background-color .15s ease;
    transition: background-color .15s ease;
}

.cdx-block {
    padding: 0;
}

.ce-block:first-of-type {
    margin-top: 0;
}

.codex-editor__redactor{
    padding-bottom: 0 !important;
}

.cx-editfield input{
    border: 0;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    display: block;
    padding-left: 0;
}

.cx-submit{
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    display: block;
    padding-left: 0;
}

img {
    max-width: 100%;
    height: auto;
}
