/* Preview-only art direction; existing content, model and scroll timeline remain intact. */
.hello-biz-cube-story.kuwa-flow-preview {
  --flow-opening: 1;
  --flow-opacity: 1;
  --flow-model-shift: 0px;
  background: #fff;
}
.hello-biz-cube-story.kuwa-flow-preview::before { display: none !important; }
.kuwa-flow-preview .hello-biz-cube-story__hero-accent { color: #b335a5; }
.kuwa-flow-preview .hello-biz-cube-story__hero-actions .hello-biz-cube-story__secondary-button { pointer-events: auto; }
.kuwa-flow-preview .kuwa-sound-flow {
  position: absolute;
  z-index: 0;
  top: 66%;
  left: -4%;
  width: 108%;
  height: 26%;
  min-height: 130px;
  overflow: hidden;
  opacity: var(--flow-opacity);
  pointer-events: none;
  contain: layout paint;
}
.kuwa-sound-flow canvas, .kuwa-sound-flow svg { display: block; width: 100%; height: 100%; }
.kuwa-sound-flow[data-renderer="webgl"] svg { display: none; }
.kuwa-flow-preview.is-ready .hello-biz-cube-story__hero-copy { top: 44%; }
.kuwa-flow-preview.is-ready .hello-biz-cube-story__model-stage {
  transform: translate3d(calc(-50% + var(--cube-x)), calc(-50% + var(--cube-y) + var(--flow-model-shift)), 0)
    scale(calc(var(--cube-scale) * (1 + .16 * var(--flow-opening))));
}
.kuwa-flow-preview.is-ready .hello-biz-cube-story__model-credit { top: calc(100% - 27% * var(--flow-opening) + 8px * (1 - var(--flow-opening))); }
.kuwa-flow-preview.is-ready .hello-biz-cube-story__hint { z-index: 1; bottom: 14px; }

@media (min-width: 721px) and (max-width: 1023px) {
  .kuwa-flow-preview.is-ready .hello-biz-cube-story__hero-copy { left: 6%; width: 40%; }
  .kuwa-flow-preview.is-ready .hello-biz-cube-story__hero-copy h1 { font-size: clamp(2.7rem, 5.6vw, 4rem); }
  .kuwa-flow-preview.is-ready .hello-biz-cube-story__model-credit { width: min(32vw, 320px); }
  .kuwa-flow-preview .kuwa-sound-flow { top: 66%; height: 28%; }
}
@media (max-width: 720px) {
  .kuwa-flow-preview.is-ready .hello-biz-cube-story__hero-copy { top: 4%; }
  .kuwa-flow-preview .kuwa-sound-flow { top: 72%; left: -15%; width: 130%; height: 16%; min-height: 88px; }
  .kuwa-flow-preview.is-ready .hello-biz-cube-story__model-stage {
    transform: translate3d(calc(-50% + var(--cube-x)), calc(-50% + var(--cube-y) + var(--flow-model-shift)), 0)
      scale(calc(var(--cube-scale) * (1 + .18 * var(--flow-opening))));
  }
  .kuwa-flow-preview.is-ready .hello-biz-cube-story__model-credit { top: calc(100% - 30% * var(--flow-opening) + 8px * (1 - var(--flow-opening))); font-size: .62rem; width: min(74vw, 300px); }
  .kuwa-flow-preview.is-product-visible .hello-biz-cube-story__model-credit { top: 0; }
  .kuwa-flow-preview.is-product-link-active .hello-biz-cube-story__interaction-hint { display: none; }
}
@media (max-width: 720px) and (max-height: 700px) {
  .kuwa-flow-preview.is-ready .hello-biz-cube-story__hero-copy { top: 2%; }
  .kuwa-flow-preview .kuwa-sound-flow { top: 80%; height: 12%; min-height: 64px; }
  .kuwa-flow-preview.is-ready .hello-biz-cube-story__model-credit { top: calc(100% - 34% * var(--flow-opening) + 8px * (1 - var(--flow-opening))); font-size: .6rem; }
  .kuwa-flow-preview.is-product-visible .hello-biz-cube-story__model-credit { top: 0; }
  /* A non-empty cart remains accessible without covering the small-screen credit. */
  body:has(.kuwa-flow-preview.is-product-link-active:not(.is-product-ready)) .kuwa-cart-fab {
    top: 16px; right: 76px; bottom: auto; width: 44px; height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kuwa-flow-preview.is-ready .hello-biz-cube-story__hero-copy { top: auto; }
  .kuwa-flow-preview .kuwa-sound-flow { position: relative; top: auto; left: -5vw; width: 100vw; height: 150px; margin-top: 12px; opacity: 1; }
  .kuwa-flow-preview.is-ready .hello-biz-cube-story__model-stage { transform: none !important; }
  .kuwa-flow-preview.is-ready .hello-biz-cube-story__model-credit { position: relative; top: auto; left: auto; width: min(620px, 92vw); font-size: .7rem; transform: none; }
}

/* Reuse the site's cart drawer, with truthful local-preview feedback. */
.kuwa-preview-cart-note { margin: 12px 0 0; color: #44546b; font-size: .82rem; line-height: 1.5; }
.kuwa-preview-cart-badge {
  display: grid; place-items: center; min-height: 82px; border-radius: 16px;
  background: #c4f4f9; color: #0b1930; font-size: .85rem; font-weight: 750;
}
.kuwa-preview-cart .kuwa-cart-quantity button,
.kuwa-preview-cart .kuwa-cart-drawer__close { min-width: 44px; min-height: 44px; }
.kuwa-preview-cart .kuwa-cart-item__remove { min-height: 44px; }
.kuwa-preview-cart .kuwa-cart-quantity output { min-width: 32px; padding: 8px; text-align: center; }
.kuwa-preview-cart .kuwa-cart-item__price { white-space: nowrap; }
.kuwa-preview-cart .kuwa-cart-item__top { flex-wrap: wrap; }
.kuwa-preview-cart :is(button,a):focus-visible { outline: 3px solid #174b75; outline-offset: 3px; }
.kuwa-preview-cart .kuwa-cart-checkout { background: #adedc2; color: #0b1930; }
