/* The Moonbounce Man - in-action carousel on the top full-bleed product image.
   Clean, self-contained. Bare arrows and dots on the image, no frames. */

.mbm-car { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.mbm-car__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; }
.mbm-car__slide.on { opacity: 1; }
.mbm-car__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; cursor: zoom-in; }

/* arrows - bare glyphs on the image, no box */
.mbm-car__arw { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; border: 0; background: transparent;
  padding: 0 12px; color: #fff; font: 700 46px/1 sans-serif; cursor: pointer; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.mbm-car__arw:hover { opacity: .82; }
.mbm-car__prev { left: 6px; } .mbm-car__next { right: 6px; }

/* dots - bare on the image, no pill */
.mbm-car__dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 4; display: flex; gap: 10px; }
.mbm-car__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer;
  padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.mbm-car__dot.on { background: #fff; }

/* fullscreen viewer */
.mbm-fs { position: fixed; inset: 0; z-index: 9999; background: rgba(8,10,14,.96); display: none; place-items: center; padding: 24px; }
.mbm-fs.open { display: grid; }
.mbm-fs img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mbm-fs__close { position: absolute; top: 14px; right: 16px; z-index: 2; border: 0; background: transparent; color: #fff;
  font: 700 36px/1 sans-serif; cursor: pointer; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.mbm-fs .mbm-car__arw { color: #fff; }
body.mbm-fs-open { overflow: hidden; }

/* WordPress-supplied product art on legacy custom product templates. */
.detail[style*="--mbm-page-background:"] .phero {
  background-image: var(--mbm-page-background);
  background-position: center;
  background-size: cover;
}
.detail[style*="--mbm-page-background:"] :is(.story,.specs,.treats,.related) {
  position: relative;
  isolation: isolate;
}
.detail[style*="--mbm-page-background:"] :is(.story,.specs,.treats,.related)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--mbm-page-background);
  background-position: center;
  background-size: cover;
  opacity: .62;
}
.detail[style*="--mbm-page-background:"] :is(.story,.specs,.treats,.related) > * {
  position: relative;
  z-index: 1;
}
.mbm-cms-gallery {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--tone, #f9efd3);
}
.mbm-cms-gallery > .gallery__img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.mbm-cms-dimension {
  grid-column: 1 / -1;
  width: min(100%, 920px);
  margin: 0 auto;
}
.mbm-cms-dimension .world-detail-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

@media (max-width: 700px) {
  .detail[style*="--mbm-page-background-mobile:"] .phero,
  .detail[style*="--mbm-page-background-mobile:"] :is(.story,.specs,.treats,.related)::before {
    background-image: var(--mbm-page-background-mobile);
  }
  .mbm-car__arw { font-size: 36px; padding: 0 8px; }
  .mbm-car__dots { bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .mbm-car__slide { transition: none; }
}

/* Viewer arrows are drawn chevrons, centred in their button (Sabrina, 2026-09-29). */
.mbm-fs .mbm-car__arw { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; }
.mbm-car__arw svg, .mbm-fs .mbm-car__arw svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.mbm-car__arw { display: grid; place-items: center; }
.mbm-car__arw svg { width: 34px; height: 34px; }

/* Related cards only: the Rentals badge, with full one-line fitted names. */
html body:not(#rp1):not(#rp2):not(#rp3):not(#rp4):not(#rp5):not(#rp6) main#main.detail .related .card__media { position: relative !important; }
/* 2026-10-19 (Sabrina): on every world the price is the same badge in the photo's top-right corner, never on the name row
   (Jungle, Batman and others kept it outside the photo, over long names). */
html body:not(#rp1):not(#rp2):not(#rp3):not(#rp4):not(#rp5):not(#rp6) main#main.detail .related .card { position: relative !important; }
html body:not(#rp1):not(#rp2):not(#rp3):not(#rp4):not(#rp5):not(#rp6) main#main.detail .related .card__media > .card__price,
html body:not(#rp1):not(#rp2):not(#rp3):not(#rp4):not(#rp5):not(#rp6) main#main.detail .related .card > :not(.card__media) .card__price,
html body:not(#rp1):not(#rp2):not(#rp3):not(#rp4):not(#rp5):not(#rp6) main#main.detail .related .card > .card__price {
  position: absolute !important; top: 10px !important; right: 10px !important; left: auto !important; bottom: auto !important; z-index: 3 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: auto !important; height: auto !important; min-width: 0 !important; margin: 0 !important; padding: 6px 12px 5px !important;
  background: rgba(255,249,237,.8) !important; -webkit-backdrop-filter: blur(5px) !important; backdrop-filter: blur(5px) !important;
  border: 0 !important; border-radius: 8px !important; box-shadow: none !important; filter: none !important;
  font: 400 20px/1 "DM Serif Display", Georgia, serif !important; color: #08152B !important;
  letter-spacing: 0 !important; text-shadow: none !important; white-space: nowrap !important; transform: none !important;
  grid-area: auto !important; align-self: auto !important; justify-self: auto !important;
}
/* Where the price sits inside the name box, that box stops being its frame, so the badge lands in the card's own top-right corner. */
html body:not(#rp1):not(#rp2):not(#rp3):not(#rp4):not(#rp5):not(#rp6) main#main.detail .related .card > :not(.card__media):has(.card__price) { position: static !important; }
html body:not(#rp1):not(#rp2):not(#rp3):not(#rp4):not(#rp5):not(#rp6) main#main.detail .related .card__name { display: block !important; width: 100% !important; min-width: 0 !important; white-space: nowrap !important; overflow: visible !important; text-overflow: clip !important; -webkit-line-clamp: unset !important; }
html body:not(#rp1):not(#rp2):not(#rp3):not(#rp4):not(#rp5):not(#rp6) main#main.detail .related .card__name a { display: inline-block !important; max-width: none !important; font-size: inherit !important; white-space: nowrap !important; overflow: visible !important; text-overflow: clip !important; -webkit-line-clamp: unset !important; }
