.affiliate-registration-phone-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  direction: ltr;
}

.affiliate-registration-phone-row > input[type="tel"] {
  flex: 1 1 0;
  min-width: 0;
}

.affiliate-country-picker {
  position: relative;
  flex: 0 0 116px;
  width: 116px;
}

.affiliate-country-dropdown {
  position: relative;
  width: 100%;
}

.affiliate-country-dropdown > summary {
  list-style: none;
}

.affiliate-country-dropdown > summary::-webkit-details-marker {
  display: none;
}

.affiliate-country-trigger {
  display: flex;
  width: 100%;
  height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
  padding: 0 0.45rem;
  border: 1px solid rgba(48, 39, 68, 0.14);
  border-radius: 0.75rem;
  background: rgba(48, 39, 68, 0.04);
  color: #302744;
  cursor: pointer;
  font-size: 0.8rem;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.affiliate-country-trigger:focus-visible,
.affiliate-country-dropdown[open] > .affiliate-country-trigger {
  border-color: #c7a34f;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(199, 163, 79, 0.16);
  outline: none;
}

.affiliate-country-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.affiliate-country-dial {
  flex: 0 0 auto;
  font-weight: 700;
}

.affiliate-country-chevron {
  flex: 0 0 auto;
  color: #8c7440;
  font-size: 0.9rem;
}

.affiliate-country-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 0.35rem);
  left: 0;
  width: min(17rem, calc(100vw - 2rem));
  max-height: 17rem;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid rgba(48, 39, 68, 0.14);
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(30, 23, 45, 0.18);
  direction: rtl;
}

.affiliate-country-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: #302744;
  cursor: pointer;
  font: inherit;
  text-align: right;
}

.affiliate-country-option:hover,
.affiliate-country-option:focus-visible {
  background: rgba(199, 163, 79, 0.12);
  outline: none;
}

.affiliate-country-option-code {
  direction: ltr;
  font-size: 0.85rem;
  font-weight: 700;
}
