/* Shared storefront refinements and customer entry points. */
body .cf-ux-number {
  display: inline-block;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}

body .xfp-estimate-app .xfp-estimate-head h1 {
  margin: 8px 0 6px;
  color: #17352a;
  font-size: clamp(1.45rem, 3.3vw, 1.9rem);
  font-weight: 650;
  line-height: 1.34;
}

body .xfp-estimate-app .xfp-estimate-head h1 span {
  color: #08764c;
}

body .xfp-estimate-app .xfp-estimate-badge-top {
  position: static;
  margin-block: 0 12px;
  padding: 5px 10px;
  background: #edf7ef;
  color: #21563e;
  box-shadow: none;
  font-size: .875rem;
}

body .xfp-estimate-app .xfp-estimate-badge-top i {
  color: #188755;
}

body .xfp-estimate-app .xfp-estimate-form :is(
  input:not([type="hidden"], [type="file"], [type="radio"], [type="checkbox"]),
  select
) {
  min-height: 44px;
}

body .xfp-estimate-app .xfp-logo-bar a:focus-visible {
  outline: 2px solid #086648;
  outline-offset: 3px;
}

body.cf-booking .cf-book-home,
body.cf-booking .cf-book-track {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: max-content;
  max-width: 100%;
  padding: 0 8px;
  border-radius: 10px;
  color: #086648;
  font-size: .8125rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

body.cf-booking .cf-book-home {
  display: none;
  grid-column: 1;
  grid-row: 1;
}

body.cf-booking .cf-book-track {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  background: #eaf6ef;
}

body.cf-booking .app-header .brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

body.cf-booking .app-header #back {
  grid-column: 1;
  grid-row: 1;
}

body.cf-booking:has(.booking-intro:not([hidden])) .app-header #back,
body.cf-booking:has(.booking-tracking-view) .cf-book-track {
  display: none;
}

body.cf-booking:has(.booking-intro:not([hidden])) .cf-book-home {
  display: inline-flex;
}

body.cf-booking .app-header {
  display: grid;
  grid-template-columns: minmax(61px, 1fr) minmax(0, auto) minmax(61px, 1fr);
}

body.cf-booking :is(.cf-book-home, .cf-book-track):focus-visible {
  outline: 2px solid #086648;
  outline-offset: 2px;
}

body.cf-booking .actions:has(#next[hidden]) {
  display: none;
}

@media (max-width: 768px) {
  body .xh-drawer .cf-ux-drawer-link .dn-ic {
    background: #eaf6ef;
    color: #086648;
  }

  body .cf-ux-jumps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    text-align: center;
  }

  body .cf-ux-jumps > a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    margin: 0;
    background: #fff;
    border: 1px solid #c9e0d1;
    color: #125539;
    font-size: .9375rem;
  }

  body .cf-ux-jumps > a:first-child {
    background: #08764c;
    color: #fff;
    border-color: #08764c;
  }

  body :is(.works-filter, .reviews-section, .xfp-gallery, .pricing-section):target {
    scroll-margin-top: 74px;
  }

  body .xfp-estimate-app .xfp-estimate-badge-top {
    margin-bottom: 10px;
  }

  body .track-page .track-intro h1 {
    line-height: 1.32;
  }

  body .track-page .track-lookup :is(#btnScanQR, #btnPickImage) {
    min-height: 44px;
  }

  body.cf-booking .booking-intro {
    padding: 15px 14px;
    margin-bottom: 13px;
    border-radius: 17px;
    background: linear-gradient(118deg, #f3fbf6, #e0f5e9);
  }

  body.cf-booking .booking-intro .booking-eyebrow {
    display: none;
  }

  body.cf-booking .booking-intro h1 {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }

  body.cf-booking .booking-intro h1 + p {
    max-width: 27ch;
    margin-top: 5px;
    font-size: .875rem !important;
    line-height: 1.45;
  }

  body.cf-booking .booking-intro-art {
    width: 68px;
    height: 72px;
    margin-inline-end: 4px;
    box-shadow: none;
  }

  body.cf-booking .booking-intro-art .service-photo {
    width: 58px;
    height: 58px;
  }

  body.cf-booking .booking-intro-art > span {
    width: 28px;
    height: 28px;
  }

  body.cf-booking #steps {
    margin-bottom: 14px;
  }

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

  body.cf-booking #screen .service-card {
    min-height: 107px;
    padding: 8px;
    gap: 4px;
    border-radius: 14px;
  }

  body.cf-booking #screen .service-card strong {
    min-height: 0;
    overflow-wrap: break-word;
  }

  body.cf-booking #screen .service-card .service-photo {
    width: 52px;
    height: 52px;
  }

  body.cf-booking #screen .booking-service-caption {
    display: none;
  }

  body.cf-booking:has(.view-0) .actions:has(#next:disabled) .cf-selection-hint {
    display: none;
  }

  body.cf-booking .actions {
    padding-block: 8px calc(8px + env(safe-area-inset-bottom));
  }
}
