/**
 * CF7 Checkbox Max Selected Items – Front-end styles
 */

/* ── Disabled checkbox labels ─────────────────────────────────────────── */
.wpcf7-form-control-wrap .cf7-cbms-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	user-select: none;
	-webkit-user-select: none;
}

.wpcf7-form-control-wrap .cf7-cbms-disabled input[type="checkbox"] {
	cursor: not-allowed;
	pointer-events: none;
}

/* ── Inline max-reached notice ───────────────────────────────────────── */
.cf7-cbms-max-notice {
	display: block;
	margin-top: 6px;
	padding: 6px 10px;
	border-left: 3px solid #e67e22;
	background-color: #fef9f0;
	color: #7a4a00;
	font-size: 0.875em;
	line-height: 1.4;
	border-radius: 2px;
}

/* Dark-mode aware */
@media ( prefers-color-scheme: dark ) {
	.cf7-cbms-max-notice {
		background-color: #2c1f00;
		color: #f5c97a;
		border-left-color: #e67e22;
	}
}

/* ── Admin tag-generator row ─────────────────────────────────────────── */
/* Tucks in neatly with CF7's existing option table styling */
.cf7-cbms-max-row th,
.cf7-cbms-max-row td {
	padding: 6px 10px;
	vertical-align: top;
}

.cf7-cbms-maxselect-input {
	width: 80px;
}

.cf7-cbms-max-row p.description {
	margin-top: 4px;
	font-size: 0.8em;
	color: #666;
}
