/* Shared phone field: the input stays LTR; the page around it stays RTL. */
.iti {
  width: 100%;
  direction: ltr;
}

.iti__tel-input {
  width: 100%;
  direction: ltr;
  text-align: left;
  font-family: "Inter", "Cairo", system-ui, sans-serif;
}

.iti__tel-input::placeholder {
  color: #5b6b80;
  opacity: 1;
}

.iti--separate-dial-code .iti__selected-dial-code {
  font-family: "Inter", "Cairo", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.iti__selected-country {
  min-height: 48px;
  border-start-start-radius: 10px;
  border-end-start-radius: 10px;
}

.iti__selected-country:focus-visible {
  outline: 2px solid var(--primary, #1c398e);
  outline-offset: 1px;
}

.iti__country-list {
  direction: rtl;
  text-align: right;
  max-height: min(340px, 60vh);
}

.iti__country-name {
  text-align: right;
}

.iti__search-input {
  direction: rtl;
  text-align: right;
}

.iti__dial-code {
  direction: ltr;
  unicode-bidi: isolate;
}

.phone-field__input {
  direction: ltr !important;
  text-align: left !important;
}

@media (max-width: 480px) {
  .iti__country-list {
    width: min(360px, 92vw);
  }
}
