.sui-m-breadcrumb {
  position: relative;
  margin: 0;
  padding: 0;
  display: flex;

  &__item {
    position: relative;
    font-family: $sui-font-family-primary;
    font-size: $sui-font-size-ms;
    color: $sui-color-text-light;
    padding-left: $sui-space-xs;

    &.as--hidden {
      position: absolute;
      top: 0;
      left: 0;
      opacity: 0;
      pointer-events: none;
    }

    &::before {
      content: "/";
      line-height: 0;
      position: absolute;
      top: 50%;
      left: 0;
    }

    &:first-child,
    &.as--hidden + &:nth-child(2) {
      padding-left: 0;

      & > * {
        padding-left: 0;
      }

      &::before {
        display: none;
      }
    }

    & > * {
      display: block;
      padding: $sui-space-xxs $sui-space-sm;
      font-family: $sui-font-family-primary;
      font-size: $sui-font-size-ms;
      color: $sui-color-text-light;
      text-decoration: none;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }

    & > a {
      text-decoration: none;

      &:hover,
      &:focus {
        text-decoration: none;
        color: $sui-color-primary;
      }
    }
  }
}
