
:root {
    --green: #3c5c30;
    --bg: #f0f0ef;
    --muted: #62675e;
    --line: #c9cbc7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #dededc;
    color: #080a07;
    font-family: "nexa-text", Arial, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 13px;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a,
input,
textarea,
select {
    touch-action: manipulation;
}

button {
    cursor: pointer;
    color: inherit;
    border: 0;
    background: none;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #9ea979;
    outline-offset: 3px;
}

/* ==========================================================
   03. App-layout, header en typografie
   ========================================================== */

#app {
    max-width: 430px;
    margin: auto;
    background: var(--bg);
    min-height: 100dvh;
    position: relative;
    padding-bottom: 90px;
}

header {
    background: var(--green);
    color: white;
    padding: 24px 28px 15px;
    padding-top: max(24px,env(safe-area-inset-top));
    position: sticky;
    top: 0;
    z-index: 5;
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.logo {
    width: 188px;
    max-width: 56%;
    height: auto;
    display: block;
}

.switch {
    border: 1px solid #d3d9ce;
    border-radius: 30px;
    color: white;
    font-size: 11px;
    padding: 3px 9px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
}

.switch svg {
    width: 15px;
    height: 15px;
}

h1 {
    font-size: 19px;
    line-height: 1.35;
    margin: 22px 0 0;
    font-weight: 600;
}

h1.machine-title {
    font-style: italic;
}

header p {
    margin: 4px 0 6px;
    font-size: 13px;
}

main {
    padding: 22px 27px 28px;
}

h2 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 14px;
}

h3 {
    font-size: 14px;
    margin: 0 0 8px;
}


/* ==========================================================
   04. Kaarten, machineafbeeldingen en specificaties
   ========================================================== */

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    margin-bottom: 20px;
    padding: 20px;
}

.machine-image {
    padding: 12px 28px;
    display: flex;
    justify-content: center;
}

.machine-image img {
    height: 294px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.specs {
    background: var(--green);
    color: white;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 22px 10px;
    padding: 15px 24px;
}

.specs div:last-child {
    grid-column: 1/-1;
}

.specs dt {
    font-weight: 600;
    font-size: 13px;
}

.specs dd {
    margin: 2px 0 0;
    color: #eef0ea;
    font-size: 13px;
}


/* ==========================================================
   05. Compacte kaarten, rijen en statuslabels
   ========================================================== */

.compact {
    padding: 13px 20px;
}

.compact h2 {
    font-size: 15px;
    margin: 0;
    padding-bottom: 9px;
    border-bottom: 1px solid #60675c;
}

.row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    min-height: 48px;
}

.row:last-child {
    border-bottom: 0;
}

.row-text {
    flex: 1;
    min-width: 0;
}

.row small,small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 4px;
}

.badge {
    font-size: 9px;
    background: #e9e9e7;
    border-radius: 20px;
    padding: 3px 9px;
    white-space: nowrap;
}

.badge.done {
    background: #e0e5dc;
}

.arrow {
    color: var(--green);
    font-size: 20px;
}


/* ==========================================================
   06. Machinekeuze
   ========================================================== */

.machine-select {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    gap: 14px;
    padding: 12px;
    margin-bottom: 20px;
}

.machine-select img {
    width: 46px;
    height: 49px;
    object-fit: contain;
}

.machine-select strong {
    font-size: 16px;
    font-style: italic;
    font-weight: 600;
}

.machine-select p {
    margin: 3px 0 0;
    font-size: 12px;
}

.machine-select .arrow {
    margin-left: auto;
    color: #000;
}


/* ==========================================================
   07. Onderste navigatie en iconen
   ========================================================== */

nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: #020302;
    display: flex;
    z-index: 10;
    padding: 11px 5px max(13px,env(safe-area-inset-bottom));
    min-height: 68px;
}

nav button {
    width: 20%;
    padding: 0;
    color: #aaa;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-height: 44px;
}

nav button.active {
    color: white;
}

svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

nav .active svg {
    stroke-width: 1.8;
}


/* ==========================================================
   08. Formulieren en knoppen
   ========================================================== */

textarea,input {
    width: 100%;
    border: 1px solid #b4b6b0;
    border-radius: 10px;
    background: var(--bg);
    padding: 13px 17px;
    background-color: #FFFFFF;
}

textarea {
    resize: vertical;
    min-height: 102px;
}

label {
    display: block;
    font-size: 12px;
    margin-bottom: 7px;
}

