/* Gando 8.2.7 final runtime fixes. Keep this file last in the theme cascade. */
.single-product .gallery-main > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
  transform: none;
  image-rendering: auto;
}
.single-product .gallery-main .gallery-wish {
  position: absolute !important;
  inset-inline-start: 14px !important;
  inset-inline-end: auto !important;
  left: 14px !important;
  right: auto !important;
  top: 14px !important;
  z-index: 12 !important;
}
.single-product .added_to_cart.wc-forward { display:none !important; }
.single-product .gando-product-comments { margin-top:44px; }
.single-product .gando-product-comments > .rabino-comments-wrapper { margin-inline:auto; }
.single-product .pdp-scroll-buy.is-loading .cta-buy,
.single-product .single_add_to_cart_button.is-loading { opacity:.65; pointer-events:none; }

/* Checkout safety: do not let gateway-owned logo images escape their intended box. */
body.rabino-checkout-active #payment img,
body.rabino-checkout-active .payment_methods img,
body.rabino-checkout-active .wc_payment_method img {
  width:auto !important;
  max-width:110px !important;
  max-height:42px !important;
  height:auto !important;
  object-fit:contain !important;
}

/* Blog markup follows the reference; protect its shell from legacy content widths. */
body.blog .mag-main,
body.category .mag-main,
body.tag .mag-main,
body.single-post .article-single { width:100%; min-width:0; }
body.single-post .article-content { overflow:hidden; }

@media (max-width:700px) {
  .single-product .gallery-main .gallery-wish { left:10px !important; right:auto !important; top:10px !important; }
}
