/* Searchable country picker and quiet self-report action. */
.country-picker {
  position: relative;
}

#countrySearch {
  width: 220px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  padding: 0 11px;
  font: 14px inherit;
  outline: none;
}

#countrySearch:focus {
  border-color: var(--ink);
  background: #fff;
}

.country-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  left: 0;
  width: min(320px, 90vw);
  max-height: 280px;
  overflow: auto;
  padding: 4px;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px #00000014;
}

.country-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 9px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
}

.country-option:hover,
.country-option.selected {
  background: #f5f5f7;
}

.country-option small {
  color: var(--sub);
  font-size: 10px;
}

@media (max-width: 760px) {
  #countrySearch {
    width: 100%;
    height: 44px;
  }

  .country-options {
    width: 100%;
  }
}
