/*
 * thai-phone-formatter.css — per-tool styles for the Thai Phone Number Formatter.
 * Tokens only; no inline styles (CSP).
 */

/* Invalid alert: keep the icon aligned to the first line of a two-line message. */
.tpf-invalid { align-items: flex-start; }

/* Output formats — one card-like row per format (national / E.164 / messaging). */
.tpf-formats {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.tpf-format {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  background: var(--neutral-50);
}
.tpf-format-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.tpf-format-label {
  font: 500 var(--text-sm) / 1.4 var(--font-sans);
  color: var(--text-secondary);
}

/* Value + copy button on one row, wrapping on narrow screens. */
.tpf-format-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.tpf-format-value {
  flex: 1 1 12rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
}
.tpf-format-help {
  margin-top: var(--space-2);
}

/* Bulk table: dim rows that failed to parse. */
.tpf-row-invalid { color: var(--text-muted); }
