lego-chips {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.75rem;

  lego-chip {
    cursor: pointer;
    background: $dim-gray;
    border-radius: 3px 0 0 3px;
    color: $mid-gray;
    display: inline-block;
    height: 1.625rem;
    line-height: 1.625rem;
    padding: 0 1rem 0 1.25rem;
    position: relative;
    margin: 0.625rem 0.5rem 0 0;
    transition: all 0.25s;

    &::before {
      background: $white;
      border-radius: 0.625rem;
      box-shadow: inset 0 1px rgba(0, 0, 0, 0.25);
      content: '';
      height: 0.375rem;
      left: 0.5rem;
      position: absolute;
      width: 0.375rem;
      top: 0.65rem;
      transition: all 0.25s;
    }

    &::after {
      background: $white;
      border-bottom: 0.8125rem solid transparent;
      border-left: 0.625rem solid $dim-gray;
      border-top: 0.8125rem solid transparent;
      content: '';
      position: absolute;
      right: 0;
      top: 0;
      transition: all 0.25s;
    }

    &:hover {
      background-color: $secondary;
      color: white;
    }

    &:hover::after {
      border-left-color: $secondary;
    }

    .delete {
      width: 18px;
      height: 18px;
      cursor: pointer;
    }
  }
}
