body.kvnt-protection-no-select,
body.kvnt-protection-no-select * {
  -webkit-user-select: none !important;
  user-select: none !important;
}

body.kvnt-protection-allow-forms input,
body.kvnt-protection-allow-forms textarea,
body.kvnt-protection-allow-forms select,
body.kvnt-protection-allow-forms [contenteditable="true"],
body.kvnt-protection-allow-forms [contenteditable="plaintext-only"],
body.kvnt-protection-no-select .kvnt-allow-copy,
body.kvnt-protection-no-select [data-kvnt-allow-copy] {
  -webkit-user-select: text !important;
  user-select: text !important;
}

body.kvnt-protection-images img,
body.kvnt-protection-images picture,
body.kvnt-protection-images svg {
  -webkit-user-drag: none !important;
  user-drag: none !important;
}

.kvnt-protection-alert {
  position: fixed;
  z-index: 2147483647;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 18px);
  max-width: min(88vw, 560px);
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(18, 24, 38, .92);
  color: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.kvnt-protection-alert.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.kvnt-watermark {
  --kvnt-watermark-opacity: .26;
  --kvnt-watermark-size: 14px;
  position: fixed;
  z-index: 2147483000;
  pointer-events: none;
  color: rgba(20, 28, 48, var(--kvnt-watermark-opacity));
  font-size: var(--kvnt-watermark-size);
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(255, 255, 255, .4);
}

.kvnt-watermark-center { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg); }
.kvnt-watermark-top-left { top: 18px; left: 18px; transform: rotate(-12deg); }
.kvnt-watermark-top-right { top: 18px; right: 18px; transform: rotate(12deg); }
.kvnt-watermark-bottom-left { bottom: 18px; left: 18px; transform: rotate(12deg); }
.kvnt-watermark-bottom-right { bottom: 18px; right: 18px; transform: rotate(-12deg); }

.kvnt-watermark-repeat {
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(110px, 1fr);
  align-items: center;
  justify-items: center;
  overflow: hidden;
}

.kvnt-watermark-repeat span {
  opacity: var(--kvnt-watermark-opacity);
  font-size: var(--kvnt-watermark-size);
  transform: rotate(-24deg);
}

body.kvnt-screenshot-mask::after {
  content: "محتوای این صفحه محافظت شده است";
  position: fixed;
  z-index: 2147483646;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(15, 20, 31, .96);
  color: #fff;
  font: inherit;
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 800;
  text-align: center;
  pointer-events: none;
}

body.kvnt-screenshot-mask > *:not(.kvnt-protection-alert) {
  filter: blur(18px) !important;
}

@media print {
  body.kvnt-protection-no-print > * {
    display: none !important;
  }
  body.kvnt-protection-no-print::before {
    content: "چاپ این صفحه غیرفعال است.";
    display: block !important;
    padding: 48px;
    direction: rtl;
    font: 18px/2 sans-serif;
    text-align: center;
  }
}
