/* ============================================================
   WooCommerce Custom Price Payment – Stylesheet
   ============================================================ */

.wcp-wrapper {
	max-width: 480px;
	margin: 0 auto;
	padding: 28px 32px;
	background: #ffffff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
	font-family: inherit;
}

.wcp-title {
	margin: 0 0 8px;
	font-size: 1.35em;
	font-weight: 700;
	color: #1a1a1a;
}

.wcp-desc {
	margin: 0 0 22px;
	color: #666;
	font-size: 0.95em;
	line-height: 1.5;
}

/* ── Fields ─────────────────────────────────────────────── */

.wcp-field {
	margin-bottom: 20px;
}

.wcp-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 0.9em;
	color: #333;
}

/* Amount input with currency symbol prefix */
.wcp-input-wrap {
	display: flex;
	align-items: stretch;
	border: 1px solid #cccccc;
	border-radius: 4px;
	overflow: hidden;
	transition: border-color 0.2s;
}

.wcp-input-wrap:focus-within {
	border-color: #96588a; /* WooCommerce purple – override to match theme */
	box-shadow: 0 0 0 2px rgba(150, 88, 138, 0.15);
}

.wcp-symbol {
	display: flex;
	align-items: center;
	padding: 0 12px;
	background: #f5f5f5;
	border-right: 1px solid #cccccc;
	color: #555;
	font-size: 1em;
	user-select: none;
	white-space: nowrap;
}

#wcp-amount {
	flex: 1;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 10px 12px;
	font-size: 1em;
	background: transparent;
	-moz-appearance: textfield;
}

#wcp-amount::-webkit-outer-spin-button,
#wcp-amount::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Note input */
#wcp-note {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cccccc;
	border-radius: 4px;
	font-size: 0.95em;
	box-sizing: border-box;
	transition: border-color 0.2s;
	outline: none;
}

#wcp-note:focus {
	border-color: #96588a;
	box-shadow: 0 0 0 2px rgba(150, 88, 138, 0.15);
}

/* ── Validation error ───────────────────────────────────── */

.wcp-error {
	display: block;
	margin-top: 5px;
	color: #c0392b;
	font-size: 0.83em;
	min-height: 1em;
}

.wcp-input-wrap.wcp-has-error {
	border-color: #c0392b;
}

/* ── Submit button ──────────────────────────────────────── */

.wcp-btn.button.alt,
button#wcp-submit {
	display: block;
	width: 100%;
	padding: 13px 20px;
	font-size: 1.05em;
	font-weight: 600;
	cursor: pointer;
	border-radius: 4px;
	transition: opacity 0.2s, background-color 0.2s;
}

button#wcp-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Notice banner ──────────────────────────────────────── */

.wcp-notice {
	margin-top: 18px;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 0.92em;
	line-height: 1.5;
}

.wcp-notice-success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.wcp-notice-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

/* ── Responsive ─────────────────────────────────────────── */

@media ( max-width: 520px ) {
	.wcp-wrapper {
		padding: 20px 16px;
	}
}
