.myH1 {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 20px !important;
  line-height: 1.5;
}

/* Глобальный стиль для myH2, чтобы работал и на динамических блоках */
.myH2 {
  font-size: 22px;
  font-weight: bold;
  color: #3a3a3a;
  margin-bottom: 16px !important;
  margin-top: 10px;
}

/* Глобальный стиль для myH3 */
.myH3 {
  font-size: 20px;
  font-weight: bold;
  color: #3a3a3a;
  margin-bottom: 12px !important;
  margin-top: 8px;
}

.myQuote {
  margin-left: 20px !important;
  margin-top: 20px !important;
  margin-bottom: 20px !important;
  padding-left: 10px !important;
  border-left: 2px solid !important;
  border-color: #ec5252 !important;
  font-style: italic !important;
  border-radius: 0px !important;
}



.myCode{
    border: 1px solid !important;
    border-radius: 10px !important;
    background-color: #15191f !important;
    color: white !important;
    padding: 10px !important;
    padding-left: 20px !important;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px !important;
    white-space: pre-wrap !important;
    tab-size: 4;
}

.myLi {
  display: block;
  position: relative;
  margin-left: 32px !important;
  list-style: none;
  line-height: 1.5 !important;
}

.myLi::before {
  content: '•';
  position: absolute;
  left: -16px;
  top: 0;
  line-height: 1.5;
  color: #ec5252;
  font-size: 1.2em;
  transform: translateY(-0.1em);
}


.myLi div {
  position: relative;
  padding-left: 21px;
  margin-left: -21px;
  list-style: none;
  line-height: 1.5 !important;
}

.myLi div::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.5;
  color: #ec5252;
  font-size: 1.2em;
  transform: translateY(-0.1em);
}



.edit {
  position: relative;
  margin-bottom: 15px !important;
  
  border-radius: 5px;
  padding-left: 5px;
  padding-right: 5px;
 
  line-height: 1.5 !important;

} 

.myFoto{
background-color: initial !important;
}

.myFoto div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.myFoto div img {
  display: block;
  margin: 0 auto;

  background-color: initial !important;
  width: -webkit-fill-available;
  border-radius: 10px !important;
  margin-bottom: 15px !important;
}



.edit div {
  line-height: 1.5 !important;
}



.placeholder-text::before {
  content: attr(data-placeholder);

  position: absolute;
  pointer-events: none;
}

.edit:focus {
  outline: none !important;
  border: none;
  box-shadow: none !important;
}

.wrapper-editor {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

.wrapper-editor img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

#toolTipMenu {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(60, 60, 60, 0.10), 0 1.5px 4px rgba(60, 60, 60, 0.08);
  padding: 8px 14px;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
  align-items: center;
  z-index: 1000000 !important;
}

#toolTipMenu button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #888;
  background: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  outline: none;
}

#toolTipMenu button:hover {
  background: #f0f0f0;
  border-color: #888;
  color: #ec5252;
}

#toolTipMenu button.active {
  background: #f0f0f0;
  border-color: #888;
  color: #ec5252;
}

#newBlockMenu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
  width: 210px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(60, 60, 60, 0.10), 0 1.5px 4px rgba(60, 60, 60, 0.08);
  padding: 10px 0;
}

#newBlockMenu button {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 10px 18px;
  font-size: 16px;
  color: #222;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
}

#newBlockMenu button:hover {
  background: #f5f5f5;
  color: #ec5252;
}

#newBlockMenu div {
  width: 100%;
}

#newBlockPlus {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
}

#newBlockPlus .plus-sign {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 50%;
  font-size: 18px;
  color: #7d7d7d;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(60, 60, 60, 0.08);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

#newBlockPlus .plus-sign:hover {
  background: #f5f5f5;
  color: #ec5252;
  box-shadow: 0 4px 16px rgba(236, 82, 82, 0.10);
}

#editBlockMenuIcon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 50%;
  font-size: 18px;
  color: #7d7d7d;
  box-shadow: 0 2px 8px rgba(60, 60, 60, 0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

#editBlockMenuIcon:hover {
  background: #f5f5f5;
  color: #ec5252;
  box-shadow: 0 4px 16px rgba(236, 82, 82, 0.10);
}

#editBlockMenu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
  width: 210px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(60, 60, 60, 0.10), 0 1.5px 4px rgba(60, 60, 60, 0.08);
  padding: 10px 0;
}

#editBlockMenu button {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 10px 18px;
  font-size: 16px;
  color: #222;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
}

#editBlockMenu button:hover {
  background: #f5f5f5;
  color: #ec5252;
}

#editBlockMenu div {
  width: 100%;
}


.swiper {
  width: 100%;
  margin: 20px 0;
  position: relative;
}

.swiper-wrapper {
  width: 100%;
}

.swiper-slide {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8f9fa;
}

.slide-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-content img {
  width: 100%;
  object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
  color: #2c3e50;
  background: rgba(255, 255, 255, 0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
}

.swiper-pagination {
  bottom: 10px !important;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #2c3e50;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #2c3e50;
}

.swiper-container {
  width: 100%;
}

.slide-img {
  width: 100%;
  object-fit: contain;
}

#prevFiles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  padding: 10px;
}

.file-preview-item {
  position: relative;
  width: 70px;
  text-align: center;
}

.file-preview-image {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

.file-preview-name {
  font-size: 12px;
  margin-top: 5px;
  word-break: break-all;
  color: #495057;
}

.file-preview-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #dee2e6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #dc3545;
  z-index: 1000;
}

.file-preview-remove:hover {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

.delete-foto-icon {
  color: #ec5252;
  font-size: 20px;
  transition: color 0.2s, transform 0.2s, text-shadow 0.2s;
}

.delete-foto-icon:hover {
  color: #b71c1c;
  transform: scale(1.2) rotate(-10deg);
  text-shadow: 0 2px 8px rgba(236, 82, 82, 0.15);
  cursor: pointer;
}

.myTrash {
  background-color: white;
  border: solid 1px;
  border-radius: 15px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
