/* ── Wizt Wall Configurator v1.5.22 ── */

.wiztm {
    --ww-accent:     #0A7A6E;
    --ww-accent-mid: #086d62;
    --ww-accent-bg:  #e8f5f3;
    --ww-dark:       #1a1a2e;
    --ww-text:       #374151;
    --ww-muted:      #9ca3af;
    --ww-border:     #e5e7eb;
    --ww-bg:         #f8f9fb;
    --ww-surface:    #ffffff;
    --ww-radius:     12px;
    --ww-radius-sm:  8px;
    --ww-shadow:     0 1px 4px rgba(0,0,0,.06);
    --ww-trans:      all .15s ease;
    --ww-btn-font-size: .92rem; /* consistente tekstgrootte voor alle keuzeknoppen (view, type, combinatie) */
    color: var(--ww-dark);
    background: var(--ww-bg);
    border: 1px solid var(--ww-border);
    border-radius: var(--ww-radius);
    padding: 28px;
    margin: 28px auto;
    max-width: 980px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: var(--ww-shadow);
    /* Fluid: vult beschikbare ruimte, krimpt mee op kleine schermen */
    min-width: 0;
}
.wiztm *, .wiztm *::before, .wiztm *::after { box-sizing: border-box; }

/* Fullscreen */
.wiztm--fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    max-width: none !important;
    width: 100% !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    background: var(--ww-bg) !important;
    padding: 20px !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* ── Header ── */
