/* General Page Styles */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* Flexbox layout for cart items */
.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 1.2em;
    font-weight: bold;
}

.item-subtitle {
    font-size: 0.9em;
    color: #555;
}

/* Quantity controls */
.quantity-controls {
    display: flex;
    align-items: center;
}

.quantity-controls .cart-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.cart-qty {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    margin: 0 10px;
}

/* Subtotal Section */
.item-subtotal {
    text-align: right;
    font-weight: bold;
    font-size: 1em;
}

/* Rental Period Section */
.rental-period {
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
}

.rental-period .form-group {
    margin-right: 20px;
}

.rental-period label {
    font-size: 0.85em;
    color: #333;
}

.form-control {
    padding: 5px;
    font-size: 0.9em;
}

.total-rental-days {
    font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .quantity-controls,
    .item-subtotal {
        text-align: left;
    }

    .rental-period {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* General Styles */
.rental-period {
    background-color: #f9f9f9; /* Light background for differentiation */
    padding: 25px; /* Increased padding around the rental section */
    margin-top: 20px; /* Space above the rental section */
    border-radius: 8px; /* Rounded corners */
    border: 1px solid #ddd; /* Light border for emphasis */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Rental Date Container */
.rental-date-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Space between rental date groups */
}

/* Form Group Styles */
.rental-date-group {
    flex: 1; /* Take equal space */
    margin-bottom: 15px; /* Space between groups vertically */
}

/* Label Styles */
.rental-date-group label {
    font-weight: bold; /* Bold labels */
    margin-bottom: 8px; /* Space between label and input */
}

/* Input Field Styles */
.form-control {
    padding: 6px; /* Add padding for better input field appearance */
    border: 1px solid #ccc; /* Light border for input fields */
    border-radius: 5px; /* Rounded corners for input fields */
    transition: border-color 0.3s ease; /* Smooth transition for border */
}

/* Input Focus Styles */
.form-control:focus {
    border-color: #007bff; /* Highlight border on focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Shadow for focus effect */
}

/* Total Rental Days */
.total-days-group {
    display: flex;
    align-items: center; /* Center align the content */
}

/* Rental Info Styles */
.rental-info {
    padding: 15px;  /* Increased padding around the rental info section */
    border: 1px solid #e0e0e0;  /* Light border */
    border-radius: 5px;  /* Rounded corners */
    background-color: #f9f9f9;  /* Light background for contrast */
    width: 206px;
}

/* Rental Item Styles */
.rental-item {
    display: flex;  /* Flexbox for alignment */
    justify-content: space-between;  /* Space out the label and value */
    padding: 10px 0;  /* Increased padding between items */
    border-bottom: 1px solid #e0e0e0; /* Divider between items */
}

.rental-item:last-child {
    border-bottom: none; /* Remove border from the last item */
}

strong {
    color: #333;  /* Darker color for headings */
}

span {
    color: #555;  /* Lighter color for values */
    font-weight: 600;  /* Slightly bolder text for values */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .rental-date-container {
        flex-direction: column; /* Stack items on small screens */
    }

    .rental-date-group {
        margin-right: 0; /* Reset margin on small screens */
        margin-bottom: 15px; /* Space between stacked items */
    }
}