/**
 * Stripe Payment Form Styles
 *
 * @package CruvaiStripe
 */

.ldp-payment-wrapper {
	max-width: 500px;
	margin: 0 auto;
}

.ldp-invoice-summary {
	background: #F8F9FA;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 24px;
}

.ldp-invoice-summary h3 {
	margin: 0 0 16px;
	color: #1B2A4A;
	font-size: 1.1rem;
}

.ldp-invoice-table {
	width: 100%;
	border-collapse: collapse;
}

.ldp-invoice-table td {
	padding: 8px 0;
	border-bottom: 1px solid #e2e8f0;
	font-size: 0.95rem;
}

.ldp-invoice-table td:last-child {
	text-align: right;
}

.ldp-total-row td {
	font-size: 1.1rem;
	border-bottom: none;
	padding-top: 12px;
}

.ldp-payment-form {
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	padding: 24px;
}

.ldp-payment-element {
	margin-bottom: 20px;
	min-height: 60px;
}

.ldp-payment-errors {
	color: #dc2626;
	font-size: 0.9rem;
	margin-bottom: 16px;
	min-height: 20px;
}

.ldp-submit-btn {
	width: 100%;
	padding: 14px 24px;
	background: #D4A843;
	color: #1B2A4A;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.ldp-submit-btn:hover {
	background: #E8C468;
}

.ldp-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ldp-spinner {
	width: 20px;
	height: 20px;
	border: 3px solid rgba(27, 42, 74, 0.2);
	border-top-color: #1B2A4A;
	border-radius: 50%;
	animation: ldp-spin 0.8s linear infinite;
}

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

.ldp-payment-success {
	text-align: center;
	padding: 40px 24px;
}

.ldp-success-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #d4edda;
	color: #2D8B4A;
	font-size: 2rem;
	line-height: 64px;
	margin: 0 auto 16px;
}

.ldp-payment-success h3 {
	color: #2D8B4A;
	margin-bottom: 8px;
}

.ldp-security-note {
	text-align: center;
	font-size: 0.8rem;
	color: #64748B;
	margin-top: 16px;
}

/* Notices */
.ldp-notice {
	padding: 16px 20px;
	border-radius: 8px;
	font-size: 0.95rem;
}

.ldp-notice--info {
	background: #e8f4fd;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}

.ldp-notice--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

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