/* mod_kb_anticopy — AntiCopy (site) v1.0.4 */

html.kb-anticopy-on,
html.kb-anticopy-on body{
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Always allow selection inside form controls + explicitly whitelisted content */
html.kb-anticopy-on input,
html.kb-anticopy-on textarea,
html.kb-anticopy-on select,
html.kb-anticopy-on option,
html.kb-anticopy-on button,
html.kb-anticopy-on [contenteditable="true"],
html.kb-anticopy-on .kb-allow-copy,
html.kb-anticopy-on [data-kb-allow-copy]{
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Toast */
.kb-anticopy-toast{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2147483647;
  padding: 10px 14px;
  border-radius: 12px;
  font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  transform-origin: bottom center;
}

.kb-anticopy-toast.kb-anticopy-toast--show{
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* ------------------------------
   KB Watermark overlay (deterrent)
   ------------------------------ */
.kb-wm-wrap{
  position: relative !important;
  line-height: 0 !important;
}
.kb-wm-wrap > img,
.kb-wm-wrap > picture,
.kb-wm-wrap > picture > img{
  position: relative !important;
  z-index: 1 !important;
}
.kb-wm-layer{
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  opacity: var(--kb-wm-opacity, 0.18) !important;
  background-repeat: repeat !important;
  background-position: center center !important;
}
.kb-wm-layer .kb-wm-svg{
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
.kb-wm-layer .kb-wm-svg text{
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
.kb-wm-wrap.kb-wm--corner .kb-wm-layer{
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  background: none !important;
  padding: var(--kb-wm-pad, 10px) !important;
  font-size: var(--kb-wm-size, 18px) !important;
  color: var(--kb-wm-color, #fff) !important;
  opacity: var(--kb-wm-opacity, 0.18) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25) !important;
  line-height: 1.1 !important;
  letter-spacing: 0.3px !important;
}
.kb-wm-wrap.kb-wm--corner .kb-wm-layer[data-corner="tl"]{align-items:flex-start !important;justify-content:flex-start !important;}
.kb-wm-wrap.kb-wm--corner .kb-wm-layer[data-corner="tr"]{align-items:flex-start !important;justify-content:flex-end !important;}
.kb-wm-wrap.kb-wm--corner .kb-wm-layer[data-corner="bl"]{align-items:flex-end !important;justify-content:flex-start !important;}
