/* Searchable country-code phone input (scripts/phone-input.js). */
.phone-input {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  direction: ltr;
}

.phone-input-original {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  padding: 0;
}

.phone-input-cc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #dcdfe8;
  border-radius: 10px;
  background: #fff;
  color: #14204a;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.phone-input-flag {
  font-size: 17px;
  line-height: 1;
}

.phone-input-national {
  flex: 1 1 140px;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #dcdfe8;
  border-radius: 10px;
  background: #fff;
  color: #14204a;
  font: inherit;
  font-size: 0.85rem;
}

.phone-input-cc:focus-visible,
.phone-input-national:focus {
  border-color: #c1a161;
  outline: none;
}

.phone-input-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  width: min(320px, 90vw);
  padding: 10px;
  border: 1px solid #dfe3ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 55px rgb(10 22 52 / 18%);
}

.phone-input-search {
  width: 100%;
  min-height: 40px;
  margin-bottom: 8px;
  padding: 8px 11px;
  border: 1px solid #dcdfe8;
  border-radius: 9px;
  font: inherit;
  font-size: 0.85rem;
}

.phone-input-list {
  max-height: 240px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.phone-input-list button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #14204a;
  font: inherit;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
}

.phone-input-list button:hover,
.phone-input-list [aria-selected="true"] button {
  background: #f7f2e7;
}

.phone-input-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-input-dial {
  color: #7b8396;
  font-variant-numeric: tabular-nums;
}

.phone-input-empty {
  padding: 10px;
  color: #7b8396;
  font-size: 0.78rem;
}

.phone-input-error {
  flex-basis: 100%;
  color: #b43c34;
  font-size: 0.72rem;
  font-weight: 700;
}
