/* RC31: image-led, three-level service browser. */
.service-menu-browser {
  display: grid;
  grid-template-columns: minmax(245px, .86fr) minmax(250px, .9fr) minmax(300px, 1.08fr);
  min-height: 360px;
  height: min(510px, calc(100vh - 285px));
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid #d8e5df;
  border-radius: 16px;
  background: #f1f6f3;
}
.service-browser-mobile-nav { display: none; }
.service-browser-column {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
}
.service-browser-column + .service-browser-column {
  border-left: 1px solid #d8e5df;
}
.service-browser-subcategories { background: #f5f8f6; }
.service-browser-products { background: #eef4f1; }
.service-browser-column-head {
  min-width: 0;
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #dce7e1;
  background: rgba(255, 255, 255, .92);
}
.service-browser-column-head > strong {
  min-width: 0;
  color: #102018;
  font-size: .92rem;
  line-height: 1.2;
}
.service-browser-column-head > small {
  color: #66766e;
  font-size: .68rem;
  text-align: right;
}
.site-header .service-browser-column-head > a {
  flex: 0 0 auto;
  min-height: 33px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #b43a0d;
  border-radius: 11px;
  color: #9e2d07 !important;
  background: #fff;
  font-size: .68rem;
  font-weight: 1000;
}
.site-header .service-browser-column-head > a:hover,
.site-header .service-browser-column-head > a:focus-visible {
  color: #fff !important;
  background: #9e2d07;
}
.service-browser-category-list,
.service-browser-subcategory-list,
.service-browser-product-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #95aaa0 transparent;
}
.service-browser-category-list { padding: 10px; }
.service-browser-subcategory-list { padding: 10px; }
.service-browser-product-list { padding: 10px; }
.service-browser-category,
.service-browser-subcategory {
  width: 100%;
  border: 1px solid transparent;
  color: #102018;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.service-browser-category {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 69px;
  padding: 8px;
  border-radius: 13px;
}
.service-browser-category + .service-browser-category,
.service-browser-subcategory + .service-browser-subcategory,
.service-browser-product + .service-browser-product {
  margin-top: 5px;
}
.service-browser-category:hover,
.service-browser-category:focus-visible,
.service-browser-category.is-active {
  border-color: #c9ded4;
  background: #edf6f1;
}
.service-browser-category.is-active {
  box-shadow: inset 4px 0 #0c8960;
}
.service-browser-category-image {
  width: 58px;
  height: 51px;
  overflow: hidden;
  border-radius: 10px;
  background: #e7f2ed;
}
.service-browser-category-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.service-browser-subcategory-image {
  width: 40px;
  height: 40px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: #e5f0eb;
}
.service-browser-subcategory-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.service-browser-category > span:nth-child(2),
.service-browser-subcategory > span:nth-child(2),
.service-browser-product > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.service-browser-category strong,
.service-browser-subcategory strong,
.service-browser-product strong {
  min-width: 0;
  color: #102018;
  font-size: .79rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.service-browser-category small,
.service-browser-subcategory small,
.service-browser-product small {
  color: #53665d;
  font-size: .66rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.service-browser-category > b,
.service-browser-subcategory > b,
.service-browser-product > b {
  color: #12251c;
  font-size: 1.08rem;
}
.service-browser-product > b {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
}
.service-browser-subcategory-panel,
.service-browser-product-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
.service-browser-subcategory-panel[hidden],
.service-browser-product-panel[hidden] {
  display: none !important;
}
.service-browser-subcategory {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 59px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
}
.service-browser-subcategory:hover,
.service-browser-subcategory:focus-visible,
.service-browser-subcategory.is-active {
  border-color: #c6d9cf;
  background: #fff;
}
.service-browser-subcategory.is-active {
  box-shadow: inset 4px 0 #15915d, 0 6px 18px rgba(16, 53, 34, .06);
}
.site-header .service-browser-product {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 8px 10px;
  border: 1px solid #d9e5df;
  border-radius: 13px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.site-header .service-browser-product:hover,
.site-header .service-browser-product:focus-visible {
  border-color: #15915d;
  box-shadow: 0 9px 22px rgba(16, 71, 43, .1);
  transform: translateX(2px);
}
.service-browser-product-image {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  background: #e5f0eb;
}
.service-browser-product > .service-browser-product-image {
  grid-column: 1;
  grid-row: 1;
}
.service-browser-product > span:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}
.service-browser-product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.service-browser-category:focus-visible,
.service-browser-subcategory:focus-visible,
.service-browser-product:focus-visible,
.service-browser-column-head > a:focus-visible {
  outline: 3px solid #087758;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .site-header .service-menu-panel {
    width: auto;
    max-width: calc(100vw - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    white-space: normal;
  }
  .site-header .service-menu-heading > a {
    display: none !important;
  }
  .site-header .service-menu-heading {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
  }
  .site-header .service-menu-heading > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .site-header .service-menu-heading strong {
    display: block;
    max-width: 100%;
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .service-menu-browser {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    box-sizing: border-box;
  }
  .service-menu-browser:not([data-mobile-ready]) .service-browser-subcategories,
  .service-menu-browser:not([data-mobile-ready]) .service-browser-products {
    display: none !important;
  }
  .service-browser-mobile-nav:not([hidden]) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 10px 12px;
    border-bottom: 1px solid #d8e5df;
    background: #eaf3ee;
  }
  .service-browser-mobile-nav > button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid #087758;
    border-radius: 11px;
    color: #075d45;
    background: #fff;
    font: inherit;
    font-size: .76rem;
    font-weight: 900;
    cursor: pointer;
  }
  .service-browser-mobile-nav > button[hidden] { display: none !important; }
  .service-browser-mobile-nav > button:focus-visible {
    outline: 3px solid #087758;
    outline-offset: 2px;
  }
  .service-browser-mobile-nav > div {
    min-width: 0;
    display: grid;
    gap: 3px;
  }
  .service-browser-mobile-nav small {
    color: #53665d;
    font-size: .64rem;
    font-weight: 800;
  }
  .service-browser-mobile-nav strong {
    min-width: 0;
    color: #102018;
    font-size: .86rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .service-browser-column {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
  }
  .service-browser-column[hidden] { display: none !important; }
  .service-browser-column + .service-browser-column {
    border-top: 0;
    border-left: 0;
  }
  .service-browser-column-head {
    position: static;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .service-browser-category-list,
  .service-browser-subcategory-list,
  .service-browser-product-list {
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow-x: visible;
    overflow-y: visible;
    overscroll-behavior: auto;
    box-sizing: border-box;
  }
  .service-browser-category-list {
    display: block;
  }
  .service-browser-category,
  .service-browser-subcategory,
  .site-header .service-browser-product {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    white-space: normal !important;
  }
  .site-header .service-menu-browser button,
  .site-header .service-menu-browser strong,
  .site-header .service-menu-browser small {
    max-width: 100%;
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .service-menu-heading,
  .service-menu-heading > div,
  .service-menu-tools,
  .service-menu-tools > a {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .service-menu-heading strong { overflow-wrap: anywhere; }
  .site-header .service-browser-product:hover,
  .site-header .service-browser-product:focus-visible {
    transform: none;
  }
  .service-browser-subcategory-panel,
  .service-browser-product-panel {
    overflow: visible;
  }
}

@media (max-height: 700px) and (min-width: 901px) {
  .service-menu-browser {
    min-height: 300px;
    height: calc(100vh - 275px);
  }
}

@media (max-width: 640px) {
  /* The same destination remains available as Account / Sign in in menu tools. */
  .site-header .site-nav > .nav-login { display: none !important; }
}

@media (max-width: 560px) {
  .service-menu-browser { border-radius: 12px; }
  .service-browser-category { min-height: 61px; }
  .service-browser-category-image { width: 51px; height: 44px; }
  .service-browser-column-head { min-height: 57px; padding: 11px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-browser-product,
  .service-browser-category,
  .service-browser-subcategory { transition: none !important; }
}


