/**
 * Phase 8 — Balance payment page styles.
 */
.ptb-pay-balance {
	max-width: 640px;
	margin: 2rem auto;
	padding: 0 1rem;
	font-family: inherit;
}

.ptb-balance-card {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 2px 12px rgba( 0, 0, 0, 0.06 );
}

.ptb-balance-card h2 {
	margin-top: 0;
	font-size: 1.5rem;
}

.ptb-balance-summary {
	margin: 1.5rem 0;
}

.ptb-balance-summary > div {
	display: flex;
	justify-content: space-between;
	padding: 0.5rem 0;
	border-bottom: 1px solid #f0f0f0;
}

.ptb-balance-summary dt {
	font-weight: 600;
	color: #555;
}

.ptb-balance-summary dd {
	margin: 0;
}

.ptb-balance-summary .ptb-balance-due {
	border-bottom: none;
	font-size: 1.25rem;
}

.ptb-balance-summary .ptb-balance-due dd {
	font-weight: 700;
	color: #1a7a2e;
}

#ptb-balance-payment-element {
	margin: 1.5rem 0;
	min-height: 120px;
}

.ptb-balance-errors {
	background: #fdecea;
	border: 1px solid #f5c6cb;
	color: #a94442;
	border-radius: 6px;
	padding: 0.75rem 1rem;
	margin: 1rem 0;
}

.ptb-balance-pay {
	display: block;
	width: 100%;
	padding: 0.9rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
	background: #1a7a2e;
	border: none;
	border-radius: 8px;
	cursor: pointer;
}

.ptb-balance-pay:hover:not(:disabled) {
	background: #156626;
}

/* Phase 10: visible keyboard focus (was missing). */
.ptb-balance-pay:focus-visible {
	outline: 2px solid #1a7a2e;
	outline-offset: 2px;
}

.ptb-balance-pay:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ptb-pay-balance .ptb-muted {
	/* Phase 10: #767676 for 4.54:1 contrast (was #777 at 4.48:1). */
	color: #767676;
	font-size: 0.9rem;
}
