/**
 * Content Fortress Pro — Content Lock styles.
 * Shared between the block editor preview and the public frontend so a
 * lock always looks the same to an editor as it will to a visitor.
 */

.cfp-lock {
	position: relative;
}

.cfp-lock-locked .cfp-lock-preview {
	pointer-events: none;
	user-select: none;
}

.cfp-lock-blurred .cfp-lock-preview {
	filter: blur(8px);
}

.cfp-lock-fade .cfp-lock-preview {
	-webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 90%);
	mask-image: linear-gradient(to bottom, black 20%, transparent 90%);
}

.cfp-lock-overlay .cfp-lock-preview {
	max-height: 220px;
	overflow: hidden;
}

.cfp-lock-panel {
	position: relative;
	margin-top: 12px;
	padding: 20px 24px;
	border-radius: 10px;
	background: rgba(17, 24, 39, 0.04);
	border: 1px solid rgba(17, 24, 39, 0.08);
	text-align: center;
}

.cfp-lock-overlay .cfp-lock-panel,
.cfp-lock-blurred .cfp-lock-panel,
.cfp-lock-fade .cfp-lock-panel {
	position: absolute;
	inset: auto 0 0 0;
	margin-top: 0;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(2px);
}

.cfp-lock-message {
	font-weight: 600;
	margin: 0 0 12px;
}

.cfp-lock-form {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
}

.cfp-lock-password-input {
	padding: 8px 10px;
	border: 1px solid rgba(17, 24, 39, 0.2);
	border-radius: 6px;
	min-width: 180px;
}

.cfp-lock-submit,
.cfp-lock-cta {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 6px;
	background: #4f46e5;
	color: #fff !important;
	border: none;
	cursor: pointer;
	font-weight: 600;
	text-decoration: none;
}

.cfp-lock-submit:hover,
.cfp-lock-cta:hover {
	background: #4338ca;
}

.cfp-lock-form-message {
	display: block;
	width: 100%;
	font-size: 13px;
	margin-top: 6px;
	color: #b91c1c;
}

.cfp-lock-denied {
	color: #6b7280;
	margin: 0;
}

/* Editor-only affordances */
.cfp-lock-editor-wrapper {
	border: 1px dashed rgba(79, 70, 229, 0.4);
	border-radius: 10px;
	padding: 12px;
}

.cfp-lock-editor-badge {
	font-size: 12px;
	font-weight: 600;
	color: #4f46e5;
	margin-bottom: 10px;
}

.cfp-lock-editor-inner {
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: 8px;
	padding: 12px;
	background: #fff;
}
