/* Shared phone-country input styling for login and Telegram registration modals. */
.phone-input {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.phone-country-code,
.phone-local-input {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
  background: color-mix(in srgb, var(--color-surface) 96%, #fff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: var(--color-text);
  font: inherit;
}

.phone-country-code {
  flex: 0 0 142px;
  max-width: 142px;
  padding: 0 0.75rem;
}

.phone-local-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 0.85rem;
}

.phone-country-code:focus,
.phone-local-input:focus {
  border-color: color-mix(in srgb, var(--color-primary) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

@media (max-width: 768px) {
  .phone-input {
    gap: 6px;
  }

  .phone-country-code {
    flex-basis: 120px;
    max-width: 120px;
  }
}
