input.digiphone {
  display: none;
}

.digiphone:not(input) {
  user-select: none;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  /* color: rgb(0, 0, 69); */
  font-size: 15px;
  font-weight: 600;
  /* text-overflow: ellipsis;
    text-wrap: nowrap;
    overflow: hidden; */
  display: flex;
  justify-content: space-between;
}

.digiphone:not(input) .field {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  /* border: 1px solid var(--bs-border-color); */
  border-radius: 10px;
  font-weight: 400;
}

.digiphone:not(input) .field>span {
  cursor: pointer;
  height: 100%;
  min-width: 54px;
  height: 24px;
  background-image: url('../img/flags-list.webp');
  padding-right: 24px;
  background-repeat: no-repeat;
}

.digiphone:not(input) .field>span::before {
  content: "";
  position: absolute;
  left: 53px;
  top: 50%;
  transform: translate(0, -50%);
  border-color: black transparent;
  border-style: solid;
  border-width: 6px 6px 0 6px;
}

.digiphone:not(input) .field>span>span:not(:nth-child(1)) {
  margin-left: 8px;
}

.digiphone:not(input) .field>input {
  outline: none;
  border: none;
  flex: 1;
  /* padding: 5px 0px; */
  font-size: 16px;
  background: transparent;
  min-height: auto;
}

.digiphone:not(input) .field>input:focus {
  color: var(--bs-primary);
}

/* Chrome, Safari, Edge, Opera */
.digiphone:not(input) .field>input::-webkit-outer-spin-button,
.digiphone:not(input) .field>input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.digiphone:not(input) .field>input {
  -moz-appearance: textfield;
}

.digiphone ul {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style-type: none;
  position: absolute;
  left: 0;
  top: 50px;
  z-index: 2;
  max-height: 200px;
  display: none;
  border: 1px solid #d9dce6;
  border-radius: 8px;
  background-color: white;
  overflow: auto;
  overflow-x: hidden;
}

/* width */
.digiphone ul::-webkit-scrollbar {
  width: 10px;
}

/* Handle */
.digiphone ul::-webkit-scrollbar-thumb {
  /* background: #d9dce6 padding-box; */
  border: 2px solid rgba(97, 10, 10, 0);
  background-clip: padding-box;
  background-color: #ddd;
}

.digiphone ul li {
  padding: 10px;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  border-bottom: 1px solid #eee;
}

.digiphone ul li:hover {
  background-color: #f0f1f5;
}

.digiphone ul li span {
  display: block;
  text-align: start;
  font-weight: 400;
}

.digiphone ul li span img,
.digiphone .field img {
  max-width: max-content;
}

.digiphone ul li span:nth-child(1) {
  position: relative;
  padding-left: 30px;
}

.digiphone ul li span:nth-child(1)::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 0;
  top: 50%;
  transform: translate(0, -50%);
  background-image: url('../img/flags-list.webp');
}

.digiphone ul li:nth-child(2) span:nth-child(1)::before {
  background-position: 0 -24px;
}

.digiphone ul li:nth-child(3) span:nth-child(1)::before {
  background-position: 0 -48px;
}

.digiphone ul li:nth-child(4) span:nth-child(1)::before {
  background-position: 0 -72px;
}

.digiphone ul li:nth-child(5) span:nth-child(1)::before {
  background-position: 0 -96px;
}

.digiphone ul li:nth-child(6) span:nth-child(1)::before {
  background-position: 0 -120px;
}

.digiphone ul li:nth-child(7) span:nth-child(1)::before {
  background-position: 0 -144px;
}

.digiphone ul li:nth-child(8) span:nth-child(1)::before {
  background-position: 0 -168px;
}

.digiphone ul li:nth-child(9) span:nth-child(1)::before {
  background-position: 0 -192px;
}

.digiphone ul li:nth-child(10) span:nth-child(1)::before {
  background-position: 0 -216px;
}

.digiphone ul li:nth-child(11) span:nth-child(1)::before {
  background-position: 0 -240px;
}

.digiphone ul li:nth-child(12) span:nth-child(1)::before {
  background-position: 0 -264px;
}

.digiphone ul li:nth-child(13) span:nth-child(1)::before {
  background-position: 0 -288px;
}

.digiphone ul li:nth-child(14) span:nth-child(1)::before {
  background-position: 0 -312px;
}

.digiphone ul li:nth-child(15) span:nth-child(1)::before {
  background-position: 0 -336px;
}

.digiphone ul li:nth-child(16) span:nth-child(1)::before {
  background-position: 0 -360px;
}

.digiphone ul li:nth-child(17) span:nth-child(1)::before {
  background-position: 0 -384px;
}

.digiphone ul li:nth-child(18) span:nth-child(1)::before {
  background-position: 0 -408px;
}

.digiphone ul li:nth-child(19) span:nth-child(1)::before {
  background-position: 0 -432px;
}

.digiphone ul li:nth-child(20) span:nth-child(1)::before {
  background-position: 0 -456px;
}

.digiphone ul li:nth-child(21) span:nth-child(1)::before {
  background-position: 0 -480px;
}

.digiphone ul li:nth-child(22) span:nth-child(1)::before {
  background-position: 0 -504px;
}

.digiphone ul li:nth-child(23) span:nth-child(1)::before {
  background-position: 0 -528px;
}

.digiphone ul li:nth-child(24) span:nth-child(1)::before {
  background-position: 0 -552px;
}

.digiphone ul li:nth-child(24) span:nth-child(1)::before {
  background-position: 0 -576px;
}

.digiphone ul li:nth-child(26) span:nth-child(1)::before {
  background-position: 0 -600px;
}

.digiphone ul li:nth-child(27) span:nth-child(1)::before {
  background-position: 0 -624px;
}

.digiphone ul li:nth-child(28) span:nth-child(1)::before {
  background-position: 0 -648px;
}

.digiphone ul li:nth-child(29) span:nth-child(1)::before {
  background-position: 0 -672px;
}

.digiphone ul li:nth-child(30) span:nth-child(1)::before {
  background-position: 0 -696px;
}




.digiphone ul li span:nth-child(2) {
  padding: 0 0 0 15px;
}

.digiphone ul li span:nth-child(3) {
  flex: 0 1 auto;
}