/* ===== WP FACTURES - FRONTEND ===== */
.wpf-frontend-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.wpf-form-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.wpf-form-group {
    margin-bottom: 15px;
}

.wpf-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.wpf-form-group input,
.wpf-form-group select,
.wpf-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Items table */
.wpf-item-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.wpf-item-row input {
    flex: 1;
}

.wpf-item-row input[type="number"] {
    width: 80px;
}

.wpf-item-total {
    width: 100px;
    text-align: right;
    font-weight: bold;
}

.wpf-remove-item {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

/* Totals */
.wpf-totals-section {
    background: white;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.wpf-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.wpf-total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wpf-total-ttc {
    font-size: 1.2em;
    font-weight: bold;
    border-top: 2px solid #333;
    padding-top: 8px;
    margin-top: 8px;
}

/* Buttons */
.wpf-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background-color 0.3s;
}

.wpf-btn-primary {
    background: #007cba;
    color: white;
}

.wpf-btn-primary:hover {
    background: #005a87;
}

/* Responsive */
@media (max-width: 768px) {
    .wpf-item-row {
        flex-direction: column;
    }
    
    .wpf-item-row input {
        width: 100%;
    }
}