/* OPPAK Content Protection — front-end styles.
   Selection-disabling and print rules are injected inline based on settings;
   this file holds the static pieces (toast + image shield). */

.oppak-cp-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%) translateY(20px);
	background: var(--oppak-cp-accent, #1B3A5C);
	color: #fff;
	padding: 12px 20px;
	border-radius: 8px;
	font: 500 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", Helvetica, Arial, sans-serif;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	z-index: 999999;
	max-width: 90vw;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.oppak-cp-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* Image shield: an invisible layer over an image so "Save image as" and drag
   land on the shield, not the picture. */
.oppak-cp-imgwrap {
	position: relative;
	display: inline-block;
	line-height: 0;
	max-width: 100%;
}
.oppak-cp-imgwrap > img {
	max-width: 100%;
	height: auto;
	-webkit-user-drag: none;
	user-drag: none;
	-webkit-touch-callout: none;
}
.oppak-cp-imgshield {
	position: absolute;
	inset: 0;
	display: block;
	background: transparent;
	z-index: 5;
	cursor: default;
}

/* Belt-and-braces: images are not draggable/selectable when active. */
body.oppak-cp-active img {
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}
