/* Interactive Clover POS Inventory CSV to Shopify Converter */

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

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

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

.cv-preset-btn {
  appearance: none;
  min-height: 56px;
  padding: 9px 11px;
  border-radius: 8px;
  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, transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

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

.cv-source-box {
  padding: 11px 14px;
  border-radius: 8px;
  background: #0d1526;
  color: #e2e8f0;
  margin-bottom: 12px;
  overflow-x: auto;
}

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

.cv-source-code {
  display: block;
  font: 11.5px/1.5 var(--mono);
  color: #bae6fd;
  white-space: pre;
}

.cv-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  overflow: hidden;
}

.cv-pipe-node {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 11px/1.2 var(--mono);
  color: var(--ink);
  white-space: nowrap;
}

@keyframes cvPulseDot {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 1; }
}

@keyframes cvStreamMove {
  0% { background-position: 0 0; }
  100% { background-position: 24px 0; }
}

.cv-pipe-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green, #126b43);
  animation: cvPulseDot 1.6s ease-in-out infinite;
}

.cv-pipe-stream {
  flex: 1 1 28px;
  height: 3px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(18, 107, 67, 0.65) 0 8px, rgba(18, 107, 67, 0.14) 8px 16px);
  background-size: 24px 3px;
  animation: cvStreamMove 900ms linear infinite;
}

@keyframes cvRowEnter {
  0% { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}

.cv-custom-drawer {
  margin-bottom: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.cv-custom-drawer summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 13px;
  font: 700 12.5px/1.3 var(--sans);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

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

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

.cv-field input,
.cv-field select {
  width: 100%;
  min-height: 38px;
  padding: 6px 9px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font: 500 13px/1.3 var(--sans);
}

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

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

.cv-table-frame {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  margin-bottom: 13px;
}

.cv-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font: 12px/1.35 var(--mono);
}

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

.cv-sheet-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
  animation: cvRowEnter 220ms ease both;
}

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

.cv-cell-muted {
  color: #94a3b8 !important;
  font-style: italic;
}

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

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

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

.cv-btn-primary,
.cv-btn-secondary {
  appearance: none;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 7px;
  font: 700 12.5px/1 var(--sans);
  cursor: pointer;
}

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

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

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

@media (prefers-reduced-motion: reduce) {
  .cv-pipe-dot,
  .cv-pipe-stream,
  .cv-sheet-table td {
    animation: none !important;
  }

  .cv-preset-btn {
    transition: none !important;
  }
}

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

  .cv-pipeline {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cv-pipe-stream {
    display: none;
  }
}
