.rcs-country-field {
  position: relative;
}

.rcs-country-typeahead {
  position: fixed;
  /* Above pilot snapshot / hangar survey modals (1200–1250); below toasts/nav sheets */
  z-index: 2100;
  margin: 0;
  border: 1px solid var(--rcs-border, rgba(148, 163, 184, 0.35));
  border-radius: 8px;
  background: var(--rcs-panel, #111827);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  max-height: 240px;
  overflow-x: hidden;
  overflow-y: auto;
}

.rcs-country-typeahead__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--rcs-border, rgba(148, 163, 184, 0.15));
  background: transparent;
  color: var(--rcs-text, #f9fafb);
  text-align: left;
  cursor: pointer;
}

.rcs-country-typeahead__item:last-child {
  border-bottom: 0;
}

.rcs-country-typeahead__item:hover,
.rcs-country-typeahead__item:focus-visible {
  background: color-mix(in srgb, var(--rcs-accent, #38bdf8) 12%, transparent);
  outline: none;
}

.rcs-country-typeahead__label {
  font-size: 0.92rem;
  font-weight: 600;
}

.rcs-country-typeahead__hint {
  font-size: 0.75rem;
  color: var(--rcs-muted, #94a3b8);
}

[data-theme="light"] .rcs-country-typeahead {
  background: var(--rcs-panel, #fff);
}
