@import url(https://fonts.googleapis.com/css2?family=Geologica:wght@300;400;500&display=swap);
/* * {
    box-sizing: content-box !important;
} */

html,
body {
  min-height: 600px;
}

body {
  margin: 0;
}

html {
  zoom: var(--appZoom);
}

body.em-sandbox-discuss {
  cursor: default;
}

body.mceNonEditable .em-element-editor,
body.em-sandbox-discuss .em-element-editor {
  display: none;
}

body.em-sandbox-discuss.em-sandbox-discuss_set-target {
  cursor: copy;
}

img {
  min-width: 10px;
  min-height: 10px;
}

/* Файл с диска над картинкой в шаблоне — подсветка цели (токены темы плагина → :root из SANDBOX_SET_THEME_VARIABLES) */
img.em-native-img-drop-target {
  outline: 3px solid var(--colorPrimary, #1677ff);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--colorBgElevated, #ffffff) 85%, transparent) inset;
}

/* Идёт загрузка после drop на img */
img.em-native-img-uploading {
  opacity: 0.55;
  outline: 3px solid var(--colorPrimaryBorder, var(--colorPrimary, #1677ff));
  outline-offset: -1px;
}

/* Спиннер загрузки — по центру прямоугольника картинки (позиция из JS: getBoundingClientRect) */
.em-native-img-upload-spin-overlay {
  position: fixed;
  z-index: 2147483646;
  pointer-events: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.em-native-img-upload-spin {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 3px solid var(--colorPrimaryBg, #e6f4ff);
  border-top-color: var(--colorPrimary, #1677ff);
  border-radius: 50%;
  animation: em-native-img-drop-spin 0.65s linear infinite;
  box-sizing: border-box;
}

@keyframes em-native-img-drop-spin {
  to {
    transform: rotate(360deg);
  }
}

tr[hidden] {
  display: table-row !important;
}

td[hidden] {
  display: table-cell !important;
}

table[hidden] {
  display: table !important;
}

div[hidden] {
  display: block !important;
}

.em-element-editor {
  direction: ltr !important;
}

.em-element-editor .las,
.em-element-editor .la {
  display: block;
  height: 24px;
  padding-top: 2px;
}

.of-atom.em-element-editor .las,
.of-atom.em-element-editor .la,
.of-atom.em-element-block-add-plus .las {
  height: 20px;
}

.em-element-block-add-plus .las::before,
.em-element-block-add svg,
.em-element-editor .las::before,
.em-element-editor .la::before {
  vertical-align: middle;
}

.em-element-block-add svg {
  display: block;
}

br[data-mce-bogus='1'] {
  display: none;
}

table:empty,
table:empty[contenteditable],
amp-accordion section > div:empty {
  outline: 2px dashed #d9d9d9 !important;
  min-height: 200px;
  position: relative;
  margin-top: 16px;
  margin-bottom: 16px;
  border-radius: 4px;
  cursor: pointer;
}

table:empty:hover,
table:empty[contenteditable]:hover,
amp-accordion section > div:empty:hover {
  outline: 2px dashed var(--borderColorHover) !important;
}

table:empty::before {
  content: '';
  position: absolute;
  left: 0;
  top: -24px;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbFJ1bGU9ImV2ZW5vZGQiIGNsaXBSdWxlPSJldmVub2RkIiBkPSJNNi4xMjUgMjRDNi4xMjUgMjIuODk1NCA1LjIyOTU3IDIyIDQuMTI1IDIySDNDMi45MzA2NSAyMiAyLjg2NDg3IDIxLjk5MzIgMi44MDI2NSAyMS45ODA5QzIuNTM1MTEgMjEuOTI4IDIuMjY5NDkgMjEuOTMxMSAyLjAxNzkyIDIxLjk4MjFDMi4wNjg5MSAyMS43MzA1IDIuMDcyMDEgMjEuNDY0OSAyLjAxOTA4IDIxLjE5NzNDMi4wMDY3NyAyMS4xMzUxIDIgMjEuMDY5MyAyIDIxVjE5Ljg3NUMyIDE4Ljc3MDQgMS4xMDQ1NyAxNy44NzUgMCAxNy44NzVWMjFDMCAyMS4yMDA0IDAuMDE5NjQwOCAyMS4zOTYxIDAuMDU3MTAyIDIxLjU4NTVDMC4xMjMzNjcgMjEuOTIwNCAwLjI0NTM5NyAyMi4yMzU0ID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AyLjAxOTA4QzIxLjEzNTEgMi4wMDY3NyAyMS4wNjkzIDIgMjEgMkgxOS44NzVaIiBmaWxsPSIjQkJCQkJCIi8+CjxwYXRoIGZpbGxSdWxlPSJldmVub2RkIiBjbGlwUnVsZT0iZXZlbm9kZCIgZD0iTTI1IDEwSDExQzEwLjQ0NzcgMTAgMTAgMTAuNDQ3NyAxMCAxMVYyNUMxMCAyNS41NTIzIDEwLjQ0NzcgMjYgMTEgMjZIMjVDMjUuNTUyMyAyNiAyNiAyNS41NTIzIDI2IDI1VjExQzI2IDEwLjQ0NzcgMjUuNTUyMyAxMCAyNSAxMFpNMTEgOEM5LjM0MzE1IDggOCA5LjM0MzE1IDggMTFWMjVDOCAyNi42NTY5IDkuMzQzMTUgMjggMTEgMjhIMjVDMjYuNjU2OSAyOCAyOCAyNi42NTY5IDI4IDI1VjExQzI4IDkuMzQzMTUgMjYuNjU2OSA4IDI1IDhIMTFaIiBmaWxsPSIjQkJCQkJCIi8+CjxwYXRoIGQ9Ik0yMiAyM0wyMyAyMkwyMCAxOUwyMiAxN0wxNCAxNEwxNyAyMkwxOSAyMEwyMiAyM1oiIGZpbGw9IiNCQkJCQkIiLz4KPC9zdmc+Cg==');
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

table:empty::after {
  content: 'Click or drag a block';
  position: absolute;
  left: 50%;
  top: calc(50% + 16px);
  transform: translateX(-50%);
  width: calc(100% - 32px);
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: #a1a0a2;
  font-family: Geologica, sans-serif;
  font-weight: 300;
  pointer-events: none;
}

table.em-block-insert-empty:empty {
  outline: 2px solid var(--colorPrimary) !important;
  background-image: linear-gradient(
    -45deg,
    var(--colorPrimaryBgHover) 25%,
    transparent 25%,
    transparent 50%,
    var(--colorPrimaryBgHover) 50%,
    var(--colorPrimaryBgHover) 75%,
    transparent 75%,
    transparent
  ) !important;
  background-size: 40px 40px !important;
}

table.em-block-insert-empty:empty::before {
  color: var(--colorPrimary);
}

.em-structure,
[style*='padding'] {
  position: relative;
}

td.em-mob-wrap:nth-child(even),
td.noresp-em-mob-wrap:nth-child(even) {
  position: relative;
}

[em='block'].empty-structure td:not([height], [width]):empty,
[em='block'].em-structure td:not([height], [width], [style*='padding'], [style*='Margin']):empty,
[em='block']
  div[style*='inline-block']
  > table
  > tbody
  > tr
  > td:not([height], [width], [style*='padding'], [style*='Margin']):empty,
.em-structure td.em-mob-wrap:nth-child(odd):empty,
.em-structure td.noresp-em-mob-wrap:nth-child(odd):empty,
[em='block'] amp-accordion section > div:empty {
  height: 60px;
  position: relative;
  outline: 2px dashed #d9d9d9 !important;
  min-width: 30px;
  border-radius: 6px;
}

/* Пустая колонка в фокусе редактирования: голубая рамка (серая :empty-правка выше сильнее общего [em-edit]) */
[em='block'].empty-structure td:not([height], [width]):empty[em-edit='active'],
[em='block'].em-structure td:not([height], [width], [style*='padding'], [style*='Margin']):empty[em-edit='active'],
[em='block']
  div[style*='inline-block']
  > table
  > tbody
  > tr
  > td:not([height], [width], [style*='padding'], [style*='Margin']):empty[em-edit='active'],
.em-structure td.em-mob-wrap:nth-child(odd):empty[em-edit='active'],
.em-structure td.noresp-em-mob-wrap:nth-child(odd):empty[em-edit='active'],
[em='block'] amp-accordion section > div:empty[em-edit='active'] {
  outline: 2px solid var(--colorPrimaryBorderHover) !important;
}

[em='block'].empty-structure td:not([height], [width]):empty::before,
[em='block'].em-structure td:not([height], [width], [style*='padding'], [style*='Margin']):empty::before,
[em='block']
  div[style*='inline-block']
  > table
  > tbody
  > tr
  > td:not([height], [width], [style*='padding'], [style*='Margin']):empty::before,
.em-structure td.em-mob-wrap:nth-child(odd):empty::before,
.em-structure td.noresp-em-mob-wrap:nth-child(odd):empty::before,
[em='block'] amp-accordion section > div:empty::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9Ij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jExQzI4IDkuMzQzMTUgMjYuNjU2OSA4IDI1IDhIMTFaIiBmaWxsPSIjQkJCQkJCIi8+CjxwYXRoIGQ9Ik0yMiAyM0wyMyAyMkwyMCAxOUwyMiAxN0wxNCAxNEwxNyAyMkwxOSAyMEwyMiAyM1oiIGZpbGw9IiNCQkJCQkIiLz4KPC9zdmc+Cg==');
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

[em='block'] td:not([height]):empty.em-atom-insert-empty,
[em='block'] td.em-mob-wrap:empty.em-atom-insert-empty,
[em='block'] amp-accordion section > div:empty.em-atom-insert-empty {
  outline: 2px solid var(--colorPrimary) !important;
}

[em='block'] td:not([height]):empty.em-atom-insert-empty::after,
[em='block'] td.em-mob-wrap:empty.em-atom-insert-empty::after,
[em='block'] amp-accordion section > div:empty.em-atom-insert-empty::after {
  background-image: linear-gradient(
    -45deg,
    var(--colorPrimary) 25%,
    transparent 25%,
    transparent 50%,
    var(--colorPrimary) 50%,
    var(--colorPrimary) 75%,
    transparent 75%,
    transparent
  ) !important;
  background-size: 40px 40px !important;
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

[em='block'] td:not([height]).em-atom-insert-empty:empty::before,
[em='block'] td.em-mob-wrap:empty.em-atom-insert-empty::before,
[em='block'] amp-accordion section > div:empty.em-atom-insert-empty::before {
  color: var(--colorPrimary);
}

[em-state='active']:not(.em-element-resize-height, .em-element-resize-img),
[em-state='active-inside']:not(.em-element-resize-height, .em-element-resize-img),
.sortable-ghost {
  outline: 1px solid var(--colorPrimaryBorder);
  position: relative;
  z-index: 4;
}

/* [em-state=active] *:hover,
[em-state=active-inside] *:hover {
	outline: 1px solid var(--colorPrimaryBorder);
} */

[em-hover='true']:not(
  .em-element-resize-height,
  .em-element-vindent,
  .em-element-vindent-value,
  .em-element-vindent-control
) {
  /* outline: 1px solid var(--colorPrimaryBorder); */
  position: relative;

  /* z-index: 999; */
}

tinymce[em-hover='true'],
tinymce *[em-hover='true'] {
  outline: none !important;
  text-decoration-color: var(--colorPrimaryBorder);
  text-decoration-line: underline;
  text-decoration-thickness: from-font;
  text-decoration-skip-ink: none;
}

.em-sandbox-discuss_set-target [em-hover='true'] {
  outline: 1px solid var(--colorInfoBorderHover) !important;
}

[em-discuss-id] {
  outline: 3px solid transparent !important;
}

.em-sandbox-discuss [em-discuss-id] {
  outline: 3px solid var(--colorInfoBorder) !important;
  transition: all 0.5s;
}

.em-sandbox-discuss:not(.em-sandbox-discuss_set-target) [em-discuss-id]:hover {
  outline: 3px solid var(--colorInfoBorderHover) !important;
  cursor: pointer;
}

.em-sandbox-discuss_set-target [em-discuss-id]:not(.em-discuss-id-new):hover {
  outline: 3px solid var(--colorInfoBorder) !important;
  cursor: not-allowed;
}

.em-sandbox-discuss [em-discuss-id].em-discuss-target-active {
  outline: 3px solid var(--colorInfo) !important;
}

.em-sandbox-discuss_set-target [em-hover='true'] {
  outline: 1px solid var(--colorInfoBorderHover) !important;
}

[em-discuss-id] {
  outline: 3px solid transparent !important;
}

.em-sandbox-discuss [em-discuss-id] {
  outline: 3px solid var(--colorInfoBorder) !important;
  transition: all 0.5s;
}

.em-sandbox-discuss:not(.em-sandbox-discuss_set-target) [em-discuss-id]:hover {
  outline: 3px solid var(--colorInfoBorderHover) !important;
  cursor: pointer;
}

.em-sandbox-discuss_set-target [em-discuss-id]:not(.em-discuss-id-new):hover {
  outline: 3px solid var(--colorInfoBorder) !important;
  cursor: not-allowed;
}

.em-sandbox-discuss [em-discuss-id].em-discuss-target-active {
  outline: 3px solid var(--colorInfo) !important;
}

[em-edit='active']:not(
  [style*='font-family'][style*='font-size'],
  strong,
  b,
  em,
  i,
  s,
  strike,
  u,
  span,
  a,
  [em-optimise-error]
),
.em-structure
  [em-edit='active']:not(
    [style*='font-family'][style*='font-size'],
    strong,
    b,
    em,
    i,
    s,
    strike,
    u,
    span,
    a,
    [em-optimise-error]
  ) {
  outline: 2px solid var(--colorPrimaryBorderHover) !important;
  z-index: 3;

  [em='block'] & em-replace:not(.em-hide-mergetags-popup, [em-edit='active'])::after {
    opacity: 1;
  }
}

[em-edit='active']:not(
  [style*='font-family'][style*='font-size'],
  strong,
  b,
  em,
  i,
  s,
  strike,
  u,
  span,
  a,
  [em-optimise-error],
  .i-amphtml-replaced-content
),
.em-structure
  [em-edit='active']:not(
    [style*='font-family'][style*='font-size'],
    strong,
    b,
    em,
    i,
    s,
    strike,
    u,
    span,
    a,
    [em-optimise-error],
    .i-amphtml-replaced-content
  ) {
  position: relative;
}

[em-edit='active'][em-optimise][em-optimise-error],
[em-edit='active'][em-optimise][em-optimise-error] img {
  outline: 1px solid var(--colorError);
}

[contenteditable]:not([em-state]) {
  outline: none !important;
}

/* [em-edit="active"]:is([style*="font-family"][style*="font-size"]) tinymce,
*:is([style*="font-family"][style*="font-size"]) *[em-edit="active"]:not(img) {
	outline: none !important;
	text-decoration-color: #1890FF;
	text-decoration-line: underline;
	text-decoration-thickness: from-font;
	text-decoration-skip-ink: none;
} */

tinymce *.em-code {
  cursor: pointer !important;
}

*[em-edit='active'] {
  /* -webkit-user-modify: read-write; */
  overflow-wrap: break-word;
  -webkit-line-break: after-white-space;
}

tinymce *.em-code[em-edit='active'] {
  outline: 1px solid var(--colorPrimary) !important;
}

.em-sandbox-discuss [em-edit='active'] {
  outline: none !important;
  text-decoration: none !important;
}

.em-sandbox-discuss [em-discuss-id][em-edit='active'] {
  outline: 3px solid var(--colorInfo) !important;
}

.em-element-editor {
  left: 8px;
  top: 8px;
  position: absolute;
  z-index: 5;
  transition: top 0.2s;
}

.em-element-editor.of-block {
  left: -35px;
  top: 0;
  width: 40px;
  height: 100%;
  min-height: 136px;
}

.em-element-editor.of-atom {
  width: 86px;
  height: 26px;
  left: -1px;
  top: -26px;
}

.em-element-editor-widget {
  width: 24px;
  padding: 3px;
  border-radius: 6px;
  position: absolute;
  left: 0;
  box-sizing: content-box;
}

.of-group .em-element-editor-widget {
  box-shadow: 0 3px 10px #43495e44;
}

.of-atom .em-element-editor-widget {
  width: 82px;
  top: -3px;
  left: 0;
  border-radius: 6px;
  display: flex;
}

.of-group .em-element-editor-group:hover {
  box-shadow: 3px 3px 10px #43495e33;
}

.em-element-editor.of-block.out-of-iframe {
  top: auto;
  bottom: 8px;
}

.em-element-editor.of-group.out-of-iframe {
  top: auto;
  bottom: 140px;
}

.em-element-editor.of-atom.out-of-iframe {
  bottom: 65px;
}

[em-state='active-inside'] .em-element-editor.of-block {
  left: 8px;
  top: 8px;
  width: auto;
  height: auto;
}

[em-state='active-inside'] .em-element-editor.of-atom {
  left: auto;
  right: 5px;
}

.em-element-editor.of-atom.em-top-crossed {
  top: auto;
  bottom: -26px;
}

.of-atom.em-top-crossed .em-element-editor-widget {
  top: 3px;
}

.of-atom [class^='em-element-editor-widget-'] {
  width: 20px;
  height: 20px;
  font-size: 16px;
  color: #344966;
}

[class^='em-element-editor-widget-']:hover {
  color: #000;
  background: #e5e5e5;
  border-radius: 3px;
}

.em-element-editor-widget-noactive,
.em-element-editor-widget-noactive:hover {
  opacity: 0.3;
  cursor: default;
}

.of-atom [class^='em-element-editor-widget-']:hover {
  background: #b8d4e9;
}

.em-element-editor-widget.sticky {
  position: fixed;
  top: 10px;
  left: auto;
  margin-left: 20px;
}

[em-state='active-inside'] .em-element-editor-widget.sticky {
  margin-left: 70px;
}

.em-element-editor .em-element-editor-widget-drug {
  display: flex;
  align-items: center;
  justify-content: center;
}

.em-element-editor .em-element-editor-widget-drug .la-braille {
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  transform: rotate(90deg);
}

.em-element-editor .em-element-editor-widget-drug .la-braille:active {
  cursor: grabbing;
}

.of-block .em-element-editor-widget > .em-element-editor-group:not(:hover) {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.em-element-editor-group {
  height: 26px;
  overflow: hidden;
}

.em-element-editor-group:hover {
  display: flex;
  width: fit-content;
  border-radius: 0 6px 6px 0;
  padding: 3px;
  height: auto;
  overflow: visible;
  top: -3px;
  margin-bottom: -4px;
  left: -3px;
  position: relative;
}

.em-element-editor-group:first-child:hover {
  border-radius: 6px 6px 6px 0;
}

.em-element-block-add {
  min-width: 30px;
  width: 126px;
  display: flex;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  border-radius: 0 0 6px 6px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  padding: 4px 3px 3px;
  gap: 0;
  direction: ltr;
  height: 31px;
  bottom: -31px;
  justify-content: center;
}

.em-element-block-add.out-of-iframe {
  bottom: 0;
  z-index: 5;
  border-radius: 6px 6px 0 0;
}

/* [em="group"]:last-child [em="block"]:last-child .em-element-block-add {
	bottom: -1px;
	border-top: none;
	border-bottom: 1px solid var(--colorPrimaryBorder);
	border-radius: 6px 6px 0 0;
} */

/* [em="group"]:last-child [em="block"]:last-child [em-edit="active"] .em-element-block-add {
	border-top: none;
	border-bottom: 2px solid #1890FF;
	bottom: -2px;
} */

.em-element-block-add.em-relative {
  position: absolute !important;
}

.em-element-block-add > i,
.em-element-img-change-group > i {
  display: none;
  padding: 0;
  font-size: 18px;
  width: 24px;
  height: 24px;
}

.em-element-block-add:hover > i,
.em-element-img-change-group:hover > i {
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.em-element-img-change-group:hover > i {
  padding: 2px;
}

.em-element-block-add-plus {
  padding: 0 3px;
  font:
    12px/20px -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    'Noto Sans',
    sans-serif,
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Segoe UI Symbol',
    'Noto Color Emoji';
}

.em-element-block-add-plus .las {
  height: 24px;
  font-size: 20px;
  line-height: 18px;
  top: 1px;
  position: relative;
}

.em-element-block-add:hover .em-element-block-add-plus {
  display: none !important;
}

.em-element-img-change > i {
  display: block;
}

.em-element-img-change-group:hover .em-element-img-change {
  display: none !important;
}

[class*='em-show'],
.em-amp-show-only {
  position: relative;
}

[class*='em-show']::before,
.hide-for-small > tbody > tr > td::before,
.hide-for-desktop > tbody > tr > td::before {
  font-family: 'Line Awesome Free';
  position: absolute;
  right: 5px;
  top: 5px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  font-weight: 900;
  font-size: 18px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 3px 10px rgb(61 70 77 / 15%);
  box-sizing: border-box;
  cursor: pointer;
  z-index: 1;
  align-items: center;
  justify-content: center;
}

[class*='em-show'][class*='-desktop']::before,
.hide-for-small > tbody > tr > td::before {
  content: '\f108';
}

[class*='em-show'][class*='-mobile']::before,
.hide-for-desktop > tbody > tr > td::before {
  content: '\f10b';
}

/* Глобальный блок (em-block-id): маркер только в превью, без доп. разметки */
[em='block'][em-block-id]:not(tr),
tr[em='block'][em-block-id] > td:first-of-type {
  position: relative;
}

[em='block'][em-block-id]:not(tr)::after,
tr[em='block'][em-block-id] > td:first-of-type::after {
  font-family: 'Line Awesome Free';
  position: absolute;
  right: 5px;
  top: 5px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  font-weight: 900;
  font-size: 16px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  text-align: center;
  box-sizing: border-box;
  content: '\f0ac';
  z-index: 35;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

[class*='em-amp-show']::before,
tr[hidden] > td::before,
td[hidden]::before,
table[hidden] > tr > td::before,
div[hidden]::before {
  position: absolute;
  right: 5px;
  top: 5px;
  display: flex;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 3px 10px rgb(61 70 77 / 15%);
  box-sizing: border-box;
  cursor: pointer;
  z-index: 1;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 18px;
}

.em-amp-show-only::before,
tr[hidden] > td::before,
td[hidden]::before,
table[hidden] > tr > td::before,
div[hidden]::before {
  content: '⚡';
}

.em-amp-show-disabled::before {
  content: '\f121';
  font-family: 'Line Awesome Free';
  -webkit-font-smoothing: antialiased;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  font-weight: 900;
  padding-left: 2px;
}

.em-amp-show-only[class*='em-show']::before {
  width: auto;
  padding-right: 6px;
}

.em-amp-show-only[class*='em-show'][class*='-desktop']::before {
  content: '⚡\f108';
}

.em-amp-show-only[class*='em-show'][class*='-mobile']::before {
  content: '⚡\f10b';
}

.em-amp-show-disabled[class*='em-show']::before {
  width: auto;
  padding: 0 6px;
}

.em-amp-show-disabled[class*='em-show'][class*='-desktop']::before {
  content: '\f121   \f108';
}

.em-amp-show-disabled[class*='em-show'][class*='-mobile']::before {
  content: '\f121\f10b';
}

td:empty[height] {
  width: 100%;
}

body:not(.mceNonEditable, .em-sandbox-discuss) div[style^='height'][style*='line-height'][style*='font-size']:hover,
body:not(.mceNonEditable, .em-sandbox-discuss) div.em-vindent:hover,
body:not(.mceNonEditable, .em-sandbox-discuss) div.em-vindent.em-hover,
body:not(.mceNonEditable, .em-sandbox-discuss) div.em-vindent[em-edit='active'] {
  outline: none;
}

body:not(.mceNonEditable, .em-sandbox-discuss) td:empty[height]:hover,
body:not(.mceNonEditable, .em-sandbox-discuss) td:empty[height][em-edit='active'],
body:not(.mceNonEditable, .em-sandbox-discuss) td.em-vindent:hover,
body:not(.mceNonEditable, .em-sandbox-discuss) td.em-vindent[em-edit='active'] {
  outline: none;
  text-align: center;
  font-size: 1px;
  vertical-align: middle;
  position: relative;
}

body:not(.mceNonEditable, .em-sandbox-discuss)
  div[style^='height'][style*='line-height'][style*='font-size']:hover
  .em-element-vindent-bg,
body:not(.mceNonEditable, .em-sandbox-discuss) div.em-vindent:hover .em-element-vindent-bg,
body:not(.mceNonEditable, .em-sandbox-discuss) div.em-vindent.em-hover .em-element-vindent-bg,
body:not(.mceNonEditable, .em-sandbox-discuss) div.em-vindent[em-edit='active'] .em-element-vindent-bg,
body:not(.mceNonEditable, .em-sandbox-discuss) td:empty[height]:hover .em-element-vindent-bg,
body:not(.mceNonEditable, .em-sandbox-discuss) td:empty[height][em-edit='active'] .em-element-vindent-bg,
body:not(.mceNonEditable, .em-sandbox-discuss) td.em-vindent:hover .em-element-vindent-bg,
body:not(.mceNonEditable, .em-sandbox-discuss) td.em-vindent[em-edit='active'] .em-element-vindent-bg {
  /* background-image: linear-gradient(135deg, #eb2fb555 8.33%, #EB2FB50A 8.33%, #EB2FB50A 50%, #eb2fb555 50%, #eb2fb555 58.33%, #EB2FB50A 58.33%, #EB2FB50A 100%) !important; */
  background-image: linear-gradient(
    135deg,
    var(--colorPrimary) 8.33%,
    var(--colorPrimaryBg) 8.33%,
    var(--colorPrimaryBg) 50%,
    var(--colorPrimary) 50%,
    var(--colorPrimary) 58.33%,
    var(--colorPrimaryBg) 58.33%,
    var(--colorPrimaryBg) 100%
  ) !important;
  background-size: 7px 7px !important;
  opacity: 0.3;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

div.em-gap {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
}

body:not(.mceNonEditable, .em-sandbox-discuss) div.em-gap:hover .em-element-gap-bg,
body:not(.mceNonEditable, .em-sandbox-discuss) div.em-gap.em-hover .em-element-gap-bg {
  background-image: linear-gradient(
    135deg,
    #eb2fb555 8.33%,
    #eb2fb50a 8.33%,
    #eb2fb50a 50%,
    #eb2fb555 50%,
    #eb2fb555 58.33%,
    #eb2fb50a 58.33%,
    #eb2fb50a 100%
  ) !important;
  background-size: 7px 7px !important;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

body:not(.mceNonEditable, .em-sandbox-discuss)
  [em='block']
  [em-edit='active']
  .em-gap:not(:hover, .em-hover)
  .em-element-gap-marker {
  position: absolute;
  width: 12px;
  height: 2px;
  background: #eb2fb555;
  border: 1px solid #fff;
  left: 50%;
  top: 50%;
  transform: rotate(90deg) translate(-15%, 180%);
}

/* td:empty[height]:hover:before,
td[height][em-edit="active"]:empty:before,
td.em-vindent:hover:before,
td.em-vindent[em-edit="active"]:before {
	content: attr(height)'px';
	font: 12px/1px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
	color: #1890FF;
	font-weight: 500;
	position: absolute;
    width: 100%;
    left: 0;
	text-align: left;
	padding-left: 10px;
} */

.em-vindent {
  position: relative;
  overflow: hidden;
  user-select: none;
  user-select: none;
  user-select: none;
  user-select: none;
}

.em-vindent[class*='em-vindent-padding'] {
  position: absolute;
  z-index: 1;
}

.em-vindent.em-vindent-paddingTop {
  top: 0;
  left: 0;
  width: 100%;
}

.em-vindent.em-vindent-paddingBottom {
  bottom: 0;
  left: 0;
  width: 100%;
}

.em-vindent.em-vindent-paddingLeft {
  top: 0;
  left: 0;
  height: 100%;
}

.em-vindent.em-vindent-paddingRight {
  top: 0;
  right: 0;
  height: 100%;
}

.em-vindent:hover,
.em-vindent.em-hover,
.em-vindent[em-edit='active'] {
  overflow: visible;
  z-index: 4;
}

.em-element-resize-height {
  position: absolute !important;
  height: 100%;
  width: 100%;
  bottom: 0;
  left: 0;
  cursor: ns-resize;
  display: none;
  z-index: 3;
}

/* .em-vindent.em-vindent-paddingLeft .em-element-resize-height,
.em-vindent.em-vindent-paddingRight .em-element-resize-height {
	cursor: w-resize;
    transform: rotate(90deg);
	bottom: 50%;
}

.em-vindent.em-vindent-paddingLeft .em-element-resize-height {
	left: auto;
	right: -15px;
}

.em-vindent.em-vindent-paddingRight .em-element-resize-height {
	left: -20px;
    right: auto;
	transform: rotate(90deg) translate(7px, 0);
} */

.em-element-vindent,
.em-element-gap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.em-element-vindent-value,
.em-element-gap-value {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  font:
    12px/12px -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    'Noto Sans',
    sans-serif,
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Segoe UI Symbol',
    'Noto Color Emoji';
  color: #fff;
  background: var(--colorPrimary);
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 500;
  display: none;
  align-items: start;
  pointer-events: none;
  transition: 0.2s;
  white-space: nowrap;
}

.em-element-gap-value {
  background: #eb2fb5;
  top: 50%;
}

.em-element-vindent-control {
  left: 50%;
  transform: translateX(-50%);
  top: 12px;
  font:
    12px/12px -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    'Noto Sans',
    sans-serif,
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Segoe UI Symbol',
    'Noto Color Emoji';
  color: #fff;
  background: var(--colorPrimary);
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 500;
  position: absolute;
  align-items: start;
  transition: 0.2s;
  opacity: 0;
  display: flex;
  z-index: 2;
}

.em-vindent.em-vindent-paddingLeft .em-element-vindent {
  transform: rotate(-90deg) translate(-50%, -50%);
  top: 50%;
  left: 50%;
}

.em-vindent.em-vindent-paddingLeft.em-vindent_low .em-element-vindent {
  right: -10px;
  left: unset;
}

.em-vindent.em-vindent-paddingRight.em-vindent_low .em-element-vindent {
  left: -10px;
}

.em-vindent.em-vindent-paddingRight .em-element-vindent {
  transform: rotate(90deg) translate(-50%, -50%);
  top: 50%;
  left: 50%;
}

.em-vindent_low .em-element-vindent {
  top: 0;
}

.em-vindent_low .em-element-vindent-value,
.em-vindent_low .em-element-vindent-control {
  top: -10px;
  line-height: 12px;
  padding: 3px 6px;
  border-radius: 4px 4px 0 0;
  border: 1px solid transparent;
}

.em-vindent.em-vindent-paddingLeft.em-vindent_low .em-element-vindent-value,
.em-vindent.em-vindent-paddingLeft.em-vindent_low .em-element-vindent-control,
.em-vindent.em-vindent-paddingRight.em-vindent_low .em-element-vindent-value,
.em-vindent.em-vindent-paddingRight.em-vindent_low .em-element-vindent-control {
  top: 0;
  border-radius: 0 0 4px 4px;
}

.em-vindent_low.top-crossed .em-element-vindent {
  top: auto;
  bottom: 0;
}

.em-vindent_low.top-crossed .em-element-vindent .em-element-vindent-value {
  top: auto;
  bottom: -30px;
  border-radius: 0 0 4px 4px;
}

.em-vindent_low[em-edit='active'] .em-element-vindent-value,
.em-vindent_low[em-edit='active'] .em-element-vindent-control {
  border: 1px solid var(--colorPrimary);
  border-bottom: none;
}

.em-element-vindent-control > div {
  margin-right: 10px;
  cursor: pointer;
  opacity: 0.7;
  display: none;
}

body:not(.mceNonEditable) .em-element-vindent.em-element-vindent-show-vars .em-element-vindent-control > div {
  display: block;
}

.em-element-vindent-control > div:hover {
  opacity: 1;
}

body:not(.mceNonEditable, .em-sandbox-discuss) .em-vindent:hover .em-element-resize-height,
body:not(.mceNonEditable, .em-sandbox-discuss) .em-vindent.em-hover .em-element-resize-height,
body:not(.mceNonEditable, .em-sandbox-discuss) .em-vindent[em-edit='active'] .em-element-resize-height,
body:not(.mceNonEditable, .em-sandbox-discuss) .em-gap:hover .em-element-resize-height {
  display: block;
}

body:not(.mceNonEditable, .em-sandbox-discuss) .em-vindent:hover .em-element-vindent-value,
body:not(.mceNonEditable, .em-sandbox-discuss) .em-vindent.em-hover .em-element-vindent-value,
body:not(.mceNonEditable, .em-sandbox-discuss) .em-vindent[em-edit='active'] .em-element-vindent-value,
body:not(.mceNonEditable, .em-sandbox-discuss) .em-gap:hover .em-element-gap-value,
body:not(.mceNonEditable, .em-sandbox-discuss) .em-gap.em-hover .em-element-gap-value {
  display: flex;
}

body:not(.mceNonEditable, .em-sandbox-discuss)
  .em-element-vindent.em-element-vindent-show-vars
  .em-element-vindent-control {
  opacity: 1;
}

body:not(.mceNonEditable, .em-sandbox-discuss)
  .em-element-vindent.em-element-vindent-show-vars
  .em-element-vindent-value {
  opacity: 0;
}

.em-element-vindent-remove {
  display: none;
}

body:not(.mceNonEditable, .em-sandbox-discuss) .em-element-vindent-remove {
  color: var(--colorPrimary);
  position: absolute;
  right: -10px;
  top: -10px;
  font-size: 20px;
  line-height: 12px;
  cursor: pointer;
  width: 20px;
  height: 17px;
  background-color: var(--colorPrimaryBgHover);
  border-radius: 50%;
  text-align: center;
  padding-top: 3px;
  display: none;
  z-index: 1;
}

body:not(.mceNonEditable, .em-sandbox-discuss) .em-element-vindent-remove:hover {
  background-color: var(--colorPrimaryBorder);
}

body:not(.mceNonEditable, .em-sandbox-discuss) .em-vindent:hover .em-element-vindent-remove {
  display: block;
}

body:not(.mceNonEditable, .em-sandbox-discuss)
  [em='block']
  [em-edit='active']:hover
  .em-vindent:not(:hover)
  .em-element-vindent-marker {
  position: absolute;
  width: 12px;
  height: 2px;
  background: var(--colorPrimaryBgHover);
  border: 1px solid #fff;
  left: 50%;
  top: 50%;
  transform: translate(-57%, -45%);
}

body:not(.mceNonEditable, .em-sandbox-discuss)
  [em-edit='active']:hover
  .em-vindent-paddingLeft
  .em-element-vindent-marker,
body:not(.mceNonEditable, .em-sandbox-discuss)
  [em-edit='active']:hover
  .em-vindent-paddingRight
  .em-element-vindent-marker {
  transform: rotate(90deg) translate(-15%, 180%) !important;
}

.em-element-resize-img {
  position: absolute;
  z-index: 1000;
  width: 9px;
  height: 9px;
  border: 1px solid var(--colorPrimary);
  box-shadow: 1px 1px 1px #fff;
  border-left: none;
  border-top: none;
  bottom: 5px;
  right: 5px;
  display: none;
}

.em-element-resize-img-container:hover .em-element-resize-img {
  display: block;
}

.em-sandbox-discuss .em-element-resize-img-container .em-element-resize-img,
.em-sandbox-discuss .em-element-resize-height,
.em-sandbox-discuss .em-element-vindent {
  display: none;
}

.em-resize-start *,
.em-resize-start *::after,
.em-resize-start *::before {
  -webkit-touch-callout: none;
  user-select: none;
  user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-app-region: no-drag;
}

.em-element-resize-img-container {
  position: relative;
  display: block;
  line-height: 0;
}

.em-narrow-table .em-element-resize-img-container,
.noresp-em-narrow-table .em-element-resize-img-container {
  display: flow-root;
}

.em-element-img-change-group {
  position: absolute;
  font-size: 20px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgb(61 70 77 / 15%);
  cursor: pointer;
  z-index: 3;
  padding: 3px;
}

.em-element-img-change {
  padding: 3px;
  line-height: 0px;
}

.em-element-img-change.em-relative {
  position: absolute !important;
}

.em-element-resize-img-container:hover .em-element-img-change-group {
  display: flex;
}

/* //body.mceNonEditable *,
//body.mceNonEditable td {
//  pointer-events: none;
//  -webkit-user-select: none;
//  -moz-user-select: none;
//  -ms-user-select: none;
//} */

.em-block-insert,
.em-atom-insert,
.em-blockatom-insert {
  position: relative;

  /* box-shadow: #1890FF 0px 5px, var(--colorPrimaryBorder) 0px 10px, var(--colorPrimaryBorder) 0px 15px, var(--colorPrimaryBgHover) 0px 20px, #1890FF20 0px 25px; */
}

[em='atom'],
.em-atom-insert-body [em='atom'],
.em-block-insert-body [em='block'],
.em-atom-insert-body [em='block'] {
  position: relative;
}

.em-atom-insert-body [em='atom']::after,
.em-block-insert-body [em='block']::after,
.em-atom-insert-body [em='block']::after {
  content: '';
  border-bottom: 2px solid var(--colorPrimary);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  opacity: 0.3;
  display: block;
  pointer-events: none;
}

.em-atom-insert-body [em='atom']::before,
.em-block-insert-body [em='block']::before,
.em-atom-insert-body [em='block']::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  margin-left: -2px;
  border: 5px solid transparent;
  border-top: 5px solid var(--colorPrimary);
  width: 0;
  height: 0;
  z-index: 1;
  opacity: 0.3;
  display: block;
  pointer-events: none;
}

.em-atom-insert-body tr[em='atom']::before {
  display: none;
}

body:not(.mceNonEditable, .em-sandbox-discuss) .em-block-insert::after,
body:not(.mceNonEditable, .em-sandbox-discuss) .em-atom-insert::after,
body:not(.mceNonEditable, .em-sandbox-discuss) .em-blockatom-insert::after {
  position: absolute;
  border: 2px solid var(--colorPrimary);
  left: 0;
  font:
    14px/20px -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    'Noto Sans',
    sans-serif,
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Segoe UI Symbol',
    'Noto Color Emoji';
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
  color: var(--colorPrimary);
  z-index: 3;
  text-align: center;
  opacity: 1 !important;
  pointer-events: none;
}

body:not(.mceNonEditable, .em-sandbox-discuss) .em-block-insert::before,
body:not(.mceNonEditable, .em-sandbox-discuss) .em-atom-insert::before,
body:not(.mceNonEditable, .em-sandbox-discuss) .em-blockatom-insert::before {
  position: absolute;
  background-image: linear-gradient(
    -45deg,
    var(--colorPrimary) 25%,
    transparent 25%,
    transparent 50%,
    var(--colorPrimary) 50%,
    var(--colorPrimary) 75%,
    transparent 75%,
    transparent
  ) !important;
  background-size: 40px 40px !important;
  left: 0;
  width: 100%;
  opacity: 0.3;
  content: '';
  z-index: 2;
  box-sizing: border-box;
  margin: 0;
  border: none;
  pointer-events: none;
}

.em-block-insert::after,
.em-blockatom-insert::after,
.em-block-insert::before,
.em-blockatom-insert::before {
  /* content: 'The block will be pasted here'; */
  padding: 8px;
  height: 40px;
}

.em-atom-insert::after,
.em-atom-insert::before {
  /* content: 'The atom will be pasted here'; */
  padding: 0;
  height: 24px !important;
}

.em-block-insert.em-block-insert_top::after,
.em-blockatom-insert.em-block-insert_top::after,
.em-block-insert.em-block-insert_top::before,
.em-blockatom-insert.em-block-insert_top::before {
  top: -20px;
  bottom: auto;
}

.em-block-insert.em-block-insert_bottom::after,
.em-blockatom-insert.em-block-insert_bottom::after,
.em-block-insert.em-block-insert_bottom::before,
.em-blockatom-insert.em-block-insert_bottom::before {
  top: auto;
  bottom: -20px;
}

.em-block-insert_top-document::after,
.em-atom-insert_top-document::after,
.em-block-insert_top-document::before,
.em-atom-insert_top-document::before {
  top: 0;
  bottom: auto !important;
}

.em-block-insert_bottom-document::after,
.em-atom-insert_bottom-document::after,
.em-block-insert_bottom-document::before,
.em-atom-insert_bottom-document::before {
  top: auto;
  bottom: 0 !important;
}

.em-atom-insert.em-atom-insert_top::after,
.em-atom-insert.em-atom-insert_top::before {
  top: -12px;
  bottom: auto;
}

.em-atom-insert.em-atom-insert_bottom::after,
.em-atom-insert.em-atom-insert_bottom::before {
  top: auto;
  bottom: -12px !important;
}

/* Tiny CSS */
editor {
  margin: 0 !important;
  padding: 0 !important;
  border-width: 0 !important;
  display: initial;
}

editor:focus {
  outline: none;
}

.mce-visual-caret {
  display: none;
}

/* br[data-mce-bogus="1"] {
	display:none;
} */

[title='Font sizes'] .tox-tbtn__select-label,
[title='Размер шрифта'] .tox-tbtn__select-label {
  width: 2.5em !important;
}

[title='Fonts'] .tox-tbtn__select-label {
  width: 5em !important;
}

/* .tox:not([dir=rtl]) {
	left:10px !important;
	top: 16px !important;
	min-width: 300px;
}
body .tox.tox-tinymce-inline .tox-editor-heade,
body .tox.tox-tinymce--toolbar-sticky-on .tox-editor-header {
	max-width: unset !important;
}
.tox .tox-editor-container {
	max-width: unset !important;
} */

.em-tiny-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  padding: 0 5px;
  box-sizing: border-box;
  width: 100%;
  display: none;
  z-index: 5;
  transition: top 0.4s;
}

.em-tiny-editor {
  margin: 0 auto;
}

.em-tiny-wrapper.out-of-frame .tox.tox-silver-sink.tox-tinymce-aux {
  bottom: calc(100% + 10px);
  left: 50%;
  margin-left: -100%;
}

/* Ломает логигу работы поп-апов Tiny */

/* body .tox .tox-dialog-wrap__backdrop {
	background: none;
}  */

/* Новый вариант */
body .tox .tox-dialog-wrap__backdrop {
  position: fixed;
}

body .tox .tox-button {
  background-color: #177ddc;
  border-color: #177ddc;
  font-weight: normal;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

body .tox .tox-button:hover:not(:disabled),
body .tox .tox-button:focus:not(:disabled) {
  background-color: #095cb5;
  border-color: #095cb5;
}

/* Ломает логигу работы поп-апов Tiny */

/* body .tox .tox-dialog-wrap {
	position: static;
	max-width: 680px;
	margin-top: 10px;
} */

/* Новый вариант */
body .tox .tox-dialog-wrap {
  position: relative;
  top: 5px;
}

body .tox-tinymce-inline[style*='flex'] {
  display: table !important;
  margin: 0 auto;
}

body .tox .tox-dialog--width-lg {
  height: 280px;
}

/* Стили для блоков MakeMail */
.mail .hide-for-small,
.mail .hide-for-desktop {
  display: table !important;
  position: relative;
  overflow: visible !important;
}

.em-code {
  display: inline-block;
  vertical-align: text-bottom;
  width: 26px;
  height: 26px;
  text-align: center;
  cursor: pointer;
  margin: 0 3px;
  border-radius: 6px;
  line-height: 1;
  font-size: 1px;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzM0MTRfMTM4MjUpIj4KPHBhdGggZD0iTTguMDcxMjIgMTAuODc3MkM4LjA3MTIyIDEwLjk1NTggOC4xMzE5MyAxMS4wMjAxIDguMjA1MTUgMTEuMDIwMUgxMS41MDg3QzExLjU4MTkgMTEuMDIwMSAxMS42NDI2IDEwLjk1NTggMTEuNjQyNiAxMC44NzcyVjEwLjAyMDFDMTEuNjQyNiA5Ljk0MTUyIDExLjU4MTkgOS44NzcyMyAxMS41MDg3IDkuODc3MjNIOC4yMDUxNUM4LjEzMTkzIDkuODc3MjMgOC4wNzEyMiA5Ljk0MTUyIDguMDcxMjIgMTAuMDI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MuODU2OSAxMy44NTk0SDIuMTQyNjVWMi4xNDUwOUgxMy44NTY5VjEzLjg1OTRaIiBmaWxsPSIjRkE4QzE2Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMzQxNF8xMzgyNSI+CjxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K');
  background-position: center;
  background-repeat: no-repeat;
}

img[src*='<!--']::after {
  content: '';
  display: block;
  width: 26px;
  height: 26px;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzM0MTRfMTM4MzcpIj4KPHBhdGggZD0iTTguNzM0IDcuOTQ4MjFMNy4zNDQ3MSA5LjcxOTY0TDYuNjEwNzkgOC43ODM5M0M2LjU5NzQyIDguNzY2ODYgNi41ODAzNSA4Ljc1MzA1IDYuNTYwODYgOC43NDM1NUM2LjU0MTM2IDguNzM0MDUgNi41MTk5NyA4LjcyOTEyIDYuNDk4MjggOC43MjkxMkM2LjQ3NjYgOC43MjkxMiA2LjQ1NTIxIDguNzM0MDUgNi40MzU3MSA4Ljc0MzU1QzYuNDE2MjIgOC43NTMwNSA2LjM5OTE1IDguNzY2ODYgNi4zODU3OCA4Ljc4MzkzTDQuNjAzNjQgMTEuMDU1NEM0LjU4NzE1IDExLjA3NjQgNC41NzY5MiAxMS4xMDE3IDQuNTc0MTIgMTEuMTI4M0M0LjU3MTMyIDExLjE1NDkgNC41NzYwNSAxMS4xODE3IDQuNTg3NzkgMTEuMjA1N0M0LjU5OTUyIDExLjIyOTggNC42MTc3OCAxMS4yNSA0LjY0MDQ4IDExLj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AxLjcxNDM2IDAuMjU1MzU3IDEuNzE0MzYgMC41NzE0MjlWMTUuNDI4NkMxLjcxNDM2IDE1Ljc0NDYgMS45Njk3MSAxNiAyLjI4NTc4IDE2SDEzLjcxNDRDMTQuMDMwNCAxNiAxNC4yODU4IDE1Ljc0NDYgMTQuMjg1OCAxNS40Mjg2VjQuNDE2MDdDMTQuMjg1OCA0LjI2NDI5IDE0LjIyNTEgNC4xMTc4NiAxNC4xMTc5IDQuMDEwNzFaTTEyLjk2NzkgNC42Nzg1N0g5LjYwNzIxVjEuMzE3ODZMMTIuOTY3OSA0LjY3ODU3Wk0xMy4wMDAxIDE0LjcxNDNIMy4wMDAwN1YxLjI4NTcxSDguMzkyOTNWNS4xNDI4NkM4LjM5MjkzIDUuMzQxNzcgOC40NzE5NSA1LjUzMjU0IDguNjEyNiA1LjY3MzE5QzguNzUzMjUgNS44MTM4NCA4Ljk0NDAyIDUuODkyODYgOS4xNDI5MyA1Ljg5Mjg2SDEzLjAwMDFWMTQuNzE0M1oiIGZpbGw9IiNGQThDMTYiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8zNDE0XzEzODM3Ij4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=');
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 6px;
}

.em-relative {
  position: relative;
}

.em-element-resize-img-container {
  /* display: inline-block; закомментировал, потому что в мобиле перестаёт растягиваться на 100% */
  vertical-align: bottom;
}

.em-element-resize-img-container.em-display-block {
  display: block;
}

.em-element-resize-img-container
  img:not(.em-show-img-mobile, .em-show-img-desktop, [style*='display: block'], [style*='display:block']) {
  display: inline-block !important;
}

/* вызывает перенос текст на новую строку */

/* img[style*="inline-block"][style*="max-width"]:not(.em-show-img-mobile, .em-show-img-desktop):not([style*="display: block"]):not([style*="display:block"]):not([data-mce-src]) {
	display: block !important;
} */

.em-element-resize-img-container.em-relative img:is([style*='width']) {
  width: 100% !important;
}

.em-element-path {
  position: absolute;
  left: 0;
  bottom: -31px;
  z-index: 5;
  user-select: none;
  user-select: none;
  user-select: none;
  user-select: none;
}

.mceNonEditable .em-element-path {
  display: none;
}

.em-element-path_right {
  left: auto;
  right: 0;
}

.em-element-path_bottom {
  top: auto;
  bottom: -31px;
  padding-bottom: 0;
  padding-top: 5px;
}

.em-element-path-panel {
  padding: 5px 12px;
  border-radius: 0 0 6px 6px;
  font:
    12px/20px -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    'Noto Sans',
    sans-serif,
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Segoe UI Symbol',
    'Noto Color Emoji';
  font-style: normal;
  font-weight: normal;
  text-transform: none;
  letter-spacing: normal;
  overflow: hidden;
  transition: all 0.12s ease-in-out;
  position: relative;
  direction: ltr;
  box-sizing: content-box;
}

.em-element-path-content {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  transition: all 0.12s ease-in-out;
  white-space: nowrap;
  overflow: hidden;
}

.em-element-path-content > div {
  cursor: pointer !important;
  transition: all 0.12s ease-in-out;
}

.em-element-path-content > div::after {
  content: '';
  width: 7px;
  height: 11px;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNyIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDcgMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0wLjE2NDczIDUuNjYyNDVMNi4yMDIyMyAwLjk0NjgyM0M2LjIxODAxIDAuOTM0NDAyIDYuMjM2OTcgMC45MjY2ODQgNi4yNTY5MyAwLjkyNDU1M0M2LjI3NjkgMC45MjI0MjIgNi4yOTcwNiAwLjkyNTk2NiA2LjMxNTEgMC45MzQ3NzdDNi4zMzMxNCAwLjk0MzU4OCA2LjM0ODMzIDAuOTU3MzEgNi4zNTg5MyAwLjk3NDM2NUM2LjM2OTUyIDAuOTkxNDIxIDYuMzc1MDkgMS4wMTExMiA2LjM3NSAxLjAzMTJWMi4wNjY0N0M2LjM3NSAyLjEzMjA5IDYuMzQ0MiAyLjE5NTA0IDYuMjkzMyAyLjIzNTIyTDEuNDcxODcgNS45OTk5NUw2LjI5MzMgOS43NjQ2OEM2LjM0NTUzIDkuODA0ODYgNi4zNzUgOS44Njc4MSA2LjM3NSA5LjkzMzQzVjEwLjk2ODdDNi4zNzUgMTEuMDU4NCA2LjI3MTg3IDExLjEwOCA2LjIwMjIzIDExLjA1MzFMMC4xNjQ3MyA2LjMzNzQ1QzAuMTEzNDE1IDYuMjk3NDIgMC4wNzE5MDM3IDYuMjQ2MjIgMC4wNDMzNTE3IDYuMTg3NzNDMC4wMTQ3OTk2IDYuMTI5MjUgLTQuMTAwOGUtMDUgNi4wNjUwMyAtNC4xMDA4ZS0wNSA1Ljk5OTk1Qy00LjEwMDhlLTA1IDUuOTM0ODcgMC4wMTQ3OTk2IDUuODcwNjQgMC4wNDMzNTE3IDUuODEyMTZDMC4wNzE5MDM3IDUuNzUzNjggMC4xMTM0MTUgNS43MDI0OCAwLjE2NDczIDUuNjYyNDVaIiBmaWxsPSIjRDlEOUQ5Ii8+Cjwvc3ZnPgo=');
  margin: 0 10px;
  color: #d9d9d9;
  display: inline-block;
  background-position: left top;
  transform: rotate(180deg);
  position: relative;
  top: 2px;
}

.em-element-path-content > div:last-child::after {
  display: none;
}

.em-element-path-item-style::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 5px;
  border-radius: 50%;
  border: 1px solid var(--colorPrimary);
  vertical-align: top;
  position: relative;
  top: 7px;
}

.em-element-path-item-mob::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 5px;
  border-radius: 50%;
  border: 1px solid var(--colorInfo);
  vertical-align: top;
  position: relative;
  top: 7px;
}

.em-element-path-item-style.em-element-path-item-mob::before {
  width: 3px;
  height: 3px;
  border: 1px solid var(--colorInfo);
  background-color: var(--colorPrimary);
}

.em-element-path-overflow-left::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 40px;
}

@media only screen and (device-width <= 480px), only screen and (width <= 480px) {
  table.em-block-insert-empty:empty {
    border-color: var(--colorInfo);
    background-image: linear-gradient(
      -45deg,
      var(--colorInfoBorder) 25%,
      transparent 25%,
      transparent 50%,
      var(--colorInfoBorder) 50%,
      var(--colorInfoBorder) 75%,
      transparent 75%,
      transparent
    ) !important;
  }

  table.em-block-insert-empty:empty::before {
    color: var(--colorInfo);
  }

  /* [em="block"] td:not([height]):empty.em-atom-insert-empty {
		border-color: var(--colorInfo);
		background-image: linear-gradient(-45deg, var(--colorInfoBorder) 25%, transparent 25%, transparent 50%, var(--colorInfoBorder) 50%, var(--colorInfoBorder) 75%, transparent 75%, transparent) !important;
	} */

  /* [em="block"] td:not([height]).em-atom-insert-empty:empty::before {
		color: var(--colorInfo);
	} */

  [em-state='active'],
  [em-state='active-inside'],
  .sortable-ghost {
    outline: 1px solid var(--colorInfoBorderHover) !important;
  }

  [em-hover='true']:not(
    .em-element-resize-height,
    .em-element-vindent,
    .em-element-vindent-value,
    .em-element-vindent-control
  ) {
    /* outline: 1px solid var(--colorInfoBorderHover); */
  }

  tinymce[em-hover='true'],
  tinymce *[em-hover='true'] {
    text-decoration-color: var(--colorInfoBorderHover);
  }

  [em-edit='active'] {
    /* outline: 2px solid #9254DEDD !important; */
    z-index: 1;
    position: relative;
  }

  tinymce[em-edit='active'],
  tinymce *[em-edit='active'] {
    text-decoration-color: var(--colorInfo);
  }

  tinymce *.em-code[em-edit='active'] {
    outline: 1px solid var(--colorInfo) !important;
  }

  body:not(.mceNonEditable, .em-sandbox-discuss)
    div[style^='height'][style*='line-height'][style*='font-size']:hover
    .em-element-vindent-bg,
  body:not(.mceNonEditable, .em-sandbox-discuss)
    div[style^='height'][style*='line-height'][style*='font-size'][em-edit='active']
    .em-element-vindent-bg,
  td:empty[height]:hover .em-element-vindent-bg,
  td:empty[height][em-edit='active'] .em-element-vindent-bg,
  body:not(.mceNonEditable, .em-sandbox-discuss) div.em-vindent:hover .em-element-vindent-bg,
  body:not(.mceNonEditable, .em-sandbox-discuss) div.em-vindent.em-hover .em-element-vindent-bg,
  body:not(.mceNonEditable, .em-sandbox-discuss) td.em-vindent[em-edit='active'] .em-element-vindent-bg,
  body:not(.mceNonEditable, .em-sandbox-discuss) td.em-vindent:hover .em-element-vindent-bg {
    background-image: linear-gradient(
      135deg,
      var(--colorInfo) 8.33%,
      var(--colorInfoBg) 8.33%,
      var(--colorInfoBg) 50%,
      var(--colorInfo) 50%,
      var(--colorInfo) 58.33%,
      var(--colorInfoBg) 58.33%,
      var(--colorInfoBg) 100%
    ) !important;
  }

  .em-element-vindent-value {
    background: var(--colorInfo);
  }

  body:not(.mceNonEditable, .em-sandbox-discuss)
    [em='block']
    [em-edit='active']:hover
    .em-vindent:not(:hover)
    .em-element-vindent-marker {
    background: var(--colorInfoBgHover);
    border: 1px solid #fff;
  }

  body:not(.mceNonEditable, .em-sandbox-discuss)
    [em='block']
    [em-edit='active']
    .em-gap:not(:hover, .em-hover)
    .em-element-gap-marker {
    transform: translate(-50%, 0);
  }

  td:empty[height]:hover::before,
  td[height][em-edit='active']:empty::before {
    color: var(--colorInfo);
  }

  .em-structure table.em-mob-width-100perc td:nth-child(even):not([class*='em-mob-height-']) {
    height: 1px !important;
  }

  .em-element-editor {
    z-index: 4;
  }

  [em-state='active-inside'] .em-element-editor.of-block {
    top: -32px;
    width: 120px;
    min-height: 32px;
    transition: none;
  }

  .em-element-editor.of-block.out-of-iframe {
    top: auto;
    bottom: -32px;
  }

  .em-element-editor.of-group.out-of-iframe {
    top: auto;
    bottom: 80px;
  }

  .of-block .em-element-editor-widget {
    width: auto;
    height: 26px;
    display: flex;
    align-items: center;
    border-radius: 6px 6px 0 0;
    top: -1px;
  }

  .em-element-editor.of-block.out-of-iframe .em-element-editor-widget {
    border-radius: 0 0 6px 6px;
    bottom: -1px;
    top: auto;
  }

  .em-element-editor.of-group.out-of-iframe .em-element-editor-widget {
    border-radius: 0 0 6px 6px;
    bottom: -1px;
    top: auto;
  }

  .em-element-editor-group {
    height: 24px;
  }

  .em-element-editor-group:hover {
    display: block;
    top: 23px;
    border-radius: 0 0 6px 6px;
    margin-bottom: 0;
    margin-right: -6px;
    padding-top: 4px;
  }

  .em-element-editor-group:first-child:hover {
    border-radius: 6px 0 6px 6px;
  }

  /* [em="block"].empty-structure td:not([height]):not([width]):empty,
	[em="block"].em-structure td:not([height]):not([width]):not([style*="padding"]):not([style*="Margin"]):empty,
	[em="block"] div[style*="inline-block"]>table>tbody>tr>td:not([height]):not([width]):not([style*="padding"]):not([style*="Margin"]):empty,
	.em-structure td.em-mob-wrap:nth-child(odd):empty,
	.em-structure td.noresp-em-mob-wrap:nth-child(odd):empty {
		margin-bottom: 10px;
	} */

  [em-edit='active']:not([style*='font-family'][style*='font-size'], strong, b, em, i, s, strike, u, span, a),
  .em-structure
    [em-edit='active']:not([style*='font-family'][style*='font-size'], strong, b, em, i, s, strike, u, span, a) {
    outline: 2px solid var(--colorInfo) !important;
  }

  td.em-mob-wrap:not(.em-mob-wrap-cancel, .em-mob-display-inline-block):nth-child(even)

	/*td.noresp-em-mob-wrap:not(.em-mob-wrap-cancel, .em-mob-display-inline-block):nth-child(even)*/ {
    width: 100%;
  }
}

.em-powered-logo {
  display: none;
}

.sortable-chosen {
  user-select: none;
  user-select: none;
  user-select: none;
  user-select: none;
  user-select: none;
  user-select: none;
}

.sortable-chosen input {
  user-select: text;
  user-select: text;
  user-select: text;
  user-select: text;
  user-select: text;
}

em-replace {
  display: inline;
  position: relative;
}

em-replace[src] {
  display: block;

  &::after {
    left: 50%;
    transform: translate(-100%, 0);
  }
}

em-replace::after {
  content: '';
  display: inline-block;
  position: absolute;
  top: -12px;
  left: -22px;
  width: 24px; /* Ширина SVG-иконки */
  height: 24px; /* Высота SVG-иконки */
  margin-left: 8px; /* Отступ между текстом и иконкой */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 16 16' focusable='false' data-icon='replacer' width='16px' height='16px' fill='white' aria-hidden='true'%3E%3Cpath d='M8.08337 10V9.16663H9.58337C9.74721 9.16663 9.88538 9.11075 9.99788 8.999C10.1104 8.88717 10.1666 8.74863 10.1666 8.58338V7.41663C10.1666 7.10554 10.2597 6.82637 10.4459 6.57912C10.632 6.33196 10.8722 6.15975 11.1666 6.0625V5.9375C10.8722 5.84583 10.632 5.675 10.4459 5.425C10.2597 5.175 10.1666 4.89446 10.1666 4.58337V3.41663C10.1666 3.25138 10.1108 3.11283 9.999 3.001C9.88717 2.88925 9.74862 2.83337 9.58337 2.83337H8.08337V2H9.58337C9.97779 2 10.3125 2.13775 10.5875 2.41325C10.8625 2.68867 11 3.02313 11 3.41663V4.58337C11 4.74862 11.0559 4.88717 11.1678 4.999C11.2795 5.11075 11.418 5.16663 11.5834 5.16663H12V6.83338H11.5834C11.418 6.83338 11.2795 6.88925 11.1678 7.001C11.0559 7.11283 11 7.25138 11 7.41663V8.58338C11 8.97688 10.8623 9.31133 10.5868 9.58675C10.3113 9.86225 9.97687 10 9.58337 10H8.08337ZM2.41662 10C2.02221 10 1.6875 9.86225 1.4125 9.58675C1.1375 9.31133 1 8.97688 1 8.58338V7.41663C1 7.25138 0.944083 7.11283 0.83225 7.001C0.7205 6.88925 0.581958 6.83338 0.416625 6.83338H0V5.16663H0.416625C0.581958 5.16663 0.7205 5.11075 0.83225 4.999C0.944083 4.88717 1 4.74862 1 4.58337V3.41663C1 3.02313 1.13775 2.68867 1.41325 2.41325C1.68867 2.13775 2.02312 2 2.41662 2H3.91662V2.83337H2.41662C2.25279 2.83337 2.11463 2.88925 2.00213 3.001C1.88963 3.11283 1.83337 3.25138 1.83337 3.41663V4.58337C1.83337 4.89446 1.74029 5.175 1.55413 5.425C1.36804 5.675 1.12779 5.84583 0.833375 5.9375V6.0625C1.12779 6.15975 1.36804 6.33196 1.55413 6.57912C1.74029 6.82637 1.83337 7.10554 1.83337 7.41663V8.58338C1.83337 8.74863 1.88925 8.88717 2.001 8.999C2.11283 9.11075 2.25137 9.16663 2.41662 9.16663H3.91662V10H2.41662Z' /%3E%3Cpath d='M6.48214 7.88473V7.13473C6.48214 7.0758 6.43393 7.02759 6.375 7.02759H5.625C5.56607 7.02759 5.51786 7.0758 5.51786 7.13473V7.88473C5.51786 7.94366 5.56607 7.99187 5.625 7.99187H6.375C6.43393 7.99187 6.48214 7.94366 6.48214 7.88473ZM4.25893 7.88473V7.13473C4.25893 7.0758 4.21072 7.02759 4.15179 7.02759H3.40179C3.34286 7.02759 3.29464 7.0758 3.29464 7.13473V7.88473C3.29464 7.94366 3.34286 7.99187 3.40179 7.99187H4.15179C4.21072 7.99187 4.25893 7.94366 4.25893 7.88473ZM8.70536 7.88473V7.13473C8.70536 7.0758 8.65715 7.02759 8.59822 7.02759H7.84822C7.78929 7.02759 7.74107 7.0758 7.74107 7.13473V7.88473C7.74107 7.94366 7.78929 7.99187 7.84822 7.99187H8.59822C8.65715 7.99187 8.70536 7.94366 8.70536 7.88473Z' /%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease;
  opacity: 0;
  border-radius: 8px;
  z-index: 11;
}

[em='block'] em-replace[text]:not([em-edit='active'], .em-hide-mergetags-popup):hover::after,
[em='block'] [em-hover='true']:hover em-replace:not([em-edit='active'], .em-hide-mergetags-popup)::after,
[em='block'] table:hover > em-replace:not([em-edit='active'], .em-hide-mergetags-popup)::after,
[em='block'] [em-state='active']:hover em-replace:not([em-edit='active'], .em-hide-mergetags-popup)::after,
[em='block'] [em-state='active']:hover em-replace[src]:not(.em-hide-mergetags-popup)::after {
  opacity: 1;
}

[em-state='active'] [em-state='active']:hover em-replace[src]::after {
  opacity: 0;
}

[em='block'] em-replace:not(.em-hide-mergetags-popup):active,
[em='block'] em-replace:not(.em-hide-mergetags-popup):hover {
  outline: 2px solid var(--colorPrimaryBorderHover) !important;
  position: relative;
  z-index: 3;
}

.remove-basic-cell {
  background-color: rgba(169, 210, 246, 0.5) !important;
}

.em-active-table-cell {
  background-color: rgba(169, 210, 246, 0.5) !important;
}

.em-temporary-active-cell-background-color {
  background-color: rgba(169, 210, 246, 0.5) !important;
}

.temporary-cell-class {
  background-color: rgba(169, 210, 246, 0.5) !important;
}

.em-disable-element-table-menu {
  display: none;
}

