/* Non-prescription product pages (inc/frontend/shop/product-page-public.php).
   body.ge-pp-public is only ever set on non-prescription products. */

/* Quantity selector: the site-wide custom CSS has `.quantity { display: none !important; }`.
   This selector is more specific, so it wins on these pages only. */
body.ge-pp-public form.cart .quantity { display: flex !important; }
body.ge-pp-public form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.ge-pp-public form.cart .quantity { margin: 0 !important; min-height: 44px; border-radius: 999px; }
body.ge-pp-public form.cart .quantity input.qty { min-width: 44px; font-size: 16px; }

/* Delivery and pickup box under the button. */
.ge-pp-facts {
  list-style: none;
  margin: 16px 0 18px;
  padding: 12px 14px;
  background: #f1f8f3;
  border: 1px solid #cfe6d6;
  border-radius: 14px;
  display: grid;
  gap: 6px;
  font-family: Nunito, "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #5b6b63;
  color-scheme: only light;
}
.ge-pp-facts li { margin: 0; padding: 0; }
.ge-pp-facts b { color: #124228; font-weight: 800; }
.ge-pp-facts a { color: #1a5c38; font-weight: 700; text-decoration: underline; }

/* "You might also need" */
.ge-pp-related { margin: 36px 0 8px; }
.fusion-body .ge-pp-related h2.ge-pp-related__h {
  font-family: Nunito, "Nunito Sans", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
  color: #1f2d26;
  margin: 0 0 14px;
}

/* Phones: price and button on the first screen. */
@media (max-width: 640px) {
  body.ge-pp-public .woocommerce-product-gallery__image img,
  body.ge-pp-public .avada-product-gallery img,
  body.ge-pp-public .fusion-woo-product-images img {
    max-height: 240px;
    width: auto !important;
    margin: 0 auto;
    object-fit: contain;
  }
  .fusion-body.ge-pp-public h1,
  .fusion-body.ge-pp-public h1.fusion-title-heading {
    font-size: 24px !important;
    line-height: 1.25 !important;
  }
  .ge-pp-facts { font-size: 13px; }
}

/* Pharmacist Only (S3): 1 per order, so no quantity box (pharmacist-only-limit.php). */
body.ge-pp-public.ge-pp-one form.cart .quantity { display: none !important; }
.ge-pp-one-note {
  margin: 12px 0 0;
  font-family: Nunito, "Nunito Sans", system-ui, sans-serif;
  font-size: 14px;
  color: #5b6b63;
}
.ge-pp-one-note b { color: #124228; }
