/* Searchable country combobox — registration, profile, console setup */
.tt-country-select {
  position: relative;
  width: 100%;
}

.tt-country-select__control {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(107, 76, 58, 0.28);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tt-country-select.is-open .tt-country-select__control,
.tt-country-select__control:focus-within {
  border-color: rgba(234, 88, 12, 0.55);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.tt-country-select__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  background: #fff7ed;
  border-right: 1px solid rgba(107, 76, 58, 0.12);
}

.tt-country-select__search {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0.55rem 0.65rem !important;
  font-size: 0.9rem !important;
}

.tt-country-select__toggle {
  flex: 0 0 auto;
  width: 2.35rem;
  border: 0;
  background: #fafaf9;
  color: #5c4d43;
  cursor: pointer;
  border-left: 1px solid rgba(107, 76, 58, 0.12);
}

.tt-country-select__toggle:hover {
  background: #fff7ed;
  color: #c2410c;
}

.tt-country-select.is-open .tt-country-select__toggle i {
  transform: rotate(-180deg);
}

.tt-country-select__toggle i {
  transition: transform 0.2s ease;
}

.tt-country-select__list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  max-height: 16rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 0.65rem;
  border: 1px solid rgba(107, 76, 58, 0.18);
  background: #fff;
  box-shadow: 0 18px 40px rgba(74, 54, 44, 0.16);
}

.tt-country-select__option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  cursor: pointer;
  font-size: 0.86rem;
  color: #1c1410;
}

.tt-country-select__option:hover,
.tt-country-select__option.is-active {
  background: #fff7ed;
  color: #9a3412;
}

.tt-country-select__option-flag {
  font-size: 1.1rem;
  width: 1.35rem;
  text-align: center;
}

.tt-country-select__option-meta {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #7d6c5f;
}

.tt-country-select__empty {
  padding: 0.65rem 0.55rem;
  font-size: 0.82rem;
  color: #7d6c5f;
}

.tt-country-select__hint {
  margin-top: 0.35rem;
  font-size: 0.72rem;
}

body.tt-inst-console .tt-country-select__search {
  color: var(--tt-inst-ink, #1c1410) !important;
}

body.tt-inst-console .tt-prof-wrap .tt-country-select__control {
  border-color: rgba(107, 76, 58, 0.28);
  border-radius: 0.65rem;
}

body.tt-inst-console .tt-prof-wrap .tt-country-select__search {
  font-size: 0.88rem !important;
  padding: 0.6rem 0.65rem !important;
}
