.phone-code {
  position: relative;
  width: 100%;
  display: block;
}

.input-group > .phone-code {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.phone-code__toggle {
  position: absolute;
  z-index: 2;
  top: 1px;
  left: 1px;
  bottom: 1px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid #e4e7ec;
  border-radius: 6px 0 0 6px;
  background: #f8fafc;
  color: #18212e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.phone-code__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #667085;
}

.phone-code__toggle[aria-expanded="true"] .phone-code__caret {
  border-top: 0;
  border-bottom: 5px solid #667085;
}

.phone-code > input {
  width: 100%;
  padding-left: 108px !important;
}

.phone-code__menu {
  position: fixed;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  max-height: 280px;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.16);
  overflow: hidden;
}

.phone-code__menu[hidden] {
  display: none !important;
}

.phone-code__search {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e6eaef;
  padding: 10px 12px;
  font-size: 14px;
  color: #18212e;
  background: #fff;
}

.phone-code__search:focus {
  outline: 2px solid rgba(4, 95, 127, 0.25);
  outline-offset: -2px;
}

.phone-code__list {
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overflow-y: auto;
}

.phone-code__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #18212e;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.phone-code__name {
  min-width: 0;
}

.phone-code__option-dial {
  flex: none;
  color: #667085;
  font-weight: 600;
}

.phone-code__option:hover,
.phone-code__option:focus {
  background: #f3f6f9;
  outline: none;
}

.phone-code__divider {
  height: 1px;
  margin: 4px 0;
  background: #e6eaef;
}

.phone-code__empty {
  padding: 10px 12px;
  color: #667085;
  font-size: 14px;
}

.phone-code-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
