/* ACF WYSIWYG: native HTML formatting inside price cards only. */
.price__card-text {
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

/*
 * Undo both the theme reset and descendant rules on .price__card.
 * Unlike initial/unset, revert restores the browser stylesheet (headings,
 * paragraph spacing, list markers, inline links, emphasis, quotes, tables).
 * Inline formatting supplied by the editor takes precedence over this reset.
 */
.price__card .price__card-text :is(
  div, p, h1, h2, h3, h4, h5, h6, span, a, br, hr,
  strong, b, em, i, u, s, del, ins, strike, small, sub, sup, mark,
  blockquote, pre, code, kbd, samp, var, abbr, cite, q,
  ul, ol, li, dl, dt, dd,
  table, caption, colgroup, col, thead, tbody, tfoot, tr, th, td,
  img, figure, figcaption
) {
  all: revert;
}

/* Existing responsive theme rules use !important for these properties. */
.price__card-text :is(p, h2, h3) {
  font-size: revert !important;
}

.price__card-text h2 {
  text-align: revert !important;
}

.price__card-text a {
  margin-top: revert !important;
}

.price__card-text ul li {
  list-style-position: revert !important;
}

/* Keep editor-inserted images within the card on narrow screens. */
.price__card-text img {
  max-width: 100%;
  height: auto;
}
