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

.statix-checkout {
    max-width: 100%;
    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;
}

/* Akkoord checkbox op één lijn */
.statix-checkout .statix-form-row.statix-form-row--terms {
    margin: 20px 0;
}

.statix-checkout .statix-form-row.statix-form-row--terms .statix-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.4;
    margin: 0;
}

.statix-checkout .statix-form-row.statix-form-row--terms .statix-checkbox-input {
    width: 18px !important;
    height: 18px;
    min-width: 18px;
    margin: 0;
    flex-shrink: 0;
}

.statix-checkout .statix-form-row.statix-form-row--terms .statix-checkbox-text a {
    color: #0066cc;
    text-decoration: underline;
}

/* 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;
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
    box-sizing: border-box;
}
.statix-form-name-row .statix-form-row--half {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    width: auto;
    box-sizing: border-box;
}

/* 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%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.statix-checkout-table th,
.statix-checkout-table td {
    padding: 18px 12px;
    vertical-align: middle;
    border: none !important;
}

.statix-checkout-table thead tr {
    border-bottom: 2px solid #ddd;
}

.statix-checkout-table tbody tr {
    border-bottom: 1px solid #eee;
}

.statix-checkout-table tbody tr:last-child {
    border-bottom: none;
}

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

/* Product links, prijs/aantal/totaal */
.statix-checkout-table th:nth-child(1),
.statix-checkout-table td:nth-child(1) {
    text-align: left;
    width: auto;
}

.statix-checkout-table th:nth-child(2),
.statix-checkout-table th:nth-child(3),
.statix-checkout-table th:nth-child(4),
.statix-checkout-table td:nth-child(2),
.statix-checkout-table td:nth-child(3),
.statix-checkout-table td:nth-child(4) {
    width: 150px;
    white-space: nowrap;
}

/* Prijs en totaal rechts */
.statix-checkout-table th:nth-child(2),
.statix-checkout-table th:nth-child(4),
.statix-checkout-table td:nth-child(2),
.statix-checkout-table td:nth-child(4) {
    text-align: right;
}

/* Aantal gecentreerd */
.statix-checkout-table th:nth-child(3),
.statix-checkout-table td:nth-child(3) {
    text-align: center !important;
    vertical-align: middle;
}

.statix-checkout-product strong {
    display: block;
    font-size: 15px;
}

.statix-checkout-product small {
    display: block;
    color: #888;
    font-size: 12px;
}

/* Totals */
.statix-checkout-totals {
    max-width: 400px;
    margin-left: auto;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.statix-checkout-totals .row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    line-height: 1.4;
}

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

/* Onderkant: links winkelmand-knop, rechts totaal + afrekenen */
.statix-cart-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.statix-cart-bottom-left {
    flex: 1 1 auto;
    align-self: flex-end;
}

.statix-cart-bottom-right {
    flex: 0 0 auto;
    min-width: 280px;
}

.statix-cart-checkout-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    text-align: center;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .statix-cart-bottom {
        flex-direction: column;
    }
    .statix-checkout-totals {
        width: 100%;
        max-width: none;
    }
}

/* Payment status card */
.statix-payment-status-card {
    max-width: 560px;
    margin: 0 auto 24px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.statix-payment-status-card__header {
    padding: 24px;
    text-align: center;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.statix-payment-status-card__status {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #888;
}

.statix-payment-status-card__status.is-open {
    background: #f39c12;
}

.statix-payment-status-card__status.is-paid {
    background: #41c57c;
}

.statix-payment-status-card__status.is-failed {
    background: #e74c3c;
}

.statix-payment-status-card__details {
    margin: 0;
    padding: 0;
}

.statix-payment-status-card__details > div {
    display: flex;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.statix-payment-status-card__details > div:last-child {
    border-bottom: none;
}

.statix-payment-status-card__details dt {
    font-weight: 500;
    color: #555;
    flex: 0 0 auto;
    padding-right: 16px;
}

.statix-payment-status-card__details dd {
    margin: 0;
    text-align: right;
    color: #1a1a2e;
    font-weight: 500;
    word-break: break-word;
}

/* 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;
    }
}
