/* samafix — review/question + samarestock under gallery on PC */
.sf-left-actions {
  display: none;
}
@media (min-width: 992px) {
  /* Hide until JS parks under gallery — avoids flash in the old (right) spot */
  body#product:not(.sf-left-done) .ets-rv-product-comments-additional-info,
  body#product:not(.sf-left-done) #samarestock-box {
    position: absolute !important;
    left: -9999px !important;
    top: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .sf-left-actions {
    display: block;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e9ecef;
    direction: rtl;
    text-align: right;
  }
  .sf-left-actions .ets-rv-product-comments-additional-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    position: static !important;
    left: auto !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .sf-left-actions .ets-rv-product-comments-additional-info .ets-rv-btn-comment {
    flex: 1 1 auto;
  }
  .sf-left-actions #samarestock-box {
    margin: 0;
    max-width: 100%;
    position: static !important;
    left: auto !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  /* share/copy stay in the product info column */
  .samarestock-share-row.sf-share-home {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
    max-width: 100%;
  }
  /* space between share/copy and WhatsApp */
  .samarestock-share-row.sf-share-home + .product-additional-info {
    margin-top: 1.15rem;
  }
  .samarestock-share-row.sf-share-home + .product-additional-info .whatsapp_button,
  .product-additional-info .whatsapp_button {
    margin-top: 0;
  }
}
@media (max-width: 991.98px) {
  .sf-left-actions {
    display: contents;
  }
}
