/**
 * Browser-level content-copy deterrence.
 * The server adds `.meup-protected-content` around the actual `the_content`
 * output; legacy selectors remain as a defensive fallback for cached templates.
 */
.meup-protected-content {
	position: relative;
}

body.meup-content-protected.meup-content-selection-locked :is(
	.meup-protected-content,
	[data-meup-protected-content],
	article,
	.entry-title,
	.post-title,
	.wp-block-post-title,
	.elementor-widget-theme-post-title .elementor-heading-title,
	.entry-content,
	.post-content,
	.single-post-content,
	.post-content-inner,
	.wp-block-post-content,
	.td-post-content,
	.single-content,
	.article-content,
	.jeg_post_content,
	.jnews_content,
	.jeg_single_tpl_wrapper .content-inner,
	.elementor-widget-theme-post-content,
	.elementor-widget-post-content,
	.elementor-widget-theme-post-content .elementor-widget-container,
	.elementor-widget-jeg_elementor_post_content,
	.elementor-widget-jnews_post_content,
	.elementor-location-single .elementor-widget-text-editor .elementor-widget-container
) {
	-webkit-user-select: none !important;
	-moz-user-select: none !important;
	-ms-user-select: none !important;
	user-select: none !important;
	-webkit-touch-callout: none !important;
}

body.meup-content-protected :is(
	.meup-protected-content,
	[data-meup-protected-content],
	article,
	.entry-title,
	.post-title,
	.wp-block-post-title,
	.elementor-widget-theme-post-title .elementor-heading-title,
	.entry-content,
	.post-content,
	.single-post-content,
	.post-content-inner,
	.wp-block-post-content,
	.td-post-content,
	.single-content,
	.article-content,
	.jeg_post_content,
	.jnews_content,
	.jeg_single_tpl_wrapper .content-inner,
	.elementor-widget-theme-post-content,
	.elementor-widget-post-content,
	.elementor-widget-theme-post-content .elementor-widget-container,
	.elementor-widget-jeg_elementor_post_content,
	.elementor-widget-jnews_post_content,
	.elementor-location-single .elementor-widget-text-editor .elementor-widget-container
) :is(
	input,
	textarea,
	select,
	option,
	button,
	[contenteditable="true"],
	[contenteditable=""],
	pre,
	pre *,
	code,
	code *,
	kbd,
	kbd *,
	samp,
	samp *,
	.meup-copy-allowed,
	.meup-copy-allowed *
),
body.meup-content-protected #wpadminbar,
body.meup-content-protected #wpadminbar * {
	-webkit-user-select: text !important;
	-moz-user-select: text !important;
	-ms-user-select: text !important;
	user-select: text !important;
	-webkit-touch-callout: default !important;
}

body.meup-content-protected.meup-content-drag-locked :is(
	.meup-protected-content,
	[data-meup-protected-content],
	article,
	.entry-content,
	.post-content,
	.single-post-content,
	.post-content-inner,
	.wp-block-post-content,
	.td-post-content,
	.single-content,
	.article-content,
	.jeg_post_content,
	.jnews_content,
	.elementor-widget-theme-post-content,
	.elementor-widget-post-content,
	.elementor-widget-jeg_elementor_post_content,
	.elementor-widget-jnews_post_content
) img:not(.meup-copy-allowed) {
	-webkit-user-drag: none !important;
	user-drag: none !important;
}

.meup-content-protection-toast {
	position: fixed;
	z-index: 2147483000;
	inset-inline-start: 50%;
	bottom: max(24px, env(safe-area-inset-bottom));
	max-width: min(92vw, 520px);
	padding: 12px 18px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 14px;
	background: rgba(15, 23, 42, .94);
	box-shadow: 0 18px 46px rgba(15, 23, 42, .26);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.75;
	text-align: center;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, 14px);
	transition: opacity .18s ease, transform .18s ease;
	backdrop-filter: blur(10px);
}

.meup-content-protection-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

html[dir="rtl"] .meup-content-protection-toast,
body.rtl .meup-content-protection-toast {
	direction: rtl;
}

@media (prefers-reduced-motion: reduce) {
	.meup-content-protection-toast {
		transition: none;
	}
}

@media print {
	.meup-content-protection-toast {
		display: none !important;
	}
}

/* Authentication and the private account panel are interactive safe zones. */
body.meup-content-protected.meup-content-selection-locked :is(
	.meup-arm-auth,
	.meup-arm-auth *,
	.meup-root,
	.meup-root *,
	.arm_form_login,
	.arm_form_login *,
	.arm_form_registration,
	.arm_form_registration *,
	.arm_form_forgot_password,
	.arm_form_forgot_password *,
	.arm_form_reset_password,
	.arm_form_reset_password *,
	.arm_form_change_password,
	.arm_form_change_password *,
	.arm_login_form,
	.arm_login_form *,
	.arm_registration_form,
	.arm_registration_form *,
	.arm_forgot_password_form,
	.arm_forgot_password_form *,
	.arm_reset_password_form,
	.arm_reset_password_form *,
	.arm_change_password_form,
	.arm_change_password_form *,
	.login_form,
	.login_form *,
	.registration_form,
	.registration_form *,
	.forgot_password_form,
	.forgot_password_form *,
	.reset_password_form,
	.reset_password_form *,
	.arm_change_password_form_container,
	.arm_change_password_form_container *
) {
	-webkit-user-select: text !important;
	-moz-user-select: text !important;
	-ms-user-select: text !important;
	user-select: text !important;
	-webkit-touch-callout: default !important;
}
