/* ── Nationality picker — mirrors intl-tel-input dropdown design ── */

/* Dropdown panel — fixed to viewport so it's never clipped */
.nationality-dropdown {
  position: fixed;
  z-index: 99999;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* Search wrapper */
.nationality-search-wrapper {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  padding: 14px 16px;
  gap: 8px;
  background: #FAFAFA;
}

.nationality-search {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 15px;
  color: #272B3A;
  min-width: 0;
  text-align: start;
}

.nationality-search:focus {
  outline: none;
  box-shadow: none;
}

.nationality-search::placeholder {
  color: #A7A8AA;
}

/* Divider after search */
.nationality-divider {
  height: 2px;
  background: #272B3A;
  margin: 0 16px;
}

/* Country list */
.nationality-list {
  max-height: 280px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #D2D6DB transparent;
}

.nationality-list::-webkit-scrollbar {
  width: 5px;
}

.nationality-list::-webkit-scrollbar-track {
  background: transparent;
}

.nationality-list::-webkit-scrollbar-thumb {
  background: #D2D6DB;
  border-radius: 10px;
}

/* Individual country option */
.nationality-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  direction: inherit;
}

.nationality-option:hover {
  background: #F3F4F6;
}

.nationality-option[aria-selected="true"] {
  background: #F0FDF4;
}

/* Flag emoji in option */
.nationality-option-flag {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

/* Country name */
.nationality-option-name {
  font-size: 15px;
  color: #272B3A;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Check icon */
.nationality-option-check {
  flex-shrink: 0;
}

/* Priority countries divider */
.nationality-priority-divider {
  border-bottom: 1px solid #E5E7EB;
  margin: 4px 0;
  padding: 0;
  list-style: none;
}

/* Trigger display — selected flag */
#nationality-flag:empty {
  display: none;
}
