/* ═══════════════════════════════════════════════════════════════════════
   PPP Security — frontend styles
   (honeypot, cookie consent banner, newsletter form, notices)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Honeypot: visually removed, still in the accessibility/DOM tree for bots ── */
.ppp-hp-wrap,
.ppp-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ── Cookie consent banner ── */
.ppp-cookie-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 99999;
	max-width: 560px;
	margin: 0 auto;
	background: #fff;
	color: #1a1a1a;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	font-size: 14px;
	line-height: 1.5;
}

.ppp-cookie-banner__inner {
	padding: 20px;
}

.ppp-cookie-banner__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
}

.ppp-cookie-banner__text {
	margin: 0 0 12px;
}

.ppp-cookie-banner__text a {
	text-decoration: underline;
}

.ppp-cookie-banner__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin-bottom: 14px;
}

.ppp-cookie-banner__cat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	user-select: none;
}

.ppp-cookie-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ppp-cookie-banner__actions .ppp-btn {
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid #ccc;
	background: #f5f5f5;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
}

.ppp-cookie-banner__actions .ppp-btn--primary {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}

.ppp-cookie-banner__actions .ppp-btn--ghost {
	background: transparent;
}

/* ── Newsletter signup form ── */
.ppp-newsletter-form__title {
	margin: 0 0 6px;
}

.ppp-newsletter-form__text {
	margin: 0 0 10px;
}

.ppp-newsletter-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ppp-newsletter-form__input {
	flex: 1 1 220px;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 14px;
}

.ppp-newsletter-form__submit {
	padding: 10px 18px;
	border-radius: 8px;
	border: 1px solid #1a1a1a;
	background: #1a1a1a;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.ppp-newsletter-form__submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

.ppp-newsletter-form__message {
	margin: 8px 0 0;
	font-size: 13px;
	min-height: 1em;
}

.ppp-newsletter-form__message--success {
	color: #1a7f37;
}

.ppp-newsletter-form__message--error {
	color: #c0392b;
}

/* ── Newsletter confirm/unsubscribe notice ── */
.ppp-nl-notice {
	position: fixed;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 10px;
	background: #1a7f37;
	color: #fff;
	font-size: 14px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ppp-nl-notice--invalid {
	background: #c0392b;
}

.ppp-nl-notice--unsubscribed {
	background: #555;
}

.ppp-nl-notice__close {
	background: none;
	border: 0;
	color: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

/* Respect admin-bar offset */
.admin-bar .ppp-nl-notice {
	top: 48px;
}

@media (max-width: 600px) {
	.ppp-cookie-banner {
		left: 8px;
		right: 8px;
		bottom: 8px;
	}
}
