/**
 * 2007-2025 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 */

/* Main container */
.megadeliveryincrement-items {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.megadeliveryincrement-items h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.megadeliveryincrement-items .help-block {
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 14px;
}

/* Increment items list */
.increment-items-list {
    margin-bottom: 15px;
}

.increment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 10px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.increment-item:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Checkbox section */
.increment-item .item-checkbox {
    flex: 1;
    display: flex;
    align-items: flex-start;
    margin-right: 15px;
}

.increment-item .item-checkbox input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
    cursor: pointer;
}

.increment-item .item-checkbox label {
    cursor: pointer;
    margin-bottom: 0;
    font-weight: normal;
}

.increment-item .item-checkbox label strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
}

.increment-item .item-description {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 3px;
}

/* Quantity section */
.increment-item .item-quantity {
    display: flex;
    align-items: center;
    margin-right: 15px;
    min-width: 120px;
}

.increment-item .item-quantity label {
    margin-right: 8px;
    margin-bottom: 0;
    font-size: 13px;
    white-space: nowrap;
}

.increment-item .item-quantity input[type="number"] {
    width: 60px;
    padding: 5px 8px;
    font-size: 13px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 3px;
}

.increment-item .item-quantity input[type="number"]:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Price section */
.increment-item .item-price {
    min-width: 120px;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    color: #28a745;
}

.increment-item .item-price .unit-price {
    font-weight: bold;
}

/* Total section */
.increment-items-total {
    padding: 12px 15px;
    background-color: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.increment-items-total strong {
    color: #004085;
}

.increment-items-total .increment-total-amount {
    color: #004085;
    font-weight: bold;
    font-size: 18px;
}

/* Alert info */
.megadeliveryincrement-items .alert-info {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .increment-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .increment-item .item-checkbox,
    .increment-item .item-quantity,
    .increment-item .item-price {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .increment-item .item-price {
        text-align: left;
    }
    
    .increment-items-total {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .increment-items-total .increment-total-amount {
        margin-top: 5px;
    }
}
