
.modal-content {
    max-width: 400px;
    padding: 20px;
    border-radius: 10px;
}

/* Compact Cart Items */
.cart-item {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 0;
}

.cart-item-name {
    font-size: 14px;
}

.cart-item-price {
    font-size: 14px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
}

.quantity-display {
    font-size: 14px;
    min-width: 30px;
}

/* Total Amount Styling */
.total-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.total-amount {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.total-label {
    color: #7f8c8d;
}

/* Submit Button Adjustment */
#submit {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 14px;
}
.modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.close:hover {
    color: #333;
}

h2 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    font-size: 24px;
}

#cartItems {
    max-height: 60vh;
    overflow-y: auto;
    margin-bottom: 20px;
}
/* Updated Quantity Controls Styles */
.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.quantity-btn {
    background: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.quantity-btn:active {
    transform: scale(0.96);
}

.quantity-display {
    min-width: 36px;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.price-quantity-group {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cart-item-price {
    font-weight: 600;
    color: #27ae60;
    font-size: 16px;
    min-width: 80px;
    text-align: right;
}

#submit {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 25px;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#submit:hover {
    background: #219a52;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.cart-item-price {
    font-size: 14px;
    color: #27ae60;
    font-weight: 500;
    text-align: left; /* Aligns text to the left */
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
