/* BookVerse protected reader */
.bv-reader-protection {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface, #fffdf9);
}
.bv-reader-protection .chapter-content {
  position: relative;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.bv-watermark-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.bv-watermark-mark {
  display: block;
  max-width: 150%;
  color: rgba(90, 62, 43, .09);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
  transform: rotate(-28deg);
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.bv-protection-note {
  position: relative;
  z-index: 3;
  margin: 0 8px 8px;
  color: var(--muted, #786b60);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: right;
  pointer-events: none;
}
body.bv-page-hidden .bv-reader-protection .chapter-content,
body.bv-capture-warning-active .bv-reader-protection .chapter-content {
  filter: blur(12px);
}
body.bv-page-hidden .bv-reader-protection::after,
body.bv-capture-warning-active .bv-reader-protection::after {
  content: "Protected BookVerse reading";
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background: rgba(45, 32, 24, .88);
  font-weight: 700;
  text-align: center;
}
@media print {
  .bv-reader-protection .chapter-content,
  .bv-reader-protection .bv-watermark-layer {
    visibility: hidden !important;
  }
  .bv-reader-protection::after {
    content: "BookVerse protected content is not available for printing.";
    display: block;
    padding: 24px;
    color: #000;
    visibility: visible;
  }
}
