/* IWEIYI product copy: scoped readability and FAQ treatment, 2026-10-01.
 * Deliberately does not style the title, price, cart, tabs, header or gallery.
 * Keep the shop's existing font and all translated content.
 */
body#product [id^="product-description-short-"],
body#product #description .product-description {
  color: #39434b;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: normal;
  text-align: start;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Undo the theme's paragraph flex layout: strong, links and text stay inline. */
body#product [id^="product-description-short-"] p,
body#product #description .product-description p {
  display: block;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  margin: 0 0 1rem;
}

body#product [id^="product-description-short-"] {
  margin-block-end: 1.5rem;
  line-height: 1.65;
}

body#product [id^="product-description-short-"] p {
  margin-block-end: 0.875rem;
}

body#product [id^="product-description-short-"] ul {
  list-style: none;
  margin: 0.875rem 0;
  padding: 0;
  padding-inline-start: 1rem;
  border-inline-start: 2px solid #ead3dc;
}

body#product [id^="product-description-short-"] li {
  font-size: inherit;
  line-height: inherit;
  margin-block-end: 0.625rem;
}

body#product [id^="product-description-short-"] h2,
body#product [id^="product-description-short-"] h3 {
  font-size: 1.125rem;
  line-height: 1.45;
  font-weight: 600;
  margin: 1.25rem 0 0.625rem;
  letter-spacing: normal;
  text-transform: none;
}

body#product [id^="product-description-short-"] > :last-child,
body#product [id^="product-description-short-"] li:last-child {
  margin-block-end: 0;
}

/* A readable line length instead of paragraphs stretching across the tab. */
body#product #description .product-description {
  max-width: 76ch;
  margin-inline: auto;
  padding-block: 0.75rem 1.25rem;
}

body#product #description .product-description h2 {
  color: #29343b;
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 600;
  margin: 2rem 0 0.875rem;
  letter-spacing: normal;
  text-transform: none;
}

body#product #description .product-description h3 {
  color: #29343b;
  font-size: 1.1875rem;
  line-height: 1.5;
  font-weight: 600;
  margin: 1.5rem 0 0.625rem;
  letter-spacing: normal;
  text-transform: none;
}

body#product #description .product-description > :first-child {
  margin-block-start: 0;
}

body#product #description .product-description ul,
body#product #description .product-description ol {
  margin-block: 0 1.25rem;
  padding-inline-start: 1.25rem;
}

body#product #description .product-description li {
  margin-block-end: 0.5rem;
  font-size: inherit;
  line-height: inherit;
}

body#product #description .product-description strong,
body#product [id^="product-description-short-"] strong {
  font-weight: 600;
}

body#product #description .product-description a:not(.btn) {
  color: #953b59;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

body#product #description .product-description a:not(.btn):hover {
  color: #70223d;
}

/* Match semantic FAQ wrappers, independently of product number or language.
 * Existing plain paragraphs and manually typed legacy bullets are preserved.
 */
body#product #description .product-description :is(section[id$="-faq"], div[id$="-faq"], #faq, .product-faq) {
  margin-block-start: 2.25rem;
  padding: 1.75rem;
  color: #39434b;
  background: #fff5f7;
  border: 1px solid #edd7df;
  border-radius: 0.875rem;
}

body#product #description .product-description :is(section[id$="-faq"], div[id$="-faq"], #faq, .product-faq) > h2 {
  color: #79364e;
  margin: 0 0 1.5rem;
}

body#product #description .product-description :is(section[id$="-faq"], div[id$="-faq"], #faq, .product-faq) h3 {
  font-size: 1.125rem;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

body#product #description .product-description :is(section[id$="-faq"], div[id$="-faq"], #faq, .product-faq) h3 ~ h3 {
  border-block-start: 1px solid #edd7df;
  padding-block-start: 1.25rem;
  margin-block-start: 1.25rem;
}

body#product #description .product-description :is(section[id$="-faq"], div[id$="-faq"], #faq, .product-faq) p {
  margin: 0;
}

body#product #description .product-description :is(section[id$="-faq"], div[id$="-faq"], #faq, .product-faq) p + p {
  margin-block-start: 0.75rem;
}

@media (max-width: 767px) {
  body#product #description .product-description {
    max-width: 100%;
    padding-block: 0.25rem 0.75rem;
  }

  body#product #description .product-description h2 {
    font-size: 1.375rem;
    margin-block-start: 1.75rem;
  }

  body#product #description .product-description h3 {
    font-size: 1.125rem;
  }

  body#product #description .product-description > :first-child {
    margin-block-start: 0;
  }

  body#product #description .product-description :is(section[id$="-faq"], div[id$="-faq"], #faq, .product-faq) {
    padding: 1.125rem;
    margin-block-start: 1.75rem;
    border-radius: 0.75rem;
  }

  body#product #description .product-description :is(section[id$="-faq"], div[id$="-faq"], #faq, .product-faq) > h2 {
    margin-block-start: 0;
  }
}
