/* Content Restrict Pro - Frontend styles */

.crp-form-wrapper {
	max-width: 420px;
	margin: 0 auto;
	padding: 28px 30px;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.crp-field {
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
}

.crp-field label {
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
}

.crp-field input[type="text"],
.crp-field input[type="email"],
.crp-field input[type="password"] {
	padding: 10px 12px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 15px;
	width: 100%;
	box-sizing: border-box;
}

.crp-field textarea {
	padding: 10px 12px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 15px;
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	resize: vertical;
}

.crp-customer-type-field .crp-radio-option {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

.crp-customer-type-field .crp-radio-option label {
	margin: 0;
	font-weight: 400;
}

.crp-business-fields {
	display: none;
	border-left: 3px solid #2271b1;
	padding-left: 14px;
	margin-bottom: 6px;
}

.crp-remember label {
	flex-direction: row;
	display: flex;
	align-items: center;
	font-weight: 400;
	gap: 6px;
}

.crp-submit {
	margin-top: 22px;
}

.crp-button {
	display: inline-block;
	background: #2271b1;
	color: #fff !important;
	border: none;
	padding: 10px 22px;
	border-radius: 4px;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
}

.crp-button:hover {
	background: #135e96;
	color: #fff !important;
}

.crp-form-footer {
	margin-top: 16px;
	font-size: 14px;
	text-align: center;
}

.crp-alert {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 18px;
	font-size: 14px;
}

.crp-alert ul {
	margin: 0;
	padding-left: 18px;
}

.crp-alert-success {
	background: #e7f6ec;
	border: 1px solid #b7e3c5;
	color: #1e6b3d;
}

.crp-alert-error {
	background: #fdeaea;
	border: 1px solid #f3b8b8;
	color: #9b2c2c;
}

/* Partial content restriction notice */
.crp-restricted-notice {
	background: #f7f7f7;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	padding: 20px 24px;
	margin: 20px 0;
	text-align: center;
}

.crp-restricted-message {
	margin: 0 0 10px;
	font-size: 15px;
}

.crp-restricted-links a {
	font-weight: 600;
	text-decoration: none;
}

.crp-restricted-links .crp-sep {
	margin: 0 6px;
	color: #999;
}

.crp-account-box {
	font-size: 14px;
}

/* ------------------------------------------------------------------
   Admin-approval pending modal
   ------------------------------------------------------------------ */

.crp-modal-overlay {
	display: none; /* shown by JS after redirect */
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	align-items: center;
	justify-content: center;
}

.crp-modal-box {
	background: #fff;
	border-radius: 10px;
	padding: 40px 36px;
	max-width: 420px;
	width: 90%;
	text-align: center;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	animation: crp-modal-in 0.25s ease;
}

@keyframes crp-modal-in {
	from { transform: scale(0.88); opacity: 0; }
	to   { transform: scale(1);    opacity: 1; }
}

.crp-modal-icon {
	font-size: 48px;
	margin-bottom: 14px;
	line-height: 1;
}

.crp-modal-box h2 {
	margin: 0 0 12px;
	font-size: 22px;
	color: #1e3a5f;
}

.crp-modal-box p {
	font-size: 15px;
	color: #444;
	margin: 0 0 10px;
	line-height: 1.55;
}

.crp-modal-close {
	margin-top: 22px;
	width: 100%;
	font-size: 15px;
	padding: 11px 0;
}

.crp-pending-notice {
	text-align: center;
}
