.price-navigation,
.price-navigation__disclosure,
.price-navigation__group {
  min-width: 0;
}

.price-navigation__summary,
.price-navigation__group-summary,
.price-navigation__category,
.price-navigation__item {
  width: 100%;
  padding-block: 11.5px;
  border: 0;
  border-radius: 0;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  white-space: normal;
}

.price-navigation__summary,
.price-navigation__group-summary {
  display: flex;
  position: relative;
  align-items: center;
  padding-inline: 18px 38px;
  background: #f5f5f5;
  cursor: pointer;
  list-style: none;
  text-align: left;
}

/* Native disclosure markers are replaced by the component's consistent chevron. */
.price-navigation__summary::-webkit-details-marker,
.price-navigation__group-summary::-webkit-details-marker {
  display: none;
}

.price-navigation__summary::after,
.price-navigation__group-summary::after,
.price-navigation__item--catalog::after {
  content: "";
  position: absolute;
  right: 25px;
  width: 8px;
  height: 8px;
  border-right: 1px solid currentcolor;
  border-bottom: 1px solid currentcolor;
  transform: rotate(45deg) translateY(-2px);
}

.price-navigation__summary--category,
.price-navigation__group--selected > .price-navigation__group-summary,
.price-navigation__summary--procedure {
  color: #ffffff;
  background: var(--color-muted);
}

.price-navigation__group[open] > .price-navigation__group-summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.price-navigation__panel--catalog {
  display: grid;
  gap: 4px;
}

.price-navigation--category {
  display: none;
}

.price-navigation--procedure {
  --price-navigation-selected-background: var(--color-muted);
}

.price-navigation__category {
  display: block;
  padding-inline: 18px 38px;
  background: #f5f5f5;
  text-align: left;
  cursor: pointer;
}

.price-navigation__category--selected,
.price-navigation__summary--catalog {
  color: #ffffff;
  background: var(--color-ink);
}

.price-navigation__summary--catalog {
  padding-block: 12.5px;
  font-size: 12px;
  line-height: 15px;
}

.price-navigation__item {
  display: flex;
  position: relative;
  align-items: center;
  padding-inline: 27px 38px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
}

.price-navigation__item--catalog {
  padding-block: 12px;
  border-right: 1px solid var(--color-muted);
  border-bottom: 1px solid var(--color-muted);
  border-left: 1px solid var(--color-muted);
  font-size: 12px;
  line-height: 15px;
}

.price-navigation__item--catalog::after {
  transform: rotate(-45deg);
}

.price-navigation__group-panel {
  display: grid;
}

.price-navigation__panel--procedure {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.price-navigation__summary--procedure {
  justify-content: center;
  text-align: center;
}

.price-navigation__summary--procedure::after {
  display: none;
  right: 26px;
}

.price-navigation__item--procedure {
  justify-content: center;
  padding-inline: 12px;
  color: rgb(64 64 64 / 70%);
  background: #f5f5f5;
  text-align: center;
  transition: background-color 160ms ease, color 160ms ease;
}

.price-navigation__item--selected {
  color: #ffffff;
  background: var(--price-navigation-selected-background, var(--color-ink));
}

.price-navigation__summary:focus-visible,
.price-navigation__group-summary:focus-visible,
.price-navigation__category:focus-visible,
.price-navigation__item:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: -3px;
}

@media (hover: hover) {
  .price-navigation__item--procedure:not(.price-navigation__item--selected):hover {
    color: var(--color-ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-navigation__item--procedure {
    transition: none;
  }
}

@media (min-width: 768px) {
  .price-navigation--catalog,
  .price-navigation__disclosure--catalog,
  .price-navigation__disclosure--catalog::details-content {
    display: contents;
  }

  .price-navigation__panel--catalog {
    grid-area: navigation;
    align-self: start;
  }

  /* The catalog becomes a sidebar; only its category summaries are controls. */
  .price-navigation__summary--catalog,
  .price-navigation__summary--procedure {
    display: none;
  }

  .price-navigation__panel--procedure {
    margin-top: 0;
  }

  /* Only the outer shell is persistent. Nested groups retain native open state. */
  .price-navigation__disclosure--catalog::details-content,
  .price-navigation__disclosure--procedure::details-content {
    content-visibility: visible;
  }

  .price-navigation__disclosure--procedure::details-content {
    display: block;
  }
}

@media (max-width: 1199px) {
  .price-navigation__panel--procedure {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .price-navigation--category {
    display: block;
  }

  .price-navigation--catalog {
    margin-top: 20px;
  }

  /* The category chooser and service chooser perform different actions.
     Service records remain in the same canonical groups at every width. */
  .price-navigation__group--catalog,
  .price-navigation__group-summary--catalog {
    display: none;
  }

  .price-navigation__group--selected {
    display: block;
  }

  .price-navigation__group--selected::details-content {
    display: block;
    content-visibility: visible;
  }

  .price-navigation__panel--catalog,
  .price-navigation__panel--procedure {
    display: none;
  }

  /* The native open state owns the only responsive disclosure behavior. */
  .price-navigation__disclosure[open] > .price-navigation__panel--catalog {
    display: grid;
    margin-top: 4px;
  }

  .price-navigation__panel--category {
    display: grid;
    gap: 4px;
    margin-top: 4px;
  }

  .price-navigation__disclosure[open] > .price-navigation__panel--procedure {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .price-navigation__disclosure[open] > .price-navigation__summary::after {
    transform: rotate(225deg) translate(-2px, -2px);
  }

  .price-navigation__summary--procedure::after {
    display: block;
  }
}
