/* The Tech Pad — Store integrations overlay additions
   (provider toggle + WooCommerce install-code flow).
   Complements shopify-ui.css (shared ttp-sh-* primitives). */

.ttp-sh-providers { display: flex; gap: 8px; margin: 4px 0 12px; flex-wrap: wrap; }
.ttp-sh-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: inherit; padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer; margin: 2px 0 12px;
}
.ttp-sh-back:hover { background: rgba(255,255,255,.14); }
.ttp-sh-dl {
  display: inline-block; text-decoration: none;
  background: rgba(37,211,102,.14); color: #6fdc8c;
  border: 1px solid rgba(37,211,102,.5); border-radius: 999px;
  padding: 9px 18px; font-size: 13px; font-weight: 700;
  margin: 6px 0 2px;
}
.ttp-sh-dl:hover { background: rgba(37,211,102,.26); }
.ttp-sh-inline-link { color: #6fdc8c; text-decoration: underline; }
.ttp-sh-provider {
  background: rgba(255,255,255,.06); border: 1px solid transparent; color: inherit;
  padding: 7px 18px; border-radius: 999px; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.ttp-sh-provider.active {
  background: rgba(37,211,102,.14); border-color: rgba(37,211,102,.45);
  color: #6fdc8c; font-weight: 600;
}
.ttp-sh-provider:hover { background: rgba(255,255,255,.12); }

.ttp-sh-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 28px; letter-spacing: .4em; font-weight: 800; text-align: center;
  background: rgba(37,211,102,.1); border: 1px dashed rgba(37,211,102,.55);
  color: #6fdc8c; border-radius: 12px; padding: 16px 12px; margin: 12px 0 4px;
  user-select: all;
}

.ttp-sh-steps { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 14px; }
.ttp-sh-step {
  background: rgba(255,255,255,.05); border-radius: 10px; padding: 10px 14px;
  font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.85);
}
.ttp-sh-step code {
  background: rgba(255,255,255,.12); border-radius: 5px; padding: 1px 6px;
  font-size: 12.5px;
}

/* Mobile */
@media (max-width: 640px) {
  .ttp-sh-code { font-size: 22px; letter-spacing: .28em; }
}

/* The overlay is the Integrations UI — hide the native catalog/detail view
   (it queries a non-existent integrations table and its cards are inert). */
/* Hide the native catalog/detail view ONLY while the overlay is mounted
   (deep link like /wa/integrations?provider=woocommerce). A plain visit
   shows the native catalog whose cards navigate to /shopify/ and /woocommerce/. */
body.ttp-overlay-active section.integrations-page { display: none !important; }
/* Provider DETAIL pages (/wa/shopify, /wa/woocommerce): the SPA router falls
   back to "overview" for unknown /wa/* paths, so hide the native dashboard
   content — the overlay section (#ttp-shopify-root) IS the page. The sidebar
   (aside.sidebar) is a sibling of .dashboard and stays visible. */
body.ttp-provider-page .dashboard > *:not(#ttp-shopify-root) { display: none !important; }
.connector-card.live { cursor: pointer; }
