/* Browser-side copying deterrent. This is not DRM: anything rendered by a
   browser can still be captured with screenshots or developer tools. */
html.vx-content-protected,
html.vx-content-protected body {
  -webkit-touch-callout: none;
}

html.vx-content-protected body {
  -webkit-user-select: none;
  user-select: none;
}

html.vx-content-protected input,
html.vx-content-protected textarea,
html.vx-content-protected select,
html.vx-content-protected option,
html.vx-content-protected [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

html.vx-content-protected img,
html.vx-content-protected picture,
html.vx-content-protected svg,
html.vx-content-protected video,
html.vx-content-protected canvas {
  -webkit-user-drag: none;
  user-drag: none;
}

.vx-protection-notice {
  position: fixed;
  z-index: 2147483647;
  left: 50%;
  bottom: 20px;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 16px);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(20, 20, 20, .94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
  color: #fff;
  font: 600 13px/1.3 system-ui, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.vx-protection-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media print {
  html.vx-content-protected body > * {
    display: none !important;
  }

  html.vx-content-protected body::after {
    display: block;
    padding: 24px;
    content: "Cetakan halaman ini dilindungi.";
    color: #111;
    font: 600 16px/1.5 system-ui, sans-serif;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vx-protection-notice {
    transition: none;
  }
}
