@use "sass:math";

@forward "variables";
@use "variables" as *;

.flag-icon {
  display: inline-block;
  vertical-align: middle;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  line-height: 1em;
  height: 1em;
  width: math.div(21, 15) * 1em;
  background-image: url(#{$flag-icons-path}/missing.svg);

  &.flag-icon-square {
    height: 1em;
    width: 1em;
  }

  &:before {
    content: '\00a0';
  }

  // Flags
  @each $element in $flag-icons-elements {
    &.flag-icon-#{$element} {
      background-image: url(#{$flag-icons-path}/#{$element}.svg);
    }
  }
}
