.full-width {
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Cart table styles */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.cart-table thead {
    background-color: var(--primary-color);
    color: #fff;
}

.cart-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Mobile labels - hidden by default */
.mobile-label {
    display: none;
}

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

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

/* Remove button */
.remove-btn {
    width: 30px;
    height: 30px;
    background-color: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background-color: #dc3545;
    color: #fff;
}

/* Cart actions */
.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 20px;
}

.continue-shopping {
    padding: 12px 24px;
    background-color: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.continue-shopping:hover {
    background-color: var(--primary-color);
    color: white;
}

.checkout-button {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkout-button:hover {
    background-color: var(--secondary-color);
}

/* Date picker section */
.rental-period {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rental-period h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.rental-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.rental-group {
    display: flex;
    flex-direction: column;
}

.rental-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.datetime-inputs {
    display: flex;
    gap: 10px;
}

.date-input {
    flex: 2;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.time-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.rental-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.rental-info .warning {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px;
}

.rental-info .error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .rental-inputs {
        grid-template-columns: 1fr;
    }

    .cart-actions {
        flex-direction: column;
    }

    .continue-shopping,
    .checkout-button {
        width: 100%;
        text-align: center;
    }

    .rental-period {
        margin: 0 -15px 30px -15px;
        border-radius: 0;
    }

    .cart-table {
        margin: 0 -15px 30px -15px;
        border-radius: 0;
        background: #f5f5f5;
        border: none;
        box-shadow: none;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody {
        display: block;
        padding: 15px;
    }

    .cart-table tbody tr {
        display: flex;
        flex-direction: column;
        border: 1px solid var(--border-color);
        margin-bottom: 15px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .cart-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .cart-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        border: none;
        border-bottom: 1px solid var(--border-color);
    }

    /* Mobile labels - shown on mobile */
    .mobile-label {
        display: block;
        font-weight: 500;
        min-width: 120px;
    }

    .cell-content {
        text-align: right;
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    /* Hide original code cell */
    .code-cell {
        display: none !important;
    }

    /* Product styling */
    td.product-cell {
        background-color: var(--primary-color);
        color: #fff;
        padding: 15px;
        font-weight: 500;
        border-radius: 8px 8px 0 0;
    }

    td.product-cell .mobile-label {
        display: none;
    }

    .cart-table tbody td:last-child {
        border-bottom: none;
    }

    .cart-table tfoot {
        margin: 15px;
        background: #fff;
        border-top: none;
        border-radius: 8px;
        padding: 15px;
        display: block;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .cart-table tfoot tr {
        display: flex;
        justify-content: space-between;
        padding: 0;
    }

    .cart-table tfoot td {
        border: none;
        padding: 0;
    }

    .datetime-inputs {
        flex-direction: column;
    }

    .quantity-control {
        margin-left: auto;
    }

    .quantity-btn {
        width: 35px;
        height: 35px;
    }

    .quantity {
        min-width: 40px;
        font-size: 16px;
    }

    .remove-btn {
        width: 35px;
        height: 35px;
    }

    /* Remove button cell styling */
    td.remove-cell {
        justify-content: flex-end;
    }

    td.remove-cell .mobile-label {
        display: none;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .datetime-inputs input,
    .datetime-inputs select {
        width: 100%;
    }

    .rental-info {
        margin: 15px -15px;
        border-radius: 0;
    }

    .cart-table tbody {
        padding: 10px;
    }

    .mobile-label {
        min-width: 100px;
    }
}