/**
 * CRDPay Paddle Gateway — Checkout UI Styling
 *
 * Professional styling for Card & PayPal payment selection, subtle borders,
 * CRDPay blue accents, responsive touch states, and strict logo dimension locking.
 */

/* Force Header and Logo Dimensional Integrity on Checkout Pages */
#site-header {
	height: 80px !important;
	min-height: 80px !important;
}

#site-header img,
#site-header .custom-logo,
a[aria-label="CRDPay"] img,
.crdpay-receipt-logo {
	height: 38px !important;
	max-height: 38px !important;
	width: auto !important;
	max-width: 195px !important;
	object-fit: contain !important;
	display: block !important;
}

/* Payment Method Badges & Chips */
.crdpay-paddle-payment-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
}

.crdpay-paddle-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #EFF6FF;
	color: #1D4ED8;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 9999px;
	text-transform: uppercase;
	border: 1px solid #DBEAFE;
}

.crdpay-blocks-payment-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 12px;
}

.crdpay-blocks-label-badges {
	display: flex;
	align-items: center;
	gap: 6px;
}

.crdpay-paddle-payment-box {
	margin-top: 6px;
}

.crdpay-method-chip {
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: default;
}

.crdpay-method-chip:hover {
	border-color: #2563EB !important;
	background: #F8FAFC !important;
}

/* Receipt Page Overlay Trigger & SaaS Card */
#crdpay-paddle-receipt-wrapper.crdpay-order-pay-card {
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
	border: 1px solid #E2E8F0;
	border-radius: 18px;
	background: #FFFFFF;
	animation: crdpayFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

/* Hide raw/unstyled default WooCommerce order-receipt metadata lists if present */
.woocommerce ul.order_details {
	display: none !important;
}

/* Primary Pay Button Interactive States */
#crdpay-paddle-pay-button.crdpay-pay-btn:not([disabled]):hover {
	background: #1D4ED8 !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35) !important;
}

#crdpay-paddle-pay-button.crdpay-pay-btn:not([disabled]):active {
	transform: translateY(0);
}

#crdpay-paddle-pay-button.crdpay-pay-btn[disabled] {
	cursor: not-allowed !important;
	opacity: 0.75;
}

/* Error Notice Banner */
#crdpay-paddle-error-notice {
	display: none;
	background: #FEF2F2;
	border: 1px solid #FECACA;
	color: #B91C1C;
	font-size: 13px;
	font-weight: 600;
	padding: 12px 16px;
	border-radius: 10px;
	margin-bottom: 16px;
	text-align: left;
}

@keyframes crdpaySpin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@keyframes crdpayFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}
