.checkout-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    margin: auto;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.order-summary img {
    border-radius: 8px;
    margin: 10px 0;
    max-width: 100%;
    height: auto;
}

form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

label {
    font-weight: bold;
    margin-top: 10px;
}

input,
textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.btn{
    justify-content: center !important;
    display: flex;
}
.btn-primary {
    background-color: #28a745;
    color: white;
    padding: 10px;
    border: none;
    margin-top: 15px;
    cursor: pointer;
    width: 100%;
}

.btn-primary:hover {
    background-color: #218838;
}

.back-link {
    display: block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}
.btn-danger {
margin-top: 10%;
color: white !important;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.quantity-control input {
    width: 50px;
    text-align: center;
    padding: 5px;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    cursor: pointer;
    border-radius: 5px;
}

.quantity-control button:hover {
    background-color: #e9ecef;
}

.coupon-section {
    padding: 10px 0;
    margin-bottom: 10px;
    display: contents;
}

.coupon-section input {
    margin-right: 10px;
    width: 100% !important;
}

.form-control {
    background-color: var(--background-color) !important;
    border: var(--bs-border-width) solid var(--primary-color) !important;
    border-radius: var(--bs-border-radius) !important;
}

#couponMessage {
    margin-left: 10px;
}
.table {
    background-color: var(--background-color) !important;
}

/* .input {
    width: 100% !important;
} */
/* Responsive Design */
@media (max-width: 600px) {

    .checkout-container {
        max-width: 95%;
        padding: 15px;
    }

    .btn-primary {
        padding: 12px;
    }

    /* Make table responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Stack table rows for small screens */
    table {
        width: 100%;
        border-collapse: collapse;
    }

    thead {
        display: none;
    }

    tr, td {
        display: block;
        width: 100%;
    }
    tbody   {
        display: block;
        width: 100%;
        align-items: center;
        display: contents;
    }
    td {
        text-align: right;
        padding: 10px;
        position: relative;
    }

    td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        text-align: left;
    }

    .table img {
        max-width: 50px;
        height: auto;
        display: flex;
        justify-content: center;
    }
    .quantity-control {
        justify-content: flex-start;
    }
    
    .quantity-control input {
        width: 40px;
    }
    
    .quantity-control button {
        width: 25px;
        height: 25px;
    }
    .order-summary img {
    display: flex;
    justify-content: center;
    }
}
@media (max-width: 600px) {
    td {
        text-align: right;
        padding: 10px;
        display: flex;
        position: relative;
        justify-content: center;
    }
}