/* Shared phone control; the surrounding account/staff shell owns its typography. */
.phone-input {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
  border: 1px solid #999d91;
  border-radius: 2px;
  background: var(--surface);
}
.phone-input:hover { border-color: var(--muted); }
.phone-input:focus-within { border-color: var(--jade); }
.phone-input input,
.phone-input select {
  border: 0;
  background: transparent;
  border-radius: 0;
}
.phone-country-control {
  flex: 0 0 45%;
  min-width: 0;
  max-width: 220px;
  border-right: 1px solid var(--line);
}
.phone-input .phone-country {
  width: 100%;
  height: 100%;
  padding-left: 10px;
  padding-right: 6px;
  cursor: pointer;
  font-size: 14px;
}
.phone-country-control.is-enhanced { flex-basis: 108px; }
.phone-country option { color: var(--ink); background: var(--surface); }
.phone-country-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 49px;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  font-size: 14px;
}
.phone-country-display {
  white-space: nowrap;
}
.phone-country-chevron {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
}
.phone-country-trigger[aria-expanded="true"] .phone-country-chevron { transform: rotate(225deg); margin-top: 3px; }
.phone-country-trigger:focus-visible, .phone-country-search:focus-visible { outline-offset: -4px; }
.phone-country-picker {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: -1px;
  width: calc(100% + 2px);
  border: 1px solid #999d91;
  border-radius: 2px;
  background: var(--surface);
  box-shadow: 0 8px 20px #25282014;
}
.phone-country-picker[data-placement="above"] { top: auto; bottom: calc(100% + 7px); }
.phone-input .phone-country-search {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.phone-country-list {
  max-height: min(280px, 35svh);
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  margin: 0;
  padding: 4px;
}
.phone-country-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 10px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.phone-country-option:hover { background: var(--paper); }
.phone-country-option.is-active { background: #e1e8dd; }
.phone-country-option[aria-selected="true"] .phone-country-name { font-weight: 600; }
.phone-country-flag { font-size: 18px; }
.phone-country-prefix { color: var(--muted); font-variant-numeric: tabular-nums; }
.phone-country-empty { margin: 0; padding: 16px; color: var(--muted); font-size: 14px; }
.phone-input > input { flex: 1; width: 0; padding-inline: 14px; }
.phone-input input::placeholder { color: var(--muted); opacity: .7; }
