html.ocs-active.ocs-no-select body,
html.ocs-active.ocs-no-select body *:not(input):not(textarea):not(select):not(option):not(button):not(pre):not(code):not([contenteditable="true"]):not(.allow-copy):not(.allow-copy *) {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

html.ocs-active img.ocs-protected-image {
  -webkit-user-drag: none !important;
  user-drag: none !important;
}

.ocs-watermarked {
  position: relative !important;
}

.ocs-watermarked::after {
  content: attr(data-ocs-watermark);
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 20;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.82);
  font: 600 11px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ocs-blocked-notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2147483647;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 7px;
  background: rgba(18, 18, 18, 0.94);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  font: 600 13px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

#ocs-blocked-notice.ocs-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media print {
  html.ocs-no-print body > * {
    display: none !important;
    visibility: hidden !important;
  }

  html.ocs-no-print body::after {
    content: "Printing is disabled for this protected page.";
    display: block !important;
    visibility: visible !important;
    padding: 2rem;
    color: #111;
    font: 600 16px/1.4 sans-serif;
  }
}

