/*
 * Themes vary in whether they set border-box, and these components are dropped into all
 * of them. Declaring it on our own elements keeps their sizing independent of the theme.
 */
[class^="ac-"],
[class*=" ac-"],
[class^="ac-"]::before,
[class^="ac-"]::after,
[class*=" ac-"]::before,
[class*=" ac-"]::after {
	box-sizing: border-box;
}

/**
 * AntiCopy front-end styles.
 * Selection and print rules are inlined by PHP (they depend on settings);
 * this file holds only the static pieces.
 */

.ac-toast {
	position: fixed;
	left: 50%;
	z-index: 999999;
	max-width: 90%;
	padding: 12px 20px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ac-toast--bottom {
	bottom: 24px;
	transform: translateX(-50%) translateY(20px);
}

.ac-toast--top {
	top: 24px;
	transform: translateX(-50%) translateY(-20px);
}

.ac-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.ac-legal-notice {
	margin: 0;
	padding: 16px 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	background: rgba(0, 0, 0, 0.03);
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

.ac-legal-notice__title {
	display: block;
	margin-bottom: 4px;
}

.ac-legal-notice__body {
	margin: 0;
}

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

/**
 * Selection blocking. Defined here rather than inlined so the rule exists whenever
 * either Protect Text or Protect Images applies the class.
 */
.ac-no-select {
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

body.ac-no-select {
	cursor: no-drop;
}

img.ac-no-select {
	-webkit-user-drag: none;
	user-drag: none;
}

/* Form fields must stay usable even when the body blocks selection. */
.ac-no-select input,
.ac-no-select textarea,
.ac-no-select select,
.ac-no-select [contenteditable="true"] {
	-webkit-user-select: text;
	-moz-user-select: text;
	user-select: text;
	cursor: auto;
}

/* ------------------------------------------------------------------ */
/* Watermark overlay                                                    */
/* ------------------------------------------------------------------ */

.ac-watermark-wrap {
	position: relative;
	display: inline-block;
	max-width: 100%;
}

.ac-watermark-wrap > img {
	display: block;
	max-width: 100%;
	height: auto;
}

.ac-watermark-label {
	position: absolute;
	opacity: 0.85;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 700;
	white-space: nowrap;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
	pointer-events: none;
	-webkit-user-select: none;
	user-select: none;
}

.ac-pos-top-left { top: 8px; left: 8px; }
.ac-pos-top-right { top: 8px; right: 8px; }
.ac-pos-bottom-left { bottom: 8px; left: 8px; }
.ac-pos-bottom-right { bottom: 8px; right: 8px; }

.ac-pos-center {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* ------------------------------------------------------------------ */
/* Blocking overlays (bot protection, access control)                   */
/* ------------------------------------------------------------------ */

.ac-scroll-locked {
	overflow: hidden !important;
}

.ac-block-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483646;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.92);
}

.ac-block-overlay__box {
	max-width: 480px;
	padding: 36px;
	border-radius: 12px;
	background: #fff;
	color: #1a1a1a;
	text-align: center;
	font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ac-block-overlay__box h2 {
	margin: 0 0 12px;
	font-size: 22px;
}

.ac-block-overlay__box p {
	margin: 0;
	color: #555;
}

/* ------------------------------------------------------------------ */
/* Cookie consent banner                                                */
/* ------------------------------------------------------------------ */

.ac-gdpr {
	position: fixed;
	right: 0;
	left: 0;
	z-index: 999998;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ac-gdpr--bottom {
	bottom: 0;
}

.ac-gdpr--top {
	top: 0;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.ac-gdpr__title {
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
}

.ac-gdpr__message {
	margin: 0;
}

.ac-gdpr__actions {
	display: flex;
	gap: 14px;
	align-items: center;
	flex-shrink: 0;
}

.ac-gdpr__link {
	text-decoration: underline;
}

.ac-gdpr__accept {
	padding: 9px 18px;
	border: 0;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* Age verification gate                                                */
/* ------------------------------------------------------------------ */

.ac-age-gate {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ac-age-gate__box {
	width: 100%;
	max-width: 480px;
	padding: 32px;
	border-radius: 12px;
	background: #fff;
	color: #1a1a1a;
	text-align: center;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ac-age-gate__title {
	margin: 0 0 14px;
	font-size: 24px;
	font-weight: 700;
}

.ac-age-gate__message {
	margin: 0 0 24px;
	color: #555;
}

.ac-age-gate__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.ac-age-gate__confirm,
.ac-age-gate__decline {
	min-width: 140px;
	padding: 12px 24px;
	border: 0;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.ac-age-gate__confirm {
	background: #1a1a1a;
	color: #fff;
}

.ac-age-gate__decline {
	background: #f1f1f1;
	color: #333;
}


/* ------------------------------------------------------------------ */
/* Legal notice                                                         */
/* ------------------------------------------------------------------ */

.ac-align-left { text-align: left; }
.ac-align-center { text-align: center; }
.ac-align-right { text-align: right; }

.ac-legal-notice__copyright,
.ac-legal-notice__link {
	margin: 4px 0 0;
	font-size: 12px;
	opacity: 0.8;
}

/* ------------------------------------------------------------------ */
/* Consent banner layouts                                               */
/* ------------------------------------------------------------------ */

.ac-gdpr--corner {
	right: 20px;
	left: auto;
	max-width: 380px;
	flex-direction: column;
	align-items: flex-start;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ac-gdpr--corner.ac-gdpr--bottom { bottom: 20px; }
.ac-gdpr--corner.ac-gdpr--top { top: 20px; }

.ac-gdpr--corner .ac-gdpr__actions {
	width: 100%;
	justify-content: flex-end;
}

.ac-gdpr__decline {
	padding: 9px 18px;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font-size: 14px;
	cursor: pointer;
	opacity: 0.85;
}

.ac-gdpr__decline:hover {
	opacity: 1;
}

@media (max-width: 480px) {
	.ac-gdpr--corner {
		right: 10px;
		left: 10px;
		max-width: none;
	}
}

/* ------------------------------------------------------------------ */
/* Age gate additions                                                   */
/* ------------------------------------------------------------------ */

.ac-age-gate--blur {
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.ac-age-gate__logo {
	display: block;
	max-width: 160px;
	max-height: 70px;
	margin: 0 auto 18px;
	width: auto;
	height: auto;
}

.ac-age-gate__dob {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin: 0 0 18px;
}

.ac-age-gate__dob-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	color: #666;
	text-align: left;
}

.ac-age-gate__dob-field input {
	width: 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 16px;
	text-align: center;
	-moz-appearance: textfield;
}

.ac-age-gate__dob-field input::-webkit-outer-spin-button,
.ac-age-gate__dob-field input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.ac-age-gate__dob-field:nth-child(3) { flex: 1.4; }

.ac-age-gate__error {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 6px;
	background: #fdecea;
	color: #a3261f;
	font-size: 13px;
}

.ac-age-gate__disclaimer {
	margin: 18px 0 0;
	color: #888;
	font-size: 12px;
	line-height: 1.5;
}

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