/* Native pop-up retains accessible phone codes and country names. The closed selector only shows the flag. */
.mk-phone-group:has(> .mk-phone-flag-shell) {
  grid-template-columns: 3.5rem minmax(0, 1fr);
}
.mk-phone-flag-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid var(--mk-pb-edge, #817885);
  border-radius: 12px;
  background: var(--mk-pb-surface, #262329);
}
.mk-phone-flag-shell:has(> select:focus-visible) {
  outline: 2px solid var(--mk-pb-accent, #ff9d77);
  outline-offset: 2px;
}
.mk-phone-flag-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
.mk-phone-flag-mark::after {
  content: '';
  width: 4px;
  height: 4px;
  border-right: 1px solid var(--mk-pb-ink, #f7f4ef);
  border-bottom: 1px solid var(--mk-pb-ink, #f7f4ef);
  transform: translateY(-1px) rotate(45deg);
}
.mk-phone-flag-mark > :is(img, svg) {
  display: block;
  width: 24px;
  height: 16px;
  max-width: none;
  object-fit: cover;
  border-radius: 2px;
}
.mk-phone-flag-shell > select.mk-phone-region {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  opacity: 0;
  font-size: 16px;
  cursor: pointer;
}
