/* .flowchart-filter-form {
  margin: 20px 0 30px;
} */

/* .flowchart-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
} */

/* .flowchart-filter-field {
  min-width: 200px;
} */

/* .flowchart-filter-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
} */

/* .flowchart-filter-field select {
  width: 100%;
} */

/* Grid layout for products on this page */
.flowchart-group-products {
  width: 100%;
  margin-bottom: 40px;
}

.flowchart-group-products ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

/* .flowchart-group-products ul.products li.product {
  border: 1px solid #ddd;
  padding: 15px;
  box-sizing: border-box;
  text-align: center;
} */

/* .flowchart-group-products ul.products li.product img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
} */

/* .flowchart-part-number {
  font-size: 14px;
  margin: 8px 0;
  color: #333;
  font-weight: 600;
} */

/* .flowchart-bulk-add {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #ddd;
  background: #f9f9f9;
} */

/* .flowchart-bulk-add .button {
  margin-bottom: 8px;
} */

/* .flowchart-bulk-add-text {
  margin: 0;
  font-size: 14px;
} */

/* Card base */
.bc-flowchart-card {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background-color: var(--card);
}

/* Stock line
.bc-flowchart-card__stock {
  font-size: 16px;
  margin-bottom: 8px;
  text-align: center;
}

/* Image */
/* .bc-flowchart-card__image {
  max-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
} */

/* .bc-flowchart-card__image img {
  max-height: 180px;
  width: auto;
  height: auto;
} */

/* Card image: cap the size explicitly so layout doesn't depend on which
   srcset candidate the browser loads (WP adds sizes="auto" to lazy-loaded
   images only, which otherwise inflates their natural display size).
   Specificity (0,3,2) deliberately beats WooCommerce's
   `ul.products li.product a img { width:100% }` (0,2,4) and also applies
   inside the upsell modal, which is not a ul.products context. */
.bc-flowchart-card .bc-query-loop-product-image figure.gb-block-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 300px;
}

.bc-flowchart-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Title */
/* .bc-flowchart-card__title {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  margin: 5px 0 8px;
  text-align: left;
} */

/* .bc-flowchart-card__title-link {
  text-decoration: none;
} */

/* Meta details */
/* .bc-flowchart-card__meta {
  text-align: left;
  line-height: 1.4;
  color: #555;
  margin-bottom: 10px;
} */

.bc-flowchart-card__meta div {
  margin-bottom: 2px;
}

/* Footer */
/* .bc-flowchart-card__footer {
  margin-top: auto;
  text-align: center;
} */

/* .bc-flowchart-card__price {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
} */

/* .bc-flowchart-card__button .button {
  display: inline-block;
  width: 100%;
  text-align: center;
} */
@media (max-width: 768px) {
  /* CSS in here for mobile only */
  .flowchart-group-products ul.products {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .flowchart-group-products ul.products li div.bc-parts-grid > div {
    width: 50%;
  }

  .flowchart-group-products {
    width: auto;
    /* margin: 0 10px 40px 10px; */
  }

  .flowchart-group-products h1.woocommerce-products-header__title.page-title {
    font-size: 24px;
    margin-top: 40px;
  }

  #bc-find-parts-form {
    flex-direction: column;
  }

  .bc-find-form-header-direction {
    flex-direction: column;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  /* CSS in here for tablet only */
  .flowchart-group-products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