.primary {
    width: 100%;
    min-height: 49px;
    background: var(--green);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.primary:disabled {
    opacity: .45;
    cursor: default;
}

.minor {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    margin: 14px 0;
}

.subtle {
    color: var(--green);
    text-decoration: underline;
    padding: 8px;
}


/* ==========================================================
   09. Tijdlijn en documenten
   ========================================================== */

.timeline {
    padding-left: 12px;
    margin: 20px 0 0;
}

.event {
    border-left: 1px solid #697261;
    padding: 0 0 26px 27px;
    position: relative;
}

.event:last-child {
    padding-bottom: 0;
}

.event:before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green);
    left: -8.5px;
    top: 4px;
}

.event time {
    font-size: 10px;
    color: var(--green);
}

.event p {
    margin: 2px 0;
    font-size: 13px;
}

.event small {
    margin: 0;
}

.doc-row {
    font-weight: 500;
    justify-content: flex-start;
    gap: 20px;
}

.doc-row svg {
    flex-shrink: 0;
    color: var(--green);
}

.doc-row span {
    flex: 1;
}


/* ==========================================================
   10. Filters, uitklapbare secties en onderdelen
   ========================================================== */

.chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin: 15px -2px;
    padding: 2px 2px 8px;
}

.chip {
    border: 0px solid #c6cbc0;
    border-radius: 25px;
    padding: 8px 13px;
    white-space: nowrap;
    font-size: 11px;
    background: white;
}

.chip.active {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

details {
    border-radius: 10px;
    background: white;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px #00000014;
}

summary {
    list-style: none;
    cursor: pointer;
    padding: 17px 15px;
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
    font-size: 12px;
}

summary::-webkit-details-marker {
    display: none;
}

summary small {
    margin: 0 0 0 auto;
    font-weight: 400;
}

summary:after {
    content: "⌄";
    font-size: 17px;
    margin-left: 5px;
}

details[open] summary:after {
    transform: rotate(180deg);
}

.part {
    margin: 0 14px;
    padding: 12px 0;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.part .row-text {
    font-size: 12px;
}

.qty {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.qty button {
    border: 1px solid #c7ccc2;
    width: 32px;
    height: 30px;
    border-radius: 7px;
    font-size: 20px;
    color: var(--green);
}

.qty span {
    min-width: 17px;
    text-align: center;
}


/* ==========================================================
   11. Winkelmandje en lege status
   ========================================================== */

.cart {
    border: 1px solid var(--green);
}

.cart-body {
    padding: 0 14px 16px;
}

.empty {
    padding: 30px 10px;
    text-align: center;
    color: var(--muted);
}


/* ==========================================================
   12. Dialogen en toastmeldingen
   ========================================================== */

dialog {
    border: 0;
    border-radius: 15px;
    padding: 24px;
    max-width: 390px;
    width: calc(100% - 32px);
    max-height: 85dvh;
    box-shadow: 0 20px 60px #0005;
}

dialog::backdrop {
    background: #0007;
}

dialog h2 {
    padding-right: 25px;
}

dialog p {
    line-height: 1.7;
}

dialog .close {
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 26px;
    width: 40px;
    height: 40px;
}

#toast {
    position: fixed;
    bottom: 96px;
    left: 50%;
    transform: translateX(-50%);
    background: #24331c;
    color: white;
    padding: 12px 18px;
    max-width: 90%;
    width: max-content;
    border-radius: 10px;
    z-index: 30;
    display: none;
    font-size: 12px;
}

#toast.show {
    display: block;
}


/* ==========================================================
   13. Overige elementen
   ========================================================== */

.demo-toolbar {
    text-align: center;
    margin-top: 22px;
}

.demo-toolbar button {
    color: #686e61;
    font-size: 11px;
    text-decoration: underline;
    padding: 8px;
}

.qr-image {
    width: 230px;
    max-width: 100%;
    display: block;
    margin: 16px auto;
}

.linkfield {
    font-size: 10px;
    overflow-wrap: anywhere;
    background: #f0f0ef;
    padding: 10px;
    border-radius: 8px;
}

.notice {
    padding: 12px;
    border-radius: 8px;
    background: #eef1e9;
    font-size: 12px;
    line-height: 1.6;
}

.doc-preview {
    border: 1px solid #ddd;
    padding: 20px;
    margin-top: 15px;
    border-radius:8px;
}

.doc-preview img {
    max-width: 150px;
}

.video-placeholder {
    background: #edf0e8;
    border-radius: 8px;
    text-align: center;
    padding: 35px 20px;
}

.video-placeholder svg {
    width: 45px;
    height: 45px;
    color: var(--green);
}
/* Opgeloste vragen: transparant groene achtergrond */
.badge.done {
    background: rgba(72, 89, 57, 0.15);
    color: #485939;
}
#search {
    border-radius: 999px;
}

