.custom-page .page-title,
.main-page .page-title {
  margin-bottom: 20px;
  text-align: center;
}

@media screen and (min-width: 960px) {
  .custom-page .page-title,
  .main-page .page-title {
    margin-bottom: 30px;
  }
}

.custom-page .placeholder {
  display: inline-block;
  height: 335px;
  width: 100%;
  background-color: rgba(var(--color-text), 0.05);
}

@media screen and (min-width: 960px) {
  .custom-page .placeholder {
    width: 100%;
    height: 525px;
  }
}

/* The ipad end responds to the mobile end in vertical screen */

/* @custom-media --tablet (max-width: 959px); */

/* @custom-media --gt-mobile (min-width: 751px); */

/* detectingScreen need to consider the configuration of the tablet */

/* FJ procurement pages: scoped to the two existing page-body roots. */
.main-page:has(> .rte > :is(.fj-order-page, .fj-factory-page)) {
  box-sizing: border-box;
  width: 100%;
  max-width: 1050px;
  padding-inline: clamp(20px, 4vw, 42px);
  padding-top: clamp(18px, 3vw, 38px);
}
.main-page:has(> .rte > :is(.fj-order-page, .fj-factory-page)) > .page-title {
  margin-block: 0 14px;
  color: #79190e;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.12;
  text-align: start;
  text-wrap: balance;
}
.main-page > .rte > :is(.fj-order-page, .fj-factory-page) {
  padding: 0 0 52px;
  overflow-wrap: anywhere;
}
.main-page > .rte > .fj-order-page > .fj-order-hero,
.main-page > .rte > .fj-factory-page > .fj-factory-hero {
  margin: 0 0 18px;
  padding: 0 0 8px;
  border: 0;
  border-radius: 0;
  background: none;
  text-align: start;
}
.main-page > .rte > .fj-factory-page .fj-factory-hero::before {
  display: none;
}
.main-page > .rte > .fj-order-page .fj-order-hero-label,
.main-page > .rte > .fj-order-page > .fj-order-hero > h2,
.main-page > .rte > .fj-factory-page .fj-factory-label {
  display: none;
}
.main-page > .rte > .fj-factory-page > .fj-factory-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 29px);
  line-height: 1.25;
  text-wrap: balance;
}
.main-page > .rte > :is(.fj-order-page, .fj-factory-page) > :is(.fj-order-hero, .fj-factory-hero) p {
  max-width: 68ch;
  margin-inline: 0;
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}
.main-page .fj-order-page > .fj-order-trustbar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 12px 0 22px;
}
.main-page .fj-order-page .fj-order-trustbar .fj-order-trustitem {
  padding: 8px 0 12px;
  border: 0;
  border-top: 1px solid #dbc7c1;
  border-radius: 0;
  background: none;
  font-size: 15px;
  line-height: 1.45;
  text-align: start;
  box-shadow: none;
}
.main-page .fj-order-page .fj-order-trustitem strong {
  font-size: 16px;
  line-height: 1.3;
}
.main-page .fj-order-page > nav.fj-order-section {
  margin: 0 0 clamp(26px, 5vw, 48px);
  padding-block: 8px 14px;
  border-block: 1px solid #dbc7c1;
}
.main-page .fj-order-page > nav.fj-order-section > p {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.55;
}
.main-page .fj-order-page > nav.fj-order-section a {
  color: #79190e;
  text-decoration: underline;
  text-underline-offset: .19em;
}
.main-page .fj-order-page > nav.fj-order-section a[href*="intent="] {
  display: inline;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background: #f3e3df;
  padding: 2px 3px;
}
.main-page :is(.fj-order-page, .fj-factory-page) a:focus-visible {
  outline: 2px solid #9f3e32;
  outline-offset: 4px;
}
.main-page .fj-order-page :is(.fj-order-section-title, .fj-order-step, .fj-order-info-card) h2,
.main-page .fj-factory-page :is(.fj-section-header, .fj-process-item) h2 {
  text-wrap: balance;
}
.main-page .fj-factory-page > .fj-section {
  margin-bottom: clamp(34px, 6vw, 68px);
}
.main-page .fj-factory-page .fj-section-header {
  margin: 0 0 16px;
  padding-top: 17px;
  border-top: 1px solid #dbc7c1;
  text-align: start;
}
.main-page .fj-factory-page .fj-section-header p,
.main-page .fj-factory-page .fj-text-box p {
  max-width: 68ch;
  margin-inline: 0;
  font-size: 16px;
  line-height: 1.65;
}
.main-page .fj-factory-page .fj-text-box {
  padding: 12px 0 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.main-page .fj-factory-page [id^="fj-oem-brief-"],
.main-page .fj-order-page [id^="fj-order-"] {
  scroll-margin-top: 110px;
}
@media (max-width: 760px) {
  .main-page:has(> .rte > :is(.fj-order-page, .fj-factory-page)) {
    padding-inline-end: 56px;
  }
  .main-page .fj-order-page > .fj-order-trustbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The Simplified Chinese order guide already has a theme-rendered page title. */
html[lang="zh-hans-cn"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/zh-hans-cn/pages/how-to-order"])
  .main-page > .rte > .fj-order-page > .fj-order-hero > h1 {
  display: none;
}

/* English wholesale pricing: align the introduction and the first decision section. */
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/pricing"])
  .main-page:has(> .rte > .fj-pricing-page) {
  padding-block-start: clamp(18px, 3vw, 34px);
}
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/pricing"])
  .main-page:has(> .rte > .fj-pricing-page) > .page-title {
  margin-block: 0 14px;
  padding-inline: 18px;
  color: #79190e;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.12;
  text-align: start;
  text-wrap: balance;
}
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/pricing"])
  .main-page > .rte > .fj-pricing-page {
  padding-block-start: 0;
}
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/pricing"])
  .fj-pricing-page > .fj-pricing-hero {
  margin-block: 0 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  text-align: start;
}
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/pricing"])
  .fj-pricing-page > .fj-pricing-hero::before,
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/pricing"])
  .fj-pricing-page > .fj-pricing-hero > :is(.fj-pricing-label, h2) {
  display: none;
}
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/pricing"])
  .fj-pricing-page > .fj-pricing-hero > p,
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/pricing"])
  #fj-pricing-start > .fj-pricing-section-header > p,
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/pricing"])
  #fj-pricing-start > .fj-pricing-box {
  max-inline-size: 68ch;
  margin-inline: 0;
  line-height: 1.58;
  text-wrap: pretty;
}
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/pricing"])
  #fj-pricing-start > .fj-pricing-section-header {
  margin-block-end: 12px;
}
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/pricing"])
  #fj-pricing-start > .fj-pricing-section-header > h2 {
  margin-block-end: 6px;
  font-size: clamp(22px, 3.1vw, 29px);
  line-height: 1.25;
  text-wrap: balance;
}
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/pricing"])
  #fj-pricing-start > .fj-pricing-box {
  padding: 12px 0 0;
  border: 0;
  border-block-start: 1px solid var(--fj-border);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/pricing"])
  #fj-pricing-start a {
  text-decoration: underline;
  text-underline-offset: .16em;
}
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/pricing"])
  #fj-pricing-start a:focus-visible {
  outline: 2px solid #79190e;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/pricing"])
    .main-page:has(> .rte > .fj-pricing-page) > .page-title {
    padding-inline: 15px 78px;
  }
  html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/pricing"])
    .fj-pricing-page > :is(.fj-pricing-hero, #fj-pricing-start) {
    padding-inline-end: 63px;
  }
}

