/* Loaded by public inner-page templates. */
:root {
  --cf-page-ink: #15271f;
  --cf-page-copy: #41564b;
  --cf-page-green: #086648;
  --cf-page-line: #dce8df;
  --cf-page-soft: #eff7f1;
  --cf-page-white: #fff;
  --cf-photo-matte: #edf3ee;
  --cf-icon-start: #2386a9;
  --cf-icon-end: #12607b;
  --cf-icon-tint: #eaf6fa;
  --cf-panel-shadow: 0 4px 12px rgb(31 54 41 / 5%);
}

body :is(
  .qc-or, .c-or, .i-or, .i-yl, .qc-yl, .mb-i-or, .c-am, .mb-i-ye,
  .or, .bfv2-icon--or, .cta-stat-icon--or, .xfp-field-icon--amber, .war
) {
  --cf-icon-start: #d47732;
  --cf-icon-end: #ae4c17;
  --cf-icon-tint: #fff1e6;
}

body :is(
  .qc-bl, .c-bl, .i-bl, .mb-i-bl, .bl, .bfv2-icon--bl, .icon-fb,
  .xfp-location-icon-clock, .xfp-field-icon--blue, .scr
) {
  --cf-icon-start: #327edb;
  --cf-icon-end: #1555b4;
  --cf-icon-tint: #eaf4ff;
}

body :is(
  .qc-gr, .c-gr, .i-gr, .mb-i-gr, .gn, .bfv2-icon--gr, .cta-stat-icon--gr,
  .xfp-location-icon-map, .xfp-field-icon--primary, .bat
) {
  --cf-icon-start: #1b976b;
  --cf-icon-end: #087047;
  --cf-icon-tint: #e9f7f0;
}

body :is(.qc-pr, .qc-pu, .c-in, .c-pu, .i-pu, .mb-i-pu, .vi, .bfv2-icon--pu, .xfp-field-icon--purple, .board) {
  --cf-icon-start: #8261e0;
  --cf-icon-end: #5d3bc5;
  --cf-icon-tint: #f0ebfc;
}

body :is(.qc-cy, .qc-te, .c-cy, .mb-i-cy, .sky, .lossIcon--contact, .water, .ship) {
  --cf-icon-start: #1595a1;
  --cf-icon-end: #076d7e;
  --cf-icon-tint: #e6f7f7;
}

body :is(.qc-pk, .c-pk, .i-pk, .lossIcon--chat, .pay) {
  --cf-icon-start: #c95c99;
  --cf-icon-end: #964068;
  --cf-icon-tint: #fceef5;
}

body :is(.qc-rd, .icon-yt) {
  --cf-icon-start: #d75b51;
  --cf-icon-end: #ac3831;
  --cf-icon-tint: #fcefed;
}

body :is(.sp-grid, .ip-grid, .bg-grid, .related-articles, .services-grid)
  :is(a[href*="battery"], .svc-batt, .bp-icon--android) {
  --cf-icon-start: #1b976b;
  --cf-icon-end: #087047;
  --cf-icon-tint: #e9f7f0;
}

body :is(.sp-grid, .ip-grid, .bg-grid, .related-articles, .services-grid)
  :is(a[href*="board"], a[href*="airpods"], .svc-board) {
  --cf-icon-start: #8261e0;
  --cf-icon-end: #5d3bc5;
  --cf-icon-tint: #f0ebfc;
}

body :is(.sp-grid, .ip-grid, .bg-grid, .related-articles, .services-grid)
  :is(a[href*="screen"], a[href*="charging"], .svc-lcd, .svc-port) {
  --cf-icon-start: #327edb;
  --cf-icon-end: #1555b4;
  --cf-icon-tint: #eaf4ff;
}

body :is(.sp-grid, .ip-grid, .bg-grid, .related-articles, .services-grid)
  :is(a[href*="camera"], a[href*="water"], .svc-camera, .svc-water) {
  --cf-icon-start: #1595a1;
  --cf-icon-end: #076d7e;
  --cf-icon-tint: #e6f7f7;
}

