.gsw-table input[type="number"]{width:90px}
.gsw-table input[type="text"]{width:220px}
.gsw-table .col-small{width:80px}
.gsw-badge{background:#eef;border:1px solid #99c;color:#223;padding:1px 6px;border-radius:4px}
.gsw-help{color:#666;display:block;margin-top:2px;font-size:11px}
.gsw-start{width:120px;}
.gsw-actions{white-space:nowrap; width:100px;}
.gsw-conditional{display:none}
.gsw-row{vertical-align:top}
.gsw-row .postform {max-width: 100%;}
.gsw-row td label.gsw-wrapper {display: flex;justify-content: flex-start;align-items: center;gap: 12px;}
.gsw-row td label.gsw-wrapper:not(:first-child) {margin-top: 8px;}
.gsw-label {flex-basis: 35%;width: 35%;flex-shrink: 0;flex-grow: 0;}
.gsw-data {flex-basis: 100%;width: 100% !important;}
.gsw-grid {display: grid;grid-template-columns: 1fr 1fr;gap: 8px;}

/* Replace inline style="margin:6px 0" etc. */
.gsw-my-6 { margin: 6px 0; }
.gsw-mt-6 { margin-top: 6px; }

.gsw-page-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:16px 0}
.gsw-empty-state{max-width:960px;padding:24px;border:1px dashed #c3c4c7;border-radius:8px;background:#fff}
.gsw-import-list .gsw-col-start{width:110px}
.gsw-import-list .gsw-col-actions{width:280px}
.gsw-list-meta{margin-top:6px;color:#646970;font-size:12px}
.gsw-source-link{display:inline-block;max-width:560px;overflow-wrap:anywhere}
.gsw-actions-inline{display:flex;flex-wrap:wrap;gap:8px}
.gsw-pill{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:#f0f6fc;border:1px solid #c5d9ed;color:#163a5f;font-size:12px;font-weight:500;margin:0 6px 6px 0}

.gsw-editor-shell{max-width:none;margin-right:20px}
.gsw-editor-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:14px 0 18px}
.gsw-editor-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#fff;border:1px solid #dcdcde}
.gsw-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(340px,1fr));gap:20px;align-items:start}
.gsw-editor-card{background:#fff;border:1px solid #dcdcde;border-radius:10px;padding:18px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.gsw-editor-card-full{margin-top:20px}
.gsw-editor-card h2{margin-top:0;margin-bottom:6px}
.gsw-field{margin-bottom:14px}
.gsw-field label{display:block;margin-bottom:6px;font-weight:600}
.gsw-field input[type="text"],
.gsw-field input[type="number"],
.gsw-field select{width:100%;max-width:none}
.gsw-inline-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.gsw-toggle-row{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.gsw-toggle-row input[type="checkbox"]{margin:0}
.gsw-config-form .gsw-conditional{display:none}
.gsw-config-form{padding-bottom:108px}
.gsw-editor-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:18px}
.gsw-editor-actions--sticky{position:fixed;left:var(--gsw-sticky-toolbar-left, 180px);right:var(--gsw-sticky-toolbar-right, 20px);bottom:16px;z-index:100;margin:0;padding:12px 16px;border:1px solid #dcdcde;border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 14px 36px rgba(0,0,0,.12);backdrop-filter:blur(6px)}
.gsw-editor-actions--sticky .button{margin:0}
.gsw-empty-state-inline{max-width:none;margin-top:16px}

.gsw-preview-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;flex-wrap:wrap;margin-top:18px}
.gsw-preview-toolbar-main{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap}
.gsw-preview-toolbar-group{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.gsw-preview-toolbar-main label,
.gsw-preview-toolbar-label{display:block;margin-bottom:6px;font-weight:600}
.gsw-preview-toolbar-main select{min-width:280px;max-width:360px}
.gsw-preview-toolbar-meta{color:#646970;font-size:13px}
.gsw-help-inline{display:block;margin-top:6px}
.gsw-preview-pagination{display:flex;justify-content:flex-end}
.gsw-preview-pagination--top{margin-top:16px}
.gsw-preview-pagination--bottom{margin-top:14px}
.gsw-preview-pagination .tablenav-pages{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;float:none;margin:0 0 0 auto}
.gsw-preview-pagination .displaying-num{margin:0}
.gsw-preview-pagination .pagination-links{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.gsw-preview-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:0 10px;border:1px solid #dcdcde;border-radius:8px;background:#fff;color:#2271b1;text-decoration:none;box-sizing:border-box}
.gsw-preview-pagination .page-numbers.current{background:#2271b1;border-color:#2271b1;color:#fff}
.gsw-preview-pagination .page-numbers.dots{padding:0 4px;min-width:auto;border:none;background:transparent;color:#50575e}
.gsw-preview-table-wrap{margin-top:16px;overflow:auto}
.gsw-preview-table{min-width:980px}
.gsw-preview-check-col{width:44px}
.gsw-preview-thumb-col{width:104px}
.gsw-preview-sku-col{width:130px}
.gsw-preview-status-col{width:120px}
.gsw-preview-thumb-link{display:inline-flex;border-radius:10px;overflow:hidden;box-shadow:0 0 0 1px #dcdcde;cursor:zoom-in}
.gsw-preview-thumb-col img{display:block;width:68px;height:68px;object-fit:cover;border-radius:10px;border:1px solid #dcdcde;background:#fff}
.gsw-preview-thumb-placeholder{display:inline-flex;align-items:center;justify-content:center;width:68px;height:68px;border:1px dashed #c3c4c7;border-radius:10px;color:#8c8f94;background:#f6f7f7}
.gsw-preview-status{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600}
.gsw-preview-status.is-in_stock{background:#edf7ed;color:#146c2e}
.gsw-preview-status.is-sale{background:#fff4e5;color:#9a4f00}
.gsw-preview-status.is-waiting{background:#eef4ff;color:#1d4f91}
.gsw-preview-status.is-unknown,
.gsw-preview-status.is-sold{background:#f3f4f5;color:#50575e}
.gsw-preview-row.is-excluded{background:#fff7f7}
.gsw-preview-warning{display:inline-flex;align-items:center;padding:4px 10px;margin-bottom:8px;border-radius:999px;background:#fff1f0;border:1px solid #f1b8b3;color:#8a2424;font-size:12px;font-weight:600}
.gsw-preview-warning[hidden]{display:none !important}
.gsw-preview-lightbox[hidden]{display:none !important}
.gsw-preview-lightbox{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:24px}
.gsw-preview-lightbox-backdrop{position:absolute;inset:0;background:rgba(17,24,39,.76)}
.gsw-preview-lightbox-dialog{position:relative;z-index:1;display:flex;flex-direction:column;gap:12px;max-width:min(92vw,960px);max-height:90vh;padding:18px;border-radius:16px;background:#fff;box-shadow:0 20px 60px rgba(0,0,0,.28)}
.gsw-preview-lightbox-close{position:absolute;top:8px;right:10px;font-size:28px;line-height:1;color:#1d2327;text-decoration:none}
.gsw-preview-lightbox-image{display:block;max-width:100%;max-height:calc(90vh - 80px);border-radius:10px;object-fit:contain;background:#f6f7f7}
.gsw-preview-lightbox-caption{margin:0;color:#50575e;font-size:13px;overflow-wrap:anywhere}
body.gsw-preview-lightbox-open{overflow:hidden}

@media (max-width: 960px) {
  .gsw-editor-grid{grid-template-columns:1fr}
  .gsw-import-list .gsw-col-actions{width:auto}
  .gsw-preview-toolbar-main{width:100%}
  .gsw-preview-toolbar-group{width:100%}
  .gsw-preview-toolbar-main select{min-width:0;max-width:none;width:100%}
  .gsw-editor-shell{margin-right:0}
  .gsw-editor-actions--sticky{right:12px}
}

@media (max-width: 782px) {
  .gsw-config-form{padding-bottom:132px}
  .gsw-editor-actions--sticky{left:10px;right:10px;bottom:10px;padding:10px 12px}
  .gsw-preview-pagination .tablenav-pages{justify-content:flex-start}
}
