.packing-preview {
  position: fixed; right: max(16px,env(safe-area-inset-right)); bottom: calc(82px + env(safe-area-inset-bottom));
  width: 136px; overflow: hidden; z-index: 8; border-radius: 12px;
  border: 1px solid #f6f6f6; background: #2e2e2e; box-shadow: 0 4px 18px #1c1c1c38;
}
.packing-preview video { display: block; width: 100%; aspect-ratio: 9/16; }
.packing-preview button {
  display: grid; place-items: center; padding: 0; color: #fafafa;
  border: 0; background: transparent; cursor: pointer;
}
.packing-preview button:focus-visible { outline: 2px solid #c9c9c9; outline-offset: -3px; }
.packing-preview .packing-close {
  position: absolute; top: 4px; right: 4px; width: 32px; height: 32px;
  min-height: 0; border-radius: 50%; background: #1c1c1cdb; font: 20px/1 sans-serif;
}
.packing-controls { display: flex; background: #2e2e2e; }
.packing-controls button { flex: 1; min-height: 38px; }
.packing-controls button + button { border-left: 1px solid #ffffff30; }
.packing-controls button:hover { background: #ffffff16; }
.packing-controls svg { width: 17px; height: 17px; }
.packing-controls .when-on, .packing-controls [data-on] .when-off { display: none; }
.packing-controls [data-on] .when-on { display: block; }
@media(max-width: 680px) {
  .packing-preview { width: 100px; right: max(10px,env(safe-area-inset-right)); bottom: calc(84px + env(safe-area-inset-bottom)); }
}
