/* These rules deter ordinary copying; public browser content is still retrievable. */
body[data-content-protected] {
  -webkit-user-select: none;
  user-select: none;
}

body[data-content-protected] img {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

body[data-content-protected] :is(
  input, textarea, [contenteditable]:not([contenteditable="false"]),
  [data-copy-allowed], [data-copy-allowed] *,
  a[href^="tel:"], a[href^="tel:"] *,
  a[href^="mailto:"], a[href^="mailto:"] *
) {
  -webkit-user-select: text;
  user-select: text;
}

.content-protection-notice {
  position: fixed;
  z-index: 10000;
  inset: auto 16px 16px;
  width: fit-content;
  max-width: min(440px, calc(100% - 32px));
  margin-inline: auto;
  padding: 14px 18px;
  border: 1px solid var(--gold, #a47a42);
  border-radius: 4px;
  background: var(--walnut, #291c13);
  color: var(--white, #fffdf8);
  box-shadow: 0 4px 20px #21181130;
  font: 14px/1.5 Arial, sans-serif;
  text-align: center;
  pointer-events: none;
}

@media print {
  body[data-content-protected] {
    display: block !important;
    min-height: 0 !important;
    margin: 0 !important;
    background: white !important;
  }

  body[data-content-protected] > * {
    display: none !important;
  }

  body[data-content-protected]::before {
    content: "Материалы Profremmebel не предназначены для печати. Просмотр: profremmebel.su";
    display: block !important;
    color: black !important;
    font: 14pt/1.5 Arial, sans-serif !important;
  }
}
