/* General Styles */

/* Container Styling */
.cart-container {
    max-width: 50rem; /* 800px */
    margin: 2.5rem auto; /* 40px */
    background: white;
    padding: 1.25rem; /* 20px */
    border-radius: 0.75rem; /* 12px */
    box-shadow: 0 0.25rem 0.625rem rgb(255, 160, 160); /* 4px 10px */
    text-align: center;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.25rem;
}

th, td {
    padding: 0.75rem; /* 12px */
    text-align: center;
    border-bottom: 1px solid #f2c94c;
}

th {
    background-color: #ffdd57;
    color: #5a3e1b;
    font-weight: bold;
    font-size: 1.25rem;
}

/* Quantity Buttons */
button {
    border: none;
    padding: 0.375rem 0.625rem; /* 6px 10px */
    margin: 0.3125rem; /* 5px */
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0.5rem; /* 8px */
    transition: all 0.3s ease;
}

/* Remove Button */
.remove-item {
    background-color: rgb(255, 150, 138);
    color: white;
}

.remove-item:hover {
    background-color: rgb(253, 135, 122);
}

/* Cart Total */
#cart-total {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 1.25rem; /* 20px */
    color: #5a3e1b;
}

/* Pay Now Button */
#pay-now {
    display: none; /* Hidden until items exist */
    background-color: rgb(211, 157, 95);
    color: white;
    padding: 0.75rem 1.25rem; /* 12px 20px */
    font-size: 1.125rem; /* 18px */
    border-radius: 0.5rem; /* 8px */
    margin-top: 1.25rem; /* 20px */
    cursor: pointer;
    transition: 0.3s;
}

#pay-now:hover {
    background-color: rgb(204, 150, 89);
}

/* Responsive Design */
@media (max-width: 48rem) { /* 768px */
    .cart-container {
        width: 95%;
        padding: 0.9375rem; /* 15px */
    }

    th, td {
        padding: 0.5rem; /* 8px */
        font-size: 1.25rem; /* 20px */
    }

    button {
        font-size: 1.25rem; /* 20px */
        padding: 0.3125rem 0.5rem; /* 5px 8px */
    }

    #pay-now {
        font-size: 1.25rem; /* 20px */
        padding: 0.625rem 1rem; /* 10px 16px */
    }
}
