/* Public inner pages and customer tools. The homepage has its own header and layout. */
@media screen and (max-width: 768px) {
  :root {
    --cfm-gutter: clamp(14px, 4vw, 22px);
    --cfm-ink: #14251e;
    --cfm-muted: #43584e;
    --cfm-green: #08764c;
    --cfm-green-dark: #065e3d;
    --cfm-soft: #eef7f1;
    --cfm-border: #dbe8df;
    --cfm-card: 16px;
    --cfm-nav: 59px;
  }

  body:has(> header.xh) {
    scroll-padding-top: 72px;
  }

  body header.xh {
    background: #fff;
    box-shadow: 0 1px 0 var(--cfm-border);
  }

  body header.xh .xh-row {
    gap: 10px;
    height: 64px;
    min-height: 64px;
    padding-inline: var(--cfm-gutter);
  }

  body header.xh :is(.xh-burger, .xh-call) {
    min-block-size: 44px;
    border: 1px solid var(--cfm-border);
    border-radius: 12px;
    box-shadow: none;
  }

  body header.xh .xh-call {
    background: var(--cfm-soft) !important;
    color: var(--cfm-green-dark) !important;
  }

  body header.xh .xh-call :is(.ci, .xh-call-m) {
    color: var(--cfm-green-dark) !important;
  }

  body nav.xh-bn {
    box-sizing: border-box;
    display: grid;
    align-items: stretch;
    min-block-size: calc(var(--cfm-nav) + env(safe-area-inset-bottom));
    padding: 4px max(5px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left));
    border-color: var(--cfm-border);
    background: #fff;
    box-shadow: 0 -4px 18px rgb(20 37 30 / 7%);
  }

  body nav.xh-bn > a {
    justify-content: center;
    gap: 3px;
    min-block-size: 48px;
    padding: 4px 1px;
    border-radius: 11px;
    color: var(--cfm-muted);
    font-size: 11px;
    line-height: 1.25;
  }

  body nav.xh-bn > a.on {
    color: var(--cfm-green-dark);
  }

  body nav.xh-bn > a .bn-i {
    width: 21px;
    height: 21px;
  }

  body nav.xh-bn > a.cf-mobile-booking {
    gap: 2px;
    margin-inline: 2px;
    background: var(--cfm-green) !important;
    color: #fff !important;
    font-weight: 600;
  }

  body nav.xh-bn > a.cf-mobile-booking .bn-i {
    stroke-width: 1.7;
  }

  body:has(> nav.xh-bn) .cfp-cookie.show {
    inset: auto var(--cfm-gutter) calc(var(--cfm-nav) + env(safe-area-inset-bottom) + 9px);
    padding: 12px;
    border: 1px solid var(--cfm-border);
    border-radius: 15px;
    box-shadow: 0 9px 30px rgb(20 37 30 / 16%);
  }

  body .cfp-cookie .cc-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body .cfp-cookie .cc-txt {
    min-inline-size: 0;
    font-size: 14px;
  }

  body .cfp-cookie .cc-btns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body .cfp-cookie .cc-btn {
    min-height: 44px;
    padding-inline: 6px;
  }

  body:has(> .xh) :is(main, section, article, .promo-wrap, .soon-wrap)
    :is(a[href], button, input, select, textarea, summary):focus-visible,
  body nav.xh-bn > a:focus-visible {
    outline: 2px solid var(--cfm-green);
    outline-offset: 2px;
  }

  body:has(> .xh) [id]:is(section, h2, article) {
    scroll-margin-top: 75px;
  }

  /* Page introductions keep the customer action near the heading. */
  body :is(
    .services-hero, .contact-hero-xfp, .reviews-hero, .xfp-works-hero, .about-hero-section,
    .screen-hero-xfp, .hero-battery, .hero-charging, .hero-mb-app, .hero-camera,
    .ip-hero, .bg-hero, .sp-hero, .article-hero, .bat-hero, .chg-hero, .water-hero,
    .province-hero, .district-hero, .hero-pawn
  ),
  body:has(.unlock-brands-section) main > .hero {
    padding-block: clamp(22px, 6vw, 42px);
    background: linear-gradient(155deg, #edf7f0 0%, #fff 93%);
    color: var(--cfm-ink);
  }

  body :is(.contact-hero-orb, .about-hero-orb, .rv-deco, .screen-blob) {
    display: none;
  }

  body :is(
    .services-hero, .contact-hero-xfp, .reviews-hero, .xfp-works-hero, .about-hero-section,
    .screen-hero-xfp, .hero-battery, .hero-charging, .hero-mb-app, .hero-camera,
    .ip-hero, .bg-hero, .sp-hero, .article-hero, .bat-hero, .chg-hero, .water-hero,
    .province-hero, .district-hero, .hero-pawn, .promo-hero, .heroGrid, .wrap > main.hero
  ) h1,
  body:has(.unlock-brands-section) main > .hero h1 {
    margin-block: 0 10px;
    color: var(--cfm-ink);
    font-size: clamp(26px, 7.2vw, 43px);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: normal;
    text-align: start;
    text-wrap: pretty;
  }

  body :is(
    .services-hero, .contact-hero-xfp, .reviews-hero, .xfp-works-hero, .about-hero-section,
    .screen-hero-xfp, .hero-battery, .hero-charging, .hero-mb-app, .hero-camera,
    .ip-hero, .bg-hero, .article-hero, .bat-hero, .chg-hero, .water-hero, .heroGrid
  ) h1 :is(span, strong) {
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--cfm-green-dark);
    -webkit-text-fill-color: currentColor;
  }

  body :is(
    .services-hero, .contact-hero-xfp, .reviews-hero, .xfp-works-hero, .about-hero-section,
    .screen-hero-xfp, .hero-battery, .hero-charging, .hero-mb-app, .hero-camera,
    .ip-hero, .bg-hero, .sp-hero, .article-hero, .bat-hero, .chg-hero, .water-hero, .district-hero
  ) :is(.lead, .sub, .sh-sub, .contact-sub, .ip-lead, .bg-lead, .sp-lead, .screen-lead, .hero-text > p, .xfp-works-main > p, .reviews-hero h1 + p) {
    color: var(--cfm-muted);
    font-size: 16px;
    line-height: 1.65;
    text-align: start;
  }

  body :is(
    .services-hero, .services-grid, .contact-hero-xfp, .contact-social-lite, .xfp-location,
    .reviews-hero, .reviews-section, .xfp-gallery, .xfp-works-hero, .works-filter, .works-gallery,
    .works-stories, .about-hero-section, .team-section, .timeline-section, .xfp-faq-section,
    .price-section, .xfp-brand-discovery, .xfp-intent-discovery, .xfp-more-discovery, .xfp-proof-discovery,
    .hero-battery, .hero-camera, .hero-charging, .hero-mb-app, .brand-matrix, .cta-full,
    .article-hero, .related-articles, .province-hero, .district-hero
  ) > :is(.container, .wrap, .hb-shell),
  body :is(.screen-hero-container, .ip-container, .bg-container) {
    box-sizing: border-box;
    inline-size: 100%;
    min-inline-size: 0;
    padding-inline: var(--cfm-gutter);
  }

  body :is(.services-grid, .xfp-brand-discovery, .xfp-intent-discovery, .xfp-more-discovery,
      .contact-social-lite, .xfp-location, .reviews-section, .xfp-gallery, .works-gallery, .works-stories,
      .team-section, .timeline-section, .related-articles, .sp-sec) h2 {
    color: var(--cfm-ink);
    font-size: clamp(21px, 5.5vw, 32px);
    line-height: 1.32;
    letter-spacing: normal;
  }

  body :is(
    .services-grid, .xfp-brand-discovery, .xfp-intent-discovery, .xfp-more-discovery, .xfp-proof-discovery,
    .contact-social-lite, .xfp-location, .reviews-section, .xfp-gallery, .works-gallery, .works-stories,
    .team-section, .timeline-section, .related-articles, .xfp-faq-section,
    .why-screen, .screen-strengths, .brand-matrix, .pro-steps, .sp-sec
  ) {
    padding-block: clamp(26px, 7vw, 44px);
    background: #fff;
  }

  body :is(.xfp-intent-discovery, .works-stories, .timeline-section, .screen-strengths, .sp-sec.alt) {
    background: #f5f9f6;
  }

  body :is(.contact-social-lite .section-title, .xfp-location-head, .services-grid .sg-head, .about-hero-head) {
    text-align: start;
  }

  body :is(.contact-social-lite .section-title, .xfp-location-head, .services-grid .sg-head) :is(h2, p) {
    margin-inline: 0;
    text-align: start;
  }

  body :is(.contact-social-lite .section-title, .services-grid .sg-head) :is(h2, p)::after,
  body .contact-hero-xfp .contact-title-underline {
    display: none;
  }

  /* Services index */
  body .services-hero .sh-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body .services-hero .sh-right {
    display: contents;
  }

  body .services-hero .sh-right > div:first-child {
    display: flex;
    flex-direction: column;
  }

  body .services-hero .sh-badges { order: 1; }
  body .services-hero .sh-note { order: 2; }

  body .services-hero .sh-left {
    order: 1;
  }

  body .services-hero .sh-glass {
    order: 2;
  }

  body .services-hero h1.sh-title span {
    display: block;
    margin-top: 6px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.42;
  }

  body .services-hero .sh-sub {
    margin-block: 0 14px;
  }

  body .cf-mobile-service-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 14px;
  }

  body .cf-mobile-service-jumps a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: 44px;
    padding: 7px 11px;
    border: 1px solid var(--cfm-border);
    border-radius: 11px;
    background: #fff;
    color: var(--cfm-green-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }

  body .services-hero .sh-badges {
    margin-block: 10px 12px;
    gap: 6px;
    justify-content: flex-start;
  }

  body .services-hero .sh-pill {
    border: 1px solid var(--cfm-border);
    background: #fff;
    color: var(--cfm-muted);
    box-shadow: none;
    font-size: 13px;
  }

  body .services-hero .sh-hero-img-wrap {
    padding: 0;
    border: 1px solid var(--cfm-border);
    border-radius: var(--cfm-card);
    box-shadow: none;
  }

  body .services-hero .sh-hero-img {
    inline-size: 100%;
    block-size: clamp(140px, 42vw, 260px);
    object-fit: cover;
    object-position: center 60%;
  }

  body .services-hero .sh-glass {
    padding: 14px;
    border: 1px solid var(--cfm-border);
    border-radius: var(--cfm-card);
    background: #fff;
    color: var(--cfm-ink);
    box-shadow: none;
  }

  body :is(.xfp-brand-discovery, .xfp-intent-discovery, .xfp-more-discovery) .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body :is(.xfp-brand-discovery, .xfp-intent-discovery, .xfp-more-discovery) .grid a {
    display: flex;
    align-items: center;
    min-block-size: 53px;
    padding: 10px;
    border: 1px solid var(--cfm-border);
    border-radius: 12px;
    background: #fff;
    color: var(--cfm-green-dark);
    font-size: 14px;
    line-height: 1.42;
    overflow-wrap: anywhere;
  }

  body .services-grid .container > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    margin: 0;
  }

  body .services-grid .container > .row > div {
    inline-size: auto;
    min-inline-size: 0;
    margin: 0;
    padding: 0;
  }

  body .services-grid .service-box {
    display: flex;
    flex-direction: column;
    min-inline-size: 0;
    min-block-size: 100%;
    padding: 12px;
    border: 1px solid var(--cfm-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    text-align: start;
  }

  body .services-grid .service-box .service-title {
    color: var(--cfm-ink);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
  }

  body .services-grid .service-box :is(.service-sub, .service-list) {
    color: var(--cfm-muted);
    font-size: 14px;
    line-height: 1.5;
  }

  body .services-grid .service-box h3 {
    font-size: 17px;
    line-height: 1.38;
    overflow-wrap: anywhere;
  }

  body .services-grid .service-box p {
    font-size: 14px;
    line-height: 1.48;
  }

  body .services-grid .service-box a {
    min-block-size: 44px;
    margin-block-start: auto;
    white-space: normal;
  }

  body .price-section .ps-table {
    inline-size: 100%;
    min-inline-size: 0;
  }

  body .price-section .ps-table :is(th, td) {
    padding: 9px 6px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* Phone, LINE and directions remain particularly easy to reach. */
  body :is(.contact-hero-xfp .contact-actions, .services-hero .sh-cta-wrap, .ip-cta, .bg-cta,
      .screen-cta, .sp-cta, .heroText .ctaRow, .xfp-works-cta) {
    display: grid;
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: start;
    gap: 8px;
    margin-inline: 0;
  }

  body :is(.contact-hero-xfp .contact-actions, .services-hero .sh-cta-wrap, .ip-cta, .bg-cta,
      .screen-cta, .sp-cta, .heroText .ctaRow, .xfp-works-cta) > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 0;
    min-height: 48px;
    margin: 0;
    padding: 9px 8px;
    border: 1px solid #b8d9c4;
    border-radius: 12px;
    background: #fff !important;
    color: var(--cfm-green-dark) !important;
    box-shadow: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    white-space: normal;
  }

  body :is(.ip-cta, .bg-cta, .screen-cta, .sp-cta, .heroText .ctaRow, .xfp-works-cta) > a:first-child,
  body .services-hero .sh-cta-wrap > .cf-mobile-service-booking,
  body .contact-hero-xfp .contact-actions > [href^="tel:"] {
    background: var(--cfm-green) !important;
    color: #fff !important;
    border-color: var(--cfm-green);
  }

  body .services-hero .sh-cta-wrap > .cf-mobile-service-booking,
  body .contact-hero-xfp .contact-actions > [href^="tel:"],
  body :is(.sp-cta, .screen-cta) > a:first-child:nth-last-child(3) {
    grid-column: 1 / -1;
  }

  body .contact-hero-xfp .contact-eyebrow,
  body .contact-hero-xfp .contact-meta > span:nth-child(-n+2) {
    display: none;
  }

  body .contact-hero-xfp :is(.contact-meta, .contact-extra) {
    justify-content: flex-start;
    margin-inline: 0;
    text-align: start;
  }

  body .contact-hero-xfp .contact-meta > span {
    inline-size: auto;
    min-block-size: 0;
    padding: 6px 9px;
    border: 1px solid var(--cfm-border);
    border-radius: 10px;
    background: #fff;
    color: var(--cfm-muted);
    box-shadow: none;
  }

  body .contact-hero-xfp h1 {
    display: block;
    inline-size: 100%;
    text-align: start !important;
  }

  body .contact-hero-xfp h1 span {
    display: inline;
    padding: 0;
  }

  body .contact-hero-xfp .contact-actions {
    margin-block: 13px;
  }

  body .contact-hero-xfp .contact-actions > a[href^="tel:"] {
    grid-row: 1;
  }

  body .contact-hero-xfp .contact-extra {
    color: var(--cfm-muted);
    font-size: 14px;
    line-height: 1.55;
  }

  body :is(.contact-social-lite, .xfp-location) .row {
    --bs-gutter-y: 12px;
  }

  body :is(.contact-card, .xfp-location-card, .reviews-glass, .review-stats,
      .review-card, .xfp-works-card, .ws-card, .about-detail-card, .timeline-content,
      .sp-card, .ip-card, .bg-card) {
    min-inline-size: 0;
    border: 1px solid var(--cfm-border);
    border-radius: var(--cfm-card);
    box-shadow: none;
  }

  body .xfp-location :is(iframe, .xfp-map-frame) {
    max-inline-size: 100%;
    max-block-size: 290px;
  }

  body :is(.reviews-hero .rh-grid, .xfp-works-hero .xfp-works-grid) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    text-align: start;
  }

  body :is(.contact-social-lite, .xfp-location, .reviews-section, .team-section) {
    background: #fff !important;
  }

  body :is(.contact-social-lite, .reviews-section, .team-section)::before {
    display: none;
  }

  body :is(.reviews-hero .reviews-badges, .xfp-works-pills, .article-hero .article-meta,
      .article-hero .hero-icons, .screen-hero-xfp .screen-trust) {
    justify-content: start;
  }

  body :is(.reviews-hero .reviews-pill, .xfp-works-pills .xfp-works-pill, .article-hero .meta-pill,
      .article-hero .icon-card, .screen-hero-xfp .screen-chip) {
    border: 1px solid var(--cfm-border);
    border-radius: 10px;
    background: #fff;
    color: var(--cfm-muted);
    box-shadow: none;
    font-size: 13px;
  }

  body :is(.reviews-hero .reviews-pill.main, .xfp-works-pills .xfp-works-pill.hot) {
    background: var(--cfm-soft);
    color: var(--cfm-green-dark);
  }

  body :is(.xfp-works-hero .xfp-works-card, .reviews-hero .reviews-glass, .article-hero .glass-card) {
    padding: 14px;
    border: 1px solid var(--cfm-border);
    border-radius: var(--cfm-card);
    background: #fff;
    color: var(--cfm-ink);
    box-shadow: none;
  }

  body .xfp-works-hero .xfp-works-card-header {
    color: var(--cfm-green-dark);
  }

  body :is(.xfp-works-hero .xfp-works-card, .reviews-hero .reviews-glass, .article-hero .glass-card) :is(p, li) {
    color: var(--cfm-muted);
    font-size: 15px;
    line-height: 1.58;
  }

  body :is(.works-filter .filter-buttons, .reviews-section .review-filter) {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px;
    overflow: visible;
  }

  body :is(.works-filter, .reviews-section) .filter-btn {
    min-height: 44px;
    padding: 7px 10px;
    border: 1px solid var(--cfm-border);
    border-radius: 11px;
    background: #fff;
    color: var(--cfm-muted);
    box-shadow: none;
    font-size: 14px;
    white-space: normal;
  }

  body :is(.works-filter, .reviews-section) .filter-btn.active {
    border-color: var(--cfm-green);
    background: var(--cfm-soft);
    color: var(--cfm-green-dark);
  }

  body :is(.works-gallery, .xfp-gallery) .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body :is(.works-gallery, .xfp-gallery) .gallery-item {
    min-inline-size: 0;
    border-color: var(--cfm-border);
    border-radius: 13px;
    box-shadow: none;
  }

  body :is(.works-gallery, .xfp-gallery) .gallery-caption {
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  body .reviews-section .review-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body .reviews-section .review-content {
    color: var(--cfm-muted);
    font-size: 15px;
    line-height: 1.62;
  }

  /* Service detail and local coverage pages */
  body :is(.hero-battery .hb-grid, .hero-camera .hero-grid, .screen-hero-grid,
      .hero-charging .hero-content, .hero-mb-app .hero-content, .heroGrid) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  body :is(.hero-battery .hb-image, .hero-camera .area-image,
      .screen-hero-media, .hero-charging .hero-image, .hero-mb-app .hero-image) {
    order: 2;
    min-inline-size: 0;
  }

  body :is(.hero-battery .hb-content, .hero-camera .area-content) {
    order: 0;
  }

  body :is(.hero-battery, .hero-camera) .hero-content h1 > span {
    color: var(--cfm-green-dark);
    -webkit-text-fill-color: currentColor;
  }

  body :is(.hero-battery, .hero-camera) .hero-content > p {
    color: var(--cfm-muted);
    font-size: 16px;
    line-height: 1.62;
    text-align: start;
  }

  body :is(.hero-battery, .hero-camera) .hero-badges {
    justify-content: start;
  }

  body :is(.hero-battery, .hero-camera) .hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body :is(.hero-battery, .hero-camera) .hero-buttons > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 0;
    min-height: 48px;
    padding: 8px;
    border: 1px solid #b8d9c4;
    border-radius: 12px;
    background: #fff !important;
    color: var(--cfm-green-dark) !important;
    box-shadow: none;
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
  }

  body :is(.hero-battery, .hero-camera) .hero-buttons > a:first-child {
    background: var(--cfm-green) !important;
    border-color: var(--cfm-green);
    color: #fff !important;
  }

  body .hero-battery .hero-buttons > a:first-child {
    grid-column: 1 / -1;
  }

  body :is(.hero-battery .hb-image, .hero-camera .area-image, .screen-hero-media, .hero-charging .hero-image, .hero-mb-app .hero-image) img,
  body :is(.ip-hero-media, .bg-media) img {
    display: block;
    inline-size: 100%;
    max-block-size: 290px;
    border-radius: var(--cfm-card);
    object-fit: contain;
  }

  body :is(.hero-battery .hb-content, .hero-camera .area-content, .screen-hero-copy,
      .hero-charging .hero-text, .hero-mb-app .hero-text, .sp-hero .sp-c, .heroGrid .heroText) {
    min-inline-size: 0;
    text-align: start;
  }

  body :is(.sp-bc, .sp-eyebrow, .ip-eyebrow, .bg-eyebrow, .screen-eyebrow) {
    line-height: 1.42;
  }

  body .sp-hero .sp-truth {
    padding: 12px 13px;
    border: 1px solid var(--cfm-border);
    border-radius: 13px;
    background: var(--cfm-soft);
    color: var(--cfm-muted);
  }

  body .sp-sec .sp-grid > .sp-card:has(> .sp-ic) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "icon title" "icon more";
    column-gap: 9px;
    align-items: center;
    padding: 12px;
  }

  body .sp-sec .sp-card > h3 {
    grid-area: title;
    margin: 0;
    color: var(--cfm-ink);
    font-size: 16px;
    line-height: 1.35;
  }

  body .sp-sec .sp-card > .sp-ic { grid-area: icon; }
  body .sp-sec .sp-card > .m { grid-area: more; }

  body .sp-sec .sp-card :is(.sp-ic, h3, .m) {
    text-align: start;
  }

  body .sp-sec .sp-grid:has(.sp-card) {
    gap: 8px;
  }

  body .sp-sec :is(.sp-steps, .sp-q) {
    line-height: 1.58;
  }

  body .heroGrid .heroText {
    padding: 15px;
    border-color: var(--cfm-border);
    background: #fff;
    box-shadow: none;
  }

  /* Reading pages, review detail, legal content and shared footer. */
  body :is(.article-hero .hero-grid, .water-hero .hero-grid, .wrap > main.hero .heroIn) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body :is(.article-content, .bat-article, .chg-article, .legal-page) {
    padding-inline: var(--cfm-gutter);
    overflow-wrap: anywhere;
  }

  body :is(.article-content, .bat-article, .chg-article, .legal-page, .wrap:has(>main.hero) > .section) :is(p, li) {
    color: var(--cfm-muted);
    font-size: 16px;
    line-height: 1.7;
  }

  body :is(.article-content, .bat-article, .chg-article, .legal-page) h2 {
    font-size: clamp(20px, 5.5vw, 29px);
    line-height: 1.35;
  }

  body :is(.article-content, .bat-article, .chg-article) :is(img, figure) {
    max-inline-size: 100%;
    border-radius: 13px;
  }

  body .footer-xfp {
    padding-block: 22px calc(18px + var(--cfm-nav) + env(safe-area-inset-bottom));
    border-color: var(--cfm-border);
    background: #f3f8f5;
  }

  body .footer-xfp .footer-xfp-container {
    padding-inline: var(--cfm-gutter);
  }

  body .footer-xfp :is(.footer-xfp-grid, .footer-xfp-cta-row) {
    gap: 8px;
  }

  body .footer-xfp .footer-xfp-card {
    border-color: var(--cfm-border);
    border-radius: 13px;
    box-shadow: none;
  }

  body .footer-xfp .footer-xfp-btn {
    min-height: 44px;
  }

  body .promo-wrap .promo-hero {
    padding-block: 24px 18px;
  }

  body .promo-wrap .promo-hero .eyebrow,
  body .about-hero-section .about-hero-eyebrow {
    padding: 4px 8px;
    border: 0;
    border-radius: 7px;
    background: var(--cfm-soft);
    color: var(--cfm-green-dark);
    box-shadow: none;
    letter-spacing: normal;
  }

  body .promo-wrap .promo-card .bd {
    padding: 14px;
  }

  body .promo-wrap .promo-card .feat {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body .promo-wrap .promo-card .feat li {
    font-size: 14px;
    line-height: 1.45;
  }

  body .soon-wrap .soon-card {
    padding: 20px var(--cfm-gutter);
    text-align: start;
  }

  body .soon-wrap .soon-ic {
    width: 50px;
    height: 50px;
    margin: 0 0 14px;
    border-radius: 12px;
    box-shadow: none;
    font-size: 23px;
  }

  body .soon-wrap .soon-cta {
    display: flex;
    inline-size: 100%;
  }

  /* The booking, estimate and tracking entry points keep their own form flow. */
  body.cf-booking .shell {
    max-inline-size: none;
    min-inline-size: 0;
    padding-inline: var(--cfm-gutter);
    background: #fff;
  }

  body.cf-booking .app-header {
    border-bottom: 1px solid var(--cfm-border);
    box-shadow: none;
  }

  body.cf-booking :is(.booking-intro, #steps, #screen, .actions),
  body :is(.track-page, .xfp-estimate-wrap, .xfp-estimate-main) {
    min-inline-size: 0;
  }

  body.cf-booking #steps > button {
    min-block-size: 44px;
  }

  body.cf-booking :is(#message, .app-footer) {
    font-size: 14px;
    line-height: 1.6;
  }

  body :is(.track-shell, .xfp-estimate-app) {
    background: #f4f8f5;
    color: var(--cfm-ink);
  }

  body .track-page .track-intro {
    margin-block-end: 12px;
    padding: 13px;
    border: 1px solid var(--cfm-border);
    border-radius: var(--cfm-card);
    background: #fff;
  }

  body .track-page :is(.track-card, .track-help),
  body .xfp-estimate-app :is(.xfp-estimate-card, .xfp-field-group, .xfp-aside-card) {
    border-color: var(--cfm-border);
    border-radius: var(--cfm-card);
    box-shadow: none;
  }

  body .xfp-estimate-app .xfp-estimate-card {
    margin-inline: 0;
    padding: 12px;
    background: #fff;
  }

  body :is(.xfp-estimate-app, .track-page) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]), select, textarea),
  body:has(> header.top + section.hero > .eye) :is(select, input) {
    min-height: 48px;
    font-size: 16px;
  }

  body:has(> header.top + section.hero > .eye) > section.hero {
    padding: 20px var(--cfm-gutter);
    text-align: start;
  }

  body:has(> header.top + section.hero > .eye) > section.hero .steps {
    justify-content: start;
  }

  body:has(> header.top + section.hero > .eye) .body {
    padding-inline: var(--cfm-gutter);
  }

  body:has(> header.top + section.hero > .eye) .body .f select {
    color: var(--cfm-ink);
    border: 1px solid var(--cfm-border);
    border-radius: 11px;
    background-color: #f6faf7;
  }

  @media (min-width: 560px) {
    body .services-grid .container > .row {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (prefers-reduced-motion: reduce) {
    body nav.xh-bn,
    body .cfp-cookie {
      transition: none;
    }
  }
}

@media print, screen and (min-width: 769px) {
  .cf-mobile-only {
    display: none !important;
  }
}
@media screen and (max-width: 768px) {
  :root {
    --cfm-gutter: clamp(14px, 4vw, 22px);
    --cfm-ink: #172920;
    --cfm-muted: #42564b;
    --cfm-soft: #edf6ef;
    --cfm-border: #dce9df;
    --cfm-card: 17px;
  }

  body > header.xh {
    position: sticky;
    inset-block-start: 0;
    background: #fff;
    box-shadow: 0 1px var(--cfm-border);
  }

  body nav.xh-bn.bn-hidden:focus-within {
    transform: none;
  }

  body nav.xh-bn > a.on:not(.cf-mobile-booking) {
    background: var(--cfm-soft);
    font-weight: 600;
  }

  body :is(.services-hero, .contact-hero-xfp, .xfp-works-hero, .reviews-hero,
    .hero-battery, .hero-camera, .hero-charging, .hero-mb-app, .screen-hero-xfp,
    .ip-hero, .bg-hero, .sp-hero, .article-hero, .about-hero-section) {
    background: linear-gradient(165deg, #edf7f0 0%, #f8fbf8 58%, #fff 95%);
  }

  body :is(.services-hero, .contact-hero-xfp, .xfp-works-hero, .reviews-hero,
    .hero-battery, .hero-camera, .hero-charging, .hero-mb-app, .screen-hero-xfp,
    .ip-hero, .bg-hero, .sp-hero, .article-hero, .about-hero-section) h1 {
    font-size: clamp(26px, 7vw, 40px);
    font-weight: 600;
    line-height: 1.29;
    letter-spacing: 0;
  }

  body :is(.results, .pricing-section, .bp-section, .camera-price-section, .board-pricing-v1,
    .services-grid, .cta-full, .review-grid) :is(h2, h3) {
    text-wrap: pretty;
  }

  body :is(section, div, h2)[id] {
    scroll-margin-top: 78px;
  }

  /* Service directory: the booking action and common symptoms come first. */
  body .services-hero .sh-right > div:first-child {
    gap: 0;
  }

  body .services-hero .sh-title {
    order: -5;
    margin-block-end: 13px;
  }

  body .services-hero .sh-title span {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.42;
  }

  body .services-hero .sh-cta-wrap {
    order: -4;
    margin-block: 0 12px;
  }

  body .services-hero .sh-cta-wrap > .cf-mobile-service-booking {
    min-block-size: 52px;
  }

  body .services-hero .sh-cta-wrap :is(.btn-call-main, .btn-line-alt) {
    min-height: 46px;
    padding-block: 7px;
    font-size: 14px;
    font-weight: 500;
  }

  body .services-hero .cf-service-categories {
    order: -3;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 7px;
    margin-block: 2px 12px;
  }

  body .services-hero .cf-service-categories a {
    display: grid;
    place-content: center;
    justify-items: center;
    min-block-size: 72px;
    min-inline-size: 0;
    gap: 4px;
    padding: 6px 3px;
    border: 1px solid var(--cfm-border);
    border-radius: 13px;
    background: #fff;
    color: var(--cfm-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
  }

  body .services-hero .cf-service-categories img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  body .services-hero .cf-mobile-service-jumps {
    order: -2;
    margin-block-end: 15px;
  }

  body .services-hero .cf-mobile-service-jumps a {
    min-block-size: 44px;
    padding-inline: 10px;
  }

  body .services-hero .sh-sub {
    font-size: 15px;
    line-height: 1.65;
  }

  body .services-hero .sh-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 7px;
  }

  body .services-hero .sh-badges .sh-pill {
    min-inline-size: 0;
    padding: 7px 8px;
    border-radius: 11px;
    font-size: 12px;
    text-align: start;
    white-space: normal;
  }

  body .services-hero .sh-glass {
    padding: 14px 15px;
  }

  body .services-hero .sh-note,
  body .services-hero .sh-glass p,
  body .services-hero .sh-glass li {
    color: var(--cfm-muted);
    font-size: 15px;
    line-height: 1.6;
  }

  body :is(.xfp-brand-discovery, .xfp-intent-discovery, .xfp-more-discovery) .grid a {
    padding: 10px 11px;
    box-shadow: none;
    font-size: 15px;
    text-decoration: none;
  }

  body :is(.xfp-brand-discovery, .xfp-intent-discovery, .xfp-more-discovery) .grid a::after {
    margin-inline-start: auto;
    padding-inline-start: 4px;
    color: var(--cfm-green);
    content: "›";
    font-size: 19px;
    line-height: 1;
  }

  body .services-grid .service-box {
    gap: 3px;
    padding: 15px;
  }

  body .services-grid .service-box > :is(p, .service-list) {
    font-size: 15px;
    line-height: 1.59;
  }

  body .services-grid .service-box .svc-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-block-start: auto;
    color: var(--cfm-green-dark);
  }

  /* Primary routes and actions share the same placement in repair details. */
  body :is(.screen-hero-copy, .hero-battery .hero-content, .hero-camera .hero-content,
    .hero-charging .hero-text, .hero-mb-app .hero-text, .ip-hero .ip-container > div:first-child,
    .bg-hero .bg-container > div:first-child, .sp-hero > .sp-c) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-inline-size: 0;
    max-inline-size: 100%;
  }

  body :is(.screen-hero-copy .screen-trust, .hero-battery .hero-badges, .hero-camera .hero-badges,
    .hero-battery .icon-grid, .hero-camera .icon-grid, .hero-charging .k-badges,
    .hero-charging .hero-list, .hero-mb-app .brands, .hero-mb-app .mb-card-grid, .ip-hero .ip-trust) {
    order: 2;
  }

  body :is(.hero-charging .hero-text, .hero-mb-app .hero-text) > .cta {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    justify-content: start;
    margin: 8px 0 12px;
  }

  body :is(.hero-charging .hero-text, .hero-mb-app .hero-text) > .cta > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 0;
    min-height: 48px;
    padding: 8px;
    border: 1px solid #c7dece;
    border-radius: 12px;
    background: #fff !important;
    color: var(--cfm-green-dark) !important;
    box-shadow: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.38;
    text-align: center;
    white-space: normal;
  }

  body :is(.hero-charging .hero-text, .hero-mb-app .hero-text) > .cta > a:first-child {
    background: var(--cfm-green) !important;
    color: #fff !important;
    border-color: var(--cfm-green);
  }

  body :is(.hero-charging .hero-text, .hero-mb-app .hero-text) > .cta > a:only-child {
    grid-column: 1/-1;
  }

  body :is(.screen-hero-copy, .hero-battery .hero-content, .hero-camera .hero-content) > :is(.screen-trust, .hero-badges) {
    margin-block: 10px;
  }

  body :is(.hero-battery .hero-content, .hero-camera .hero-content) h1 br {
    display: none;
  }

  body :is(.screen-hero-copy > .screen-eyebrow, .sp-c > .sp-eyebrow,
    .hero-charging .hero-text > .badge, .hero-mb-app .hero-text > .badge) {
    align-self: flex-start;
  }

  body .sp-hero > .sp-c .sp-lead {
    display: contents;
  }

  body .sp-hero .sp-lead p + p {
    order: 3;
  }

  body .sp-hero .sp-cta {
    margin-block: 12px;
  }

  body .sp-hero .sp-truth {
    margin-block-end: 11px;
  }

  body .cf-page-jump {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-block: 8px 12px;
  }

  body .cf-page-jump a,
  body a.cf-hero-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-block-size: 44px;
    padding: 7px 10px;
    border: 1px solid var(--cfm-border);
    border-radius: 11px;
    background: #fff;
    color: var(--cfm-green-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }

  body a.cf-hero-shortcut {
    margin-block: 2px 10px;
  }

  body :is(.board-pricing-v1, .camera-price-section, .bp-section) > :is(.wrap, .container) {
    padding-inline: var(--cfm-gutter);
  }

  body :is(.board-pricing-v1, .camera-price-section, .bp-section, .pricing-section) :is(table, .price-grid) {
    max-inline-size: 100%;
  }

  body :is(.board-pricing-v1, .camera-price-section, .bp-section, .pricing-section) :is(td,th) {
    overflow-wrap: anywhere;
  }

  /* Contact: keep calls, messages and directions visible in the same view. */
  body .contact-hero-xfp .contact-actions {
    margin-block: 10px 8px;
  }

  body .contact-hero-xfp .contact-actions a {
    gap: 5px;
    font-size: 15px;
    font-weight: 500;
  }

  body .contact-hero-xfp .cf-contact-directions {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 9px;
    min-block-size: 46px;
    padding: 8px 11px;
    border: 1px solid var(--cfm-border);
    border-radius: 12px;
    background: #fff;
    color: var(--cfm-green-dark);
    font-size: 15px;
    font-weight: 600;
    text-align: start;
    text-decoration: none;
  }

  body .contact-hero-xfp .contact-extra {
    margin-block: 10px 0;
  }

  body .contact-card {
    padding: min(4vw,16px);
  }

  body .xfp-location .xfp-location-card {
    padding: 13px;
  }

  body .xfp-location .xfp-hours-table {
    table-layout: auto;
    width: 100%;
  }

  /* Portfolio and reviews: readable filters, consistent image area and captions. */
  body :is(.works-filter .filter-buttons, .reviews-section .review-filter) {
    flex-wrap: nowrap;
    max-inline-size: 100%;
    overflow-inline: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
  }

  body :is(.works-filter, .reviews-section) .filter-btn {
    flex: 0 0 auto;
    max-inline-size: 76vw;
    scroll-snap-align: start;
  }

  body :is(.works-gallery, .xfp-gallery) .gallery-grid {
    gap: 9px;
  }

  body :is(.works-gallery, .xfp-gallery) .gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    min-inline-size: 0;
    aspect-ratio: auto;
    border: 1px solid var(--cfm-border);
    background: #fff;
    color: var(--cfm-ink);
  }

  body .works-gallery .gallery-item > img,
  body .xfp-gallery .gallery-item .gallery-thumb img {
    display: block;
    inline-size: 100%;
    block-size: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
  }

  body .xfp-gallery .gallery-item .gallery-thumb {
    height: auto;
    aspect-ratio: 4/3;
  }

  body .xfp-gallery .gallery-item .gallery-thumb img {
    height: 100%;
    aspect-ratio: auto;
  }

  body :is(.works-gallery, .xfp-gallery) .gallery-item .gallery-caption {
    position: static;
    transform: none;
    opacity: 1;
    min-block-size: 56px;
    padding: 9px 8px;
    background: #fff;
    color: var(--cfm-ink);
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  body :is(.works-gallery, .xfp-gallery) .gallery-caption :is(h3, h5, strong) {
    margin: 0 0 3px;
    color: var(--cfm-ink);
    font-size: 15px;
    font-weight: 600;
  }

  body :is(.works-gallery, .xfp-gallery) .gallery-caption :is(p, span) {
    margin: 0;
    color: var(--cfm-muted);
    font-size: 13px;
  }

  body .works-gallery .gallery-meta {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 6px 8px 0;
  }

  body .works-gallery .gallery-meta .gm-pill {
    border: 0;
    border-radius: 6px;
    background: var(--cfm-soft);
    color: var(--cfm-green-dark);
    font-size: 12px;
  }

  body .works-gallery .gallery-label {
    inset: 7px auto auto 7px;
    padding: 4px 7px;
    border-radius: 8px;
    font-size: 12px;
  }

  body :is(.works-gallery, .xfp-gallery) .gallery-item:focus-visible {
    outline: 2px solid var(--cfm-green);
    outline-offset: 2px;
  }

  body .reviews-section .review-card {
    padding: 14px;
  }

  /* Reading and long pages: section navigation, calm spacing, legible Thai. */
  body :is(.article-content, .bat-article, .chg-article, .legal-page) {
    display: flow-root;
    line-height: 1.72;
  }

  body :is(.article-content, .bat-article, .chg-article, .legal-page) :is(h2,h3) {
    color: var(--cfm-ink);
    scroll-margin-top: 83px;
  }

  body :is(.article-content, .bat-article, .chg-article, .legal-page) p + :is(h2,h3) {
    margin-block-start: 24px;
  }

  body :is(.article-content, .bat-article, .chg-article) img {
    display: block;
    height: auto;
    margin-inline: auto;
  }

  body .footer-xfp .footer-xfp-service-links {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 6px;
  }

  body .footer-xfp .footer-xfp-service-links a {
    display: flex;
    align-items: center;
    min-block-size: 44px;
    min-inline-size: 0;
    color: var(--cfm-green-dark);
    font-size: 14px;
    line-height: 1.35;
    white-space: normal;
  }

  body .footer-xfp .footer-xfp-card {
    padding: 12px;
  }

  /* Customer tools use clear labels, tappable options and a visible next step. */
  body.cf-booking .shell .booking-intro {
    padding: 13px;
    border-radius: 16px;
  }

  body.cf-booking #screen .grid.services {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }

  body.cf-booking #screen .service-card {
    min-inline-size: 0;
    min-block-size: 105px;
    padding: 9px 6px;
    border-radius: 14px;
  }

  body.cf-booking #screen .service-card img {
    width: 44px;
    height: 44px;
    object-fit: contain;
  }

  body.cf-booking #screen .service-card strong {
    font-size: 15px;
    line-height: 1.38;
    overflow-wrap: anywhere;
  }

  body.cf-booking #screen .search-field input {
    min-height: 48px;
    font-size: 16px;
  }

  body.cf-booking .actions:not([hidden]) {
    padding-inline: var(--cfm-gutter);
  }

  body.cf-booking .actions #next {
    min-block-size: 49px;
    border-radius: 12px;
  }

  body :is(.track-page, .xfp-estimate-wrap) {
    padding-inline: var(--cfm-gutter);
  }

  body .track-page :is(.track-card,.track-help),
  body .xfp-estimate-app .xfp-field-group {
    padding: 13px;
    border-radius: 15px;
  }

  body .track-page .track-qr-actions {
    gap: 7px;
  }

  body .track-page .track-qr-actions button,
  body .xfp-estimate-app .xfp-submit-btn {
    min-block-size: 47px;
  }

  body:has(>header.top + section.hero >.eye) .body .f {
    gap: 12px;
  }

  body:has(>header.top + section.hero >.eye) .body .f label {
    font-weight: 600;
  }

  body:has(>header.top + section.hero >.eye) .body .f select {
    min-block-size: 50px;
    background-color: #fff;
  }

  body :is(.promo-wrap, .soon-wrap) h1 {
    font-size: clamp(25px,7vw,39px);
    line-height: 1.31;
  }

  body .promo-wrap .promo-card .bd {
    padding: 13px;
  }

  @media (max-width: 359px) {
    body .services-hero .cf-service-categories {
      gap: 6px;
    }

    body .services-hero .cf-service-categories a {
      font-size: 12px;
    }
  }
}
