/* 店家專區：商家 App 下載與申請步驟、真實店家頁預覽，隨文字偏好重排。 */
html {
  font-size: 100%;
}
body.merchant-simple {
  background: #f8f5ed;
  font-size: 1rem;
  line-height: 1.65;
}
.merchant-simple::before {
  display: none;
}
body.merchant-simple
  :is(h1, h2, .brand-copy strong) {
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-weight: 700;
}
body.merchant-simple
  :is(
    .site-header,
    .site-footer,
    .portal-hero,
    .portal-action-panel,
    .simple-faq,
    .portal-contact,
    .questionnaire-section
  )
  :is(
    p,
    a,
    button,
    input,
    select,
    textarea,
    label,
    legend,
    small,
    span,
    strong,
    em,
    b
  ) {
  font-size: inherit;
}
.merchant-simple .site-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem max(4%, 1rem);
  background: #f8f5ed;
  backdrop-filter: none;
}
.merchant-simple .brand {
  flex-wrap: wrap;
  max-width: 100%;
  white-space: normal;
}
.merchant-simple .brand-mark {
  width: 3.5rem;
  height: auto;
}
.merchant-simple .brand-mark img {
  height: auto;
}
body.merchant-simple .brand-copy strong {
  font-size: 1.25rem;
}
body.merchant-simple .brand-copy small {
  font-size: 0.75rem;
}
.merchant-simple .site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-left: auto;
  font-size: 0.875rem;
}
.merchant-simple :is(.btn, .header-cta) {
  min-width: 0;
  max-width: 100%;
  height: auto;
  padding: 0.8rem 1.25rem;
  border-radius: 2rem;
  font-size: 1rem;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none;
}
.merchant-simple .header-cta {
  background: var(--accent);
}
.merchant-simple .portal-hero {
  min-height: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 3rem;
  padding-block: 3.5rem;
}
.merchant-simple .portal-hero h1 {
  max-width: 12em;
  font-size: clamp(2.25rem, 2rem + 2vw, 3.75rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
}
.merchant-simple .portal-hero h1 span {
  display: block;
}
.merchant-simple .hero-lead {
  max-width: 30em;
  font-size: 1.125rem;
}
.merchant-simple .hero-actions {
  flex-wrap: wrap;
}
.merchant-simple .eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}
.merchant-simple .portal-storefront-screen {
  width: min(17rem, 100%);
}
.merchant-simple .portal-storefront-screen-frame {
  border-radius: 1.3rem;
  box-shadow: 0 12px 30px #42352014;
}
.merchant-simple .portal-storefront-screen figcaption {
  font-size: 0.8125rem;
  font-weight: 400;
}
.merchant-simple .merchant-download {
  width: min(70rem, calc(100% - 2rem));
  margin-inline: auto;
  padding-block: 2.5rem;
}
.merchant-simple .merchant-download h2 {
  font-size: 2rem;
}
.merchant-simple .merchant-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  border-top: 1px solid var(--line);
}
.merchant-simple .merchant-download-qr {
  margin: 0;
  text-align: center;
}
.merchant-simple .merchant-download-qr figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
}
.merchant-simple .merchant-download img {
  width: min(13.75rem, 100%);
  height: auto;
  background: #f8f5ed;
}
.merchant-simple .merchant-download .merchant-app-actions {
  margin-top: 1.25rem;
}
.merchant-simple .merchant-app-actions {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}
.merchant-simple .merchant-download-steps {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: merchant-step;
}
.merchant-simple .merchant-download-steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.25rem 0.75rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  counter-increment: merchant-step;
}
.merchant-simple .merchant-download-steps li::before {
  content: counter(merchant-step, decimal-leading-zero);
  color: var(--accent-dark);
  font-weight: 700;
}
.merchant-simple .merchant-download-steps strong {
  font-size: 1.125rem;
}
.merchant-simple .merchant-download-steps span {
  grid-column: 2;
  color: var(--muted);
}
.merchant-simple .merchant-download a:not(.btn) {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
@media (max-width: 36rem) {
  .merchant-simple .site-header .header-cta {
    display: none;
  }
  .merchant-simple .merchant-download {
    grid-template-columns: 1fr;
  }
  .merchant-simple .merchant-download-qr {
    display: none;
  }
}
.merchant-simple .simple-faq {
  width: min(50rem, calc(100% - 2rem));
  margin: 0 auto;
  padding-block: 3rem;
}
.merchant-simple .simple-faq h2 {
  font-size: 2rem;
}
.merchant-simple .simple-faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
}
.merchant-simple .simple-faq summary {
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
}
.merchant-simple .simple-faq p {
  margin-bottom: 0;
  color: var(--muted);
}
.merchant-simple .merchant-help-links {
  width: min(50rem, calc(100% - 2rem));
  margin: 0 auto 2rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
}
.merchant-simple .merchant-help-links h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.merchant-simple .merchant-help-links a {
  display: grid;
  grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--accent-dark);
  text-decoration: none;
}
.merchant-simple .merchant-help-links span {
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (max-width: 36rem) {
  .merchant-simple .merchant-help-links a {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
.merchant-simple .portal-side-actions {
  width: min(70rem, calc(100% - 2rem));
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  border-top: 1px solid var(--line);
  gap: 2rem;
  padding-block: 2rem;
}
.merchant-simple .portal-action-panel {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 1rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--ink);
}
.merchant-simple .portal-action-panel h2 {
  font-size: 1.5rem;
}
.merchant-simple .portal-action-panel.is-campaign > p {
  color: var(--muted);
}
.merchant-simple .portal-action-panel .merchant-app-actions {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}
.merchant-simple .portal-action-panel .btn.light {
  color: var(--accent-dark);
  background: #eee6da;
}
.merchant-simple .portal-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-block: 1rem 3rem;
  border: 0;
  border-radius: 0.75rem;
}
.merchant-simple .portal-contact h2 {
  font-size: 1.5rem;
}
.merchant-simple .site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 1.5rem max(4%, 1rem);
  font-size: 0.8125rem;
}
.merchant-simple .footer-brand-line {
  flex-wrap: wrap;
}
.merchant-simple .footer-legal {
  text-align: left;
}
.merchant-simple .footer-legal nav {
  justify-content: flex-start;
}
