/* v5.1.6 — category save helper polish + static desktop panels.
   User request: the boxed product/order panel should stay in page flow, not follow scroll. */

/* Admin hint for sorters where dragging now also marks the row as selected. */
.wp-admin .vlg-admin-wrap .vlg-category-sorter-field > small::after,
.wp-admin .vlg-admin-wrap .vlg-category-tree-sorter-field > small::after {
  content: ' Lohistamine või ↑/↓ nupuga liigutamine märgib kategooria automaatselt valituks ja salvestab järjekorra.';
  display: block;
  margin-top: 6px;
  color: #0f766e;
  font-weight: 700;
}

/* Desktop product/order panels must not behave as sticky/floating sidebars. */
@media (min-width: 901px) {
  body.vlg-theme.single-product .vlg-product-summary-card,
  body.vlg-theme.single-product .vlg-product-right .vlg-product-summary-card,
  body.vlg-theme.single-product div.product .summary,
  body.vlg-theme.woocommerce-checkout .vlg-checkout-summary-shell,
  body.vlg-theme.woocommerce-checkout #order_review,
  body.vlg-theme.woocommerce-cart .cart_totals {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Preserve mobile bottom add-to-cart behaviour only on phones; remove accidental desktop fixed state. */
@media (min-width: 901px) {
  body.vlg-theme.single-product form.cart {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
  }
}
