/*
 * HYGSI.SK – purchase panel spacing, v3 (2026-08-28).
 * Desktop products without quantity discounts.
 */
@media (min-width: 1025px) {
  html body.type-detail:not(.hygsi-manual-set)
  #product-detail-form.hygsi-buy-form:not(.hygsi-has-quantity-discounts) {
    grid-template-rows: auto 30px 58px !important;
  }
}

/*
 * Tablet manual sets: their empty variants row collapses to 0 px and the
 * cart button touches the price block. Keep mobile and desktop unchanged.
 */
@media (min-width: 768px) and (max-width: 1024px) {
  html body.type-detail.hygsi-manual-set
  #product-detail-form.hygsi-buy-form:not(.hygsi-has-quantity-discounts) {
    grid-template-rows: auto auto 30px 58px !important;
  }
}

/*
 * Price-on-request products must show only the inquiry CTA. These selectors
 * intentionally outrank the global unavailable-product watchdog rule.
 */
html body.type-detail:has(.na-dotaz .dotaz-button)
  #product-detail-form.hygsi-buy-form > a.watchdog,
html body.type-detail.hygsi-price-on-request
  #product-detail-form.hygsi-buy-form > a.watchdog {
  display: none !important;
}

/* Keep the inquiry CTA visually separated from "Cena na dopyt". */
html body.type-detail:has(.na-dotaz .dotaz-button)
  #product-detail-form.hygsi-buy-form .na-dotaz,
html body.type-detail.hygsi-price-on-request
  #product-detail-form.hygsi-buy-form .na-dotaz {
  margin-top: 34px !important;
}
