/**
 * Frontend-only styles for EDE-style pages
 * 
 * @since 2026-02-21
 * @author Designs and Codes, LLC
 */

:where( .wc-block-components-main ) :is( div, * ) {
	margin-inline: 0;
}

:where( body.woocommerce-page ) ul > li:before,
:where( body:not( .woocommerce-checkout ) ) .wc-show-checkout,
:where( body.woocommerce-checkout.woocommerce-order-received ) .wc-show-checkout,
:where( body:not( .woocommerce-checkout.woocommerce-order-received ) ) .wc-show-order-received,
.wc-block-components-express-payment,
.wc-block-components-express-payment ~ * {
	display: none !important;
}

:has( > .wc-block-components-express-payment ) {
	display: none !important;
}

.wc-block-components-radio-control-accordion-content > * {
	margin-block: 1.5rem;
}

.woocommerce ul.order_details {
	display: flex;
	align-items: baseline;
	flex-flow: row wrap;
	gap: 1rem 2rem;
	justify-content: start;
	padding: 0;
}

.woocommerce ul.order_details:before,
.woocommerce ul.order_details:after {
	display: none !important;
}

.woocommerce ul.order_details li {
	margin: 0 !important;
}

.woocommerce-billing-fields > h3 {
	display: none;
}

:is( #add_payment_method, .woocommerce-cart, .woocommerce-checkout ) .woocommerce-notices-wrapper {
	display: none !important;
}

:is( #add_payment_method, .woocommerce-cart, .woocommerce-checkout ) #payment {
	background: transparent;
}

:is( #add_payment_method, .woocommerce-cart, .woocommerce-checkout ) #payment ul.payment_methods {
	border: 1px solid color-mix( in srgb, currentColor 20%, transparent );
	border-radius: 5px;
	padding: 0;
}

:is( #add_payment_method, .woocommerce-cart, .woocommerce-checkout ) #payment ul.payment_methods li {
	border-radius: 5px;
	line-height: inherit;
}

:is( #add_payment_method, .woocommerce-cart, .woocommerce-checkout ) #payment ul.payment_methods li:has( input[name="payment_method"]:checked ) {
	box-shadow: inset 0 0 0 1.5px currentColor;
}

:is( #add_payment_method, .woocommerce-cart, .woocommerce-checkout ) #payment ul.payment_methods .input-radio-field {
	display: flex;
	align-items: baseline;
	flex-flow: row nowrap;
	gap: 0.5rem;
	justify-content: start;
	padding: 1rem;
	inline-size: 100%;
}

:is( #add_payment_method, .woocommerce-cart, .woocommerce-checkout ) #payment ul.payment_methods .input-radio-field > * {
	margin: 0 !important;
}

:is( #add_payment_method, .woocommerce-cart, .woocommerce-checkout ) #payment ul.payment_methods .input-radio {
	flex: 0 0 auto;
}

:is( #add_payment_method, .woocommerce-cart, .woocommerce-checkout ) #payment ul.payment_methods .input-radio-label {
	flex: 1 1 0%;
}

:is( #add_payment_method, .woocommerce-cart, .woocommerce-checkout ) #payment div.payment_box {
	font-size: var( --wp--preset--font-size--small, 14px );
	margin: 0;
	padding: 1rem;
	padding-block-start: 0;
	background: 0;
}

:is( #add_payment_method, .woocommerce-cart, .woocommerce-checkout ) #payment div.payment_box:before {
	display: none;
}

:is( #add_payment_method, .woocommerce-cart, .woocommerce-checkout ) #payment div.payment_box .wc-ppcp-credit-card-gateway-cc-form {
	margin: 0;
}

.woocommerce-privacy-policy-text,
.woocommerce-terms-and-conditions-checkbox-text {
	font-size: var( --wp--preset--font-size--small, 14px );
}
