/* A shared 4:3 frame; SVG colors are independent of OS emoji fonts and locale. */
html body .ipkk-flag {
  display: inline-block;
  position: relative;
  width: calc(1.333333 * var(--ipkk-flag-height, 1em));
  height: var(--ipkk-flag-height, 1em);
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font-size: inherit;
  vertical-align: var(--ipkk-flag-align, -.12em);
  line-height: 1;
  pointer-events: none;
}
html body .ipkk-flag > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(30 50 65 / 12%);
}
/* Preserve textContent for the emoji tools' copy/search logic, never paint it. */
html body .ipkk-flag > .ipkk-flag-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* IP digits and currency codes occupy about 3/4 of an em. Use their visible
   height and baseline; image-only nodes can resolve `cap` to a different fallback font. */
.ipkk-flag-cap { --ipkk-flag-height: .75em; --ipkk-flag-align: 0; }
select.ipkk-flag-select { padding-left: calc(12px + 1.333333 * var(--ipkk-flag-height, 1em) + .6em) !important; }
