/* Phone code + flag picker (phone-code.js) */
.pc-wrap { display: flex; align-items: stretch; gap: 8px; width: 100%; }
.pc-wrap > .pc-input { flex: 1 1 auto; min-width: 0; width: auto; }
.pc-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 0 10px; min-height: 44px;
  font: inherit; font-size: 14px; color: #3a2a1c;
  background: #fffdf8; border: 1.5px solid #e6d9c4; border-radius: 10px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.pc-btn:hover, .pc-btn[aria-expanded="true"] { border-color: #7a4b2a; }
.pc-btn:focus-visible { outline: 2px solid #7a4b2a; outline-offset: 2px; }
.pc-flag { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.pc-code { font-weight: 600; white-space: nowrap; }
.pc-caret { font-size: 11px; opacity: .6; }

.pc-panel {
  position: fixed; z-index: 100000;
  background: #fff; border: 1px solid #e6d9c4; border-radius: 12px;
  box-shadow: 0 14px 40px rgba(60, 35, 15, .22);
  overflow: hidden;
}
.pc-panel[hidden] { display: none; }
.pc-search {
  display: block; width: 100%; box-sizing: border-box;
  padding: 11px 14px; font: inherit; font-size: 14px;
  border: 0; border-bottom: 1px solid #efe4d2; outline: none; background: #fffdf8;
}
.pc-list { list-style: none; margin: 0; padding: 4px; max-height: 260px; overflow-y: auto; }
.pc-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: #3a2a1c; }
.pc-item:hover, .pc-item.is-selected { background: #f6ecdd; }
.pc-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-dial { flex: none; color: #8a7561; font-variant-numeric: tabular-nums; }
.pc-empty { padding: 14px; text-align: center; color: #8a7561; font-size: 13px; }

@media (max-width: 420px) {
  .pc-btn { padding: 0 8px; gap: 4px; font-size: 13px; }
}
