.order-popup__phone-row {
  display: flex;
  align-items: stretch;
  position: relative;
}

.order-popup__phone-row input {
  min-width: 0;
  flex: 1;
}

.order-popup__country {
  flex: none;
  text-align: left;
  border: 1px solid #ccc;
  border-right: none;
}

.order-popup__country summary,
.order-popup__country-options button {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #282828;
  font: inherit;
  cursor: pointer;
}

.order-popup__country summary {
  height: 100%;
  padding: 0 10px;
  border-right: 0;
  background: #f7f7f7;
  white-space: nowrap;
  list-style: none;
}

.order-popup__country summary::-webkit-details-marker {
  display: none;
}

.order-popup__country summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  margin-left: 2px;
  margin-top: -4px;
}

.order-popup__country img {
  flex: none;
  object-fit: contain;
}

.order-popup__country img[data-missing] {
  visibility: hidden;
}

.order-popup__country-options {
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 0;
  width: min(300px, 78vw);
  max-height: min(230px, 34vh);
  overflow: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid #ccc;
  background: #fff;
  box-shadow: 0 5px 15px rgb(0 0 0 / 14%);
  width: calc(100% - 10px);
  border-top: none;
}

.order-popup__country-options li{
    width: calc(100% - 20px);
}

.order-popup__country-options li button {
    width: 100%;
}

.order-popup__country-options button {
  width: 100%;
  padding: 8px;
  border: 0;
  background: #fff;
  text-align: left;
}

.order-popup__country-options button:hover,
.order-popup__country-options button:focus-visible,
.order-popup__country-options button[aria-current="true"] {
  background: #fff3ce;
}

.order-popup__text .order-popup__error {
  position: static;
}

.order-popup__text .order-popup__submit {
  margin-top: 12px;
}
