For using the flags inline with text add the classes
.flag-icon and
.flag-icon-xx (where xx is the ISO 3166-1-alpha-2 code of a country) to an empty span. If you want to have a squared version flag then add the class flag-icon-squared as well.