/* Simplified Chinese About: keep the native title and a readable opening. */
html[lang="zh-hans-cn"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/zh-hans-cn/pages/about-us"])
  .main-page:has(> .rte > .fa) {
  padding-block-start: clamp(18px, 3vw, 34px);
}
html[lang="zh-hans-cn"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/zh-hans-cn/pages/about-us"])
  .main-page:has(> .rte > .fa) > .page-title {
  margin-block: 0 14px;
  padding-inline: 18px;
  color: #79190e;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.16;
  text-align: start;
  text-wrap: balance;
}
html[lang="zh-hans-cn"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/zh-hans-cn/pages/about-us"])
  .main-page > .rte > .fa {
  padding-block-start: 0;
}
html[lang="zh-hans-cn"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/zh-hans-cn/pages/about-us"])
  .fa > .ah {
  margin-block: 0 clamp(24px, 4vw, 44px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  text-align: start;
}
html[lang="zh-hans-cn"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/zh-hans-cn/pages/about-us"])
  .fa > .ah::before,
html[lang="zh-hans-cn"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/zh-hans-cn/pages/about-us"])
  .fa > .ah::after,
html[lang="zh-hans-cn"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/zh-hans-cn/pages/about-us"])
  .fa > .ah > .ahi > :is(.ahk, .aht) {
  display: none;
}
html[lang="zh-hans-cn"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/zh-hans-cn/pages/about-us"])
  .fa > .ah > .ahi {
  margin-inline: 0;
}
html[lang="zh-hans-cn"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/zh-hans-cn/pages/about-us"])
  .fa > .ah .ahc {
  max-inline-size: 39em;
  margin-inline: 0;
  font-size: 17px;
  line-height: 1.68;
}
html[lang="zh-hans-cn"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/zh-hans-cn/pages/about-us"])
  .fa > .ah .ahs {
  justify-content: flex-start;
  gap: 6px 8px;
  margin-block-start: 14px;
}
html[lang="zh-hans-cn"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/zh-hans-cn/pages/about-us"])
  .fa > .ah .ahg {
  padding: 5px 10px;
}
@media (max-width: 760px) {
  html[lang="zh-hans-cn"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/zh-hans-cn/pages/about-us"])
    .main-page:has(> .rte > .fa) > .page-title {
    padding-inline: 16px 78px;
  }
  html[lang="zh-hans-cn"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/zh-hans-cn/pages/about-us"])
    .fa > .ah {
    padding-inline-end: 62px;
  }
}

/* Preserve room beside the chat button for the test-report scope notice. */
@media (max-width: 760px) {
  .main-page > .rte > .fj-certifications-page > .fj-cert-intro > p:nth-of-type(2):has(> strong:first-child + br) {
    padding-inline-end: 32px;
  }
}

/* FJ wholesale payment policy, English opening only. */
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/payment"])
  .main-page:has(> .rte > .fj-payment-page) {
  padding-block-start: clamp(18px, 3vw, 34px);
}
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/payment"])
  .main-page:has(> .rte > .fj-payment-page) > .page-title {
  margin-block: 0 12px;
  padding-inline: 18px;
  color: #79190e;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.12;
  text-align: start;
}
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/payment"])
  .main-page > .rte > .fj-payment-page {
  padding-block-start: 0;
}
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/payment"])
  .fj-payment-page > .fj-payment-hero {
  margin-block: 0 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  text-align: start;
}
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/payment"])
  .fj-payment-page > .fj-payment-hero::before,
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/payment"])
  .fj-payment-page > .fj-payment-hero > :is(.fj-payment-label, h2) {
  display: none;
}
html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/payment"])
  .fj-payment-page > .fj-payment-hero > p {
  max-inline-size: 66ch;
  margin-inline: 0;
  line-height: 1.6;
  text-wrap: pretty;
}
@media (max-width: 760px) {
  html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/payment"])
    .main-page:has(> .rte > .fj-payment-page) > .page-title {
    padding-inline: 15px 72px;
  }
  html[lang="en"]:has(> head > link[rel="canonical"][href="https://fallon-fj.com/pages/payment"])
    .fj-payment-page > .fj-payment-hero {
    padding-inline-end: 62px;
  }
}
