/**
 * Site-wide content protection styles.
 * No black blank screen — watermark + popup only.
 */

html.abslms-content-protected,
html.abslms-content-protected body {
	-webkit-user-select: none !important;
	-moz-user-select: none !important;
	-ms-user-select: none !important;
	user-select: none !important;
	-webkit-touch-callout: none !important;
	-webkit-tap-highlight-color: transparent;
}

html.abslms-content-protected input,
html.abslms-content-protected textarea,
html.abslms-content-protected select,
html.abslms-content-protected [contenteditable="true"] {
	-webkit-user-select: text !important;
	-moz-user-select: text !important;
	-ms-user-select: text !important;
	user-select: text !important;
	-webkit-touch-callout: default !important;
}

html.abslms-content-protected img,
html.abslms-content-protected video,
html.abslms-content-protected canvas,
html.abslms-content-protected svg {
	-webkit-user-drag: none !important;
	user-drag: none !important;
}

/**
 * Light tiled acharyasbook.com watermark.
 */
.abslms-capture-watermark {
	position: fixed !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 2147483000 !important;
	pointer-events: none !important;
	overflow: hidden !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.abslms-capture-watermark__grid {
	position: absolute;
	left: -25%;
	top: -35%;
	width: 150%;
	height: 170%;
	display: grid;
	grid-template-columns: repeat(6, minmax(140px, 1fr));
	gap: 56px 28px;
	transform: rotate(-28deg);
	align-content: start;
	justify-items: center;
}

.abslms-capture-watermark__grid span {
	display: block;
	white-space: nowrap;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	color: rgba(15, 23, 42, 0.05);
}

@media (max-width: 768px) {
	.abslms-capture-watermark__grid {
		grid-template-columns: repeat(4, minmax(120px, 1fr));
		gap: 44px 18px;
		left: -40%;
		top: -30%;
		width: 180%;
		height: 160%;
	}

	.abslms-capture-watermark__grid span {
		font-size: 13px;
		color: rgba(15, 23, 42, 0.055);
	}
}

/**
 * Popup notice — no full-page black screen.
 */
.abslms-capture-toast {
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483646 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	background: rgba(15, 23, 42, 0.35);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.abslms-capture-toast[hidden] {
	display: none !important;
}

.abslms-capture-toast__card {
	width: 100%;
	max-width: 320px;
	background: #fff;
	border-radius: 14px;
	padding: 22px 20px 18px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
	text-align: center;
}

.abslms-capture-toast__msg {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.45;
	font-weight: 600;
	color: #0f172a;
}

.abslms-capture-toast__btn {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	background: #2563eb;
	cursor: pointer;
}

.abslms-capture-toast__btn:hover,
.abslms-capture-toast__btn:focus {
	background: #1d4ed8;
}

@media print {
	html.abslms-content-protected body {
		display: none !important;
	}
}
