/* === Statix Checkout === */

.statix-checkout {
    max-width: 800px;
    margin: 0 auto;
}

/* Steps indicator */
.statix-checkout-steps {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.statix-checkout-step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
}

.statix-checkout-step__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.statix-checkout-step.active {
    color: #0066cc;
}

.statix-checkout-step.active .statix-checkout-step__num {
    background: #0066cc;
    color: #fff;
}

.statix-checkout-step.completed .statix-checkout-step__num {
    background: #41c57c;
    color: #fff;
}

.statix-checkout-step__label {
    font-size: 14px;
    font-weight: 500;
}

/* Step content */
.statix-checkout-step-content {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.statix-checkout-step-content h3 {
    margin-bottom: 16px;
    font-size: 18px;
}

/* Form fields */
.statix-checkout .statix-form-row {
    margin-bottom: 12px;
}

.statix-checkout .statix-form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.statix-checkout .statix-form-row input[type="text"],
.statix-checkout .statix-form-row input[type="email"],
.statix-checkout .statix-form-row input[type="tel"],
.statix-checkout .statix-form-row input[type="password"],
.statix-checkout .statix-form-row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.statix-checkout .statix-form-row input:focus,
.statix-checkout .statix-form-row select:focus {
    outline: none;
    border-color: #0066cc;
}

/* Particulier / Bedrijf toggle */
.statix-form-type-options {
    display: flex;
    gap: 16px;
}

.statix-form-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-weight: 500;
    background: #fff;
}

.statix-form-type-option:hover {
    border-color: #0066cc;
}

.statix-form-type-option input[type="radio"] {
    margin: 0;
}

.statix-form-type-option input[type="radio"]:checked + span,
.statix-form-type-option:has(input:checked) {
    border-color: #0066cc;
    background: #f0f7ff;
}

.statix-form-type-option:has(input:checked) {
    border-color: #0066cc;
    background: #f0f7ff;
}

/* Half width fields — naast elkaar via flexbox */
.statix-checkout .statix-form-row--half {
    flex: 1;
    min-width: 0;
}

/* Naam velden wrapper */
.statix-form-name-row {
    display: flex;
    gap: 16px;
}
.statix-form-name-row .statix-form-row--half {
    flex: 1;
    margin: 0;
    width: auto;
}

/* Bedrijfvelden wrapper voor KVK + BTW */
.statix-form-row--company-row {
    display: flex;
    gap: 16px;
}
.statix-form-row--company-row .statix-form-row--half {
    flex: 1;
    margin: 0;
    width: auto;
}

/* Adresvelden wrapper voor postcode + woonplaats */
.statix-form-address-row {
    display: flex;
    gap: 16px;
}
.statix-form-address-row .statix-form-row--half {
    flex: 1;
    margin: 0;
    width: auto;
}

/* Table */
.statix-checkout-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.statix-checkout-table th,
.statix-checkout-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.statix-checkout-table th {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

/* Totals */
.statix-checkout-totals {
    max-width: 350px;
    margin-left: auto;
    margin-bottom: 24px;
}

.statix-checkout-totals .row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.statix-checkout-totals .row.total {
    border-top: 2px solid #ddd;
    border-bottom: none;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
}

/* Actions */
.statix-checkout-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.statix-checkout-actions a,
.statix-checkout-actions button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    border: none;
}

/* Login prompt */
.statix-checkout-login-prompt {
    background: #f0f7ff;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    border-left: 4px solid #0066cc;
}

/* Success / Error */
.statix-checkout-success {
    text-align: center;
    padding: 32px 24px;
}

.statix-checkout-success h3 {
    color: #41c57c;
    font-size: 20px;
}

.statix-checkout-error h3 {
    color: #e74c3c;
}

.statix-checkout-empty {
    text-align: center;
    padding: 32px;
    color: #666;
}

/* Responsive */
@media (max-width: 600px) {
    .statix-checkout-steps {
        gap: 16px;
    }

    .statix-checkout-step__label {
        display: none;
    }

    .statix-checkout-actions {
        flex-direction: column;
    }

    .statix-checkout-actions a,
    .statix-checkout-actions button {
        width: 100%;
    }

    .statix-checkout .statix-form-row--half {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .statix-form-row--company-row,
    .statix-form-address-row {
        flex-direction: column;
        gap: 0;
    }

    .statix-form-type-options {
        flex-direction: column;
    }
}
