/* Keep fit controls beside the mirror instead of below the product catalog. */
.mirror-column > .adjustments {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  margin: 12px 0 0;
  scroll-margin-block: 16px;
  padding: 12px 14px;
  border-radius: 5px;
}
.mirror-column > .adjustments .adjust-copy {
  grid-column: 1 / -1;
  line-height: 1.4;
}
.mirror-column > .adjustments .size-control {
  min-width: 0;
  width: 100%;
}
.mirror-column > .adjustments .reset-button {
  align-self: end;
}
@media (max-width: 680px) {
  /* The mirror hint already explains dragging and the arrow keys. */
  .mirror-column > .adjustments .adjust-copy p {
    display: none;
  }
  .mirror-column:has(> .adjustments:not([hidden])) .mirror {
    max-height: max(180px, calc(100svh - 270px));
    scroll-margin-top: 16px;
  }
}
