.wbl-motion-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 2;
}

#product-art.has-motion {
  isolation: isolate;
  overflow: hidden;
}

#product-art.has-motion > .item-art,
#product-art.has-motion > .visual-orbit,
#product-art.has-motion::before,
#product-art.has-motion::after {
  display: none;
}

#product-dialog.motion-ready .modal-scene::before,
#product-dialog.motion-ready .modal-scene::after {
  display: none;
}

#product-dialog.motion-ready #preview-label,
#product-dialog.motion-ready .preview-caption {
  z-index: 4;
}

#product-dialog.motion-ready #preview-label {
  bottom: 84px;
  color: #eee3c9;
  text-shadow: 0 2px 22px #061c1a;
}

#product-dialog.motion-ready .preview-caption {
  bottom: 48px;
  color: #a3b3a4;
}

.motion-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 16px 0 9px;
}

.motion-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  color: #576749;
  border: 1px solid rgba(82, 109, 71, .24);
  background: rgba(54, 84, 47, .035);
  border-radius: 2px;
  font: inherit;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color .3s, background-color .3s;
}

.motion-replay:hover {
  background: rgba(54, 84, 47, .07);
  border-color: rgba(82, 109, 71, .5);
}

.motion-replay::before {
  content: "▷";
  font-size: 13px;
  color: #987c44;
}

.motion-replay:disabled {
  cursor: default;
  opacity: .6;
}

.motion-status {
  color: #8a927c;
  font-size: 9px;
  line-height: 1.65;
  letter-spacing: .03em;
}

.motion-colors {
  display: flex;
  flex-basis: 100%;
  gap: 6px;
}

.motion-color-choice {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #89917c;
  font: inherit;
  font-size: 9px;
  letter-spacing: .04em;
  cursor: pointer;
}

.motion-color-choice::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9aa6b;
}

.motion-color-choice[data-mode="moon"]::before { background: #bacdc8; }
.motion-color-choice[data-mode="jade"]::before { background: #809d78; }

.motion-color-choice[aria-pressed="true"] {
  border-color: rgba(132, 146, 100, .3);
  background: rgba(102, 132, 81, .055);
  color: #566749;
}

.scene-motion-controls {
  margin-top: 18px;
  margin-bottom: 0;
}

.scene-motion-controls .motion-replay {
  color: #c9c9a9;
  border-color: rgba(190, 184, 136, .3);
  background: rgba(150, 166, 115, .035);
}

.scene-motion-controls .motion-replay:hover {
  background: rgba(150, 166, 115, .08);
}

.scene-motion-controls .motion-status {
  color: #849786;
}

#scene-stage.has-motion {
  cursor: crosshair;
}

#scene-stage.has-motion:focus-visible {
  outline: 1px solid #cdbf86;
  outline-offset: 5px;
}

#scene-stage.has-motion > .scene-inscription {
  z-index: 4;
}

.motion-controls button:focus-visible {
  outline: 2px solid #9f8553;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  #product-dialog.motion-ready .modal-scene {
    height: 290px;
    min-height: 290px;
  }

  #product-dialog.motion-ready #preview-label {
    left: 22px;
    right: 22px;
    bottom: 36px;
    text-align: center;
    font-size: 19px;
  }

  #product-dialog.motion-ready .preview-caption {
    left: 22px;
    right: 22px;
    bottom: 16px;
    text-align: center;
    font-size: 8px;
  }

  .motion-controls {
    align-items: flex-start;
    gap: 8px 10px;
  }

  .motion-replay {
    min-height: 44px;
    padding: 10px 12px;
  }

  .motion-color-choice {
    min-height: 44px;
    padding: 10px 13px;
  }

  .motion-status {
    align-self: center;
    max-width: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-replay {
    transition: none;
  }
  #scene-stage.has-motion {
    cursor: default;
  }
}
