/* Funnel copy-protection — a casual copy/paste deterrent for public funnel pages.
   Deterrent ONLY: this does not attempt to defeat devtools, view-source or scrapers,
   and deliberately contains no obfuscation.

   Emitted only when the FunnelCopyProtectionEnabled site setting is on; when it is off
   the .no-copy class is never applied and this file has no effect on any page. */

.no-copy {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Selection has to stay available everywhere a visitor legitimately types, edits or
   pastes — lead-capture and checkout fields above all — plus anything explicitly opted
   back in with data-allow-copy. user-select is an inherited property, so these have to
   be restored explicitly rather than simply left alone.

   Restoring -webkit-touch-callout is what keeps iOS/mobile Safari long-press paste
   working inside form fields; user-select: text alone is not enough there. */
.no-copy input,
.no-copy textarea,
.no-copy select,
.no-copy [contenteditable],
.no-copy [data-allow-copy],
.no-copy [data-allow-copy] * {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}
