/*
 Theme Name:   PopularFX Child
 Theme URI:    https://example.com/
 Description:  Child theme for PopularFX
 Author:       Your Name
 Template:     popularfx
 Version:      1.0.0
*/

/* WOOCOMMERCE CUSTOM EDITS */ 
form.checkout {
	margin-top: 32px;
}
.site-container {
	max-width: 90%;
	margin: 0 auto;
	overflow: visible;
}
.woocommerce-checkout .checkout.woocommerce-checkout {
	overflow:unset !important;
}
body.woocommerce-checkout .main-logo {
	position: relative;
}
body.woocommerce-checkout .main-logo:after {
	content: "Checkout Process";
	position: absolute;
	width:auto;
	font-size: 20px;
	max-height: 60px;
	top: 20px;
	font-weight: 500;
	left: 100%;
	white-space: nowrap;
}
.woocommerce-shipping-fields {
	padding: 10px 0 32px 0;
}
body.woocommerce-checkout .elementor-nav-menu {
	display: none;
}
.woocommerce table.shop_table .product-name * {
	text-decoration: none !important;
}
.woocommerce table.shop_table .product-details{
	font-weight: 600 !important;
}
form.checkout {
	font-family: "DM Sans", sans-serif !important;
}

.woocommerce form .form-row input.input-text, .woocommerce form .form-row .select2-container .select2-selection--single {
	padding: 16px !important;
	height: unset !important;
	border-radius: 12px;
	max-height: 53px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 20px;
}
.woocommerce form .form-row .select2-container .select2-selection__arrow {
	height:53px !important;
}
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
	display: flex;
	flex-wrap:wrap;
}

.woocommerce-additional-fields {
	
}
.woocommerce-checkout input[type="radio"] {
	transform:scale(1.25);
}
#billing_email_field {
	width: 100%;
}
#billing_address_2_field,
#shipping_address_2_field {
	width: 30%;
}
#billing_postcode_field,
#shipping_postcode_field {
	width: 30%;
}
#billing_first_name_field,
#shipping_first_name_field {
	width: 50%;
}
#billing_last_name_field,
#shipping_last_name_field {
	width: 50%;
}
#billing_address_1_field,
#shipping_address_1_field {
	width: 69.9%;
}
#billing_city_field,
#shipping_city_field {
	width: 40%;
}
#billing_phone_field {
	width:100%;
}
#billing_state_field,
#shipping_state_field {
	width: 30%;
}
.woocommerce-privacy-policy-text p {
	font-size: 12px;
}
.woocommerce-checkout form #order_review {
	padding: 0 16px !important;
	box-shadow: 0px 0px 25px rgba(0,0,0,.2);
	border: 0 !important;
}

button[name="woocommerce_checkout_place_order"] {
	padding: 20px !important;
	border-radius: 32px !important;
	width: 100% !important;
	margin: 20px 0 !important;
	background: #0043D4 !important;
}

#order_review_heading {
	float: unset !important;
    width: 100% !important;
    text-align: center !important;
    border:0 !important;
    font-size: 24px !important;
    font-weight: 500 !important;
}

table.shop_table,
table.shop_table td {
	border-collapse: collapse !important;
	border: 0 !important;
}

.product-thumbnail {
	width: 115px;
	min-width: 115px;
	height: 115px;
	margin-right: 24px;
}

td.product-name {
	display: flex;
}

.woocommerce table.shop_table tbody th, .woocommerce table.shop_table tfoot td, .woocommerce table.shop_table tfoot th {
	border-top: 0 !important; 
}

.woocommerce table.shop_table tr {
	outline: 0 !important;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
	vertical-align: top !important;
	padding: 12px !important;
}

.wc_payment_method {
	margin-top: 10px !important;
	border-radius: 32px;
	padding: 16px;
	border: 4px solid #ebebeb;
	line-height: unset !important;
}
.wc_payment_method.payment_method_paypossible {
	border-color: #FFE523;
}
.wc_payment_method.payment_method_paypossible.active-method {
	border-color: #FFE522;
}

.payment_box.payment_method_paypossible p {
	max-width: 60%;
}

.payment_box.payment_method_paypossible p:after {
	content: "";
    display: inline-block;
    width: 120px;
    height: 20px;
    background: url('https://staging.emattressoutlet.com/wp-content/uploads/2025/09/paypossible-logo.png') center center no-repeat;
    background-size: contain;
    margin-left: 5px;
    vertical-align: middle;
}

.wc_payment_method label {
	font-size: 24px;
}

tr.tax-total,
tr.woocommerce-shipping-totals,
tr.order-total {
	border-top: 1px solid #d7d7d7 !important;
}

tr.tax-total th,
tr.woocommerce-shipping-totals th,
tr.order-total th {
	font-size: 20px;
	font-weight: 400 !important;
}

tr.tax-total td {
	text-align: right;
}

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

.form-heading {
	font-size: 24px;
}

#shipping_method label {
	font-size: 20px !important;
	font-weight: 400 !important;
}

#shipping_method p {
	font-size: 14px !important;
	font-weight: 400 !important;
}

.variation dt {
	display: none !important;
}

.variation dd p {
	font-size: 16px !important;
	font-weight: 400 !important;
	color: #545454 !important;
	text-decoration:none !important;
}

.variation p {
	margin-top: 0px;
}

span.woocommerce-Price-amount {
	font-weight: 400;
	font-family: "DM Sans", sens-serif;
	font-size: 24px;
}

.payment_box {
	background: transparent !important;
	margin: 10px 0 0 0 !important;
	padding: 0 32px !important;
}
.woocommerce-checkout div.payment_box::before {
	display: none !important;
}

fieldset#wc-stripe-upe-form {
	border: 0 !important;
	padding: 0 !important;
}

.warning-text {
	display: none;
}

.checkout_coupon {
	display: flex !important;
}

.checkout_coupon p:first-child {
	width: 100% !important;
}
.checkout_coupon p:last-child {
	width: 50% !important;
}

.woocommerce-checkout button[name="apply_coupon"] {
	background: #fff !important;
	color: #999 !important;
	border-radius: 12px !important;
	width:100% !important;
	height: 53px !important;
}

/* MODAL CART */
.elementor-menu-cart__product.woocommerce-cart-form__cart-item.cart_item {
	display: flex;
	flex-direction:column;
}
.elementor-menu-cart__product-name.product-name {
	padding-left: 0;
	margin-top: 24px;
}

.elementor-menu-cart__product-name.product-name .variation {
	margin-top: 16px;
	margin-left: -5px;
}

#wc-stripe-express-checkout-element,
#wc-stripe-express-checkout-button-separator {
	display: none !important;
}
.woocommerce-form-login-toggle {
	display: none !important;
}

/* HIDE FIELDS */
#billing_company_field,
#billing_country_field,
#order_comments_field,
#shipping_country_field,
#shipping_company_field,
#shipping_phone_field {
	display: none !important;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
	.wc_payment_method label {
		font-size: 20px;
	}
	td.product-name {
		flex-direction: column;
	}
    .woocommerce-checkout form #customer_details {
        padding: 0 !important;
    }
    .wc_payment_method.payment_method_paypossible.active-method {
    	padding-right: 120px;
    }
}