/* CWFD Email OTP — inline verify UI on the register form. */

.cwfd-otp-row {
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.cwfd-otp-row #reg_email {
	flex: 1 1 auto;
	min-width: 0; /* let the input shrink so the button stays compact */
	margin-bottom: 0 !important;
}

.cwfd-otp-verify-btn,
.cwfd-otp-code-btn {
	flex: 0 0 auto;
	width: auto !important;       /* override Porto's full-width button rule */
	max-width: max-content;
	white-space: nowrap;
	background: #2e7d32;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0 18px !important;
	min-height: 0;
	height: auto;
	line-height: 1.2;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.cwfd-otp-verify-btn:hover,
.cwfd-otp-code-btn:hover {
	background: #256528;
}

.cwfd-otp-verify-btn:disabled {
	background: #2e7d32;
	opacity: .9;
	cursor: default;
}

.cwfd-otp-row.is-verified .cwfd-otp-verify-btn {
	background: #1b5e20;
}

.cwfd-otp-row.is-verified #reg_email {
	border-color: #2e7d32;
}

.cwfd-otp-panel {
	margin-top: 12px;
}

.cwfd-otp-notice {
	font-size: 14px;
	margin-bottom: 8px;
	color: #1f3b57;
}

.cwfd-otp-notice.is-error {
	color: #c0392b;
}

.cwfd-otp-code-wrap {
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.cwfd-otp-code {
	flex: 1 1 auto;
	letter-spacing: 4px;
	margin-bottom: 0 !important;
}

.cwfd-otp-resend {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
}

.cwfd-otp-resend.is-disabled {
	pointer-events: none;
	opacity: .5;
}

@media ( max-width: 480px ) {
	.cwfd-otp-row,
	.cwfd-otp-code-wrap {
		flex-direction: column;
	}

	.cwfd-otp-verify-btn,
	.cwfd-otp-code-btn {
		padding: 12px 18px;
	}
}
