.intl-phone {
  position: relative;
  width: 100%;
  margin: 0 0 2rem;
  font: 400 1.6rem/2.4rem "Roboto", Arial, Helvetica, sans-serif;
  color: #222;
}

.intl-phone__box {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 4.6rem;
  background: #F7F8FB;
  border: 1px solid #F7F8FB;
  border-radius: 5px;
  overflow: hidden;
}

.intl-phone__box:focus-within {
  box-shadow: 0 0 0 2px var(--theme-primary-color, #7266F3);
}

.intl-phone__code {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  border-right: 1px solid #e4ebf1;
}

.intl-phone__dial,
.intl-phone__national,
.intl-phone__search {
  border: 0;
  margin: 0;
  background: transparent;
  color: #222;
  font: inherit;
  line-height: 2.4rem;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.intl-phone__dial {
  width: 7.2rem;
  padding: 1rem 0 1rem 1.2rem;
}

.intl-phone__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  cursor: pointer;
}

.intl-phone__chevron {
  display: block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}

.intl-phone__national {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 1rem 1.2rem;
}

.intl-phone__dial::placeholder,
.intl-phone__national::placeholder,
.intl-phone__search::placeholder {
  color: rgba(34, 34, 34, 0.5);
}

.intl-phone__dial:disabled,
.intl-phone__national:disabled,
.intl-phone__toggle:disabled {
  color: rgba(34, 34, 34, 0.55);
  cursor: default;
}

.intl-phone__meta,
.intl-phone__error {
  margin-top: 0.4rem;
  font-size: 1.3rem;
  line-height: 1.4;
}

.intl-phone__meta:empty,
.intl-phone__error[hidden] {
  display: none;
}

.intl-phone__meta {
  color: rgba(34, 34, 34, 0.72);
}

.intl-phone__error {
  color: #F45656;
}

.intl-phone.is-invalid .intl-phone__box {
  box-shadow: inset 0 0 0 1px #F45656;
}

.intl-phone__source {
  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;
}

.intl-phone__panel {
  z-index: 100000;
  background: #fff;
  border: 1px solid #e4ebf1;
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(34, 34, 34, 0.12);
  overflow: hidden;
}

.intl-phone__search {
  display: block;
  width: 100%;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #e4ebf1;
}

.intl-phone__list {
  max-height: 28rem;
  overflow: auto;
}

.intl-phone__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 0;
  background: #fff;
  color: #222;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.intl-phone__option.is-active,
.intl-phone__option:hover {
  background: #F7F8FB;
}

.intl-phone__option-code {
  flex: 0 0 auto;
  color: rgba(34, 34, 34, 0.62);
}

.intl-phone__empty {
  padding: 1.2rem;
  color: rgba(34, 34, 34, 0.62);
}

@media (max-width: 767px) {
  .intl-phone__dial {
    width: 6.4rem;
    padding-left: 1rem;
  }

  .intl-phone__list {
    max-height: 50vh;
  }
}
