/* Shared, compact language controls; the theme supplies the existing SVG flags. */
:is(#Top, #T24Footer) .Flag {
  box-sizing: border-box;
  width: 78px;
  padding: 0;
  border: 1px solid #e2e9e4;
  border-radius: 6px;
  flex-shrink: 0;
}
:is(#Top, #T24Footer) .Flag > button.Flag__select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  appearance: none;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: #263d35;
  font: inherit;
  cursor: pointer;
}
:is(#Top, #T24Footer) .Flag > button.Flag__select::after {
  content: '';
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid #60766b;
  border-bottom: 1.5px solid #60766b;
  transform: rotate(45deg);
}
:is(#Top, #T24Footer) .Flag__select span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
:is(#Top, #T24Footer) .Flag__select span::before {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
:is(#Top, #T24Footer) .Flag > .Flag__dropdown {
  box-sizing: border-box;
  position: absolute;
  left: auto;
  right: 0;
  top: calc(100% + 6px);
  bottom: auto;
  width: 208px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 80px);
  padding: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #dfe8e2;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(25, 56, 43, .14);
  z-index: 110;
}
:is(#Top, #T24Footer) .Flag > .Flag__dropdown[hidden] { display: none !important; }
:is(#Top, #T24Footer) .Flag__dropdown .Flag__select { width: 100%; padding: 0; }
:is(#Top, #T24Footer) .Flag__dropdown a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 4px;
  color: #263d35;
  text-decoration: none;
}
:is(#Top, #T24Footer) .Flag__dropdown a span { text-transform: none; }
:is(#Top, #T24Footer) .Flag__dropdown a:hover,
:is(#Top, #T24Footer) .Flag__dropdown a:focus-visible { background: #edf5f0; text-decoration: none; }
:is(#Top, #T24Footer) .Flag button:focus-visible,
:is(#Top, #T24Footer) .Flag a:focus-visible {
  outline: 2px solid #277257;
  outline-offset: -2px;
}
#Top .Top-info2 .Flag > .Flag__dropdown { left: 0; right: auto; }
@media (max-width: 992px) {
  :is(#Top, #T24Footer) .Flag > button.Flag__select { min-height: 42px; }
  :is(#Top, #T24Footer) .Flag__dropdown a { min-height: 44px; }
}
