/* Categorized service menu. Loaded after the unified navigation base. */
.bun-service-popover.bun-service-popover-categorized {
  width: min(480px, calc(100vw - 48px));
  padding: 16px;
  border-color: rgba(8, 125, 107, .16);
  background: #f8fbfa;
}

.bun-service-popover.bun-service-popover-categorized::before {
  background: linear-gradient(135deg, transparent 49%, #f8fbfa 50%);
}

.bun-service-popover-categorized .bun-service-grid.bun-service-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.bun-service-popover-categorized .bun-category-group {
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(16, 29, 46, .09);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7f5 100%);
  box-shadow: 0 12px 28px rgba(16, 29, 46, .06);
}

.bun-service-categories summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #101d2e;
  cursor: pointer;
  list-style: none;
}

.bun-service-categories summary::-webkit-details-marker {
  display: none;
}

.bun-service-categories .bun-category-heading {
  min-width: 0;
}

.bun-service-categories .bun-category-heading strong {
  font-size: 15px;
  font-weight: 880;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.bun-service-popover-categorized .bun-category-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 0 10px 10px;
}

.bun-service-popover-categorized .bun-category-links a {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(16, 29, 46, .08);
  border-radius: 11px;
  background: rgba(255, 255, 255, .82);
  color: #263548;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.bun-service-popover-categorized .bun-category-links a:hover,
.bun-service-popover-categorized .bun-category-links a:focus-visible,
.bun-service-popover-categorized .bun-category-links a[aria-current] {
  border-color: rgba(8, 125, 107, .28);
  background: #eef8f5;
  color: #087d6b;
}

.bun-service-popover-categorized .bun-category-links a:focus-visible,
.bun-service-categories summary:focus-visible,
.bun-mobile-services.bun-service-categories .bun-category-links a:focus-visible {
  outline: 3px solid rgba(8, 125, 107, .34);
  outline-offset: 3px;
}

.bun-service-popover-categorized .bun-category-links a > span,
.bun-mobile-services.bun-service-categories .bun-category-links a > span {
  min-width: 0;
}

.bun-service-popover-categorized .bun-category-links small {
  flex: 0 0 auto;
  color: #087d6b;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.01em;
}

.bun-service-popover-categorized .bun-category-group[data-bun-category="inspection"] {
  background: linear-gradient(180deg, #ffffff 0%, #f0f6ff 100%);
}

.bun-service-popover-categorized .bun-category-group[data-bun-category="cleaning"] {
  background: linear-gradient(180deg, #ffffff 0%, #eef8f5 100%);
}

.bun-service-popover-categorized .bun-category-group[data-bun-category="care"] {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbef 100%);
}

.bun-service-popover-categorized .bun-category-group[data-bun-category="construction"] {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
}

.bun-mobile-services.bun-service-categories {
  display: block;
  width: min(100%, 620px);
  margin: 0 auto;
}

.bun-mobile-services.bun-service-categories .bun-category-group {
  margin: 0 0 10px;
  border: 1px solid rgba(16, 29, 46, .1);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.bun-mobile-services.bun-service-categories .bun-category-group[data-bun-category="inspection"] {
  border-color: rgba(30, 86, 196, .16);
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.bun-mobile-services.bun-service-categories .bun-category-group[data-bun-category="cleaning"] {
  border-color: rgba(8, 125, 107, .18);
  background: linear-gradient(180deg, #f3fbf8 0%, #ffffff 100%);
}

.bun-mobile-services.bun-service-categories .bun-category-group[data-bun-category="care"] {
  border-color: rgba(119, 150, 44, .18);
  background: linear-gradient(180deg, #fbfdf5 0%, #ffffff 100%);
}

.bun-mobile-services.bun-service-categories .bun-category-group[data-bun-category="construction"] {
  border-color: rgba(16, 29, 46, .14);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.bun-service-categories .bun-category-chevron {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(8, 125, 107, .18);
  border-radius: 999px;
  background: rgba(8, 125, 107, .06);
}

.bun-service-categories .bun-category-chevron::before {
  position: absolute;
  top: 9px;
  left: 10px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #087d6b;
  border-bottom: 2px solid #087d6b;
  content: "";
  transform: rotate(45deg);
}

.bun-service-categories details[open] .bun-category-chevron::before {
  top: 11px;
  transform: rotate(225deg);
}

.bun-mobile-services.bun-service-categories .bun-category-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 10px 10px 18px;
}

.bun-mobile-services.bun-service-categories .bun-category-links a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px 9px 14px;
  border: 0;
  border-top: 1px solid rgba(16, 29, 46, .08);
  border-radius: 0;
  background: transparent;
  color: #263548;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.bun-mobile-services.bun-service-categories .bun-category-links a::before {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(8, 125, 107, .42);
  content: "";
}

.bun-mobile-services.bun-service-categories .bun-category-links a > span:first-child {
  margin-right: auto;
}

.bun-mobile-services.bun-service-categories .bun-category-links a[aria-current] {
  padding-inline: 14px 10px;
  border-color: rgba(8, 125, 107, .18);
  border-radius: 10px;
  background: #eef8f5;
  color: #087d6b;
}

.bun-mobile-services.bun-service-categories .bun-category-links small {
  color: #087d6b;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

@media (max-width: 390px) {
  .bun-mobile-services.bun-service-categories summary {
    padding-inline: 12px;
  }

  .bun-mobile-services.bun-service-categories .bun-category-links {
    padding-left: 14px;
    padding-right: 8px;
  }

  .bun-mobile-services.bun-service-categories .bun-category-heading strong {
    font-size: 14px;
  }
}

@media (max-width: 375px) {
  .bun-mobile-services.bun-service-categories .bun-category-links a {
    font-size: 13px;
  }
}
