/**
 * LaVerita - Copy protection styles.
 *
 * Loaded only when the Customizer toggle is on and the visitor is not staff.
 * The `lv-copy-protected` class is added to <body> server-side (body_class
 * filter) so selection is disabled before the JS layer runs (no flash of
 * selectable content).
 */

body.lv-copy-protected {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

/* Re-enable native selection where the reader legitimately needs it:
   form fields, editable regions and anything opted in via .lv-allow-select. */
body.lv-copy-protected input,
body.lv-copy-protected textarea,
body.lv-copy-protected select,
body.lv-copy-protected [contenteditable="true"],
body.lv-copy-protected [contenteditable=""],
body.lv-copy-protected .lv-allow-select,
body.lv-copy-protected .lv-allow-select * {
	-webkit-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	user-select: text;
	-webkit-touch-callout: default;
}

/* Discourage image drag-to-save. */
body.lv-copy-protected img {
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	user-drag: none;
}
