/* Phone number field with a country-code picker (views/partials/phone-field.ejs) */
.phone-field { position: relative; }
.phone-cc {
  position: absolute; left: 14px; top: 0; bottom: 0; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: 0; border: 0; background: transparent; color: var(--bv-text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.phone-cc img { width: 22px; height: 16px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.phone-cc .ti { font-size: 12px; color: var(--bv-muted); transition: transform .15s; }
.phone-field.open .phone-cc .ti { transform: rotate(180deg); }
.phone-cc:focus-visible { outline: 2px solid var(--bv-primary); outline-offset: 3px; border-radius: 4px; }
.phone-field .form-control.phone-input { padding-left: 104px; } /* phone.js adjusts this to the dial code's width */

.phone-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; overflow: hidden;
  background: var(--bv-card); border: 1px solid var(--bv-border); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}
[data-theme="dark"] .phone-menu { background: #161C28; border-color: #2B3346; box-shadow: 0 22px 50px rgba(0, 0, 0, .6); }
.phone-search { position: relative; border-bottom: 1px solid var(--bv-border); }
.phone-search .ti { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--bv-muted); font-size: 17px; pointer-events: none; }
.phone-search input {
  width: 100%; border: 0; outline: none; background: transparent; color: var(--bv-text);
  padding: 12px 14px 12px 44px; font: inherit; font-size: 15.5px;
}
.phone-search input::placeholder { color: var(--bv-muted); }
.phone-list { list-style: none; margin: 0; padding: 4px 0; max-height: 238px; overflow-y: auto; overscroll-behavior: contain; }
.phone-list li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer; color: var(--bv-text); font-size: 15.5px; line-height: 1.3; }
.phone-list li[hidden] { display: none; }
.phone-list li img { width: 24px; height: 18px; border-radius: 2px; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.phone-list li span { flex: 1; min-width: 0; }
.phone-list li .ti { font-size: 19px; color: var(--bv-text); opacity: .72; visibility: hidden; }
.phone-list li.is-active { background: var(--bv-surface-2); }
.phone-list li[aria-selected="true"] { background: rgba(249, 11, 11, .12); }
[data-theme="dark"] .phone-list li[aria-selected="true"] { background: rgba(249, 11, 11, .16); }
.phone-list li[aria-selected="true"] .ti { visibility: visible; }
.phone-empty { padding: 14px; color: var(--bv-muted); font-size: 14px; }