body :is(.sp-grid, .ip-grid, .bg-grid, .services-grid)
  :is(a[href*="power"], a[href*="unlock"], .svc-lock, .svc-door) {
  --cf-icon-start: #d47732;
  --cf-icon-end: #ae4c17;
  --cf-icon-tint: #fff1e6;
}

/* Bright cards with readable primary copy. */
body :is(
  main.sp, .services-grid, .reviews-section, .works-gallery, .xfp-gallery,
  .contact-social-lite, .xfp-location, .xfp-faq-section, .team-section, .related-articles,
  .boardfix-pro, .bfv2-section, .camera-fix-section, .screen-strengths,
  .unlock-symptoms-section, .cta-full, .works-stories, .promo-wrap
) :is(h2, h3) {
  color: var(--cf-page-ink);
  line-height: 1.36;
  letter-spacing: 0;
  text-wrap: pretty;
}

body :is(
  .service-box, .sp-card, .ip-card, .review-card, .ws-card, .about-detail-card,
  .contact-card, .xfp-location-card, .article-card, .promo-card, .track-card,
  .track-help, .xfp-estimate-card
) {
  border: 1px solid var(--cf-page-line);
  border-radius: 15px;
  background-color: var(--cf-page-white);
  box-shadow: var(--cf-panel-shadow);
}

body :is(.reviews-glass, .xfp-works-card, .sh-glass, .article-hero .glass-card) {
  border-color: var(--cf-page-line);
  background: #fff;
  color: var(--cf-page-ink);
  box-shadow: var(--cf-panel-shadow);
}

body :is(.reviews-glass, .xfp-works-card, .sh-glass, .article-hero .glass-card) :is(p, li) {
  color: var(--cf-page-copy);
  font-size: 15px;
  line-height: 1.62;
}

body :is(.sp-card, .ip-card, .review-card, .works-stories .ws-card, .article-card)
  :is(.sub, .review-content, p) {
  color: var(--cf-page-copy);
  font-size: 15px;
  line-height: 1.62;
}

body :is(main.sp, .article-content, .bat-article, .chg-article, .legal-page)
  :is(p, li) {
  line-height: 1.68;
}

body :is(.article-content, .bat-article, .chg-article, .legal-page) h2 {
  color: var(--cf-page-ink);
  font-weight: 600;
  line-height: 1.36;
}

body :is(.works-gallery, .xfp-gallery) .gallery-caption {
  background: #fff;
  color: var(--cf-page-ink);
}

body :is(.works-gallery, .xfp-gallery) .gallery-caption :is(h3, h5, strong) {
  color: var(--cf-page-ink);
  font-weight: 600;
}

body :is(.works-gallery, .xfp-gallery) .gallery-caption p {
  color: var(--cf-page-copy);
  line-height: 1.55;
}

body .promo-wrap {
  background: #f4f9f5;
  color: var(--cf-page-ink);
}

body .promo-wrap .feat {
  color: var(--cf-page-copy);
  line-height: 1.55;
}

body .soon-wrap .soon-card {
  border-color: var(--cf-page-line);
  background: #fff;
  color: var(--cf-page-ink);
  box-shadow: var(--cf-panel-shadow);
}

body :is(.service-box, .sp-card, .ip-card, .screen-strengths, .hero-battery, .hero-camera, .hero-mb-app,
  .boardfix-pro, .bfv2-section, .bp-section, .camera-fix-section, .about-detail-card,
  .contact-social-lite, .xfp-location, .track-page, .xfp-estimate-app, .soon-card, .related-articles)
  :is(.service-icon-badge, .sp-ic, .ip-ic, .ic, .ig-icon, .mb-card-icon, .bfv2-icon, .bp-icon,
      .cf-icon, .about-feature-icon, .contact-card-icon, .xfp-location-icon, .track-intro-icon,
      .xfp-field-icon, .soon-ic, .service-icon) {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgb(20 34 35 / 9%);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--cf-icon-start), var(--cf-icon-end));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 3px 7px rgb(31 54 41 / 12%);
  color: #fff;
}

body :is(.service-icon-badge, .sp-ic, .ip-ic, .ig-icon, .mb-card-icon, .bfv2-icon, .bp-icon,
  .cf-icon, .about-feature-icon, .xfp-location-icon, .track-intro-icon, .xfp-field-icon) > i {
  color: inherit;
}

