/*
Theme Name: Undervalue Child
Theme URI: https://undervalueappliances.ca/
Description: Child theme of Twenty Twenty-Five for Undervalue Appliances WooCommerce storefront.
Author: Undervalue Appliances
Template: twentytwentyfive
Version: 1.0.0
Text Domain: undervalue-child
*/

/* Unlock full width and center checkout */
body.woocommerce-checkout {
	background-color: #ffffff !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.woocommerce-checkout .wp-site-blocks,
body.woocommerce-checkout .wp-site-blocks > *,
body.woocommerce-checkout main.uv-checkout-main,
body.woocommerce-checkout main,
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout .wp-block-post-content,
body.woocommerce-checkout .woocommerce {
	max-width: 100% !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
}

body.woocommerce-checkout .is-layout-constrained,
body.woocommerce-checkout .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.woocommerce-checkout .wp-site-blocks > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.woocommerce-checkout .entry-content > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 100% !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.woocommerce-checkout .uv-checkout-wrapper {
	max-width: 1180px !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Ensure storefront header logo maintains exact 60px height across all WooCommerce pages */
.woocommerce img.uv-logo-img,
.woocommerce-page img.uv-logo-img,
.uv-site-header .uv-logo-img,
.uv-logo-wrap .uv-logo-img,
img.uv-logo-img {
	height: 60px !important;
	width: auto !important;
	max-width: 245px !important;
	object-fit: contain !important;
	display: block !important;
}

@media (max-width: 991px) {
	.woocommerce img.uv-logo-img,
	.woocommerce-page img.uv-logo-img,
	.uv-site-header .uv-logo-img,
	.uv-logo-wrap .uv-logo-img,
	img.uv-logo-img {
		height: 46px !important;
	}
}

@media (max-width: 600px) {
	.woocommerce img.uv-logo-img,
	.woocommerce-page img.uv-logo-img,
	.uv-site-header .uv-logo-img,
	.uv-logo-wrap .uv-logo-img,
	img.uv-logo-img {
		height: 38px !important;
	}
}

/* Interac E-Transfer Checkout Styling & Order */
.woocommerce-checkout #payment ul.payment_methods li.payment_method_interac_etransfer,
.woocommerce-checkout #payment ul.payment_methods li.payment_method_bacs {
	order: -9999 !important;
}

.woocommerce-checkout #payment ul.payment_methods li.payment_method_bacs .payment_box,
.woocommerce-checkout #payment ul.payment_methods li.payment_method_interac_etransfer .payment_box {
	display: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method label.uv-payment-method-label-etransfer {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: center !important;
	padding: 16px 20px 16px 52px !important;
	position: relative !important;
	cursor: pointer !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method label.uv-payment-method-label-etransfer::before {
	position: absolute !important;
	left: 20px !important;
	top: 18px !important;
	margin: 0 !important;
}

.uv-etransfer-title-row {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin-bottom: 5px !important;
}

.uv-etransfer-name {
	font-size: 14.5px !important;
	font-weight: 700 !important;
	color: #1e293b !important;
	font-family: inherit !important;
}

.uv-etransfer-badge-row {
	display: block !important;
	margin-bottom: 6px !important;
}

.etransfer-discount-tag {
	background: #00875a !important;
	color: #ffffff !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	padding: 2.5px 8px !important;
	border-radius: 3px !important;
	display: inline-block !important;
	vertical-align: middle !important;
	letter-spacing: 0.4px !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
}

.etransfer-discount-desc {
	width: 100% !important;
	padding-left: 0 !important;
	font-size: 13px !important;
	color: #00875a !important;
	font-weight: 600 !important;
	margin-top: 2px !important;
	line-height: 1.4 !important;
}

/* Hide footer on checkout page */
body.woocommerce-checkout footer,
body.woocommerce-checkout .uv-footer-wrap,
body.woocommerce-checkout .uv-footer,
body.woocommerce-checkout .site-footer,
body.woocommerce-checkout footer.wp-block-template-part,
body.woocommerce-checkout .wp-block-template-part[tagName="footer"],
body.uv-checkout-page footer,
body.uv-checkout-page .uv-footer-wrap,
body.uv-checkout-page .uv-footer,
body.uv-checkout-page .site-footer,
body.uv-checkout-page footer.wp-block-template-part {
	display: none !important;
}

/* PayPal Pay in 4 Under PayPal Method (BigCommerce 1:1 Match) */
.uv-paypal-paylater-slot {
	padding: 0 16px 12px 42px;
	margin-top: -2px;
	clear: both;
}

.uv-paypal-paylater-slot .ppcp-messages,
.uv-paypal-paylater-slot [data-pp-message] {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 13px !important;
	color: #0f172a !important;
	line-height: 1.4 !important;
	display: block !important;
}

.uv-paypal-or-pay-full {
	font-size: 13px;
	color: #2563eb;
	margin-top: 4px;
	font-weight: 400;
	cursor: pointer;
	display: inline-block;
}

.uv-paypal-or-pay-full:hover {
	text-decoration: underline;
}

/* Hide stray PayPal message above the payment methods box */
.uv-step-content-col > .ppcp-messages,
#order_review > .ppcp-messages,
#payment > .ppcp-messages,
.woocommerce-checkout-payment > .ppcp-messages {
	display: none !important;
}

/* Humm Payment Option 1:1 Match */
.uv-payment-method-label-humm {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	cursor: pointer;
	width: 100%;
}

.uv-humm-checkout-logo {
	height: 20px !important;
	width: auto !important;
	vertical-align: middle;
	display: inline-block !important;
}

.uv-humm-title-text {
	font-weight: 500;
	color: #0f172a;
	font-size: 14px;
}

.uv-humm-how-it-works {
	margin-left: auto;
	font-size: 13px;
	color: #2563eb;
	text-decoration: underline;
	font-weight: 400;
	white-space: nowrap;
}

.uv-humm-how-it-works:hover {
	color: #1d4ed8;
}

.uv-humm-apply-slot {
	padding: 0 20px 14px 60px;
	margin-top: -6px;
	font-size: 13px;
	color: #475569;
	line-height: 1.4;
	clear: both;
}

.uv-humm-apply-link {
	color: #2563eb;
	text-decoration: underline;
	font-weight: 500;
	margin-left: 4px;
}

.uv-humm-apply-link:hover {
	color: #1d4ed8;
}
