/* customize-widget.css — self-contained styles for the shared "Customize what to migrate" selector
 * (customize-widget.js). Own cz-* namespace so it can't collide with either portal flow's CSS, and
 * colors read whichever design-token system the host page defines (--wl-* in the hosted flow,
 * --primary in the anonymous flow), falling back to the InstaWP brand when neither is present. */
.cz-customize {
  --cz-primary: var(--wl-primary, var(--primary, #005E54));
  --cz-text: var(--wl-text, var(--text, #1a2b3c));
  --cz-text-light: var(--wl-text-light, var(--text-light, #8b9bab));
  --cz-border: var(--wl-border, var(--border, #e2e8f0));
  border: 1px solid var(--cz-border); border-radius: 8px; margin: 4px 0 14px; background: #fbfcfd;
  font-size: 0.85rem; color: var(--cz-text);
}
.cz-customize-summary { cursor: pointer; padding: 11px 14px; font-size: 0.88rem; font-weight: 600; color: var(--cz-text); list-style: none; display: flex; align-items: center; gap: 8px; }
.cz-customize-summary::-webkit-details-marker { display: none; }
.cz-customize-summary::before { content: '▸'; color: var(--cz-text-light); transition: transform 0.15s; }
.cz-customize[open] > .cz-customize-summary::before { transform: rotate(90deg); }
.cz-customize-body { padding: 4px 14px 14px; border-top: 1px solid var(--cz-border); }
/* Collapsible Files / Database sub-sections (each a dropdown, collapsed by default). */
.cz-section { margin: 4px 0; }
.cz-section > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--cz-text-light); padding: 8px 0; border-top: 1px solid var(--cz-border); }
.cz-section:first-of-type > summary { border-top: none; }
.cz-section > summary::-webkit-details-marker { display: none; }
.cz-section > summary::before { content: '▸'; transition: transform 0.15s; }
.cz-section[open] > summary::before { transform: rotate(90deg); }
.cz-section > .cz-tree, .cz-section > .cz-tables { padding: 2px 0 8px; }
.cz-help { margin: 0 0 4px; font-size: 0.8rem; line-height: 1.5; color: var(--cz-text-light); }
.cz-tree-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; list-style: none; }
.cz-tree-dir > .cz-tree-row { cursor: pointer; }
.cz-tree-dir > summary::-webkit-details-marker { display: none; }
.cz-tree-dir > summary::after { content: '▸'; order: 3; margin-left: auto; color: var(--cz-text-light); font-size: 0.8rem; }
.cz-tree-dir[open] > summary::after { content: '▾'; }
.cz-tree-children { margin-left: 18px; border-left: 1px solid var(--cz-border); padding-left: 8px; }
.cz-tree-meta { display: flex; align-items: baseline; gap: 8px; flex: 1 1 auto; min-width: 0; }
.cz-tree-name { color: var(--cz-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-tree-size { font-size: 0.78rem; color: var(--cz-text-light); white-space: nowrap; }
.cz-skip { display: inline-flex; align-items: center; }
.cz-skip-cb { width: 15px; height: 15px; accent-color: var(--cz-primary); cursor: pointer; }
.cz-skip-cb:disabled { cursor: not-allowed; opacity: 0.5; }
.cz-table-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.cz-lock { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cz-text-light); background: #eef1f4; border-radius: 4px; padding: 1px 6px; }
.cz-tree-empty { margin: 4px 0; font-size: 0.8rem; color: var(--cz-text-light); }
.cz-tree-loading { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 0.8rem; color: var(--cz-text-light); }
.cz-btn { display: inline-block; width: auto; margin: 0 0 8px; padding: 5px 10px; font-size: 0.8rem; font-weight: 600; cursor: pointer; background: #fff; color: var(--cz-primary); border: 1px solid var(--cz-border); border-radius: 6px; }
.cz-btn:hover { background: #f7f9fb; }
.cz-spinner { width: 13px; height: 13px; border: 2px solid var(--cz-border); border-top-color: var(--cz-primary); border-radius: 50%; display: inline-block; animation: cz-spin 0.7s linear infinite; }
@keyframes cz-spin { to { transform: rotate(360deg); } }
