/* IPD country / city / phone dial picker */
.ipd-phone {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  overflow: visible;
}

.ipd-phone:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.ipd-phone__dial {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.7rem 0.65rem 0.7rem 0.85rem;
  border: 0;
  border-inline-end: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space:nowrap;
}

.ipd-phone__dial:hover {
  background: #f1f5f9;
}

.ipd-phone__flag {
  font-size: 1.15rem;
  line-height: 1;
}

.ipd-phone__code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.ipd-phone__chev {
  opacity: 0.45;
  font-size: 0.7rem;
}

.ipd-phone__national {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  border-radius: 0 0.75rem 0.75rem 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0.7rem 0.9rem !important;
  font: inherit;
  font-size: 0.875rem;
  background: transparent !important;
}

.ipd-phone__panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.ipd-phone__panel[hidden] {
  display: none !important;
}

.ipd-phone__search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  outline: none;
}

.ipd-phone__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  overflow: auto;
  max-height: 220px;
}

.ipd-phone__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  padding: 0.55rem 0.65rem;
  text-align: start;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  color: #0f172a;
}

.ipd-phone__item:hover,
.ipd-phone__item.is-active {
  background: #e0f2fe;
}

.ipd-phone__item-name {
  flex: 1 1 auto;
  font-weight: 600;
}

.ipd-phone__item-dial {
  color: #64748b;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ipd-geo-combo {
  position: relative;
}

.ipd-geo-combo__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 42px;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  text-align: start;
  cursor: pointer;
}

.ipd-geo-combo__trigger:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.ipd-geo-combo__value {
  color: #212529;
}

.ipd-geo-combo__value.is-placeholder {
  color: #6c757d;
}

.ipd-geo-combo__panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  max-height: 280px;
  border: 1px solid #ced4da;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.ipd-geo-combo__panel[hidden] {
  display: none !important;
}

.ipd-geo-combo__search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e9ecef;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.ipd-geo-combo__list {
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  overflow: auto;
  max-height: 220px;
}

.ipd-geo-combo__item {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  padding: 0.55rem 0.65rem;
  text-align: start;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

.ipd-geo-combo__item:hover,
.ipd-geo-combo__item.is-active {
  background: #e7f1ff;
}

.ipd-geo-combo__empty {
  padding: 0.75rem;
  color: #6c757d;
  font-size: 0.85rem;
}
