.reader-zoom-tools {
  --zoom-width: min(200px, 100%);
  position: absolute;
  z-index: 12;
  left: clamp(0px, var(--zoom-x, calc(50% - var(--zoom-width) / 2)), calc(100% - var(--zoom-width)));
  top: clamp(0px, var(--zoom-y, 50px), calc(100% - 40px));
  width: var(--zoom-width);
  height: 40px;
  display: flex;
  align-items: stretch;
  padding: 3px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 4px;
  background: rgb(35 35 35 / 94%);
  box-shadow: 0 2px 9px rgb(0 0 0 / 35%);
  color: #f5f5f5;
  user-select: none;
}
.reader-zoom-tools[hidden] { display: none; }
.reader-zoom-tools button {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.reader-zoom-tools svg { width: 18px; height: 18px; pointer-events: none; }
.reader-zoom-tools button:hover:not(:disabled),
.reader-zoom-tools button:focus-visible { background: #4c4c4c; }
.reader-zoom-tools button:focus-visible { outline: 1px solid #fff; outline-offset: -2px; }
.reader-zoom-tools button:disabled { opacity: .36; cursor: default; }
.reader-zoom-tools [data-zoom-action="move"] {
  flex: 0 0 20px;
  cursor: grab;
  color: #b9b9b9;
  touch-action: none;
}
.reader-zoom-tools [data-zoom-action="move"]:active { cursor: grabbing; }

/* Let a drag that starts over printed text pan the magnified sheet. */
.reader-zoom-active .pdflip-viewport.is-zoomed .pdflip-text { pointer-events: none; }
