/*
 * Credit Direct checkout button styling.
 * Scoped entirely to .creditdirect-checkout-button (or the admin-configured class) so this
 * never bleeds into WoodMart or WooCommerce's own styles.
 */

.creditdirect-checkout-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 1em;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: opacity 0.15s ease-in-out;
	background-color: var( --creditdirect-button-bg, #1c64f2 );
	color: var( --creditdirect-button-text, #ffffff );
}

.creditdirect-checkout-button:hover:not( :disabled ) {
	opacity: 0.9;
}

.creditdirect-checkout-button:disabled {
	cursor: not-allowed;
	opacity: 0.65;
}

.credit-direct-checkout-messages {
	margin-top: 0.5em;
	padding: 0.75em 1em;
	border-radius: 4px;
	background-color: #fdecea;
	color: #611a15;
	font-size: 0.9rem;
}
