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

.snx-phone__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: #fff;
  color: #222;
  line-height: 1;
  cursor: pointer;
}

.snx-phone__btn:focus {
  outline: none;
}

.snx-phone__btn:focus-visible {
  outline: 2px solid #222;
  outline-offset: 2px;
}

.snx-phone > .form-control {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.snx-phone__flag {
  display: block;
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.snx-phone__dial,
.snx-phone__code {
  font-variant-numeric: tabular-nums;
}

.snx-phone__menu {
  position: fixed;
  z-index: 4000;
  max-height: 240px;
  margin: 0;
  padding: 4px;
  overflow: auto;
  list-style: none;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.snx-phone__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.snx-phone__item:hover,
.snx-phone__item.is-active {
  background: #f3f3f3;
}

.snx-phone__name {
  flex: 1 1 auto;
  min-width: 0;
}

.snx-phone__code {
  color: #666;
}

@media (max-width: 576px) {
  .snx-phone__menu {
    max-height: 210px;
  }

  .snx-phone__btn {
    padding: 0 8px;
  }
}
