/* Country-code picker for phone number fields (see js/phone-country-select.js). The host page can set --fps-h, --fps-radius, --fps-bg and --fps-border. */
.fps { position: relative; display: block; }
.fps__btn {
    display: flex; align-items: center; gap: 10px; width: 100%; height: var(--fps-h, 48px); padding: 0 12px; margin: 0;
    border: 1px solid var(--fps-border, rgba(255, 255, 255, 0.12)); border-radius: var(--fps-radius, 4px); background: var(--fps-bg, rgba(255, 255, 255, 0.03));
    color: #fff; font: inherit; font-size: 14px; font-weight: 800; line-height: 1; text-align: left; cursor: pointer; box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.fps__btn:hover { border-color: rgba(255, 255, 255, 0.24); }
.fps__btn.is-open, .fps__btn:focus-visible { border-color: rgba(255, 179, 26, 0.72); box-shadow: 0 0 0 3px rgba(255, 179, 26, 0.1); outline: none; }
.fps__flag { flex: 0 0 28px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 20px; overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.fps__flag svg { display: block; width: 100%; height: 100%; }
.fps__flag--globe { background: rgba(255, 255, 255, 0.06); color: #aeb8c6; }
.fps__flag--globe svg { width: 15px; height: 15px; }
.fps__label { flex: 1 1 auto; min-width: 0; white-space: nowrap; }
.fps__chev { flex: 0 0 auto; color: #8d97a6; transition: transform .15s ease, color .15s ease; }
.fps__btn.is-open .fps__chev { transform: rotate(180deg); color: #ffb31a; }

.fps__panel {
    position: fixed; z-index: 2147483000; display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; background: #1c1c1c; color: #f8fafc; box-shadow: 0 22px 48px -14px rgba(0, 0, 0, 0.7);
    font-family: inherit; text-align: left;
}
.fps__panel[hidden] { display: none; }
.fps__searchwrap { flex: 0 0 auto; padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: #1c1c1c; }
.fps__search { display: block; width: 100%; height: 38px; margin: 0; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; background: #121212; color: #f8fafc; font: inherit; font-size: 13.5px; outline: none; box-shadow: none; }
.fps__search::placeholder { color: #8d97a6; }
.fps__search:focus { border-color: #ffb31a; box-shadow: 0 0 0 3px rgba(255, 179, 26, 0.14); }
.fps__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
.fps__opt { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 10px 11px; border: 0; border-radius: 8px; background: transparent; color: #f8fafc; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.fps__opt[hidden] { display: none; }
.fps__opt:hover { background: rgba(255, 189, 36, 0.12); color: #ffb31a; }
.fps__opt.is-selected { color: #ffb31a; font-weight: 800; }
.fps__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fps__dial { flex: 0 0 auto; color: #8d97a6; font-weight: 700; font-variant-numeric: tabular-nums; }
.fps__opt.is-selected .fps__dial, .fps__opt:hover .fps__dial { color: inherit; }
.fps__empty { padding: 14px 10px; color: #8d97a6; font-size: 13px; text-align: center; }
.fps__empty[hidden] { display: none; }
