body.plg-no-select,
body.plg-no-select * {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.plg-no-copy-dialog {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
}

.plg-no-copy-dialog-inner {
	background: #fff;
	max-width: 480px;
	padding: 24px;
	border-radius: 6px;
	max-height: 80vh;
	overflow-y: auto;
}

.plg-no-copy-dialog-close {
	margin-top: 16px;
	padding: 8px 16px;
	cursor: pointer;
}

/* Chặn in trang — ẩn toàn bộ nội dung khi in, chỉ hiện 1 dòng thông báo, phòng trường hợp người dùng
   vào menu trình duyệt bấm In thay vì dùng phím tắt Ctrl/Cmd+P (đã chặn ở no-copy.js). */
@media print {
	body.plg-block-print > * {
		display: none !important;
	}
	body.plg-block-print::before {
		content: "This content is protected and cannot be printed.";
		display: block;
		padding: 40px;
		font-size: 18px;
		text-align: center;
	}
}

/* Yêu cầu bật Javascript — ẩn toàn bộ nội dung cho tới khi no-copy.js xác nhận đã chạy (thêm class
   "plg-js-ready" vào <body>). Nếu Javascript bị tắt, class đó không bao giờ xuất hiện nên nội dung ẩn
   vĩnh viễn, chỉ còn <noscript> (được chừa ra qua :not(noscript)) hiển thị thông báo thay thế. */
body.plg-js-required:not(.plg-js-ready) > *:not(noscript) {
	display: none !important;
}

.plg-js-required-noscript-fallback {
	padding: 40px;
	font-size: 18px;
	text-align: center;
}

/* Overlay phát hiện DevTools — ẩn mặc định, no-copy.js bật/tắt class "is-visible" liên tục theo kết
   quả kiểm tra kích thước cửa sổ, nên tự hiện/ẩn ngay khi mở/đóng DevTools mà không cần tải lại trang. */
.plg-devtools-overlay {
	position: fixed;
	inset: 0;
	background: #fff;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px;
	font-size: 18px;
}

.plg-devtools-overlay.is-visible {
	display: flex;
}
