/* Interactive eBay Seller Hub & File Exchange CSV to Shopify Converter (Clean Compact Ledger) */

.supplier-hero p code,
.rr-geo-verdict code,
.article-body p code {
  white-space: nowrap;
}

.eb-card {
  margin: 16px 0 20px;
  padding: 18px 20px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 22px rgba(13, 21, 38, 0.04);
}

.eb-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.eb-preset-btn {
  appearance: none;
  min-height: 54px;
  padding: 8px 11px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: #f8fafc;
  color: var(--ink);
  font: 700 12.5px/1.28 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.eb-preset-btn small {
  display: block;
  font: 500 10.5px/1.25 var(--mono);
  color: var(--muted);
  margin-top: 3px;
}

.eb-preset-btn:hover:not([aria-pressed="true"]) {
  border-color: var(--ink);
  background: #fff;
}

.eb-preset-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.eb-preset-btn[aria-pressed="true"] small {
  color: rgba(255, 255, 255, 0.8);
}

.eb-source-box {
  padding: 10px 13px;
  border-radius: 7px;
  background: #0d1526;
  color: #e2e8f0;
  margin-bottom: 10px;
  overflow-x: auto;
}

.eb-source-kicker {
  display: block;
  font: 700 10px/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}

.eb-source-code {
  display: block;
  font: 11px/1.48 var(--mono);
  color: #bae6fd;
  white-space: pre-wrap;
  word-break: break-word;
}

.eb-alert {
  padding: 9px 12px;
  border-radius: 7px;
  font: 500 12.5px/1.45 var(--sans);
  margin-bottom: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #064e3b;
}

.eb-alert.is-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #78350f;
}

.eb-table-frame {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  margin-bottom: 12px;
  background: #fff;
}

.eb-table-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  padding: 6px 10px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line-strong);
  font: 700 10.5px/1.3 var(--mono);
  color: var(--muted);
}

.eb-table-meta span:last-child {
  color: #065f46;
}

.eb-sheet-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font: 11px/1.35 var(--mono);
}

.eb-sheet-table th {
  background: #f1f5f9;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.eb-sheet-table th:nth-child(1) { width: 24%; }
.eb-sheet-table th:nth-child(2) { width: 13%; }
.eb-sheet-table th:nth-child(3) { width: 20%; }
.eb-sheet-table th:nth-child(4) { width: 14%; }
.eb-sheet-table th:nth-child(5) { width: 11%; }
.eb-sheet-table th:nth-child(6) { width: 18%; }

.eb-sheet-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}

.eb-cell-sub {
  display: block;
  margin-top: 2px;
  font: 500 10.5px/1.25 var(--sans);
  color: var(--muted);
}

.eb-sheet-table tr:last-child td {
  border-bottom: 0;
}

.eb-cell-muted {
  color: #94a3b8 !important;
}

.eb-cell-fix {
  background: #ecfdf5;
  color: #065f46 !important;
  font-weight: 700;
}

.eb-cell-warn {
  background: #fef3c7;
  color: #92400e !important;
  font-weight: 700;
}

.eb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.eb-btn-primary,
.eb-btn-secondary {
  appearance: none;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 6px;
  font: 700 12.5px/1 var(--sans);
  cursor: pointer;
}

.eb-btn-primary {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
}

.eb-btn-secondary {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.eb-status {
  font: 700 12px/1.2 var(--mono);
  color: #065f46;
}

.eb-custom-drawer {
  margin-top: 12px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}

.eb-custom-drawer summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  font: 700 12px/1.3 var(--sans);
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.eb-custom-drawer summary:hover {
  color: var(--ink);
}

.eb-custom-drawer summary::-webkit-details-marker {
  display: none;
}

.eb-custom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.eb-field label {
  display: block;
  font: 700 11px/1.2 var(--mono);
  color: var(--muted);
  margin-bottom: 4px;
}

.eb-field input,
.eb-field select {
  width: 100%;
  min-height: 36px;
  padding: 5px 8px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font: 500 12.5px/1.3 var(--sans);
}

@media (prefers-reduced-motion: reduce) {
  .eb-preset-btn {
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .eb-presets,
  .eb-custom-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .eb-sheet-table {
    min-width: 620px;
    table-layout: auto;
  }
}
