@layer components {
  .rs-breadcrumbs {
    color: var(--rs-color-foreground-neutral-faded);
    font-size: var(--rs-font-size-body-3);
    line-height: var(--rs-line-height-body-3);
  }

  .rs-breadcrumbs__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--rs-unit-x2);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .rs-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    min-inline-size: 0;
    gap: var(--rs-unit-x2);
  }

  .rs-breadcrumbs__item:not(:last-child)::after {
    content: "";
    display: block;
    flex: none;
    inline-size: var(--rs-unit-x3);
    block-size: var(--rs-unit-x3);
    background: var(--rs-color-foreground-neutral-faded);
    mask: var(--rs-icon-chevron-right) center / contain no-repeat;
  }

  .rs-breadcrumbs__item > :is(a, span) {
    overflow: hidden;
    max-inline-size: 20ch;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rs-breadcrumbs .rs-link {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
  }

  .rs-breadcrumbs [aria-current="page"] {
    color: var(--rs-color-foreground-neutral);
    font-weight: var(--rs-font-weight-medium);
  }
}
