.forfpv-parts-finder,
.forfpv-issue-finder,
.forfpv-upload-photo,
.forfpv-product-fitment {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  margin: 24px 0;
  color: #1f2937;
}

.forfpv-parts-finder {
  border: 0;
  background: transparent;
  padding: 0;
}

.forfpv-finder-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.forfpv-finder-eyebrow,
.forfpv-finder-section-head span {
  display: inline-flex;
  width: max-content;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #0b63ce;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.forfpv-finder-header h2,
.forfpv-product-fitment h2 {
  margin: 0 0 8px;
  color: #0b0f14;
}

.forfpv-finder-header p {
  margin: 0 0 20px;
  color: #6b7280;
}

.forfpv-finder-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.forfpv-finder-panel {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #f8fafc;
  padding: 18px;
}

.forfpv-finder-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.forfpv-field-wide,
.forfpv-finder-actions {
  grid-column: 1 / -1;
}

.forfpv-parts-finder .forfpv-field-wide,
.forfpv-parts-finder .forfpv-finder-actions {
  grid-column: auto;
}

.forfpv-finder-divider {
  grid-column: 1 / -1;
  color: #6b7280;
  font-size: 14px;
}

.forfpv-parts-finder .forfpv-finder-divider {
  display: none;
}

.forfpv-finder-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #111827;
}

.forfpv-finder-field input,
.forfpv-finder-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 12px;
}

.forfpv-finder-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.forfpv-finder-reset {
  color: #526173;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.forfpv-finder-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-top: 1px solid #e5e7eb;
  margin-top: 16px;
  padding-top: 14px;
}

.forfpv-finder-category-links span {
  color: #526173;
  font-size: 13px;
  font-weight: 800;
}

.forfpv-finder-category-links a {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.forfpv-finder-category-links a:hover {
  border-color: #1677ff;
  color: #0b63ce;
}

.forfpv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 11px 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
}

.forfpv-button-primary {
  background: #1677ff;
  color: #fff;
}

.forfpv-button-secondary {
  background: #fff;
  color: #1f2937;
  border-color: #d1d5db;
}

.forfpv-button:hover {
  text-decoration: none;
}

.forfpv-search-results-wrap,
.forfpv-finder-products-preview {
  margin-top: 26px;
}

.forfpv-finder-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.forfpv-finder-section-head h3 {
  margin: 8px 0 4px;
  color: #0b0f14;
  font-size: 24px;
  line-height: 1.15;
}

.forfpv-finder-section-head p {
  margin: 0;
  color: #64748b;
}

.forfpv-finder-section-head strong,
.forfpv-finder-section-head > a {
  flex: 0 0 auto;
  color: #0b63ce;
  font-weight: 800;
  text-decoration: none;
}

.forfpv-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.forfpv-product-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.forfpv-product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: #f5f7fa;
  color: #9ca3af;
}

.forfpv-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.forfpv-product-card-body {
  padding: 14px;
}

.forfpv-product-card h4 {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.35;
}

.forfpv-product-meta {
  margin: 4px 0;
  color: #6b7280;
  font-size: 13px;
}

.forfpv-price {
  margin: 10px 0;
  font-weight: 700;
  color: #e11d48;
}

.forfpv-product-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.forfpv-product-card-actions .forfpv-button {
  width: 100%;
  padding-inline: 10px;
}

.forfpv-badge {
  display: inline-flex;
  margin: 0 4px 4px 0;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}

.forfpv-badge-stock {
  background: #dcfce7;
  color: #166534;
}

.forfpv-badge-china {
  background: #ffedd5;
  color: #c2410c;
}

.forfpv-badge-verified {
  background: #dbeafe;
  color: #1d4ed8;
}

.forfpv-empty-results,
.forfpv-success,
.forfpv-warning,
.forfpv-help-cta {
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 16px;
}

.forfpv-issue-summary {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f5f7fa;
  padding: 16px;
  margin-top: 20px;
}

.forfpv-issue-summary h3 {
  margin-top: 0;
}

.forfpv-empty-results,
.forfpv-success,
.forfpv-help-cta {
  background: #f5f7fa;
}

.forfpv-success {
  color: #166534;
  background: #dcfce7;
}

.forfpv-warning {
  background: #fee2e2;
  color: #991b1b;
}

.forfpv-compatibility-table-wrap {
  overflow-x: auto;
}

.forfpv-compatibility-table {
  width: 100%;
  border-collapse: collapse;
}

.forfpv-compatibility-table th,
.forfpv-compatibility-table td {
  border: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
}

.forfpv-compatibility-table th {
  background: #f5f7fa;
}

@media (max-width: 900px) {
  .forfpv-finder-form,
  .forfpv-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forfpv-finder-header,
  .forfpv-finder-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .forfpv-finder-header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .forfpv-parts-finder,
  .forfpv-issue-finder,
  .forfpv-upload-photo,
  .forfpv-product-fitment {
    padding: 16px;
  }

  .forfpv-finder-form,
  .forfpv-product-grid {
    grid-template-columns: 1fr;
  }
}
