.checkout {
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 20px;
}
.checkout-form {
    flex: 1;
    min-width: 0;
    background-color: white;
}
.checkout .order-summary {
    width: 400px;
    background: #f9f9f9;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}
.checkout section {
    border: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 20px;
}
.checkout section h3 {
    margin-top: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.checkout section.collapsed .checkout-content {
    display: none;
}
.checkout section.expanded .checkout-content {
    display: block;
}
.checkout section .summary {
    display: block;
    font-weight: normal;
    color: #555;
    font-size: 16px;
    padding-left: 1rem;
}
.checkout .form-group {
    margin-bottom: 15px;
}
.checkout label {
    display: block;
    margin-bottom: 5px;
}
.checkout input, textarea, select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
.checkout button {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}
.checkout button:hover {
    background: #39B54A;
}
.checkout .hidden {
    display: none;
}
.checkout .step {
    display: none;
}
.checkout .step.active {
    display: block;
}
.checkout .order-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkout .order-item img {
    width: 50px;
    height: 50px;
}
.checkout .total {
    font-weight: bold;
    text-align: right;
    margin-top: 10px;
}
.checkout .social-login {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.checkout .social-login button {
    flex: 1;
    background: #3b5998;
}
.checkout .social-login button:last-child {
    background: #db4437;
}
.checkbox .container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.checkout .radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}
.checkout .radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
}
.checkout .radio-group input {
    width: auto;
}

/* Existing styles remain unchanged */

/* Mobile Order Summary Styles */
@media (max-width: 768px) {
    .checkout .order-summary {
        display: none; /* Hide desktop sticky summary on mobile */
    }

    .checkout .order-summary-mobile {
        /* position:sticky;
        top: 0;  */
        /* padding: 0 10px; */
        /* left: 0; */
        width: 100%;
        background: #c1c1c1c1; /* Adjust to match your theme */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        color: #666;
      
        /* z-index: 1500; */
        
     
    
    }

    .checkout .order-summary-mobile p {
       font-size: 14px;
    }

    .checkout .spacer-transparent {
        /* left: 0; */
        height: 100%; /* Height of the fixed summary */
        width: 100%;
        /* position: sticky; */
        /* top: 0; */
        background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
        z-index: 500;
    }


    .checkout .summary-header {
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
        cursor: pointer;
        background: #f5f5f5; /* Adjust to match your theme */
        margin-bottom: 10px;
    }

    .checkout {
        display: block;
        width: 100%;
    }

    .checkout .summary-header .toggle-icon {
        font-size: 20px;
    }

    .checkout .summary-content {
       
        padding: 0px 15px;
        display: none; /* Hidden by default, shown on click */
    }

    .checkout .summary-content.hidden {
        display: none;
    }

    .checkout .summary-content.expanded {
        display: block;
    }
}

/* Desktop Sticky Summary Styles */
@media (min-width: 769px) {
    .checkout .order-summary-mobile {
        display: none; /* Hide mobile summary on desktop */
    }

    .checkout .order-summary {
        position: sticky;
        top: 20px;
        align-self: flex-start;
        width: 30%; /* Adjust as needed */
        min-width: 300px;
        padding: 15px;
        background: #fff; /* Adjust to match your theme */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}