.uf-phone {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.uf-phone-country {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-width: 96px;
  padding: 11px 12px;
  border: 1px solid #D8E8F2;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: #fff;
  color: #212B3B;
  cursor: pointer;
  font: 400 14px/1.4 'DM Sans', sans-serif;
}

.uf-phone-country:focus-visible,
#wizard-body .uf-phone-national:focus,
#wizard-body .uf-phone-search:focus {
  border-color: #24ACE4;
  box-shadow: 0 0 0 3px rgba(36, 172, 228, .18);
  outline: 0;
}

#wizard-body .uf-phone-national {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  border-radius: 0 4px 4px 0;
  font-size: 16px;
}

.uf-phone-pop {
  position: absolute;
  z-index: 50;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid #D8E8F2;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(33, 43, 59, .15);
}

#wizard-body .uf-phone-search {
  width: calc(100% - 20px);
  margin: 10px;
  font-size: 16px;
}

.uf-phone-list {
  max-height: 256px;
  margin: 0;
  padding: 0 0 6px;
  overflow-y: auto;
  list-style: none;
}

.uf-phone-opt {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  color: #6B7A8D;
  cursor: pointer;
  font-size: 14px;
}

.uf-phone-opt:hover,
.uf-phone-opt[aria-selected="true"] {
  background: #EAF6FD;
  color: #212B3B;
}

.uf-phone-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  color: #212B3B;
  font-size: 16px;
  font-weight: 600;
}

.uf-phone-code {
  white-space: nowrap;
  color: #212B3B;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .uf-phone-pop {
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .uf-phone-list {
    max-height: calc(60vh - 66px);
    -webkit-overflow-scrolling: touch;
  }
}
