
.phoneField {
  display: flex;
}

.phoneField.hasWarning > .flag, .phoneField.hasWarning * .select select {
  border-color: #b42c01;
}

.phoneField .phoneSide, .phoneField .countries .select, .phoneField .flag {
  display: inline-block;
  border-radius: 0.25rem 0 0 0.25rem;
  border-right: none !important;
  margin-top: 0.3125rem;
  background-color: #fff;
}

.phoneField .flag {
  border-radius: 0.25rem 0 0 0.25rem;
  border-right: none !important;
  margin-top: 0.3125rem;
  padding: 0.75rem 0.938rem;
  border: 0.0625rem solid #8e9092;
}

.phoneField .flag span {
  width: 2rem;
  height: 1.375rem;
  vertical-align: middle;
}

.phoneField .countries {
  position: relative;
}

.phoneField .countries .select {
  width: 4.875rem;
  height: 3.125rem;
  padding: 0;
}

.phoneField .countries .select select {
  position: absolute;
  padding-top: 3rem;
  padding-bottom: 0;
  height: 3rem;
  overflow: hidden;
  width: 100%;
  z-index: 2;
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  border-right: none !important;
}

.phoneField .countries .select select:active, .phoneField .countries .select select:focus {
  outline-offset: -0.375rem !important;
}

.phoneField .countries .prefix {
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  left: 0.625rem;
  width: 2.5rem;
  text-align: center;
}

.phoneField .phone {
  margin-top: 0.3125rem;
  display: inline-block;
  position: relative !important;
  width: 100%;
}

.phoneField .phone input:not(:last-child) {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

.phoneField .phone .prefix {
  position: absolute;
  height: 100%;
  padding: 0.625rem;
  display: flex;
  align-items: center;
  top: 0;
  bottom: 0;
  left: 0;
  font-size: 1rem;
}