/* Street Legend V5.9 — visual-only mobile artwork edge + confirmation artwork.
   Load after V5.8. Only presentation; no orders, cart or payment logic. */
@media (max-width: 520px) {
  /* Checkout stage: the artwork panel reaches the phone's right-hand edge.
     Keep text and form fields in their current padded column. */
  body.p6-checkout .sl-v53-mobile-product {
    box-sizing: border-box;
    width: calc(100% + 26px);
    max-width: none;
    margin-right: -26px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
  }
  body.p6-checkout .sl-v53-mobile-product img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    box-sizing: border-box;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: right center !important;
    transform: translateX(10px) scale(1.045) !important;
  }
  /* Bag: photo fills the far-right artwork column; prices/controls remain
     in the independent, left-hand copy column. */
  #sani-bag-dialog .sani-added-preview:not([hidden]) {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    padding-right: 0;
    grid-template-columns: minmax(0, 1fr) minmax(105px, 37%);
    overflow: hidden;
  }
  #sani-bag-dialog .sani-added-preview > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: clamp(134px, 24dvh, 190px);
    object-fit: contain;
    object-position: right center;
    transform: translateX(9px) scale(1.07) !important;
  }
  #sani-bag-dialog .sani-added-preview__copy {
    position: relative;
    z-index: 1;
    min-width: 0;
  }
}
/* The confirmation page retains SANI's layout and uses an actual perfume image,
   so size the horizontal botanical photo instead of treating it as a tall bottle. */
body.sani-confirmation .confirmation-art img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
body.sani-confirmation .confirmation-art__halo {
  background: radial-gradient(circle,#f6e5e9 0%,#fdf7f8 56%,transparent 74%);
}
@media (max-width: 800px) {
  body.sani-confirmation .confirmation-art {
    position: relative;
    grid-row: 1;
    width: 100%;
    right: auto;
    top: auto;
    height: clamp(155px, 47vw, 265px);
    min-height: 0;
    margin-bottom: 6px;
    opacity: 1;
    overflow: hidden;
  }
  body.sani-confirmation .confirmation-copy { grid-row: 2; }
  body.sani-confirmation .confirmation-art img { max-width: 100%; max-height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body.sani-confirmation .confirmation-art img { animation: none !important; }
}
