@font-face {
  font-family: "NZMetro Country Flags";
  src: url("assets/fonts/noto-country-flags.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+1F1E6-1F1FF;
}

.country-select,
.country-select option,
.country-compact {
  font-family: "Noto Sans", "NZMetro Country Flags", system-ui, sans-serif;
}

.contact-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 8px;
}

.contact-row > .field {
  min-width: 0;
}

.country-control {
  position: relative;
  min-width: 0;
}

.country-compact {
  display: none;
}

.country-control.is-enhanced .country-select {
  appearance: none;
  color: transparent;
}

.country-control.is-enhanced .country-select option {
  color: var(--ink);
}

.country-control.is-enhanced .country-compact {
  display: flex;
  align-items: center;
  position: absolute;
  inset: 0 24px 0 12px;
  pointer-events: none;
  white-space: nowrap;
  color: var(--ink);
}

.country-control.is-enhanced::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 18px;
  width: 6px;
  height: 6px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