#search:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--green);
}

#question:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--green);
}

#chat-message:focus{
    outline: none;
    box-shadow: none;
    border-color: var(--green);
}

.machine-select .machine-arrow {
    width: 20px;
    height: 20px;
    margin-left: auto;
    flex-shrink: 0;
    object-fit: contain;
}
/* Alle focusranden verwijderen */
*:focus,
*:focus-visible,
*:focus-within {
    outline: none !important;
    box-shadow: none !important;
}
/* ==========================================================
   14. Responsive: desktop en kleinere schermen
   ========================================================== */

@media (min-width:600px) {
    body {
        padding: 24px 0;
    }

    #app {
        border-radius: 38px;
        overflow: clip;
        min-height: 936px;
        box-shadow: 0 8px 22px #0002;
    }

    header {
        position: relative;
    }

    nav {
        position: sticky;
        bottom: 0;
        left: 0;
        transform: none;
        margin-top: auto;
        border-radius: 0 0 38px 38px;
    }

    #app {
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
    }

    main {
        flex: 1;
    }

    nav button {
        font-size: 11px;
    }
}

@media (max-width:360px) {
    main {
        padding: 18px;
    }

    header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .logo {
        width: 165px;
    }

    .switch {
        font-size: 10px;
    }

    .machine-select strong {
        font-size: 14px;
    }

    .specs {
        padding: 15px;
    }

    .machine-image img {
        height: 250px;
    }

    nav button {
        font-size: 9px;
    }
}
/* Pijltjes van de onderdelengroepen */
#catalog summary::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin: -4px 3px 0 8px;
    border: solid var(--green);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

#catalog details[open] > summary::after {
    transform: rotate(225deg);
    margin-top: 4px;
}

/* Mobile shell follows the visible viewport, including changing browser bars.
   Only the content area scrolls; controls never cover the machine information. */


/* ==========================================================
   15. Mobiele schermindeling en scrollgedrag
   ========================================================== */