body .ip-grid > .ip-card .ip-ic {
  width: 38px;
  height: 38px;
  margin-block-end: 8px;
}

body .sp-sec .sp-card .sp-ic {
  width: 37px;
  height: 37px;
}

body .sp-sec .sp-card h3 {
  font-weight: 500;
  line-height: 1.42;
}

body .sp-sec .sp-card .m,
body .ip-card .ip-more {
  color: var(--cf-page-green);
  font-weight: 500;
}

body :is(.services-grid .service-box, .sp-sec .sp-card, .ip-card, .contact-card, .review-card) :focus-visible,
body :is(.sp-sec a.sp-card, .ip-card, .contact-card a):focus-visible {
  outline: 2px solid var(--cf-page-green);
  outline-offset: 2px;
}

/* Keep the existing FAQ controls and give them the same palette across pages. */
body :is(.faq-sec:not(.cf-services-faq), .xfp-faq-section, .faq-batt-v2, .faq-v1, .faq-section, .mini-review-faq)
  :is(.faq-item, .xfp-faq-item, .faq-batt-item) {
  border: 1px solid var(--cf-page-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--cf-panel-shadow);
}

body :is(.faq-sec:not(.cf-services-faq), .xfp-faq-section, .faq-batt-v2, .faq-v1, .faq-section, .mini-review-faq)
  :is(.faq-question, .xfp-faq-q, .faq-q, .faq-batt-q) {
  min-height: 52px;
  color: var(--cf-page-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body :is(.faq-sec:not(.cf-services-faq), .xfp-faq-section, .faq-batt-v2, .faq-v1, .faq-section, .mini-review-faq)
  :is(.faq-answer, .xfp-faq-a, .faq-a, .faq-batt-a) {
  color: var(--cf-page-copy);
  font-size: 16px;
  line-height: 1.65;
}

body :is(.faq-sec:not(.cf-services-faq), .xfp-faq-section, .faq-batt-v2, .faq-v1, .faq-section, .mini-review-faq)
  :is(.q-icon, .xfp-faq-qicon, .faq-ic, .faq-icon) {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 33px;
  min-height: 33px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--cf-icon-start), var(--cf-icon-end));
  color: #fff;
}

body main.sp :is(details.sp-faq, .sp-faq details) {
  border-color: var(--cf-page-line);
  background: #fff;
  color: var(--cf-page-ink);
}

body main.sp :is(details.sp-faq, .sp-faq details) summary {
  padding-block: 10px;
  font-weight: 500;
  line-height: 1.48;
}

/* Proportions: show the complete poster and photo in the original ratio. */
body :is(.promo-wrap .promo-card .bn, .services-hero .sh-hero-img-wrap) {
  display: block;
  block-size: auto;
  min-block-size: 0;
  aspect-ratio: auto;
  background: var(--cf-photo-matte);
  overflow: hidden;
}

body .promo-wrap .promo-card .bn img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  max-block-size: none;
  aspect-ratio: auto;
  object-fit: contain;
}

body .services-hero .sh-hero-img-wrap .sh-hero-img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  max-block-size: clamp(250px, 76vw, 450px);
  object-fit: contain;
  object-position: center;
}

body :is(.screen-hero-xfp .screen-device-media, .hero-battery .hero-img, .hero-camera .hero-img,
  .hero-charging .hero-image-inner, .hero-mb-app .frame, .ip-hero-media, .bg-media) {
  min-block-size: 0;
  block-size: auto;
  overflow: hidden;
  background: var(--cf-photo-matte);
}

body :is(.screen-hero-xfp .screen-device-media, .hero-battery .hero-img, .hero-camera .hero-img,
  .hero-charging .hero-image-inner, .hero-mb-app .frame, .ip-hero-media, .bg-media) > img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  max-block-size: clamp(270px, 82vw, 490px);
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

body :is(.gallery-item .gallery-thumb, .ba-img-wrap, .camera-ba-section .img-wrap,
  .ip-work, .contact-card-img-wrap, .member-image) {
  overflow: hidden;
  background: var(--cf-photo-matte);
}

