/* 0.43.5 — Shared single-entry description surface: hearses, coffins, wreaths.
   Scope strictly to the description beneath the gallery/details grid. Catalogue
   filters, prices, specification tables and related-product cards are untouched.
   Higher-priority text alignment is intentional: some White Label themes apply
   centered/justified rules to p and headings inside .pc-main. */
:is(.pogost-product-page, .pogost-hearse-page) > .pogost-block-container > :is(.pogost-product-description, .pogost-hearse-description) {
  box-sizing: border-box;
  width: min(100%, 1120px);
  max-width: 1120px;
  min-width: 0;
  /* Align the entire card with the main catalogue column, not just its text.
     0.43.4 mistakenly centered the card using auto on both inline margins. */
  margin-block: 38px 0;
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
  padding: 28px;
  text-align: left !important;
  overflow-wrap: break-word;
}

/* Retain any rich-text markup, but do not inherit centered/justified alignment. */
:is(.pogost-product-page, .pogost-hearse-page) > .pogost-block-container > :is(.pogost-product-description, .pogost-hearse-description)
:is(h2, h3, h4, h5, h6, p, ul, ol, li, blockquote, div, figcaption) {
  text-align: left !important;
}

:is(.pogost-product-page, .pogost-hearse-page) > .pogost-block-container > :is(.pogost-product-description, .pogost-hearse-description)
:is(p, li, blockquote) {
  line-height: 1.65;
}

:is(.pogost-product-page, .pogost-hearse-page) > .pogost-block-container > :is(.pogost-product-description, .pogost-hearse-description)
:is(ul, ol) {
  padding-inline-start: 1.5em;
}

@media (max-width: 820px) {
  :is(.pogost-product-page, .pogost-hearse-page) > .pogost-block-container > :is(.pogost-product-description, .pogost-hearse-description) {
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    padding: clamp(18px, 4vw, 24px);
  }
}
