/* Scroll-driven device rotation. Preserve the original photographed hardware. */
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-device-showcase [data-device-rotation-ready="true"] .product-monitor {
  scale: 1.18 !important;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-device-showcase [data-device-rotation-ready="true"] .product-phone {
  scale: var(--fit-hero-phone-scale, 1) !important;
  translate: 0 var(--fit-hero-phone-y, 22%) !important;
}
@media (min-width: 1025px) {
  html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] > .product-device-stage {
    translate: calc(-15.5% * var(--device-turn, 0)) 0;
  }
  html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-device-showcase [data-device-rotation-ready="true"] .product-phone {
    translate: var(--device-phone-offset, 0px) var(--fit-hero-phone-y, 22%) !important;
  }
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .device-shell-piece {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  transform-origin: 0 0;
  pointer-events: none;
  visibility: hidden;
  z-index: 1;
  will-change: transform;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"][data-device-rotating="true"] .device-shell-piece {
  visibility: visible;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"][data-device-rotating="true"] .monitor-price-hardware {
  visibility: hidden;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .device-shell-canvas {
  visibility: hidden;
  pointer-events: none;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"][data-device-rotating="true"][data-device-gpu-renderer="true"] .device-shell-canvas {
  visibility: visible;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"][data-device-gpu-renderer="true"] .device-shell-piece {
  visibility: hidden;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"][data-device-rotating="true"][data-device-phone-gpu="true"] .device-phone-hardware {
  visibility: hidden;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-monitor > :is(.monitor-price-ink,.monitor-price-cord-back) {
  transform: var(--device-head-matrix, matrix(1,0,0,1,0,0)) !important;
  transform-origin: 0 0 !important;
  translate: var(--fit-price-exit-x, 0%) var(--fit-price-exit-y, 0%);
  rotate: var(--fit-price-exit-rotate, 0deg);
  opacity: calc(min(var(--fit-cost-sticker-opacity, 0), var(--fit-price-ink-opacity, 0)) * var(--fit-price-exit-opacity, 1));
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-monitor > .device-price-card {
  transform: none !important;
  z-index: 15;
}
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-monitor > :is(.monitor-price-ink,.monitor-price-cord-back) {
    translate: none;
    rotate: none;
    opacity: calc(min(var(--fit-cost-sticker-opacity, 0), var(--fit-price-ink-opacity, 0)) * (1 - var(--fit-price-exit-progress, 0)));
  }
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .device-shell-piece > img {
  position: absolute;
  max-width: none;
  object-fit: fill;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .device-phone-hardware {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  transform: var(--device-phone-matrix, matrix(1,0,0,1,0,0)) !important;
  transform-origin: 0 0 !important;
  pointer-events: none;
}
/* Keep hardware shadows out of the live text's rasterization path. */
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"],
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-monitor,
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-phone-frame {
  filter: none !important;
  will-change: auto !important;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-phone-frame {
  background: none !important;
  transform: none !important;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-monitor-frame {
  transform: none !important;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] :is(.monitor-price-hardware,.device-shell-canvas,.device-phone-hardware) {
  filter: drop-shadow(0 22px 20px #0008);
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] :is(.product-monitor-screen,.product-phone-screen) {
  min-width: 0 !important;
  min-height: 0 !important;
  transform-origin: 0 0 !important;
  filter: none !important;
  will-change: auto !important;
  backface-visibility: visible !important;
  text-rendering: auto;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"]
  .hero-fit-handoff.floral-hero-product[data-device-rotation-ready="true"] .product-device-stage
  > .product-monitor > .product-monitor-frame > .product-monitor-screen {
  width: var(--device-monitor-width) !important;
  height: var(--device-monitor-height) !important;
  transform: var(--device-monitor-screen-matrix) !important;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-phone-screen {
  width: var(--device-phone-width) !important;
  height: var(--device-phone-height) !important;
  transform: var(--device-phone-screen-matrix) !important;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] {
  --product-sidebar-width: 42px;
  --device-content-gap: calc(6px * var(--device-ui-scale,1));
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-app-shell {
  grid-template-rows: calc(30px * var(--device-ui-scale,1)) minmax(0,1fr);
  grid-template-columns: minmax(0,1fr);
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-app-workspace {
  padding: var(--device-content-gap);
  gap: var(--device-content-gap);
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-fit-economics {
  flex: 0 0 auto;
  margin: 0;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-app-titlebar > .product-fit-title {
  left: 0;
  translate: none;
  font-size: calc(16px * var(--device-ui-scale,1));
  letter-spacing: .035em;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-app-sidebar {
  padding: calc(5px * var(--device-ui-scale,1)) calc(4px * var(--device-ui-scale,1));
  gap: calc(3px * var(--device-ui-scale,1));
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-app-nav-item {
  flex: 0 0 auto;
  padding: calc(1px * var(--device-ui-scale,1)) 0;
  border-width: calc(1px * var(--device-ui-scale,1));
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-app-nav-icon {
  width: calc(16px * var(--device-ui-scale,1));
  height: calc(16px * var(--device-ui-scale,1));
  font-size: calc(16px * var(--device-ui-scale,1));
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-app-nav-item b {
  font-size: calc(5px * var(--device-ui-scale,1));
  line-height: 1.2;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-fit-cost-score {
  min-height: calc(78px * var(--device-ui-scale,1));
  padding: calc(9px * var(--device-ui-scale,1));
  gap: calc(5px * var(--device-ui-scale,1));
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-fit-cost-score > b {
  font-size: calc(30px * var(--device-ui-scale,1));
  line-height: 1;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-fit-score-label {
  font-size: calc(8px * var(--device-ui-scale,1));
  height: auto;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-needs-label {
  font-size: calc(6.5px * var(--device-ui-scale,1));
  margin-bottom: calc(6px * var(--device-ui-scale,1));
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-fit-box-grid {
  gap: var(--device-content-gap);
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-fit-box {
  gap: calc(7px * var(--device-ui-scale,1));
  padding: calc(5px * var(--device-ui-scale,1)) calc(2px * var(--device-ui-scale,1));
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-fit-box b {
  font-size: calc(8px * var(--device-ui-scale,1));
  line-height: 1.15;
  font-weight: 600;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-fit-state {
  width: calc(20px * var(--device-ui-scale,1));
  height: calc(20px * var(--device-ui-scale,1));
  font-size: calc(12px * var(--device-ui-scale,1));
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .connected-phone-signal {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .connected-phone-message {
  font-size: 13px;
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .joe-phone-app .floral-phone-current-order b {
  white-space: normal;
  font-size: 7px;
  line-height: 1.15;
  overflow: visible;
  text-overflow: clip;
}

/* Center the status in the full handset screen, with no header or score row. */
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] .floral-hero-product[data-device-rotation-ready="true"] .connected-phone-app {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] .floral-hero-product[data-device-rotation-ready="true"]
  :is(.connected-phone-body, .connected-phone-summary) {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

/* Open the front view horizontally without changing its height or left edge.
   The final screen extends slightly farther behind the handset. The original
   angled hero retains its photographed proportions. */
html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"]
  .software-choice-hero .floral-device-showcase .floral-hero-product[data-device-rotation-ready="true"]
  > .product-device-stage > .product-monitor {
  flex-basis: calc(72% + 10.368% * var(--device-turn, 0)) !important;
  width: calc(72% + 10.368% * var(--device-turn, 0)) !important;
  aspect-ratio: calc(1341 * (1 + .144 * var(--device-turn, 0))) / 1173;
}
@media (min-width: 761px) {
  html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"]
    .software-choice-hero .floral-device-showcase .floral-hero-product[data-device-rotation-ready="true"]
    > .product-device-stage > .product-monitor {
    /* Anchor the wider desktop monitor beside the closer phone. */
    margin-left: calc(4% - 8.496% * var(--device-turn, 0));
  }
}

@media (max-width: 1024px) {
  html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-phone {
    translate: 0 calc(var(--fit-hero-phone-y, 22%) * (1 - var(--device-turn, 0))) !important;
  }
}
@media (min-width: 431px) and (max-width: 760px) {
  html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"][data-fit-handoff-mode="mobile-scroll"] body
    .floral-device-showcase .floral-hero-product[data-device-rotation-ready="true"] .product-phone {
    width: 27%;
    right: -2%;
    bottom: calc(18.5% - 52% * var(--device-turn, 0));
  }
}
@media (max-width: 430px) {
  /* A complete monitor above a larger handset fits the right column. Shared
     dimensions also keep the scroll stops aligned with the finished stack. */
  html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"][data-fit-handoff-mode="mobile-scroll"][data-mobile-fit-devices="stacked"]
    .software-choice-hero .floral-device-showcase {
    --fit-stack-phone-width: .38;
    --fit-stack-monitor-x: 0;
    --fit-stack-phone-overlap: .12;
  }
  html[data-device-rotation="true"][data-device-render="reference"][data-screen-render="live-perspective"] body .floral-hero-product[data-device-rotation-ready="true"] .product-monitor
    > :is(.monitor-price-hardware, .product-monitor-frame, .device-shell-canvas, .device-shell-piece) {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
