/* ---------- Phone field: country code + number, one field to the eye ---------- */
.phf { display: flex; align-items: stretch; min-width: 0; height: 48px; border-radius: 12px; background: var(--color-field); transition: box-shadow .15s ease, background-color .15s ease; }
.phf:focus-within { background: var(--color-surface); box-shadow: inset 0 0 0 1.5px var(--color-accent); }
.phf:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 1.5px var(--color-danger); }
.phf__cc { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px 0 12px; border: 0; border-radius: 12px 0 0 12px; background: none;
  color: var(--color-ink); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.phf__cc::after { content: ""; position: absolute; right: 0; top: 12px; bottom: 12px; width: var(--hairline, 1px); background: var(--color-line-strong); }
.phf__cc:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--color-accent); }
.phf__dial { font-variant-numeric: tabular-nums; }
.phf__chev { width: 14px; height: 14px; margin-left: -2px; color: var(--color-ink-muted); transition: transform .2s ease; }
.phf__num { flex: 1; min-width: 0; height: 100%; padding: 0 14px 0 12px; border: 0; background: none; color: var(--color-ink); font: inherit; font-size: 16px;
  font-variant-numeric: tabular-nums; letter-spacing: .01em; outline: none; -webkit-appearance: none; appearance: none; -webkit-user-select: text; user-select: text; }
.phf__num::placeholder { color: var(--color-ink-muted); opacity: .75; }
.ph-flag { flex: none; font-size: 20px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.ph-flag--code { display: inline-grid; place-items: center; min-width: 28px; height: 20px; padding: 0 4px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--color-line-strong);
  font-family: inherit; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; color: var(--color-ink-2); }
@media (hover: hover) and (pointer: fine) { .phf__cc:hover { background: var(--color-hover); } }

/* ---------- Country list: bottom sheet on phones, a dropdown under the field on bigger screens ---------- */
.ph-sheet .ph-pick { display: flex; flex-direction: column; padding: 8px; }
.ph-sheet:not(.fsheet--anchored) .ph-pick { height: min(80dvh, 680px); }
.ph-sheet.fsheet--anchored .ph-pick { max-height: 440px; padding-top: 8px; }
.ph-sheet [hidden] { display: none !important; }
.ph-pick__bar { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 0 0 8px; }
.ph-pick__bar b { flex: 1; min-width: 0; font-size: 16px; }
.ph-sheet.fsheet--anchored .ph-pick__bar { display: none; }
.ph-pick__search { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; margin: 0 0 6px; padding: 0 12px; border-radius: 10px; background: var(--color-field); cursor: text; }
.ph-pick__search svg { flex: none; width: 18px; height: 18px; color: var(--color-ink-muted); }
.ph-pick__q { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--color-ink); font: inherit; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; -webkit-user-select: text; user-select: text; }
.ph-pick__q::-webkit-search-decoration { -webkit-appearance: none; }
.ph-pick__list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.ph-pick__h { margin: 10px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-ink-muted); }
.ph-pick__h:first-child { margin-top: 4px; }
.ph-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: none;
  color: var(--color-ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.ph-opt__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-opt__dial { flex: none; color: var(--color-ink-muted); font-variant-numeric: tabular-nums; }
.ph-opt__check { flex: none; width: 16px; height: 16px; color: var(--color-accent-text, var(--color-accent)); }
.ph-opt[aria-selected="true"] { font-weight: 700; }
.ph-opt:focus-visible { outline: none; background: var(--color-hover); }
@media (hover: hover) and (pointer: fine) { .ph-opt:hover { background: var(--color-hover); } }
.ph-pick__none { margin: 24px 10px; font-size: 14px; text-align: center; color: var(--color-ink-muted); }
