/* Interactive BigCommerce Bulk Edit CSV to Shopify Converter & [ADD]/[RB] Rule Parser */

.bc-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);
}

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

.bc-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);
}

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

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

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

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

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

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

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

/* Flowing Conversion Pipeline Strip */
.bc-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;
}

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

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

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

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

.bc-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: bcStreamMove 900ms linear infinite;
}

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

@keyframes bcCellGlow {
  0% { background-color: rgba(18, 107, 67, 0.24); }
  100% { background-color: rgba(18, 107, 67, 0.08); }
}

.bc-row-enter-0 { animation: bcRowEnter 240ms cubic-bezier(0.22, 1, 0.36, 1) 0ms both; }
.bc-row-enter-1 { animation: bcRowEnter 240ms cubic-bezier(0.22, 1, 0.36, 1) 55ms both; }
.bc-row-enter-2 { animation: bcRowEnter 240ms cubic-bezier(0.22, 1, 0.36, 1) 110ms both; }

.bc-custom-drawer {
  margin: 0 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.bc-custom-drawer summary {
  min-height: 44px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 700 12.5px/1.3 var(--sans);
  color: var(--ink);
  cursor: pointer;
}

.bc-custom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.bc-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.bc-field.full {
  grid-column: 1 / -1;
}

.bc-field label {
  font: 700 11px/1.2 var(--mono);
  color: var(--muted);
}

.bc-field input,
.bc-field select {
  width: 100%;
  min-height: 42px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font: 12.5px/1.3 var(--mono);
  color: var(--ink);
}

.bc-alert {
  margin-bottom: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.48;
  background: var(--green-bg, #f0fdf4);
  border: 1px solid var(--green-line, #bbf7d0);
  color: #0d4a2d;
}

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

.bc-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font: 11.5px/1.4 var(--mono);
  white-space: nowrap;
}

.bc-sheet-table th {
  background: #0d1526;
  color: #f8fafc;
  font-weight: 700;
  text-align: left;
  padding: 8px 9px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.bc-sheet-table td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--ink);
}

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

.bc-cell-blank {
  color: var(--muted);
  font-style: italic;
  background: rgba(13, 21, 38, 0.025);
}

.bc-cell-good {
  background: rgba(18, 107, 67, 0.08);
  color: var(--green, #126b43);
  font-weight: 700;
  animation: bcCellGlow 650ms ease-out;
}

.bc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.bc-btn-primary,
.bc-btn-secondary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 7px;
  font: 700 13.5px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
}

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

.bc-btn-primary:hover {
  background: #1b2844;
}

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

.bc-btn-secondary:hover {
  border-color: var(--ink);
}

.bc-status {
  font: 600 12px/1.3 var(--mono);
  color: var(--green, #126b43);
}

.faq-section summary {
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .bc-pipe-dot,
  .bc-pipe-stream,
  .bc-row-enter-0,
  .bc-row-enter-1,
  .bc-row-enter-2,
  .bc-cell-good {
    animation: none !important;
  }

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

@media (max-width: 720px) {
  .bc-card {
    padding: 15px;
  }

  .bc-presets,
  .bc-custom-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bc-pipeline {
    flex-wrap: wrap;
  }
}
