/* Modern country picker for phone fields (see custom/js/phone-picker.js) */
.pp-root { position: fixed; inset: 0; z-index: 2147483000; display: none; }
.pp-root.is-open { display: block; }
.pp-backdrop { position: absolute; inset: 0; background: transparent; }
.pp-root.is-sheet .pp-backdrop { background: rgba(15, 23, 42, .45); animation: ppFade .2s ease; }
.pp-panel { position: fixed; display: flex; flex-direction: column; max-height: 380px; background: #fff; border-radius: 16px;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, .35), 0 0 0 1px rgba(15, 23, 42, .06); overflow: hidden;
    animation: ppPop .16s ease-out; font-family: inherit; }
.pp-root.is-sheet .pp-panel { left: 0 !important; right: 0; bottom: 0 !important; top: auto !important; width: auto !important;
    height: 78vh; max-height: 78vh !important; border-radius: 20px 20px 0 0; animation: ppUp .22s ease-out; }
.pp-head { padding: 12px 12px 8px; border-bottom: 1px solid #eef0f4; }
.pp-grip { display: none; }
.pp-root.is-sheet .pp-grip { display: block; width: 40px; height: 5px; border-radius: 3px; background: #d7dbe3; margin: 0 auto 10px; }
.pp-search { display: flex; align-items: center; gap: 4px; background: #f3f5f9; border-radius: 12px; padding: 0 10px; }
.pp-search svg { width: 18px; height: 18px; fill: #8a94a6; flex: none; }
.pp-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; box-shadow: none;
    padding: 11px 8px; font-size: 16px; color: #111827; }
.pp-search input::-webkit-search-cancel-button { display: none; }
.pp-close { display: none; border: 0; background: transparent; font-size: 26px; line-height: 1; color: #8a94a6; padding: 0 2px; cursor: pointer; }
.pp-root.is-sheet .pp-close { display: block; }
.pp-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.pp-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer;
    color: #111827; font-size: 15px; line-height: 1.3; }
.pp-item.is-active { background: #f1f5ff; }
.pp-item.is-selected { font-weight: 600; }
.pp-item .iti__flag { flex: none; transform: scale(1.15); border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.pp-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-name small { color: #8a94a6; font-weight: 400; margin-left: 4px; font-size: 13px; }
.pp-dial { color: #6b7280; font-size: 14px; font-variant-numeric: tabular-nums; }
.pp-check { width: 18px; height: 18px; fill: #0b49c4; flex: none; }
.pp-sep { height: 1px; background: #eef0f4; margin: 6px 8px; }
.pp-empty { padding: 28px 12px; text-align: center; color: #8a94a6; }
html.pp-lock, html.pp-lock body { overflow: hidden; }
@keyframes ppPop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ppUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ppFade { from { opacity: 0; } to { opacity: 1; } }

/* The flag + dial-code button inside the phone field */
.iti { width: 100%; }
.iti--separate-dial-code .iti__selected-flag { background: transparent !important; border-right: 1px solid #e5e7eb;
    padding: 0 10px 0 12px; border-radius: inherit; transition: background .15s ease; }
.iti--separate-dial-code .iti__selected-flag:hover,
.iti--separate-dial-code .iti__selected-flag:focus { background: #f5f7fb !important; outline: 0; }
.iti--separate-dial-code .iti__selected-dial-code { font-weight: 600; color: #111827; margin-left: 8px; }
.iti__arrow { margin-left: 8px; border-top-color: #6b7280; }
.iti__arrow--up { border-bottom-color: #6b7280; }
