.wpml-ls-legacy-list-horizontal {
  border: 1px solid transparent;
  padding: 7px;
  clear: both;
  & > ul {
    padding: 0;
    margin: 0 !important;
    list-style-type: none;
  }

  .wpml-ls-item {
    padding: 0;
    margin: 0;
    list-style-type: none;
    display: inline-block;
  }

  a {
    display: block;
    text-decoration: none;
    padding: 5px 10px;
    line-height: 1;
    span {
      vertical-align: middle;
    }
  }

  .wpml-ls-flag {
    display: inline;
    vertical-align: middle;
    width: 18px;
    height: 12px;
  }

  .wpml-ls-flag + span {
    margin-left: .4em;
    .rtl & {
      margin-left: 0;
      margin-right: .4em;
    }
  }

  // Special styles for widget in footer (e.g. Twenty Sixteen theme has ::after black stripe there covering LS)
  &.wpml-ls-statics-footer {
    margin-bottom: 30px;

    & > ul {
      text-align: center;
    }
  }
}