/* === Statix Customer Account === */

/* Auth forms (login/register) */
.statix-auth-form {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.statix-auth-form h2 {
    margin-bottom: 24px;
    font-size: 22px;
}

.statix-auth-form__inner .statix-form-row {
    margin-bottom: 16px;
}

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

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

.statix-auth-form__inner input:focus {
    outline: none;
    border-color: #0066cc;
}

.statix-auth-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.statix-auth-form__inner .statix-form-row--terms .statix-checkbox-label--block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.4;
}

.statix-auth-form__inner .statix-form-row--terms .statix-checkbox-input {
    width: 18px;
    height: 18px;
}

/* Account security (wijzig e-mail / wachtwoord) */
.statix-account-security {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 32px;
}

.statix-security-note {
    color: #666;
    margin-bottom: 24px;
}

.statix-security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.statix-security-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 24px;
}

.statix-security-card h3 {
    margin-bottom: 16px;
    font-size: 18px;
}

.statix-security-current {
    margin-bottom: 16px;
    font-size: 14px;
    color: #555;
}

.statix-security-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 24px 0;
}

/* Account page */
.statix-account {
    max-width: 100%;
    margin: 0 auto;
}

.statix-account h2 {
    margin-bottom: 8px;
}

.statix-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
    align-items: stretch;
    min-height: 0;
}

.statix-account-col--right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.statix-account-col--right > .statix-account-card {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
}

.statix-account-col--right > #statix-invoices {
    flex: 0 0 auto;
    min-height: 0;
    max-height: 260px;
    overflow-y: auto;
}

.statix-account-col--right > #statix-orders {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
}

.statix-account-card--full {
    grid-column: 1 / -1;
    max-height: 520px;
    overflow-y: auto;
}

.statix-renew-btn {
    padding: 6px 12px;
    font-size: 13px;
}

.statix-account-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 24px;
}

.statix-account-card h3 {
    margin-bottom: 20px;
    font-size: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.statix-account-card--urgent {
    border-color: #ff5a5a;
    box-shadow: 0 0 0 1px #ff5a5a;
}

.statix-account-card--urgent h3 {
    color: #c62828;
    border-bottom-color: #ffcdd2;
}

.statix-account-card .statix-form-row {
    margin-bottom: 14px;
}

.statix-account-card label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #555;
}

.statix-account-card input,
.statix-account-card select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Flexbox wrappers voor naast-elkaar velden */
.statix-form-name-row,
.statix-form-row--company-row,
.statix-form-address-row,
.statix-form-flex-row {
    display: flex;
    gap: 16px;
}

.statix-form-name-row .statix-form-row--half,
.statix-form-row--company-row .statix-form-row--half,
.statix-form-address-row .statix-form-row--half,
.statix-form-flex-row .statix-form-row--half {
    flex: 1;
    margin: 0;
    min-width: 0;
}

/* Orders table */
.statix-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

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

.statix-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.statix-status--pending {
    background: #fff3cd;
    color: #856404;
}

.statix-status--paid {
    background: #d4edda;
    color: #155724;
}

.statix-status--processing {
    background: #cce5ff;
    color: #004085;
}

.statix-status--completed {
    background: #d4edda;
    color: #155724;
}

.statix-status--cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Form messages */
.statix-form-message {
    margin-top: 12px;
    font-size: 14px;
    min-height: 20px;
}

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

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

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .statix-account-grid {
        grid-template-columns: 1fr;
    }

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

/* Account navigation menu (theme-compatible) */
.statix-account-nav {
    margin-bottom: 24px;
}

.statix-account-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.statix-account-menu li {
    margin: 0;
    padding: 0;
}

.statix-account-menu a {
    display: inline-block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.statix-account-menu a:hover,
.statix-account-menu .current-menu-item a {
    color: #fff;
    background: #0066cc;
}
