/* Street Legend V5.7 — product-page spacing only.
   The bottle is a normal-flow grid item on mobile to prevent it from ever
   overlapping the price or the cart actions. Checkout is untouched. */
@media (min-width: 701px) {
  body.sani-p5 .p5-intro {
    padding-top: clamp(17px, 2.5vh, 27px);
  }
}
@media (max-width: 700px) {
  body.sani-p5,
  body.sani-p5 .p5-experience {
    overflow-x: clip;
    overflow-y: visible;
  }
  body.sani-p5 .p5-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    align-content: start;
    align-items: start;
    min-height: 100dvh;
    height: auto;
    padding: clamp(96px, 14dvh, 119px) clamp(20px, 6vw, 32px) 22px;
  }
  body.sani-p5 .p5-information {
    display: contents;
  }
  body.sani-p5 .p5-intro {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 2;
  }
  body.sani-p5 .p5-intro h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    margin-top: 9px;
    margin-bottom: 8px;
  }
  body.sani-p5 .p5-bottle-wrap {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    height: clamp(222px, 34dvh, 330px);
    margin: 3px 0 0;
    padding: 0;
    overflow: visible;
    z-index: 1;
    display: grid;
    place-items: center;
  }
  body.sani-p5 .p5-bottle {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }
  body.sani-p5 .p5-purchase {
    grid-column: 1;
    grid-row: 3;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    align-self: start;
    align-items: flex-start;
    margin: 0;
    padding: 12px 0 0;
    background: none;
  }
  body.sani-p5 .p5-purchase-controls,
  body.sani-p5 .p6-bag-actions {
    max-width: 100%;
    flex-wrap: wrap;
  }
  body.sani-p5 .p5-fineprint {
    max-width: 100%;
  }
  body.sani-p5 .p5-carousel {
    grid-column: 1;
    grid-row: 4;
    position: relative;
    justify-self: end;
    right: auto;
    bottom: auto;
    left: auto;
    top: auto;
    margin-top: 18px;
    max-width: 100%;
    z-index: 3;
  }
  body.sani-p5 .p5-shadow { display: none; }
}
