/* ---------------------------------------------------------------
   Payment Form Plugin – Public Styles
--------------------------------------------------------------- */

/* Wrapper */
.pfp-form-wrapper {
	max-width: 480px;
	margin: 0 auto;
}

/* Alerts */
.pfp-alert {
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 14px;
}

.pfp-alert-warning {
	background: #fff8e5;
	border-left: 4px solid #dba617;
	color: #7a5a00;
}

.pfp-alert-error {
	background: #fce8e8;
	border-left: 4px solid #d63638;
	color: #8a1515;
}

/* Field groups */
.pfp-field-group {
	margin-bottom: 18px;
}

.pfp-label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 4px;
}

.pfp-required {
	color: #d63638;
	margin-left: 2px;
}

.pfp-input {
	width: 100%;
	max-width: 100%;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
	box-sizing: border-box;
	transition: border-color .15s;
}

.pfp-input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34,113,177,.15);
}

/* Amount display */
.pfp-amount-display {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 8px 14px;
	margin-bottom: 18px;
	font-size: 15px;
}

.pfp-amount-label {
	color: #555;
	margin-right: 6px;
}

.pfp-amount-value {
	font-weight: 700;
}

/* Submit */
.pfp-submit-group {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pfp-btn {
	cursor: pointer;
	border: none;
	border-radius: 4px;
	font-size: 15px;
	padding: 10px 28px;
	font-weight: 600;
	transition: background .15s, transform .1s;
}

.pfp-btn-primary {
	background: #2271b1;
	color: #fff;
}

.pfp-btn-primary:hover {
	background: #135e96;
}

.pfp-btn-primary:active {
	transform: scale(.98);
}

.pfp-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}

/* Spinner */
.pfp-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #ddd;
	border-top-color: #2271b1;
	border-radius: 50%;
	animation: pfp-spin .7s linear infinite;
}

@keyframes pfp-spin {
	to { transform: rotate(360deg); }
}
