/* Regional site flags (footer). px only: html{font-size:10px} makes rem shrink. */
.footer2 .locales {
  max-width: 1100px;
  margin: 0 auto 24px auto;
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.footer2 .locales_it {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  border-radius: 50%;
  font-size: 33px;
  line-height: 1;
  text-decoration: none;
  opacity: .7;
  transition: opacity .15s, text-shadow .15s;
}

.footer2 .locales_it:hover {
  opacity: 1;
  text-shadow: 0 0 8px rgba(255, 165, 0, .6);
}

.footer2 .locales_it.active {
  opacity: 1;
  text-shadow: 0 0 10px orange;
  pointer-events: none;
}

/* country name tooltip (data-label) */
.footer2 .locales_it::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(4px);
  padding: 4px 8px;
  border-radius: 4px;
  background-color: var(--fb-text-color);
  color: var(--fb-background-color);
  font-size: 12px;
  line-height: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 2;
}

.footer2 .locales_it:hover::after,
.footer2 .locales_it:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media only screen and (max-width: 768px) {
  .footer2 .locales {
    padding: 0 16px;
    justify-content: left;
  }
}
