// SalesCrowd Breadcrumbs

.breadcrumb {
  display: inline-block;
  margin-bottom: 1em;
  text-align: left;

  a {
    background-color: $lightest-gray;
    border: 1px solid $light-gray;
    border-left: 0;
    color: $light-gray;;
    display: inline-block;
    font-size: 0.8em;
    line-height: 1.9em;
    margin-bottom: 2px;
    margin-right: -5px;
    padding: 0 1em 0 1em;
    position: relative;
    text-decoration: none;

    &:first-child {
      border-bottom-left-radius: $base-border-radius;
      border-left: 1px solid $light-gray;
      border-top-left-radius: $base-border-radius;
      padding-left: 1em;
    }

    &:last-child {
      background-color: $lightest-gray;
      border-bottom-right-radius: $base-border-radius;
      border-top-right-radius: $base-border-radius;
      color: $salescrowd-orange;
      padding-right: 1em;
    }

    &:focus,
    &:hover {
      background-color: $lightest-gray;
      color: $salescrowd-orange;
    }

    &:after,
    &:before {
      @include position(absolute, -1px auto 0px 100%);
      border-bottom: $breadcrumb-height / 2 solid transparent;
      border-left: $breadcrumb-height / 4 solid transparent;
      border-top: $breadcrumb-height / 2 solid transparent;
      content: '';
      display: block;
      margin: auto;
      z-index: 2;
    }

    &:last-child:after,
    &:last-child:before {
      border: none;
    }

    &:before {
      border-left-color: $light-gray;
      margin-left: 1px;
      z-index: 1;
    }
    &:after {
      border-left-color: $lightest-gray;
    }

    @include MQ(M) {
      font-size: 1em;
      padding: 0 1em 0 1.5em;
    }
  }
}

