/* WAKEFLOT 2026-11-19: отступы тела новости (#textContainer).
   Не задаём margin всем div — только пустым блокам и типографике p/h/ul.
   Откат: убрать подключение из tmpl/core_news.html и этот файл; бэкап
   /workspace/backups/wakeflot.ru/2026-11-19_154011/ */
#textContainer {
  font-size: 17px;
  line-height: 1.5;
}

#textContainer p {
  margin: 5px 0 20px 0;
}

#textContainer p:empty,
#textContainer div:empty {
  display: block;
  min-height: 1em;
  margin: 0 0 0.75em;
}

#textContainer h2,
#textContainer h3,
#textContainer h4 {
  margin: 1.2em 0 0.6em;
}

#textContainer ul,
#textContainer ol {
  margin: 0 0 1em 20px;
  padding: 0;
}

#textContainer li {
  margin: 0 0 0.4em;
}

/* WAKEFLOT 2026-11-25: форма подписки внизу страницы новости (макет v4).
   Правила только для #CollectionPage / .wf-news-subscribe, подвал не трогаем.
   Откат: /workspace/backups/wakeflot.ru/2026-11-25_122025_newssubscribe/ */
#CollectionPage .wf-news-subscribe {
  margin: 34px 0 16px;
  padding: 22px 24px 18px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fafafa;
}
#CollectionPage .wf-news-subscribe .wf-subscribe-title {
  margin: 0 0 10px 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #222;
}
#CollectionPage .wf-news-subscribe .wf-subscribe-row {
  max-width: 520px;
}
#CollectionPage .wf-news-subscribe .wf-subscribe-row input[type="email"],
#CollectionPage .wf-news-subscribe .wf-subscribe-row button {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  border-radius: 5px !important;
}
#CollectionPage .wf-news-subscribe__tg {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #555;
}
#CollectionPage .wf-news-subscribe__tg a {
  color: #111;
  text-decoration: underline;
}
#CollectionPage #showFeedBackForm {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  box-sizing: border-box !important;
  margin: 12px 0 10px 0 !important;
  padding: 0 20px !important;
  line-height: 1 !important;
  font-size: 16px !important;
  border-radius: 5px !important;
}
#CollectionPage a.goback {
  display: inline-block;
  margin: 8px 0 24px 0;
}
@media (max-width: 700px) {
  #CollectionPage .wf-news-subscribe {
    padding: 18px;
  }
  #CollectionPage .wf-news-subscribe .wf-subscribe-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  #CollectionPage .wf-news-subscribe .wf-subscribe-row input[type="email"],
  #CollectionPage .wf-news-subscribe .wf-subscribe-row button {
    width: 100% !important;
    margin: 0 !important;
  }
}
