/* Stacked country combobox + national number. Search lives only inside the open listbox. */
.phone-control{
  display:flex;flex-direction:column;gap:.55rem;
  width:100%;min-width:0;max-width:100%;position:relative;
}
.phone-control [data-phone-country],
.phone-control .phone-country-btn,
.phone-control input[name=phone],
.phone-control input#phone{
  width:100%;max-width:100%;min-width:0;box-sizing:border-box;
  height:2.75rem;min-height:2.75rem;margin:0;
  border:1px solid #aaa;border-radius:10px;
  background:#fff;color:inherit;
  font:15px/1.3 system-ui,-apple-system,Segoe UI,sans-serif;
  padding:.55rem .8rem;
}
.phone-control .phone-country-btn{
  display:flex;align-items:center;justify-content:space-between;gap:.5rem;
  text-align:left;cursor:pointer;font-weight:600;
}
.phone-control .phone-country-btn::after{content:"▾";opacity:.7;font-size:.85em}
.phone-country-select-hidden{
  position:absolute !important;width:1px !important;height:1px !important;
  overflow:hidden !important;clip:rect(0 0 0 0);clip-path:inset(50%);
  border:0 !important;padding:0 !important;margin:0 !important;
}
.phone-country-ui{position:relative;width:100%;}
.phone-country-panel{
  position:absolute;z-index:40;left:0;right:0;top:calc(100% + 4px);
  width:100%;max-height:18rem;overflow:hidden;
  display:flex;flex-direction:column;
  background:#fff;border:1px solid #c5bdb5;border-radius:10px;
  box-shadow:0 10px 28px #22130f33;
}
.phone-country-panel[hidden]{display:none !important}
.phone-country-search{
  width:100%;box-sizing:border-box;flex:0 0 auto;
  border:0;border-bottom:1px solid #e2e5ea;border-radius:0;
  padding:.65rem .8rem;height:2.5rem;min-height:2.5rem;
  font:15px/1.3 system-ui,sans-serif;background:#fff;
}
.phone-country-list{list-style:none;margin:0;padding:.25rem 0;overflow:auto;max-height:14rem}
.phone-country-list li{padding:.5rem .8rem;cursor:pointer;font-size:.9rem}
.phone-country-list li:hover,
.phone-country-list li[aria-selected=true]{background:#fff6ea}
.phone-control input[name=phone]::placeholder{opacity:.65}
