#test-modal {
	position: fixed;
	background: #c8c8c859;
	top: 0;
	border: 0;
	left: 0;
	right: 0;
	height: 100%;
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
}
#test-modal-loader {
	position: absolute;
}

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


.subscription-item,
.subs-prod-durations,
.subs-customer-billing {
	margin-bottom: 75px;
}

.subs-prod-durations {

    .subs-duration:last-child {
        position: relative;
        border: 2px solid rgba(148, 42, 228, 0.3);
        background: rgba(148, 42, 228, 0.05);
        height: 140px;
    }

    .subs-duration.active {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        padding: 16px 20px;
        background-color: #5fb3c1;
        color: white;
        margin-bottom: 15px;
        position: relative;
    }

    .subs-duration {
        display: flex;
        align-items: center;
        min-height: 93px;
        justify-content: space-between;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        padding: 16px 20px;
        background-color: #fff;
        color: #070707;
        margin-bottom: 15px;
        position: relative;
    }

}

.discount-price-label {
    font-size: 13px;
}

.subs-prod-title,
.subs-billing-header,
.checkout-billing-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    .step-number {
        background: #4ebac6;
        color: white;
        width: 32px;
        height: 32px;
        border-radius: 4px;
        font-weight: 600;
        font-size: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .step-title {
        color: #1e293b;
    }
}

.checkout-payments {
	margin-bottom: 10px;
	span {
		font-size: 20px;
		margin: 0;
		padding: 0;
		margin-bottom: 24px;
		color: #1e293b;
		font-weight: 600;
	}
	
}

.subs-prod {
	background-color: #5fb3c1;
	border-radius: 12px;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: white;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
		Ubuntu, Cantarell, sans-serif;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	margin: 0 auto;
    height: 93px;
}

.subs-prod-name {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

.check-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
}

.check-icon img {
	width: 15px;
	height: 11px;
	filter: brightness(0) invert(1);
}

.subs-prod-name span:last-child {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	color: white;
}

.subs-prod-price {
	font-size: 18px;
	font-weight: 600;
	color: white;
	margin-left: 20px;
	flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
	.subs-prod {
		padding: 14px 16px;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.subs-prod-name {
		width: 100%;
	}

	.subs-prod-price {
		margin-left: 0;
		align-self: flex-end;
	}
}

.gg-discount {
	font-size: 10px;
}

.subs-price {
	p {
		margin: 0;
		padding: 0;
		text-align: right;
	}

    .gg-discount {
        position: absolute;
        top: -8px;
        right: 15px;
        background: rgba(148, 42, 228, 0.9);
        color: white;
        padding: 6px 14px;
        border-radius: 12px;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .gg-saves {
        opacity: 0.8;
        font-size: 13px !important;
    }
}

.left-col {
    .button.alt {
        background-color: #4ebac6 !important;
        border-radius: 14px !important;
        min-height: 53px !important;
    }
    .button.alt:hover {
        background-color: #E4942A !important;
    }

    .woocommerce-checkout-payment {
        background-color: #fff !important;
        border: 2px solid #e2e8f0 !important;
    }

    .woocommerce-billing-fields__field-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
        margin: 0 auto;
        background: white;
        /* padding: 30px; */
        border-radius: 8px;
        /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */

        label {
            font-size: 14px;
            font-weight: 500;
            color: #374151;
            margin-bottom: 6px;
        }
    }

    .form-row {
         margin-bottom: 20px;
        position: relative;
        width: 100% !important;
    }

    #billing_first_name_field {
        order: 1;
    }

    #billing_last_name_field {
        order: 2;
    }

    #billing_email_field {
        order: 3;
    }

    #billing_phone_field {
        order: 4;
    }

    .woocommerce-input-wrapper {
        position: relative;
    }

    .input-text {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        transition: border-color 0.3s ease;
        background-color: #fff;
    }

    .input-text:focus {
        outline: none;
        border-color: #007cba;
        box-shadow: 0 0 0 1px #007cba;
    }

    .input-text:valid {
        border-color: #28a745;
    }

    #billing_first_name,
    #billing_last_name,
    #billing_email,
    #billing_phone {
        padding: 14px 16px;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        font-size: 15px;
        transition: all 0.2s ease;
        background: white;
    }

}

.right-col {
    table {
        tr.recurring-totals {
            display: none;
        }
        tr.recurring-total {
            display: none;
        }
    }
    .shop_table {
        background: white !important;
        padding: 30px;
        border: 2px solid #e2e8f0 !important;
        border-radius: 16px;
        height: fit-content;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    }
    .cart-subtotal {
        th {
            color: #64748b;
            font-size: 14px;
        }
    }
    .subscription-price {
        color: #64748b;
        font-size: 14px;
    }
    .woocommerce-Price-amount {
        bdi {
            color: #64748b;
            font-size: 14px;
        }
    }
    .order-total {
        font-size: 17px;
        font-weight: 700;
        color: #1e293b;

        .woocommerce-Price-amount {
            bdi {
                font-size: 17px !important;
                font-weight: 700 !important;
                color: #1e293b !important;
            }

        }
    }

    .woocommerce form.woocommerce-checkout .woocommerce-checkout-review-order-table th {
        padding: 20px 0px !important;
    }
	
	.product-quantity {
		display: none;
	}
}

.woocommerce form.woocommerce-checkout {
    grid-template-columns: 2fr 1fr !important;
}

.product-name {
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
}

.discount-row {
    /* background: rgba(148, 42, 228, 0.05);
    border: 1px solid rgba(148, 42, 228, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    margin-top: 15px;
    text-align: center; */

    .discount-cell {
        
        .percent_discount {
            margin: 0;
            font-size: 14px;
            font-weight: 600;
            color: rgba(148, 42, 228, 0.8);
        }
        .savings {
            color: #059669;
            font-size: 15px;
            font-weight: 700;
            margin: 0;
        }
    }
}

.woocommerce-checkout-review-order {
    position: sticky;
    top: 130px;
    align-self: start;
    z-index: 10;
}

.custom-discount {
    background: rgba(148, 42, 228, 0.05);
    border: 1px solid rgba(148, 42, 228, 0.2);
    border-radius: 12px;
    text-align: center;
    padding: 18px 0;
}

.checkout.woocommerce-checkout {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-column-gap: 55px;
}

#wc-stripe-express-checkout__order-attribution-inputs {
	display: none;
}