/* v1.0.17 — larger five-column shop cards with a compact, consistent rhythm. */
@media (min-width: 1240px) {
  html body.hp-shop-model-1 .hp-shop-query .hp-product-grid,
  html body.hp-shop-model-2 .hp-shop-query .hp-product-grid,
  html body.hp-shop-model-3 .hp-shop-query .hp-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}

html body .hp-shop-query .hp-product-grid { row-gap: 32px !important; }
html body .hp-shop-query .hp-product-grid > li { min-height: 0 !important; padding-bottom: 0 !important; }
html body .hp-shop-query .hp-product-grid :is(figure,.wc-block-components-product-image,.wp-block-woocommerce-product-image) { margin-bottom: 12px !important; }
html body .hp-shop-query .hp-product-grid .wp-block-post-title {
  display: -webkit-box !important;
  min-height: 3.9em !important;
  max-height: 3.9em !important;
  margin: 0 4px 5px !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.3 !important;
}
html body .hp-shop-query .hp-product-grid :is(.wp-block-woocommerce-product-price,.wc-block-components-product-price,.price) {
  display: block !important;
  min-height: 3.1em !important;
  margin: 0 !important;
  color: #002d24 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: center !important;
}
html body .hp-shop-query .hp-product-grid :is(.wp-block-woocommerce-product-price,.wc-block-components-product-price,.price) :is(ins,del,.amount) { margin: 0 !important; line-height: inherit !important; }
html body .hp-shop-query .hp-product-grid .hp-shop-current-price-line { display: flex !important; align-items: baseline; justify-content: center; gap: 4px 6px; margin: 0 !important; }
html body .hp-shop-query .hp-product-grid .hp-shop-payment-info { min-height: 2.85em !important; margin: 1px 0 0 !important; font-size: 11px !important; line-height: 1.3 !important; }
html body .hp-shop-query .hp-product-grid .hp-shop-payment-info span { margin: 0 !important; }
html body .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-button { min-height: 42px; margin: 8px auto 0 !important; padding: 0 !important; }

/* Only the delivery column keeps the shipping calculator. The duplicate below payment is hidden. */
html body.single-product.hp-product-model-3 .hp-product-summary-card :is(#wc-shipping-simulator-postcode-form,#wc-shipping-sim,.wc-shipping-simulator-parent-container,.woo-better-parent-container,.hp-product-shipping-card) { display: none !important; }

/* Shipping CTA and its cart/truck icon use the Hidramat lime treatment. */
html body.single-product.hp-product-model-3 .hp-product-logistics-panel #wc-shipping-simulator-postcode-form .wc-shipping-simulator-button-current-style,
html body.single-product.hp-product-model-3 .hp-product-logistics-panel :is(.woo-better-button-current-style,#custom-postcode-form input[type='submit']) {
  background: #b7fa5b !important;
  border-color: #b7fa5b !important;
  color: #002d24 !important;
}
html body.single-product.hp-product-model-3 .hp-product-logistics-panel #wc-shipping-simulator-postcode-form .wc-shipping-simulator-button-current-style :is(svg,svg *),
html body.single-product.hp-product-model-3 .hp-product-logistics-panel :is(.woo-better-button-current-style,#custom-postcode-form input[type='submit']) :is(svg,svg *) { color: #fff !important; fill: currentColor !important; stroke: currentColor !important; }
html body.single-product.hp-product-model-3 .hp-product-logistics-panel #wc-shipping-simulator-postcode-form .wc-shipping-simulator-icon-current-style {
  display: grid !important;
  width: 28px !important;
  height: 28px !important;
  place-items: center !important;
  border-radius: 7px !important;
  background: #b7fa5b !important;
  color: #fff !important;
}
html body.single-product.hp-product-model-3 .hp-product-logistics-panel #wc-shipping-simulator-postcode-form .wc-shipping-simulator-icon-current-style :is(svg,svg *) { color: #fff !important; fill: currentColor !important; stroke: currentColor !important; }
html body.single-product.hp-product-model-3 .hp-product-logistics-panel :is(.wc-shipping-simulator-current-postcode-block,.wc-shipping-simulator-content-block,.wc-shipping-simulator-info-block) :is(svg,svg *) { color: #b7fa5b !important; fill: currentColor !important; stroke: currentColor !important; }
html body.single-product.hp-product-model-3 .hp-product-logistics-panel #wc-shipping-simulator-postcode-form .wc-shipping-simulator-button-current-style:hover,
html body.single-product.hp-product-model-3 .hp-product-logistics-panel :is(.woo-better-button-current-style,#custom-postcode-form input[type='submit']):hover { background: #002d24 !important; border-color: #002d24 !important; color: #fff !important; }

@media (max-width: 700px) {
  html body .hp-shop-query .hp-product-grid .wp-block-post-title { min-height: 3.9em !important; max-height: 3.9em !important; }
  html body .hp-shop-query .hp-product-grid .hp-shop-payment-info { min-height: 2.85em !important; }
}
