body {
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  .content-edit-header {
    padding-bottom: 20px;
  }
}

.editorjs {
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .editor-footer {
    padding-left: 0;
    padding-right: 0;
  }

  .editor-footer__back-button {
    display: block;
    text-align: center;
    margin-top: 30px;
  }

  .ce-toolbox__button:not(:last-child) {
    margin-right: 20px;
  }
}

@media (min-width: 769px) {
  .ce-toolbar {
    z-index: 100;

    display: block !important;
  }

  .ce-toolbar__plus--hidden {
    display: inline-flex !important;
  }

  .ce-toolbar__plus {
    top: -1px;
    right: 100%;
    transform: none !important;
  }

  .ce-toolbar__actions {
    top: 7px;
    left: -59px;
    right: auto;
    opacity: 1;
  }

  .ce-toolbar__settings-btn {
    background-color: transparent;
  }

  .codex-editor--toolbox-opened .ce-toolbar__plus {
    transform: rotate(45deg) !important;
  }

  .ce-toolbar .ce-toolbox {
    top: 0;
    transform: none !important;
  }

  .ce-toolbox__button {
    width: 100%;
    justify-content: flex-start;
  }

  .ce-toolbox__button:after {
    font-size: 13px;
  }

  .ce-toolbox__button svg {
    margin-right: 10px;
  }

  .ce-toolbox__button[data-tool="paragraph"]:after {
    content: 'Параграф'
  }

  .ce-toolbox__button[data-tool="header"]:after {
    content: 'Заголовок'
  }

  .ce-toolbox__button[data-tool="list"]:after {
    content: 'Список'
  }

  .ce-toolbox__button[data-tool="quote"]:after {
    content: 'Цитата'
  }

  .ce-toolbox__button[data-tool="slider"]:after {
    content: 'Слайдер'
  }

  .ce-toolbox__button[data-tool="image"]:after {
    content: 'Изображение'
  }

  .ce-toolbox__button[data-tool="embed"]:after {
    content: 'Встроить код'
  }

  .ce-toolbox__button[data-tool="info"]:after {
    content: 'Инфоблок'
  }

  .ce-toolbox__button[data-tool="hr"]:after {
    content: 'Разделитель'
  }

  .ce-toolbox__button[data-tool="digital"]:after {
    content: 'Цифра'
  }

  .ce-toolbox__button[data-tool="survey"]:after {
    content: 'Опрос'
  }

  .ce-toolbox {
    overflow-y: auto;
    overflow-x: hidden;
    width: 250px;
    max-height: 204px;
    padding: 10px;
    flex-direction: column !important;
    border: 1px solid rgba(0, 0, 0, .07);

    background-color: #fff;
    box-shadow: 0 4px 8px rgb(0 0 0 / 6%), inset 0 -1px 0 #fff;
    border-radius: 4px;
  }

  .ce-settings {
    right: auto;
  }

  .ce-toolbox__button {
    margin-left: 0;
    padding: 5px;
    height: auto;
  }

  .ce-toolbox__button:not(:last-child) {
    margin-bottom: 5px;
  }
}

.content-edit-section {
  padding: 40px 0 55px;

  background-color: #E5E5E5;
}

.ce-toolbar__content,
.ce-block__content {
  max-width: 100%;
}

.ce-block__content {
  margin-bottom: 30px;
}

/* Contenteditable mode */
.contenteditable[contenteditable="true"] {
  outline: none;
}

[data-placeholder]:empty::before {
  padding: 0 10px;

  text-align: center;
  font-weight: normal;
  content: attr(data-placeholder);
  color: #bbb;
  font-size: 14px;

}

.editor-title[data-placeholder]:empty::before {
  font-size: 40px;
}

.cdx-marker {
  background: #B5FF57;
}

.ct {
  max-width: 300px;
}

/* ========================================== Editor Title */
.editor-title {
  font-weight: 500;
  font-size: 50px;
  line-height: 50px;
  letter-spacing: 0.01em;
  color: #353535;
  font-family: 'Druk';
}

/* ========================================== Editor Title H3*/
.editor-title-h3 {
  font-weight: bold;
  font-size: 40px;
  line-height: 40px;
  letter-spacing: 0.01em;
  color: #353535;
  font-weight: 500;
}

/* ========================================== Editor Embed */
.editor-embed__textarea {
  display: block;
  width: 100%;
  min-height: 100px;
  padding: 7px 10px;
  border: 1px solid #EFEFEF;

  outline: 0;

  background: #fff;
  border-radius: 2px;
}

/* ========================================== Editor Image */
.editor-image.editor-image--fill .editor-image-upload {
  background: #ebfaff;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
}

.editor-image.editor-image--fill .editor-image-upload__image {
  margin: 0 auto;
}

.editor-image .editor-image-upload__image {
  display: block;
  min-height: 200px;
}

.editor-image__text {
  margin-top: 15px;
}

/* ========================================== Editor Text */
.editor-text {
  font-size: 18px;
  line-height: 31px;
  letter-spacing: 0.01em;
  color: #353535;
}

.editor-text--left {
  text-align: left;
}

.editor-text--center {
  text-align: center;
}

.editor-text--right {
  text-align: right;
}

.editor-text--justify {
  text-align: justify;
}

/* ========================================== Editor Quote */
.editor-quote {
  padding: 22px 0;
  border-top: 1px solid #EFEFEF;
  border-bottom: 1px solid #EFEFEF;
}

@media (min-width: 769px) {
  .editor-quote {
    padding-left: 85px;

    background: url(../img/ico/quote1.svg) left top 35px no-repeat;
  }
}

.editor-quote__text {
  font-size: 18px;
  line-height: 31px;
  letter-spacing: 0.01em;
  color: #353535;
}

