/**
 * Frontend honeypot styles.
 *
 * Collapses CF7 autop <p> wrappers and hides the trap from users without
 * display:none so browser extensions (e.g. FakeFiller) still fill the field.
 */

/* Collapse the CF7 autop <p> around honeypot fields. */
.wpcf7-form p:has([data-cf7apps-honeypot]),
.wpcf7-form p:has(.cf7apps-honeypot-wrap) {
	margin: 0;
	padding: 0;
	height: 0;
	min-height: 0;
	line-height: 0;
	font-size: 0;
	border: 0;
}

/* Visually hidden honeypot wrapper — not display:none. */
.cf7apps-honeypot-wrap,
[data-cf7apps-honeypot] {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.cf7apps-honeypot-wrap .hp-message,
[data-cf7apps-honeypot] .hp-message {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.cf7apps-honeypot-wrap input.wpcf7-form-control[type="text"],
[data-cf7apps-honeypot] input.wpcf7-form-control[type="text"] {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	border: 0;
}