body :is(.works-gallery .gallery-item, .xfp-gallery .gallery-thumb,
  .ba-img-wrap, .camera-ba-section .img-wrap, .ip-work, .contact-card-img-wrap) > img {
  display: block;
  inline-size: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--cf-photo-matte);
}

body .works-gallery .gallery-item > img,
body .ip-work > img {
  block-size: auto;
  aspect-ratio: 4 / 3;
}

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

body .xfp-gallery .gallery-item .gallery-thumb > img {
  block-size: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

body :is(.ba-img-wrap, .camera-ba-section .img-wrap) {
  block-size: auto;
  aspect-ratio: 4 / 3;
}

body :is(.ba-img-wrap, .camera-ba-section .img-wrap) > img {
  block-size: 100%;
}

body .contact-card-img-wrap {
  block-size: auto;
  aspect-ratio: 16 / 10;
}

body .contact-card-img-wrap > img {
  block-size: 100%;
}

body .about-detail-image {
  align-self: start;
  background: var(--cf-photo-matte);
}

body .about-detail-image > img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  max-block-size: 430px;
  object-fit: contain;
}

body .team-section .member-image > img {
  object-fit: contain;
  object-position: center;
  background: var(--cf-photo-matte);
}

body .heroGrid .heroMedia {
  min-block-size: 0;
  align-self: start;
  background: var(--cf-photo-matte);
}

body .heroGrid .heroMedia .img {
  display: block;
  block-size: auto;
  max-block-size: 430px;
  object-fit: contain;
  transform: none;
  opacity: 1;
}

body :is(.article-content, .bat-article, .chg-article, main.sp figure) img {
  block-size: auto;
  max-inline-size: 100%;
  object-fit: contain;
}

body main.sp img[src*="line-qr"] {
  block-size: auto;
  object-fit: contain;
}

/* Customer tools retain compact touch targets and clear pictograms. */
body.cf-booking #screen :is(.service-card img, .brand-logo, .series-photo img, .model-photo img),
body.cf-booking :is(.booking-intro-art img, .option-icon img) {
  object-fit: contain;
}

body.cf-booking #screen .service-card {
  border-color: var(--cf-page-line);
  background: #fff;
}

body.cf-booking #screen .service-card[aria-pressed="true"] {
  border-color: #a4c7af;
  background: var(--cf-page-soft);
}

body.cf-booking #screen :is(.subtitle, .booking-context-note, .booking-context-prompt),
body .track-page :is(.track-intro p, .track-help p),
body .xfp-estimate-app :is(.xfp-field-group small, .xfp-aside-text) {
  color: var(--cf-page-copy);
  line-height: 1.6;
}

body .track-page :is(.track-intro, .track-help) {
  background-color: #f6faf6;
}

body:has(> header.top + section.hero > .eye) .body :is(.sec-i, .ic) {
  border-radius: 12px;
}
body:has(> header.top + section.hero > .eye) .body .f :is(select, label) {
  color: var(--cf-page-ink);
}

body .legal-page {
  color: var(--cf-page-ink);
}

@media (max-width: 768px) {
  body :is(.services-grid,.reviews-section,.works-gallery,.xfp-gallery,.contact-social-lite,
    .xfp-location,.xfp-faq-section,.team-section,.related-articles,.bfv2-section,.camera-fix-section,.boardfix-pro) h2 {
    font-size: clamp(22px, 5.7vw, 31px);
    font-weight: 600;
  }

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

  body :is(.article-content, .bat-article, .chg-article, .legal-page) :is(p, li) {
    font-size: 16px;
  }

  body .xfp-location .xfp-location-card iframe {
    max-inline-size: 100%;
  }

  body .footer-xfp .footer-xfp-menu-icon {
    background: #e7f4eb;
    color: var(--cf-page-green);
    box-shadow: none;
  }
}

@media (hover: none) {
  body :is(.gallery-item, .ba-img-wrap, .camera-ba-section .img-wrap, .ip-work, .contact-card-img-wrap):hover img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body :is(.gallery-item, .ba-img-wrap, .camera-ba-section .img-wrap, .ip-work, .contact-card-img-wrap) img {
    transition: none;
  }
}
