/* Phone / WhatsApp country-code selector — loaded only on pages with a phone field */
.ph{display:flex;gap:.4rem;align-items:stretch;width:100%;position:relative}
.ph-cc{position:relative;flex:0 0 auto}
.ph-sel{position:absolute;inset:0;opacity:0;width:100%;height:100%;z-index:1;cursor:pointer;font:inherit}
.ph.has-js .ph-sel{pointer-events:none;width:1px;height:1px;opacity:0;inset:auto}
.ph-cc-btn{display:none;align-items:center;gap:.35rem;min-height:44px;padding:.55em .7em;border:1px solid #d9cdbb;border-radius:8px;background:#fff;font:inherit;color:inherit;cursor:pointer;white-space:nowrap}
.ph.has-js .ph-cc-btn{display:inline-flex;position:relative;z-index:2}
.ph-flag{font-size:1.2em;line-height:1}
.ph-dial{font-weight:600;font-variant-numeric:tabular-nums}
.ph-caret{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid var(--muted,#6e6260);margin-left:.15rem}
.ph-cc-btn[aria-expanded="true"] .ph-caret{transform:rotate(180deg)}
.ph-num{flex:1 1 auto;min-width:0;padding:.65em .8em;border:1px solid #d9cdbb;border-radius:8px;font:inherit;background:#fff;width:100%}
.fld.bad .ph-cc-btn,.fld.bad .ph-num,.fld.bad .ph-sel{border-color:#b3261e}
.ph-pop{position:absolute;left:0;top:calc(100% + 4px);z-index:40;width:min(22rem,70vw);max-width:calc(100vw - 40px);background:#fff;border:1px solid var(--line,#eadfc9);border-radius:10px;box-shadow:0 10px 30px #2b2a2e26;padding:.4rem;display:flex;flex-direction:column}
.ph-pop[hidden]{display:none}
.ph-search{width:100%;padding:.6em .7em;border:1px solid #d9cdbb;border-radius:8px;font:inherit;margin-bottom:.35rem}
.ph-list{list-style:none;margin:0;padding:0;max-height:16rem;overflow:auto;-webkit-overflow-scrolling:touch}
.ph-list li{margin:0}
.ph-opt,.ph-sep{display:flex;align-items:center;gap:.55rem;width:100%;text-align:left;padding:.55em .6em;border:0;background:none;font:inherit;color:inherit;cursor:pointer;border-radius:6px;min-height:44px}
.ph-opt:hover,.ph-opt:focus,.ph-opt[aria-selected="true"]{background:#faf4e8;outline:none}
.ph-opt .ph-oname{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ph-opt .ph-odial{color:var(--muted,#6e6260);font-variant-numeric:tabular-nums;margin-left:auto}
.ph-sep{cursor:default;color:var(--muted,#6e6260);font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;min-height:auto;padding:.35em .6em;pointer-events:none}
.ph-empty{padding:.8em .6em;color:var(--muted,#6e6260);margin:0;font-size:.9rem}
.fld .ph-num:focus,.ph-cc-btn:focus,.ph-search:focus{outline:2px solid var(--gold,#b8862b);outline-offset:1px}
@media(max-width:520px){
  .ph-pop{width:100%;min-width:0;left:0;right:0}
  .ph-cc{flex:0 0 auto}
}
