/* ─── Custom Select ──────────────────────────────────────────────────────── */
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  gap: 20px; 
  min-height: 72px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  cursor: pointer;
  user-select: none;
  transition: border-color .18s;
}
.custom-select.open .custom-select-trigger {
  border-color: var(--color-primary);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* bandeira dentro do trigger — remove posicionamento absolute */
.select-flag {
  width: 2rem;
  height: 1.5rem;
  border-radius: 3px;
  flex-shrink: 0;
  display: block;
}
.select-code {
  font-size: var(--text-lg);
  font-weight: 700;
  flex: 1;
}
.select-arrow {
  color: var(--color-text-muted);
  transition: transform .18s;
  flex-shrink: 0;
}
.custom-select.open .select-arrow {
  transform: rotate(180deg);
}
.custom-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
}
.custom-select.open .custom-select-dropdown {
  display: block;
}
.custom-option {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  cursor: pointer;
  transition: background .15s;
  font-size: var(--text-sm);
}
.custom-option:hover {
  background: var(--color-surface-offset);
}
.custom-option.selected {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-weight: 700;
}
.custom-option .fi {
  width: 1.4rem;
  height: 1.1rem;
  border-radius: 2px;
  flex-shrink: 0;
}
.option-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.option-label small {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

/* quick picks */
.quick-picks button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.quick-picks .fi {
  width: 1.2rem;
  height: .9rem;
  border-radius: 2px;
  flex-shrink: 0;
}
