.reader-selection-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
}

.reader-selection-rect {
  position: absolute;
  background: rgba(255, 230, 138, 0.6);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(214, 172, 53, 0.4) inset;
}

.reader-selection-handle {
  position: fixed;
  z-index: 2000;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -28px;
  border-radius: 8px 8px 10px 10px;
  background: #e89b2f;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.reader-selection-handle::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 8px;
  height: 14px;
  transform: translateX(-50%);
  background: inherit;
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.reader-selection-handle--end::before {
  top: -14px;
  bottom: auto;
  border-bottom: none;
  border-top: 2px solid #fff;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.reader-selection-handle--end {
  margin-top: 10px;
}

.reader-selection-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
}

.reader-selection-handle--menu-visible::after {
  width: 24px;
  height: 24px;
}

.reader-selection-handle--menu-visible {
  z-index: 1100;
}

.reader-selection-handle.is-dragging,
.reader-selection-handle:active {
  background: #c7781f;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  cursor: grabbing;
}
