.payment-container {
    display: flex;
    height: 130vh; 
    color:black;
}

.left-container, .right-container {
    padding: 20px;
}

/* For the payment form */
.left-container {
    width: 70%; 
    background-color: #f0f0f0; 
}

/* Item Display */
.right-container {
    width: 30%; 
    background-color: #e0e0e0; 
    overflow-y: auto; 
    overflow-x: hidden; 
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form{
    width:400px;
}

.form-group{
    margin-bottom:10px;
    margin-top:20px;
}

.btn-wide {
    width: 200px;
    margin-top:0px;
}


.box {
    display: flex;
    align-items: center;
    margin-top:40px;
    margin-left:20px;
}

.box img {
    width:150px;
    max-height: 180px;
    margin-right: 30px;
}

.text-container {
    flex-grow: 1;
}

.text-container h3 {
    margin-top: 0;
}

#userPointsDisplay{
    margin-bottom:5px;
    margin-left:10px;
}

.input-box{
    width:400px
}

.small-input-box{
    width:190px;
}

@media screen and (max-width: 500px) {
    .payment-container {
        flex-direction: column;
        height: auto;
    }

    .left-container, .right-container {
        width: 100%; 
    }
    .right-container {
        order: -1; /* Set the right container to appear first */
    }
    .input-box{
        width:300px;
        margin-left:35px;
    }
    
    .small-input-box{
        width:100px;
        margin-left:35px;
    }
    form{
        width:370px;
    }
    #total-price-display {
        display: block;
        margin-top: 20px; 
    }

    .row.justify-content-center{
        width:375px;
    }

    #userPointsDisplay{
        margin-left:40px;
    }
}