/* Phone field with a country picker (flag + dial code). Used with assets/js/phone-code.js. */
.pc { position: relative; }
.pc__row { display: flex; align-items: stretch; border: 1px solid #8a97a8; border-radius: 4px; background: #fff; }
.pc__row:focus-within { outline: 3px solid var(--navy); outline-offset: 1px; }
.has-error .pc__row { border: 2px solid #b3261e; }

.pc__btn { display: flex; flex: none; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border: 0; border-right: 1px solid #c9d2e0; border-radius: 3px 0 0 3px; background: #fff; color: var(--navy); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.pc__btn:hover { background: #eef3fa; }
.pc__btn:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
.pc__dial { font-variant-numeric: tabular-nums; }
.pc__chev { flex: none; color: #4f6076; }
.pc__btn[aria-expanded="true"] .pc__chev { transform: rotate(180deg); }

.pc__flag { flex: none; width: 24px; height: 18px; border-radius: 2px; outline: 1px solid rgba(0, 41, 85, .2); outline-offset: -1px; object-fit: cover; }

.insc-field .pc__local { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 0; border-radius: 0 3px 3px 0; background: transparent; }
.insc-field .pc__local:focus-visible { outline: 0; }

.pc__pop { position: absolute; z-index: 30; top: calc(100% + 4px); right: 0; left: 0; overflow: hidden; border: 1px solid #8a97a8; border-radius: 4px; background: #fff; box-shadow: 0 10px 28px rgba(0, 41, 85, .16); }
.pc__pop[hidden] { display: none; }
.pc__search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid #c9d2e0; color: #4f6076; }
.pc__search:focus-within { box-shadow: inset 0 0 0 2px var(--navy); }
.insc-field .pc__q { flex: 1; min-width: 0; min-height: 46px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 16px; }
.insc-field .pc__q:focus-visible { outline: 0; }
.pc__list { position: relative; max-height: min(260px, 40vh); margin: 0; padding: 4px; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.pc__list[hidden] { display: none; }
.pc__list:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
.pc__none { margin: 0; padding: 14px 12px; color: #4f6076; font-size: 15px; }
.pc__none[hidden] { display: none; }
.pc__opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 3px; color: #000; font-size: 16px; cursor: pointer; }
.pc__opt[aria-selected="true"] { background: #e4ecf8; font-weight: 600; }
.pc__opt[hidden] { display: none; }
.pc__opt.is-active { background: #d5e1f5; }
.pc__opt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc__opt-dial { flex: none; color: #4f6076; font-variant-numeric: tabular-nums; }

@media (max-width: 480px) {
	.pc__btn { gap: 6px; padding: 0 10px; }
}