.wiztm-header {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.wiztm-header-text { flex: 1; }
.wiztm-title   { margin: 0 0 4px; font-weight: 700; color: var(--ww-dark); letter-spacing: -.02em; }
.wiztm-subtitle { margin: 0; color: var(--ww-muted); }

/* Fullscreen knop */
.wiztm-fullscreen-btn {
    height: 34px;
    padding: 0 12px;
    flex-shrink: 0;
    border: 1.5px solid var(--ww-border);
    border-radius: var(--ww-radius-sm);
    background: var(--ww-surface);
    color: var(--ww-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: var(--ww-trans);
    white-space: nowrap;
}
.wiztm-fullscreen-btn:hover { border-color: var(--ww-accent); color: var(--ww-accent); background: var(--ww-accent-bg); }

/* ── View toggle ── */
.wiztm-view-toggle { display: flex; gap: 4px; margin-bottom: 8px; }
.wiztm-view-btn {
    display: inline-block;
    padding: 5px 16px;
    font-size: var(--ww-btn-font-size) !important;
    font-weight: 600;
    border: 1.5px solid var(--ww-border);
    border-radius: 20px;
    background: var(--ww-surface);
    color: var(--ww-muted);
    cursor: pointer;
    transition: var(--ww-trans);
    line-height: 1.4;
    user-select: none;
}
.wiztm-view-btn:hover { border-color: var(--ww-accent); color: var(--ww-accent); background: var(--ww-accent-bg); }
.wiztm-view-btn.is-active { border-color: var(--ww-accent); border-width: 2px; background: var(--ww-accent); color: #fff; font-weight: 700; }

/* ── Layout: preview boven, stappen eronder ── */
.wiztm-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}
.wiztm-preview-col {
    width: 100%;
}
.wiztm-steps-col {
    width: 100%;
}

/* ── Preview kolom ── */
.wiztm-preview-col { }
.wiztm-preview-sticky { position: relative; top: 0; will-change: transform; }

/* 2D preview — full width boven */
.wiztm-preview {
    background: transparent;
    border: none;
    min-height: 160px;
    min-width: 260px;
    max-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    /* Defensief: sommige tab/accordion-wrappers (bijv. Bricks) erven visibility/opacity
       door naar kinderen bij het wisselen van tabblad, zonder dit voor dit specifieke
       element weer terug te zetten. Forceer daarom altijd zichtbaar — onze eigen
       2D/3D/ruimte-toggle regelt zichtbaarheid via display, dus dit conflicteert niet. */
    visibility: visible !important;
    opacity: 1 !important;
}
.wiztm-preview svg { max-width: 100%; max-height: 260px; display: block; visibility: visible !important; opacity: 1 !important; }
.wiztm-preview-empty { text-align: center; color: var(--ww-muted); }
.wiztm-preview-empty svg { display: block; margin: 0 auto 8px; }

/* 3D preview */
.wiztm-preview-3d {
    background: transparent;
    border: none;
    border-radius: var(--ww-radius);
    overflow: hidden;
}
.wiztm-3d-canvas { display: block; width: 100%; height: auto; cursor: grab; }
.wiztm-3d-canvas:active { cursor: grabbing; }
.wiztm-3d-hint { color: var(--ww-muted); text-align: center; margin: 6px 0 0; font-style: italic; }

/* Room preview */
.wiztm-preview-room { }
.wiztm-room-wrap { position: relative; border-radius: var(--ww-radius); overflow: hidden; background: var(--ww-surface); border: 1px solid var(--ww-border); min-height: 200px; display: flex; align-items: center; justify-content: center; }
.wiztm-room-canvas { display: block; width: 100%; height: auto; }
.wiztm-room-placeholder { text-align: center; color: var(--ww-muted); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wiztm-room-upload-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid var(--ww-border);
    border-radius: var(--ww-radius-sm);
    background: var(--ww-surface);
    color: var(--ww-muted);
    cursor: pointer; transition: var(--ww-trans);
}
.wiztm-room-upload-btn:hover { border-color: var(--ww-accent); color: var(--ww-accent); }
.wiztm-room-controls { margin-top: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wiztm-room-upload-btn--small { padding: 5px 10px; }
.wiztm-room-sliders { flex: 1; }
.wiztm-room-slider-row { display: flex; align-items: center; gap: 8px; color: var(--ww-muted); }
.wiztm-room-slider-row input[type=range] { flex: 1; accent-color: var(--ww-accent); }

/* Samenvatting */
.wiztm-summary {
    margin-top: 10px;
    background: var(--ww-surface);
    border: 1px solid var(--ww-border);
    border-radius: var(--ww-radius-sm);
    padding: 10px 14px;
    color: #555;
    line-height: 1.6;
}
.wiztm-summary-row { display: flex; align-items: center; gap: 6px; padding: 3px 0; border-bottom: 1px solid #f5f5f2; }
.wiztm-summary-row:last-child { border-bottom: none; }
.wiztm-summary-row--sentence {
    color: var(--ww-dark);
    font-weight: 500;
    padding: 10px 12px;
    margin: 2px 0 8px;
    background: var(--ww-accent-bg);
    border: 1.5px solid var(--ww-accent);
    border-radius: var(--ww-radius-sm);
    border-bottom: 1.5px solid var(--ww-accent) !important; /* overschrijft de standaard rij-scheidingslijn */
}
@keyframes wiztm-summary-flash {
    0%   { background: #cdeee6; }
    100% { background: var(--ww-accent-bg); }
}
.wiztm-summary-row--sentence.is-updated {
    animation: wiztm-summary-flash 900ms ease-out;
}
.wiztm-summary-row--overview { color: var(--ww-muted); font-size: .85em; }
.wiztm-summary-swatch { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0,0,0,.1); flex-shrink: 0; }
.wiztm-summary-label { color: #6b7280; min-width: 60px; }

/* ── Stappen kolom ── */
.wiztm-steps-col {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    align-items: start;
}

.wiztm-step {
    background: var(--ww-surface);
    border: 1px solid var(--ww-border);
    border-radius: var(--ww-radius);
    overflow: hidden;
    box-shadow: var(--ww-shadow);
}
.wiztm-step--hidden { display: none; }
.wiztm-step.is-active { border-color: var(--ww-accent); border-width: 2px; }

.wiztm-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
}
.wiztm-step-body { padding: 0 16px 14px; }

/* Stap nummers */
.wiztm-step-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: #ddd; color: #fff;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all .2s;
    border: 2px solid transparent;
}
.wiztm-step-num.is-active { background: var(--ww-accent); color: #fff; border-color: var(--ww-accent); }
.wiztm-step-num.is-done {
    background: transparent;
    border-color: var(--ww-accent);
    color: var(--ww-accent);
    }
.wiztm-step-label {
    font-weight: 600 !important;
    color: #1a1a2e !important;
}

/* ── Knoppen ── */
.wiztm-btn-group { display: flex; gap: 6px; flex-wrap: wrap; }
.wiztm-btn-group button {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px;
    border: 1.5px solid var(--ww-border);
    border-radius: var(--ww-radius-sm);
    background: var(--ww-bg);
    color: var(--ww-muted);
    cursor: pointer; transition: var(--ww-trans);
}
.wiztm-btn-group button:hover { border-color: var(--ww-accent); color: var(--ww-accent); background: var(--ww-accent-bg); }
.wiztm-btn-group button.is-active {
    border-color: var(--ww-accent);
    border-width: 2px;
    background: var(--ww-accent-bg);
    color: var(--ww-accent);
    font-weight: 700;
}
.wiztm-btn-group button.is-active svg { stroke: var(--ww-accent); }
.wiztm-btn-group button svg { stroke: var(--ww-muted); transition: stroke .15s; }

.wiztm-note { color: var(--ww-muted); margin-top: 7px; }

/* ── Panel cards ── */
/* Stap met paneel cards — altijd volle breedte */
.wiztm-step:has(.wiztm-panel-cards) {
    grid-column: 1 / -1;
}
/* Stap met size grid — ook volle breedte */
.wiztm-step:has(.wiztm-size-grid) {
    grid-column: 1 / -1;
}

.wiztm-panel-cards {
    display: grid;
    grid-template-columns: repeat(var(--panel-count, 2), 1fr);
    gap: 8px;
    align-items: stretch;
}

.wiztm-pcard {
    flex: 1;
    min-width: 120px;
    border: 1.5px solid var(--ww-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.wiztm-pcard.is-open { border-color: var(--ww-accent); }

.wiztm-pcard-head {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 10px; background: var(--ww-bg);
    cursor: pointer; user-select: none; flex-shrink: 0;
}
.wiztm-pcard.is-open .wiztm-pcard-head { background: var(--ww-accent-bg); }

.wiztm-pcard-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: #e8e8e4; color: var(--ww-muted);
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all .2s;
    border: 2px solid transparent;
}
.wiztm-pcard-num.is-done {
    background: transparent;
    border-color: var(--ww-accent);
    color: var(--ww-accent);
    }
.wiztm-pcard-label { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiztm-pcard-meta { display: flex; align-items: center; gap: 5px; color: var(--ww-muted); }
.wiztm-pcard-swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.1); flex-shrink: 0; }
.wiztm-pcard-unset { color: #ddd; }
.wiztm-pcard-chev { display: none; }
.wiztm-pcard-body { padding: 10px; flex: 1; }

/* Card secties */
.wiztm-card-section { margin-bottom: 12px; }
.wiztm-card-section:last-child { margin-bottom: 0; }
.wiztm-card-label { color: #999; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px; }
.wiztm-card-hint { color: #aaa; text-align: center; padding: 6px 0; }
.wiztm-card-intro { color: var(--ww-muted); margin: 0 0 14px; line-height: 1.45; }

/* Type knoppen */
.wiztm-type-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
.wiztm-type-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    min-width: 155px;
    flex: 1 1 155px;
    text-align: left;
    border: 1.5px solid var(--ww-border);
    border-radius: 10px;
    background: var(--ww-bg);
    color: var(--ww-muted);
    cursor: pointer; transition: var(--ww-trans);
}
.wiztm-type-btn-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.wiztm-type-btn-icon svg { width: 22px; height: 22px; }
.wiztm-type-btn-text { display: flex; flex-direction: column; gap: 2px; }
.wiztm-type-btn-text strong { color: var(--ww-dark); font-weight: 700; font-size: var(--ww-btn-font-size) !important; }
.wiztm-type-btn-text small { color: var(--ww-muted); font-weight: 400; font-size: .78rem; }
.wiztm-type-btn:hover { border-color: var(--ww-accent); background: var(--ww-accent-bg); }
.wiztm-type-btn:hover .wiztm-type-btn-text strong { color: var(--ww-accent); }
.wiztm-type-btn.is-active {
    border-color: var(--ww-accent);
    border-width: 2px;
    background: var(--ww-accent-bg);
}
.wiztm-type-btn.is-active .wiztm-type-btn-text strong { color: var(--ww-accent); }
.wiztm-type-btn.is-active svg { stroke: var(--ww-accent); }

/* Materiaal-knoppen (wand-niveau: Frameless panelen / Glass) */
.wiztm-material-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.wiztm-material-btn {
    flex: 1 1 220px;
    min-width: 200px;
    text-align: left;
    padding: 12px 14px;
    border: 1.5px solid var(--ww-border);
    border-radius: 10px;
    background: var(--ww-bg);
    cursor: pointer;
    transition: var(--ww-trans);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.wiztm-material-btn strong { color: var(--ww-dark); font-weight: 700; font-size: var(--ww-btn-font-size) !important; }
.wiztm-material-btn small { color: var(--ww-muted); font-weight: 400; font-size: .78rem; }
.wiztm-material-btn:hover { border-color: var(--ww-accent); background: var(--ww-accent-bg); }
.wiztm-material-btn:hover strong { color: var(--ww-accent); }
.wiztm-material-btn.is-active { border-color: var(--ww-accent); border-width: 2px; background: var(--ww-accent-bg); }
.wiztm-material-btn.is-active strong { color: var(--ww-accent); }
.wiztm-glass-finish-wrap { margin-top: 4px; }
.wiztm-type-btn svg { stroke: var(--ww-muted); flex-shrink: 0; transition: stroke .15s; }

/* Swatches */
.wiztm-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.wiztm-swatch {
    width: 26px; height: 26px; border-radius: 50%;
    border: 2.5px solid transparent; cursor: pointer;
    transition: transform .12s, border-color .12s; flex-shrink: 0;
}
.wiztm-swatch:hover { transform: scale(1.1); }
.wiztm-swatch.is-active { border-color: var(--ww-accent); transform: scale(1.18); }

/* Geselecteerde kleur */
.wiztm-sel-color {
    display: flex; align-items: center; gap: 7px;
    padding: 6px 9px; background: var(--ww-accent-bg);
    border: 1.5px solid var(--ww-accent);
    border-radius: 6px; color: var(--ww-dark); margin-bottom: 5px;
}
.wiztm-sel-swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.1); flex-shrink: 0; }

/* Pairing */
.wiztm-pairing {
    display: flex; align-items: flex-start; gap: 5px;
    color: var(--ww-accent);
    background: var(--ww-accent-bg); border-radius: 6px;
    padding: 6px 9px; line-height: 1.4;
}
.wiztm-pairing strong { color: var(--ww-accent-mid); }

/* RAL/NCS/Pantone */
.wiztm-ral-wrap { margin-top: 8px; }
/* Top-level kleur-tabs (Collectie Wizt / RAL / NCS / Pantone) — MobileBoard voor-/achterkant */
.wiztm-tabs { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.wiztm-tab {
    padding: 7px 14px;
    border: 1.5px solid var(--ww-border);
    border-radius: 20px;
    background: var(--ww-surface);
    color: var(--ww-muted);
    cursor: pointer;
    font-weight: 500;
    font-size: var(--ww-btn-font-size);
    transition: var(--ww-trans);
}
.wiztm-tab:hover { border-color: var(--ww-accent); color: var(--ww-accent); }
.wiztm-tab.is-active { border-color: var(--ww-accent); border-width: 2px; background: var(--ww-accent-bg); color: var(--ww-accent); font-weight: 700; }
.wiztm-tab-panel { display: none; }
.wiztm-tab-panel.is-active { display: block; }

.wiztm-swatches-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.wiztm-swatch-btn {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 10px;
    border: 1.5px solid var(--ww-border);
    border-radius: 8px;
    background: var(--ww-surface);
    cursor: pointer;
    text-align: left;
    transition: var(--ww-trans);
}
.wiztm-swatch-btn:hover { border-color: var(--ww-accent); background: var(--ww-accent-bg); }
.wiztm-swatch-btn.is-active { border-color: var(--ww-accent); border-width: 2px; background: var(--ww-accent-bg); }
.wiztm-swatch-dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; border: 1px solid rgba(0,0,0,.12); }
.wiztm-swatch-name { font-size: var(--ww-btn-font-size); color: var(--ww-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wiztm-ral-tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.wiztm-ral-tab {
    padding: 3px 9px; border: 1.5px solid var(--ww-border); border-radius: 5px;
    background: var(--ww-bg); cursor: pointer; color: var(--ww-muted);
    transition: var(--ww-trans);
}
.wiztm-ral-tab:hover { border-color: var(--ww-accent); color: var(--ww-accent); }
.wiztm-ral-tab.is-active { border-color: var(--ww-accent); border-width: 2px; background: var(--ww-accent-bg); color: var(--ww-accent); font-weight: 700; }
.wiztm-ral-panel { display: none; }
.wiztm-ral-panel.is-active { display: block; }
.wiztm-ral-input {
    width: 100%; padding: 8px 11px;
    border: 1.5px solid var(--ww-border) !important; border-radius: 6px;
    font-size: 16px; outline: none; margin-bottom: 4px;
    background: var(--ww-bg) !important;
    -webkit-appearance: none; appearance: none;
    box-shadow: none !important;
}
.wiztm-ral-input:focus { border-color: var(--ww-accent) !important; box-shadow: 0 0 0 3px rgba(10,122,110,.1) !important; }
.wiztm-ral-results { max-height: 100px; overflow-y: auto; border: 1px solid var(--ww-border); border-radius: 6px; }
.wiztm-ral-item { display: flex; align-items: center; gap: 7px; padding: 5px 8px; cursor: pointer; border-bottom: 1px solid #f5f5f5; }
.wiztm-ral-item:hover { background: var(--ww-bg); }
.wiztm-ral-item.is-active { background: var(--ww-accent-bg); }
.wiztm-ral-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; border: 1px solid rgba(0,0,0,.1); }
.wiztm-ral-name { color: var(--ww-muted); }
.wiztm-ral-hint { padding: 8px; color: #ccc; text-align: center; }

/* ── Afmeting ── */
.wiztm-size-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wiztm-size-btn {
    padding: 6px 12px;
    border: 1.5px solid var(--ww-border); border-radius: 7px;
    background: var(--ww-bg); color: var(--ww-dark);
    cursor: pointer; transition: var(--ww-trans);
}
.wiztm-size-btn:hover { border-color: var(--ww-accent); color: var(--ww-accent); background: var(--ww-accent-bg); }
.wiztm-size-btn.is-active { border-color: var(--ww-accent); border-width: 2px; background: var(--ww-accent-bg); color: var(--ww-accent); font-weight: 600; }
.wiztm-size-btn--custom { border-style: dashed; color: var(--ww-muted); }

.wiztm-selected-size {
    display: none; align-items: center; gap: 8px;
    padding: 10px 14px; background: var(--ww-accent-bg);
    border: 1.5px solid var(--ww-accent);
    border-radius: 7px; color: var(--ww-accent); font-weight: 600;
    margin-top: 4px;
}
.wiztm-clear-size { display: none; }
.wiztm-custom-size-wrap { margin-top: 6px; }
.wiztm-custom-size {
    width: 100%; padding: 8px 11px;
    border: 1.5px solid var(--ww-border) !important; border-radius: 7px;
    font-size: 16px; outline: none;
    background: var(--ww-bg) !important;
    -webkit-appearance: none; appearance: none;
    box-shadow: none !important;
}
.wiztm-custom-size:focus { border-color: var(--ww-accent) !important; box-shadow: 0 0 0 3px rgba(10,122,110,.08) !important; }

/* ── Formulier ── */
.wiztm-form-wrap {
    background: var(--ww-surface); border: 1px solid var(--ww-border);
    border-radius: var(--ww-radius); padding: 24px;
    box-shadow: var(--ww-shadow); margin-top: 16px; position: relative;
    border-top: 3px solid var(--ww-accent);
}
.wiztm-form-header { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.wiztm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 0; }
@media (max-width: 500px) { .wiztm-form-grid { grid-template-columns: 1fr; } }

.wiztm-field { display: flex; flex-direction: column; gap: 5px; }
.wiztm-field--half { min-width: 0; }
.wiztm-field--full { grid-column: 1 / -1; }
.wiztm .wiztm-field label,
.wiztm-field label { font-weight: 600 !important; color: #1a1a2e !important; line-height: 1.3 !important; margin-bottom: 4px !important; }
.wiztm-field label em { color: var(--ww-accent); font-style: normal; margin-left: 2px; }

.wiztm-field input,
.wiztm-field textarea {
    padding: 9px 12px !important;
    border: 1.5px solid var(--ww-border) !important;
    border-radius: var(--ww-radius-sm) !important;
    background: var(--ww-bg) !important; color: var(--ww-text);
    outline: none; transition: var(--ww-trans);
    box-sizing: border-box; width: 100%;
    line-height: 1.4;
    -webkit-appearance: none; appearance: none;
    box-shadow: none !important;
}
.wiztm-field input:focus,
.wiztm-field textarea:focus {
    border-color: var(--ww-accent) !important;
    background: var(--ww-surface) !important;
    box-shadow: 0 0 0 3px rgba(10,122,110,.09) !important;
}
.wiztm-field textarea { resize: vertical; min-height: 80px; }

.wiztm-form-footer { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.wiztm-form-note { color: var(--ww-muted); }

.wiztm-submit {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; background: var(--ww-accent); color: #fff;
    border: none; border-radius: var(--ww-radius-sm);
    font-weight: 700;
    cursor: pointer; transition: var(--ww-trans);
    letter-spacing: .01em;
    box-shadow: 0 2px 8px rgba(10,122,110,.25);
}
.wiztm-submit:hover { background: var(--ww-accent-mid); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(10,122,110,.35); }
.wiztm-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Alerts ── */
.wiztm-alert { margin-top: 14px; padding: 11px 14px; border-radius: var(--ww-radius-sm); line-height: 1.5; }
.wiztm-alert--error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.wiztm-alert--success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }




/* ── Maatmodus toggle ── */
.wiztm-size-mode {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border: 2px solid var(--ww-accent);
    border-radius: var(--ww-radius-sm);
    overflow: hidden;
    width: fit-content;
}
.wiztm-size-mode-btn {
    padding: 8px 20px;
    border: none !important;
    background: var(--ww-surface) !important;
    color: var(--ww-muted) !important;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ww-trans);
}
.wiztm-size-mode-btn + .wiztm-size-mode-btn {
    border-left: 2px solid var(--ww-accent) !important;
}
.wiztm-size-mode-btn.is-active {
    background: var(--ww-accent) !important;
    color: #fff !important;
}
.wiztm-size-mode-btn:not(.is-active):hover {
    background: var(--ww-accent-bg) !important;
    color: var(--ww-accent) !important;
}

/* Wandmaat invoer */
.wiztm-wall-inputs {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.wiztm-wall-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wiztm-wall-input-wrap label {
    font-weight: 600;
    color: var(--ww-muted);
}
.wiztm-wall-input-wrap input {
    width: 110px;
    padding: 8px 10px !important;
    border: 1.5px solid var(--ww-border) !important;
    border-radius: var(--ww-radius-sm) !important;
    background: var(--ww-bg) !important;
    -webkit-appearance: none; appearance: none;
    box-shadow: none !important;
    outline: none;
}
.wiztm-wall-input-wrap input:focus {
    border-color: var(--ww-accent) !important;
    box-shadow: 0 0 0 3px rgba(10,122,110,.09) !important;
}
.wiztm-wall-calc-btn {
    padding: 8px 16px;
    background: var(--ww-accent);
    color: #fff;
    border: none;
    border-radius: var(--ww-radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--ww-trans);
    height: 38px;
}
.wiztm-wall-calc-btn:hover { background: var(--ww-accent-mid); }
.wiztm-wall-results { display: flex; flex-wrap: wrap; gap: 6px; }

/* Summary todo rijen */
.wiztm-summary-row--todo { opacity: .6; }
.wiztm-summary-todo { font-style: italic; color: var(--ww-muted); }

/* Size buttons met totaalmaat */
.wiztm-size-btn-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.wiztm-size-btn {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.wiztm-size-panel-lbl { font-weight: 600; }
.wiztm-size-total-lbl { color: var(--ww-muted); font-weight: 400; }
.wiztm-size-btn.is-active .wiztm-size-total-lbl { color: var(--ww-accent); opacity: .8; }

/* ── Download toolbar ── */
.wiztm-download-bar {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.wiztm-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1.5px solid var(--ww-border);
    border-radius: var(--ww-radius-sm);
    background: var(--ww-surface);
    color: var(--ww-muted);
    font-weight: 600;
    cursor: pointer;
    transition: var(--ww-trans);
    white-space: nowrap;
}
.wiztm-dl-btn:hover {
    border-color: var(--ww-accent);
    color: var(--ww-accent);
    background: var(--ww-accent-bg);
}
.wiztm-dl-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}


/* Summary rijen klikbaar */
.wiztm-summary-row--link {
    transition: background .15s;
    border-radius: 4px;
    margin: 0 -6px;
    padding: 3px 6px;
}
.wiztm-summary-row--link:hover {
    background: var(--ww-accent-bg);
}
.wiztm-summary-row--link:hover .wiztm-summary-label,
.wiztm-summary-row--link:hover .wiztm-summary-todo {
    color: var(--ww-accent);
}

/* Panel card highlight animatie */
@keyframes ww-highlight {
    0%   { box-shadow: 0 0 0 0   rgba(10,122,110,.0);  border-color: var(--ww-accent); }
    25%  { box-shadow: 0 0 0 6px rgba(10,122,110,.25); border-color: var(--ww-accent); }
    60%  { box-shadow: 0 0 0 4px rgba(10,122,110,.15); border-color: var(--ww-accent); }
    100% { box-shadow: 0 0 0 0   rgba(10,122,110,.0);  border-color: var(--ww-accent); }
}
.wiztm-pcard.is-highlighted {
    animation: ww-highlight 1.8s ease forwards;
    border-width: 2px;
}


/* ── Wandmaat invoer ── */
.wiztm-wall-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.wiztm-wall-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wiztm .wiztm-wall-input-wrap label,
.wiztm-wall-input-wrap label {
    font-weight: 600 !important;
    color: #1a1a2e !important;
    margin-bottom: 4px !important;
}
.wiztm-wall-input-wrap input {
    width: 120px;
    padding: 9px 12px !important;
    border: 1.5px solid var(--ww-border) !important;
    border-radius: var(--ww-radius-sm) !important;
    background: var(--ww-bg) !important;
    -webkit-appearance: none; appearance: none;
    box-shadow: none !important; outline: none;
}
.wiztm-wall-input-wrap input:focus {
    border-color: var(--ww-accent) !important;
    box-shadow: 0 0 0 3px rgba(10,122,110,.09) !important;
}
.wiztm-calc-btn {
    padding: 9px 20px;
    background: var(--ww-accent);
    color: #fff;
    border: none;
    border-radius: var(--ww-radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--ww-trans);
}
.wiztm-calc-btn:hover { background: var(--ww-accent-mid); }

/* ── Combinaties ── */
.wiztm-combis { display: flex; flex-direction: column; gap: 6px; }
.wiztm-combi-indication-note { margin-top: 0; margin-bottom: 10px; font-style: italic; }
.wiztm-combi-single-note {
    margin-top: 10px;
    padding: 10px 12px;
    background: #fff8ec;
    border: 1px solid #f0dfb8;
    border-radius: var(--ww-radius-sm);
    color: #8a6a1f;
}
.wiztm-combi-single-note strong { color: #6b5115; }
.wiztm-combi-overflow-note {
    margin-top: 10px;
    padding: 10px 12px;
    background: #fdf1f0;
    border: 1px solid #f2c4bf;
    border-radius: var(--ww-radius-sm);
    color: #a13d33;
    font-weight: 500;
}
.wiztm-combi-overflow-note p { margin: 0 0 8px; }
.wiztm-combi-overflow-note p:last-child { margin-bottom: 0; }
.wiztm-combi-safe-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    background: #fff;
    border: 1.5px solid var(--ww-accent);
    border-radius: var(--ww-radius-sm);
    color: var(--ww-accent);
    font-weight: 400;
    cursor: pointer;
    transition: var(--ww-trans);
}
.wiztm-combi-safe-btn:hover { background: var(--ww-accent-bg); }
.wiztm-combi-safe-btn strong { color: var(--ww-accent-mid); }
.wiztm-combi-no-safe { color: #a13d33; font-style: italic; }
.wiztm-combi-ok-note {
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--ww-accent-bg);
    border: 1px solid var(--ww-accent);
    border-radius: var(--ww-radius-sm);
    color: var(--ww-accent-mid);
    font-weight: 500;
}

.wiztm-combi-hdr {
    font-weight: 700 !important;
    color: var(--ww-accent) !important;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 10px 0 4px !important;
}
.wiztm-combi-hdr--custom { color: var(--ww-muted) !important; margin-top: 16px !important; }

.wiztm-combi-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: var(--ww-btn-font-size) !important;
    border: 1.5px solid var(--ww-border);
    border-radius: var(--ww-radius-sm);
    background: var(--ww-bg);
    cursor: pointer;
    text-align: left;
    transition: var(--ww-trans);
    width: 100%;
}
.wiztm-combi-btn:hover { border-color: var(--ww-accent); background: var(--ww-accent-bg); }
.wiztm-combi-btn.is-active {
    border-color: var(--ww-accent);
    border-width: 2px;
    background: var(--ww-accent-bg);
}
.wiztm-combi-btn--custom { opacity: .8; }
.wiztm-combi-btn--summary {
    cursor: default;
    border-color: var(--ww-accent);
    border-width: 2px;
    background: var(--ww-accent-bg);
}
.wiztm-combi-btn--summary:hover { background: var(--ww-accent-bg); }

.wiztm-combi-n {
    font-weight: 800;
    color: var(--ww-accent);
    min-width: 28px;
    flex-shrink: 0;
}
.wiztm-combi-btn--custom .wiztm-combi-n { color: var(--ww-muted); }

.wiztm-combi-info {
    flex: 1;
    font-weight: 600;
    color: var(--ww-dark);
}
.wiztm-combi-exact {
    color: var(--ww-accent);
    font-weight: 600;
    white-space: nowrap;
}
.wiztm-combi-diff {
    color: var(--ww-muted);
    white-space: nowrap;
}

/* ── Animaties ── */
@keyframes ww-pop { from { opacity:0; transform:translateY(-3px); } to { opacity:1; transform:none; } }

/* ── Mobiel ── */
/* ── Tablet (≤ 860px) ── */
@media (max-width: 860px) {
    .wiztm-steps-col {
        grid-template-columns: 1fr 1fr; /* 2 stappen per rij ipv 3 */
    }
}

/* ── Mobiel (≤ 600px) ── */
@media (max-width: 600px) {
    .wiztm { padding: 14px; margin: 12px auto; border-radius: 8px; }

    /* Steps: altijd 1 kolom */
    .wiztm-steps-col { grid-template-columns: 1fr; }
    .wiztm-step:has(.wiztm-panel-cards),
    .wiztm-step:has(.wiztm-size-grid) { grid-column: auto; }

    /* Panel cards: scroll horizontaal op mobiel */
    .wiztm-panel-cards {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
    }
    .wiztm-pcard {
        min-width: 200px;
        scroll-snap-align: start;
    }

    /* Maat-toggle: vol breed */
    .wiztm-size-mode { width: 100%; }
    .wiztm-size-mode-btn { flex: 1; text-align: center; }

    /* Maat-knoppen: 2 per rij */
    .wiztm-size-btn-grid { grid-template-columns: 1fr 1fr; }

    /* Wandmaat-invoer */
    .wiztm-wall-inputs { flex-direction: column; gap: 8px; }
    .wiztm-wall-input-wrap input { width: 100%; }

    /* Buttons */
    .wiztm-btn-group { flex-direction: column; }
    .wiztm-btn-group button { width: 100%; justify-content: center; }

    /* Orient knoppen naast elkaar houden */
    .wiztm-orient-group { flex-direction: row; }
    .wiztm-orient-group button { flex: 1; justify-content: center; }

    /* Formulier */
    .wiztm-form-grid { grid-template-columns: 1fr; }
    .wiztm-field--half { grid-column: auto; }
    .wiztm-form-footer { flex-direction: column; align-items: stretch; gap: 10px; }
    .wiztm-submit { width: 100%; justify-content: center; padding: 15px 20px; }
    .wiztm-form-note { text-align: center; }

    /* Download knoppen */
    .wiztm-download-bar { flex-direction: row; }
    .wiztm-dl-btn { flex: 1; justify-content: center; }

    /* Summary */
    .wiztm-summary { }
}