@media (max-width:599px) {
    body {
        background: var(--green);
        padding: 0;
        overflow: hidden;
    }

    #app {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        max-width: none;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    header {
        flex: none;
        position: relative;
        padding: 16px 24px 12px;
        padding-top: calc(16px + env(safe-area-inset-top));
        padding-left: max(24px,env(safe-area-inset-left));
        padding-right: max(24px,env(safe-area-inset-right));
    }

    h1 {
        font-size: 18px;
        margin-top: 14px;
    }

    main {
        flex: 1;
        min-height: 0;
        overflow: auto;
        overscroll-behavior: contain;
        padding: 18px 24px;
    }

    nav {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        flex: none;
        max-width: none;
        margin: 0;
        padding: 10px 5px calc(10px + env(safe-area-inset-bottom));
        min-height: 64px;
    }

    main.home-overview {
        display: grid;
        grid-template-rows: minmax(100px,1fr) auto auto auto;
        gap: 14px;
        padding: 18px 24px 8px;
    }

    .home-overview .card {
        margin: 0;
    }

    .home-overview .machine-image {
        min-height: 100px;
        max-height: 320px;
        padding: 10px 24px;
        overflow: hidden;
    }

    .home-overview .machine-image img {
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: 300px;
        object-fit: contain;
    }

    .home-overview .specs {
        padding: 14px 20px;
        gap: 18px 10px;
    }

    .home-overview .compact {
        padding: 12px 18px;
    }

    .home-overview .compact h2 {
        font-size: 14px;
    }

    .home-overview .compact .row {
        padding: 9px 0;
        min-height: 40px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .home-overview .compact .row-text {
        min-width: 140px;
        overflow-wrap: anywhere;
    }

    .home-overview .demo-toolbar {
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .home-overview .demo-toolbar button {
        font-size: 10px;
        padding: 4px;
        min-height: 28px;
    }
}

@media (max-width:360px) {
    header {
        padding-left: 18px;
        padding-right: 18px;
    }

    main,main.home-overview {
        padding-left: 18px;
        padding-right: 18px;
    }

    .home-overview .specs {
        padding: 12px 15px;
        gap: 12px 8px;
    }

    .home-overview .specs dd {
        font-size: 12px;
    }

    .home-overview .compact {
        padding: 10px 14px;
    }

    .home-overview .compact h2 {
        font-size: 13px;
    }

    .home-overview .demo-toolbar {
        gap: 2px;
    }

    .home-overview .demo-toolbar button {
        font-size: 9px;
    }
}

@media (max-width:599px) and (max-height:680px) {
    header {
        padding-top: calc(12px + env(safe-area-inset-top));
        padding-bottom: 10px;
    }

    h1 {
        margin-top: 10px;
    }

    main.home-overview {
        gap: 10px;
        padding-top: 12px;
    }

    .home-overview .specs {
        gap: 10px;
    }

    .home-overview .compact {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (max-width:599px) {
    main.home-overview {
        grid-template-rows: minmax(100px,320px) auto auto auto;
        align-content: start;
    }
}

/* Home-screen iOS can report dynamic viewport units shorter than its window.
   Anchor the standalone shell to the window edges; keep safe-area padding in
   the header and navigation, rather than subtracting it from the app height. */


/* ==========================================================
   16. iOS: standalone en fullscreen
   ========================================================== */

@media (max-width:599px) and (display-mode:standalone),
       (max-width:599px) and (display-mode:fullscreen) {
    html {
        height: 100%;
        height: -webkit-fill-available;
        background: #020302;
    }

    body {
        height: 100%;
        min-height: 100%;
        background: #020302;
    }

    #app {
        position: fixed;
        inset: 0;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        margin: 0;
    }
}

/* iOS standalone uses the whole screen, even when its layout viewport still
   has the height of Safari with toolbars. Safe areas remain inside the shell. */

@media (max-width:599px) {
    html.ios-standalone,html.ios-standalone body {
        height: var(--standalone-screen-height,100lvh);
        min-height: 0;
        overflow: hidden;
    }

    html.ios-standalone #app {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        height: var(--standalone-screen-height,100lvh);
        min-height: 0;
        max-height: none;
    }

    html.ios-standalone nav {
        flex: 0 0 auto;
        align-items: flex-start;
    }
}

/* ==========================================================
   17. Hulpdesk: SVG-iconen, chatpagina en foto’s
   Alleen deze toevoegingen horen bij de nieuwe Hulpdesk.
   ========================================================== */
.help-row-arrow { width: 20px; height: 20px; flex: 0 0 19px; }
.help-icon { display: block; width: 23px; height: 23px; flex-shrink: 0; }
.help-chat-heading { display: flex; align-items: center; gap: 14px; margin: 8px 0 25px; }
.help-back { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 5px; background: #fff; flex-shrink: 0; }
.help-chat-title { min-width: 0; flex: 1; }
.help-chat-title h2 { font-size: 15px; line-height: 1.4; font-weight: 500; margin: 0; overflow-wrap: anywhere; }
.help-chat-title p { font-size: 11px; color: #555; margin: 4px 0 0; }
.help-chat-heading .badge { flex-shrink: 0; }
.help-conversation { padding: 16px; margin-bottom: 16px; }
.help-messages { max-height: min(48dvh, 430px); min-height: 130px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 20px; padding: 0 1px; }
.help-bubble { max-width: 86%; border-radius: 12px; padding: 11px 14px; overflow-wrap: anywhere; flex-shrink: 0; }
.help-bubble p { margin: 0; line-height: 1.55; white-space: pre-wrap; font-size: 14px; }
.help-bubble time { display: block; font-size: 10px; margin-top: 7px; opacity: .8; }
.help-bubble.from-user { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.help-bubble.from-dealer { align-self: flex-start; background: var(--bg); border: 1px solid #b4b6b0; border-bottom-left-radius: 4px; }
.help-bubble.from-dealer strong { display: block; color: var(--green); font-size: 14px; margin-bottom: 4px; }
.help-message-photo { display: block; max-width: 100%; width: 240px; max-height: 280px; object-fit: contain; border-radius: 7px; margin-top: 8px; }
.help-composer { position: relative; }
.help-composer textarea { min-height: 80px; background: white; padding: 12px 52px 16px 16px; resize: vertical; font-size: 16px; }
.help-composer textarea::placeholder { color: #75836a; }
.help-send { position: absolute; bottom: 5px; right: 1px; width: 40px; height: 37px; border-radius: 6px 0 8px 0; background: var(--green); display: flex; align-items: center; justify-content: center; }
.help-send:disabled { opacity: .45; }
.help-photo-tools { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 10px; }
.help-photo-button { display: inline-flex; align-items: center; gap: 7px; margin: 0; border: 1px solid #b4b6b0; background: #fff; padding: 8px 10px; border-radius: 7px; color: var(--green); cursor: pointer; min-height: 44px; font-size: 12px; }
.help-photo-button .help-icon { width: 19px; height: 19px; }
.help-photo-hint { font-size: 10px; color: var(--muted); flex: 1; min-width: 100px; }
.help-file-input, .help-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.help-photo-tools:focus-within .help-photo-button { outline: 2px solid var(--green); outline-offset: 2px; }
.help-photo-preview { display: flex; align-items: center; gap: 12px; padding: 10px; margin-top: 10px; background: #e7ebe2; border-radius: 8px; }
.help-photo-preview > img { width: 64px; height: 64px; object-fit: cover; border-radius: 5px; }
.help-photo-preview > div { min-width: 0; }
.help-photo-preview span { display: block; font-size: 11px; overflow-wrap: anywhere; }
.help-photo-preview button { display: block; padding: 8px 0; text-decoration: underline; color: var(--green); font-size: 11px; }
.help-demo-note { font-size: 10px; line-height: 1.5; }
@media(max-width:360px) {
    .help-chat-heading { gap: 8px; flex-wrap: wrap; }
    .help-chat-title h2 { font-size: 14px; }
    .help-chat-heading > .badge { margin-left: 48px; }
    .help-conversation { padding: 13px; }
    .help-bubble { max-width: 92%; }
}

/* ==========================================================
   18. Onderdelen: zwevende bestellijst en intypbare aantallen
   ========================================================== */
.switch-icon { display: block; width: 15px; height: 15px; flex-shrink: 0; object-fit: contain; padding-right:5px; }
#app[data-page="parts"] { --parts-nav-height: 68px; --parts-header-height: 110px; }
.parts-page { padding-bottom: 24px; }
.has-parts-cart .parts-page { padding-bottom: 104px; scroll-padding-bottom: 104px; }
#cart-area { position: absolute; left: 16px; right: 16px; bottom: calc(var(--parts-nav-height, 68px) + 12px); z-index: 9; pointer-events: none; }
.floating-cart { pointer-events: auto; margin: 0; border: 0px solid var(--green); border-radius: 19px; background: #fff; box-shadow: 0 5px 20px #0003; overflow: hidden; }
.floating-cart > summary { padding: 14px 17px; min-height: 55px; gap: 12px; background: var(--green); color: white; font-size: 16px; font-weight: 700; }
.floating-cart > summary > svg { width: 24px; height: 24px; flex-shrink: 0; stroke-width: 1.8; }
.floating-cart .cart-count { margin-left: auto; white-space: nowrap; font-size: 14px; }
.floating-cart > summary:after { content: ''; display: block; width: 9px; height: 9px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); margin: -4px 0 0 4px; flex: 0 0 9px; }
.floating-cart[open] > summary:after { transform: rotate(225deg); margin-top: 5px; }
.floating-cart .cart-body { padding: 0 16px 12px; max-height: max(100px, calc(100dvh - var(--parts-nav-height, 68px) - var(--parts-header-height, 110px) - 100px)); max-height: max(100px, calc(var(--standalone-screen-height, 100dvh) - var(--parts-nav-height, 68px) - var(--parts-header-height, 110px) - 100px)); overflow-y: auto; overscroll-behavior: contain; }
.floating-cart .part { margin: 0; padding: 14px 0; border-top: 0; border-bottom: 1px solid #ddd; gap: 4px; }
.floating-cart .row-text { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.floating-cart .row-text small { font-size: 11px; margin-top: 3px; }
.floating-cart .primary { font-size: 15px; margin-top: 14px; gap: 10px; }
.floating-cart .minor { text-align: left; font-size: 11px; line-height: 1.4; margin: 10px 0 0; }
.qty { gap: 0; }
.qty button { width: 30px; height: 30px; border: 0; background: transparent; border-radius: 0; color: var(--green); display: flex; align-items: center; justify-content: center; padding: 0; }
.qty button svg { width: 18px; height: 18px; stroke-width: 2; }
.qty .qty-add { width: 30px; height: 30px; border: 1px solid #c7ccc2; border-radius: 7px; background: white; }
.qty .qty-number { width: 32px; min-width: 0; height: px; padding: 4px 0; border: 0; border-radius: 0; background: transparent; color: #080a07; text-align: center; font-family: inherit; font-size: 16px; font-weight: 600; }
.qty .qty-number:focus { outline: 1px solid #3B5B2F; border-radius: 5px; background: #f1f3ee; }
.cart-remove { width: 32px; height: 32px; flex: 0 0 32px; padding: 0; display: flex; align-items: center; justify-content: center; color: #5c6258; }
.cart-remove svg { width: 18px; height: 18px; stroke-width: 1.8; }
@media(min-width:600px) {
    #app[data-page="parts"] { height: calc(100dvh - 48px); min-height: 500px; }
    #app[data-page="parts"] > main { min-height: 0; overflow-y: auto; }
    #app[data-page="parts"] > header, #app[data-page="parts"] > nav { flex-shrink: 0; }
    #app[data-page="parts"] > nav { position: relative; }
}
@media(max-width:360px) {
    #cart-area { left: 10px; right: 10px; }
    .floating-cart > summary { padding: 12px; font-size: 15px; gap: 9px; }
    .floating-cart .cart-body { padding-left: 12px; padding-right: 12px; }
    .floating-cart .row-text { font-size: 12px; }
    .floating-cart .row-text small { font-size: 10px; }
    .qty button { width: 29px; }
    .qty .qty-number { width: 36px; }
    .cart-remove { width: 28px; flex-basis: 28px; }
}

/* ==========================================================
   19. Onderdelen zoeken met foto — beursdemo
   ========================================================== */
.parts-search-bar { position: relative; }
.parts-search-bar #search { padding-right: 56px; border-radius: 999px; min-height: 46px; }
.parts-photo-trigger { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 40px; height: 38px; border-radius: 50%; background: #e2e7dc; color: var(--green); }
.parts-photo-trigger .help-icon { width: 21px; height: 21px; }
.parts-photo-shortcut { margin: 7px 12px 3px; font-size: 11px; color: var(--muted); }
.parts-photo-shortcut button { color: var(--green); text-decoration: underline; padding: 4px 0; }
.parts-photo-card { margin: 14px 0 18px; padding: 16px; border: 0px solid #d8decf; }
.parts-photo-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.parts-photo-heading h3 { margin: 0; font-size: 15px; flex: 1; line-height: 1.35; }
.parts-photo-close { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; color: var(--green); }
.parts-photo-close svg { width: 20px; height: 20px; transform: rotate(45deg); }
.parts-photo-description { margin: 0 0 14px; line-height: 1.5; font-size: 13px; }
.parts-photo-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.parts-photo-choice { display: flex; flex: 1; justify-content: center; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 9px; border: 1px solid #acb69f; border-radius: 9px; color: var(--green); cursor: pointer; font-size: 12px; white-space: nowrap; }
.parts-photo-choice .help-icon, .parts-photo-choice svg { width: 19px; height: 19px; }
.parts-photo-choices:focus-within { outline: none; outline-offset: 3px; border-radius: 9px; }
.parts-photo-image { display: block; width: 100%; max-height: 180px; object-fit: contain; border-radius: 9px; background: #f2f3ef; margin-bottom: 12px; }
.parts-photo-loading { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 13px; }
.parts-photo-loading p { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.parts-photo-spinner { width: 24px; height: 24px; border: 3px solid #e1e6da; border-top-color: var(--green); border-radius: 50%; animation: parts-photo-spin .8s linear infinite; flex-shrink: 0; }
@keyframes parts-photo-spin { to { transform: rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .parts-photo-spinner { animation: none; } }
.parts-photo-result { background: #eef2e9; border-radius: 10px; padding: 13px; }
.parts-photo-result-label { font-size: 10px; color: var(--green); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.parts-photo-result > strong { display: block; font-size: 16px; }
.parts-photo-result > small { margin-top: 3px; }
.parts-photo-result .primary { margin-top: 12px; font-size: 13px; min-height: 44px; gap: 6px; }
.parts-photo-result .primary svg { width: 18px; height: 18px; }
.parts-photo-explanation { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 10px 0; }
.parts-photo-error { color: #9b302a; font-size: 12px; line-height: 1.5; margin: 10px 0 0; }
