/* settings-channels.css — "Messaging channels" card on /wa/settings */
.ttp-chan-statusline { min-height: 18px; font-size: 12.5px; color: #5f6f68; padding: 2px 2px 6px; }
.ttp-chan-statusline .err { color: #b3261e; }

.ttp-chan-rows { display: flex; flex-direction: column; gap: 10px; }

.ttp-chan-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e2e9e5;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fbfdfc;
}
.ttp-chan-icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef4f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.ttp-chan-icon svg { width: 22px; height: 22px; display: block; }
.ttp-ic-whatsapp svg { fill: #25d366; }
.ttp-ic-messenger svg { fill: #0084ff; }
.ttp-ic-instagram svg { fill: #e1306c; }
.ttp-chan-main { flex: 1; min-width: 0; }
.ttp-chan-main b { display: block; font-size: 14px; color: #14231e; }
.ttp-chan-sub { display: flex; align-items: center; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.ttp-chan-status { font-size: 12px; color: #85918b; }
.ttp-chan-status.ok { color: #128c7e; font-weight: 600; }
.ttp-chan-name { font-size: 12.5px; color: #14231e; font-weight: 600; }
.ttp-chan-hint { font-size: 11.5px; color: #93a09a; }
.ttp-chan-ids {
  font-size: 11.5px;
  color: #85918b;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
  user-select: all;
}

.ttp-chan-action { flex: 0 0 auto; display: flex; align-items: center; }
.ttp-chan-btn {
  display: inline-block;
  border: 1px solid #c3d2cb;
  border-radius: 9px;
  background: #fff;
  color: #14231e;
  padding: 7px 14px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.ttp-chan-btn.primary {
  background: #128c7e;
  border-color: #128c7e;
  color: #fff;
}
.ttp-chan-btn.primary:hover { background: #0e7c5f; border-color: #0e7c5f; }
.ttp-chan-btn:disabled { opacity: 0.55; cursor: default; }
.ttp-chan-done { font-size: 13px; font-weight: 700; color: #128c7e; }
.ttp-chan-link { font-size: 12.5px; font-weight: 600; color: #128c7e; text-decoration: none; white-space: nowrap; }
.ttp-chan-link:hover { text-decoration: underline; }

/* toast (like onboarding) */
.ttp-chan-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 12px);
  background: #14231e;
  color: #eaf3ee;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 900;
  box-shadow: 0 10px 30px rgba(13, 43, 34, 0.3);
}
.ttp-chan-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ttp-chan-toast.err { background: #b3261e; }

@media (max-width: 720px) {
  .ttp-chan-row { flex-wrap: wrap; }
  .ttp-chan-action { width: 100%; justify-content: flex-end; }
}

/* ---- multiple connected accounts per channel (2026-09-10) ---- */
.ttp-chan-accs { flex: 1 0 100%; display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.ttp-chan-acc { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; min-width: 0; }
.ttp-chan-acc.alt { margin-top: 4px; padding-top: 4px; border-top: 1px dashed #e4ebe7; }
.ttp-chan-acc .ttp-chan-ids { margin-top: 0; }
.ttp-chan-donewrap { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.ttp-chan-add {
  background: transparent; border: 1px dashed #b9c8c1; color: #128c7e;
  border-radius: 14px; padding: 3px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.ttp-chan-add:hover { background: #f1f8f4; border-color: #128c7e; }
.ttp-chan-add:disabled { opacity: 0.55; cursor: default; }