.editor-quote__user {
  margin-top: 20px;
  display: flex;
  flex-flow: row wrap;
}

.editor-quote__user .editor-image-upload {
  width: 64px;
  height: 64px;
  margin-right: 15px;

  border-radius: 50%;
}

.editor-quote__user .editor-image-upload__image {
  height: 100%;
}

.editor-quote__user .editor-image-upload__image-native {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.editor-quote__user-avatar {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  margin-right: 15px;

  background: center / cover no-repeat;
}

.editor-quote__user-content {
  flex: 1;
  max-width: 200px;
}

.editor-quote__user-name {
  font-size: 18px;
  line-height: 31px;
  color: #353535;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.editor-quote__user-post {
  font-size: 16px;
  line-height: 21px;
  letter-spacing: 0.01em;
  color: #7A7A7A;
}

/* ========================================== Editor Poll */
.editor-poll {
  padding: 30px;

  background-color: #E1F8FF;
}

@media (max-width: 768px) {
  .editor-poll {
    padding: 20px;
  }
}

.editor-poll__title {
  margin-bottom: 20px;

  font-size: 22px;
  font-weight: bold;
  line-height: 22px;
  letter-spacing: 0.01em;
  color: #353535;
}

.editor-poll__answers {
  margin-bottom: 20px;
}

.editor-poll__answers-answer {
  position: relative;

  display: flex;
  align-items: center;
}

.editor-poll__answers-answer__input {
  width: 100%;
  flex: 1;
}

.editor-poll__delete {
  margin-left: 10px;
}

.editor-poll__answers-answer:not(:last-child) {
  margin-bottom: 22px;
}

/* ========================================== Editor Info */
.editor-info {
  position: relative;

  padding: 60px;

  background-color: #E1F8FF;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .editor-info {
    padding: 20px;
    border-radius: 10px;
  }
}

.editor-info__title {
  margin-bottom: 10px;

  font-size: 18px;
  font-weight: bold;
  line-height: 31px;
  letter-spacing: 0.01em;
  color: #353535;
}

.editor-info__text {
  font-size: 18px;
  line-height: 31px;
  letter-spacing: 0.01em;
  color: #353535;
}

/* ========================================== Editor Number */
.editor-number {
  position: relative;

  padding: 60px;

  background-color: #E1F8FF;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .editor-number {
    padding: 20px;
    border-radius: 10px;
  }
}

.editor-number__title {
  margin-bottom: 20px;

  font-size: 80px;
  text-align: center;
  font-weight: 500;
  line-height: 80px;
  letter-spacing: 0.01em;
  color: #353535;
  font-family: 'Druk';  
}

.editor-number__title:before {
  font-size: 80px!important;
}

.editor-number__text {
  font-size: 18px;
  line-height: 31px;
  letter-spacing: 0.01em;
  color: #353535;
  text-align: center;
}

/* ========================================== Editor List */
.editor-list {
  margin-top: 0;
  padding-left: 35px;
}

.editor-list__item {
  font-size: 18px;
  line-height: 31px;
  letter-spacing: 0.01em;
  color: #000;
}

.editor-list__item p {
  margin-bottom: 0;
}

.editor-list__item:not(:last-child) {
  margin-bottom: 10px;
}

/* ========================================== Editor Slider */
.editor-slider {
  display: flex;
  flex-flow: row wrap;
  padding: 5px;
  border: 1px solid #ddd;
}

.editor-slider .button--add {
  margin: 20px 5px 5px;
}

.editor-slider__item {
  position: relative;

  margin: 5px;
  width: calc(50% - 10px);
  flex-basis: calc(50% - 10px);
  min-height: 250px;
}



@media (max-width: 568px) {
  .editor-slider__item {
    min-height: 200px;
    width: 100%;
    flex-basis: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.editor-slider__item .editor-image-upload {
  min-height: 250px;
}

.editor-slider__text {
  margin-top: 15px;
}

.editor-slider__item .editor-image-upload__image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================== Editor Image Upload */
.editor-image-upload {
  position: relative;

  overflow: hidden;
  display: block;
}

.editor-image-upload__image {
  position: relative;
}

.editor-image-upload__image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;

  background: #0057FF url('/wp-content/themes/adpass/app/img/placeholder.svg') center / 160px 80% no-repeat;
}

.editor-image-upload__image-create {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 5;

  padding: 5px 10px;

  font-size: 12px;
  color: #fff;

  border-radius: 2px;
  background-color: rgba(92, 92, 92, 0.8);
}

.editor-image-upload__image-delete {
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 5;

  width: 30px;
  height: 30px;

  border-radius: 50%;
  background-color: rgba(92, 92, 92, 0.8);
}

.editor-image-upload__file {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;

  cursor: pointer;
}

.editor-image-upload .cropper-container {
  z-index: 4;
}

.editor-image-upload__file-control {
  position: absolute;
  overflow: hidden;
  height: 0;
  width: 0;
  visibility: hidden;
}

.editor-image-upload__loader {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;

  pointer-events: none;

  background-color: rgba(255,255,255,.5);
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.editor-image-upload__loader:before {
  position: absolute;
  top: calc(50% - 10px);
  left: calc(50% - 10px);

  width: 20px;
  height: 20px;
  border-left: 2px solid #000;

  border-radius: 100%;

  animation: .5s rotate linear both infinite;

  content: '';
}

.editor-image-upload__toolbar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  z-index: 4;

  display: flex;
  flex-flow: row wrap;

  transform: translateX(-50%);

  background-color: rgba(0,0,0,.5);
}

.editor-image-upload__toolbar-button {
  border: 0;
  padding: 5px;
  width: 32px;
  height: 32px;

  background: none;

  color: #fff;
  font-size: 12px;
}

.editor-image-upload__toolbar-button:hover {
  background-color: #0057FF;
}
