div.mod-languages ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

div.mod-languages li {
  margin: 0 .5rem;
}

div.mod-languages ul.lang-inline li {
  display: inline-block;
}

div.mod-languages .dropdown-menu {
  padding: .5rem 0;
}

div.mod-languages ul.lang-block li {
  display: block;
  padding: .5rem 0;
  text-align: start;
}

div.mod-languages ul li.lang-active {
  background-color: #f0f0f0;
}

div.mod-languages img {
  display: inline-block;
  border: none;
}

div.mod-languages a {
  padding: .5rem;
  text-decoration: none;
}

div.mod-languages .btn-group {
  display: flex !important;
  margin: 0;
}

div.mod-languages .btn-group .btn {
  flex: none;
}
