/* The phone-prefix picker (js/core/phone-prefix.js): the code button, its search panel and the number box beside it.
   Moved word for word out of css/vetting-app.css in v0.33.709, when the admin page began to use the picker too
   (the owner, 26 Nov 2026). Loaded by vetting.html and index.html. */

/* The list's rows are real <button>s (audit F-2, 1 Nov 2026). On the candidate page a page-wide rule in
   css/vetting-app.css takes the button look off them; the admin page has no such rule, and there they showed as grey
   buttons side by side (seen in a browser, 26 Nov 2026). So the same declarations are said here for the picker's own
   rows: at zero specificity (:where), and before the rules below, exactly as on the candidate page, where they change
   nothing. */
:where(button.pfx-item) {
  font: inherit; color: inherit; background: none; border: 0; text-align: left; appearance: none; -webkit-appearance: none;
  width: 100%;
}
.pfx-item:focus-visible { background: #e8f0fe; outline: 2px solid var(--primary); outline-offset: -2px; }

.phone-input-wrap {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.phone-prefix {
  display: none;
}
.phone-input-wrap input[type="tel"] {
  flex: 1;
  min-width: 0;
  border-radius: 0 6px 6px 0;
}
.pfx-wrap {
  position: relative;
  flex-shrink: 0;
}
.pfx-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: #fff;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  color: #333;
  box-sizing: border-box;
}
.pfx-trigger:hover { background: #f8f8f8; }
.pfx-trigger::after {
  content: '';
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #666;
  margin-left: 4px;
}
.pfx-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  width: 280px;
}
.pfx-filter {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  outline: none;
  border-radius: 6px 6px 0 0;
  box-sizing: border-box;
}
.pfx-list {
  max-height: 200px;
  overflow-y: auto;
}
.pfx-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}
.pfx-item:hover { background: #f0f4ff; }
.pfx-item.active { background: #e8f0fe; font-weight: 600; }
