/* =========================================================
   FLOW noir — afrekenen (/bestellen) + bedankpagina (thema dark)
   Laadt na tokens.css en ná pages/checkout.css (licht). De noir-
   templates gebruiken eigen klassen (nx-*), zodat de lichte regels
   niet meespelen. Enkel markup die app.js / de gedeelde status-
   partial genereert (tbody-rijen, button.q, .price-stack, ty-live*,
   ty-steps*) krijgt hier overrides binnen een noir-scope.

   Inhoud
     0. Lokale tokens (papier, iconen)
     1. Kop, gesloten-melding, lege staat
     2. Layout: bonnetje links (sticky) · hoofdstukken rechts
     3. Hoofdstukken (stappen), velden
     4. Keuzekaarten, switch, tijdslot, leveradres
     5. Kortingscode
     6. Bonnetje (papier) + CTA
     7. Responsief
     8. Bedankpagina
   ====================================================== */

/* =========================================================
   0. Lokale tokens
   ====================================================== */
:root {
    --nx-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E");
    --nx-i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v4.5M12 16h.01'/%3E%3C/svg%3E");
    --nx-i-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E");
    --nx-i-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4.5A1.5 1.5 0 0 1 4.5 3H12l9 9-9 9-9-9Z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E");
    --nx-i-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
    --nx-i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
}

.nx-co, .nx-ty {
    --nx-hair: var(--hairline);
    --nx-hair-strong: var(--hairline-strong);
    --nx-glow: var(--glow, color-mix(in srgb, var(--accent) 38%, transparent));
    --nx-glow-soft: var(--glow-soft, color-mix(in srgb, var(--accent) 16%, transparent));
    --nx-lift: color-mix(in srgb, var(--n-1000) 3%, transparent);     /* heel licht opgetild vlak */
    --nx-lift-2: color-mix(in srgb, var(--n-1000) 6%, transparent);
    --nx-top: calc(var(--nav-space, var(--header-h)) + var(--s-2) + var(--ontwerp-balk-h, 0px));   /* sticky-afstand onder de zwevende header */
}

/* Het verlichte papier: thermisch bonnetje met een vleugje merkkleur.
   Binnen het papier worden de tekst-/randtokens lokaal omgedraaid, zodat ook
   de markup die app.js in het mandje zet (button.q, .muted, .price-stack) klopt. */
.nx-paper {
    --paper: color-mix(in srgb, var(--n-1000) 97%, var(--accent));
    --ink: var(--n-0);
    --ink-2: color-mix(in srgb, var(--n-0) 74%, var(--paper));
    --ink-3: color-mix(in srgb, var(--n-0) 60%, var(--paper));
    /* laadstaten op papier: donkere inkt-shimmer en lichte vlakken i.p.v. de noir-tinten */
    --skeleton-ink: var(--ink-3);
    --skeleton-ink-shine: color-mix(in srgb, var(--n-0) 18%, var(--paper));
    --skeleton-base: color-mix(in srgb, var(--n-0) 8%, var(--paper));
    --skeleton-shine: rgba(255, 255, 255, .7);
    --text: var(--ink);
    --text-2: var(--ink-2);
    --text-3: var(--ink-3);
    --border: color-mix(in srgb, var(--n-0) 11%, transparent);
    --border-strong: color-mix(in srgb, var(--n-0) 22%, transparent);
    --n-150: color-mix(in srgb, var(--n-0) 7%, transparent);
    --n-200: color-mix(in srgb, var(--n-0) 12%, transparent);
    --n-400: color-mix(in srgb, var(--n-0) 45%, var(--paper));
    --accent-text: color-mix(in srgb, var(--accent) 78%, var(--n-0));
    --success-800: color-mix(in srgb, var(--success-600) 70%, var(--n-0));
    color: var(--ink);
    background: var(--paper);
}

/* =========================================================
   1. Kop, gesloten-melding, lege staat
   ====================================================== */
main.nx-co-main { padding-top: clamp(32px, 5vw, 72px); }

.nx-co-head {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 720px;
    margin: 0 auto clamp(40px, 5vw, 64px);
    text-align: center;
}
.nx-co-head::before {
    content: "";
    position: absolute;
    inset: -40% 0;
    z-index: -1;
    background: radial-gradient(closest-side, var(--nx-glow-soft), transparent);
    opacity: .9;
    pointer-events: none;
}
.nx-co-back {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    min-height: 44px;
    margin-bottom: var(--s-6);
    padding: 0 16px 0 10px;
    border-radius: var(--r-pill);
    box-shadow: inset 0 0 0 1px var(--nx-hair);
    color: var(--text-2);
    font-size: var(--fs-small);
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.nx-co-back svg { width: 18px; height: 18px; transition: transform var(--dur-2) var(--ease); }
.nx-co-back:hover { background: var(--nx-lift); color: var(--text); box-shadow: inset 0 0 0 1px var(--nx-hair-strong); }
.nx-co-back:hover svg { transform: translateX(-2px); }
.nx-co-back:focus-visible { border-radius: var(--r-pill); box-shadow: var(--ring); }

.nx-co .nx-kicker, .nx-ty .nx-kicker { justify-content: center; margin-bottom: var(--s-4); }
.nx-co-head__title {
    font-size: clamp(44px, 6vw, 88px);
    line-height: .95;
    letter-spacing: var(--track-mega, var(--track-display));
}
.nx-co-head__title em,
.nx-empty__title em,
.nx-ty-hero__title em {
    font-family: var(--font-serif, serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--accent-text);
    padding-right: .04em;
}
.nx-co-head__lead { max-width: 46ch; margin-top: var(--s-5); color: var(--text-2); font-size: var(--fs-lead); line-height: 1.55; }

/* gesloten */
.nx-closed {
    display: flex;
    align-items: flex-start;
    gap: var(--s-4);
    max-width: 720px;
    margin: 0 auto var(--s-10);
    padding: var(--s-5) var(--s-6);
    border-radius: var(--r-card);
    background:
        radial-gradient(60% 120% at 0% 0%, var(--warning-100), transparent 70%),
        var(--surface);
    box-shadow: inset 0 0 0 1px var(--warning-200), var(--e-2);
}
.nx-closed__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--warning-100);
    box-shadow: inset 0 0 0 1px var(--warning-200), 0 0 28px -6px var(--warning-200);
    color: var(--warning-800);
}
.nx-closed__icon svg { width: 22px; height: 22px; }
.nx-closed__title { font-size: var(--fs-h4); line-height: 28px; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.nx-closed__text { margin-top: 2px; color: var(--text-2); }

/* lege staat: de hele checkout maakt plaats */
.nx-empty {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 620px;
    margin: var(--s-8) auto 0;
    padding: clamp(48px, 7vw, 88px) var(--s-6);
    border-radius: 32px;
    text-align: center;
    background:
        radial-gradient(70% 60% at 50% 0%, var(--nx-glow-soft), transparent 70%),
        var(--surface);
    box-shadow: inset 0 0 0 1px var(--nx-hair), var(--e-3);
}
.nx-empty[hidden] { display: none; }
.nx-empty__art {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin-bottom: var(--s-6);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, var(--accent-soft-2), var(--accent-soft));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 60px -10px var(--nx-glow);
    color: var(--accent-text);
}
.nx-empty__art svg { width: 38px; height: 38px; }
.nx-empty__title { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: var(--track-display); }
.nx-empty__text { max-width: 38ch; margin-top: var(--s-4); color: var(--text-2); }
.nx-empty__btn { margin-top: var(--s-8); }

.nx-co:has(.nx-empty:not([hidden])) .nx-co-head,
.nx-co:has(.nx-empty:not([hidden])) .nx-checkout { display: none; }

/* =========================================================
   2. Layout
   ====================================================== */
.nx-checkout {
    display: grid;
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
    grid-template-areas: "aside steps";
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}
.nx-steps { grid-area: steps; min-width: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.nx-aside {
    grid-area: aside;
    position: sticky;
    top: var(--nx-top);
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
}

/* =========================================================
   3. Hoofdstukken + velden
   ====================================================== */
.nx-step {
    position: relative;
    padding: var(--s-8);
    border-radius: 28px;
    background:
        linear-gradient(180deg, var(--nx-lift), transparent 120px),
        var(--surface);
    box-shadow: inset 0 0 0 1px var(--nx-hair), var(--e-2);
    transition: box-shadow var(--dur-3) var(--ease);
}
.nx-step:focus-within {
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent),
        var(--e-2),
        0 24px 70px -36px var(--nx-glow);
}
.nx-step__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "no done" "title done" "sub done";
    row-gap: 4px;
}
.nx-step__no {
    grid-area: no;
    margin-bottom: var(--s-2);
    color: var(--accent-text);
    font-size: var(--fs-tiny);
    line-height: 16px;
    font-weight: 600;
    letter-spacing: .18em;
    font-variant-numeric: tabular-nums;
}
.nx-step__title {
    grid-area: title;
    font-size: clamp(24px, 2.2vw, 30px);
    line-height: 1.1;
    letter-spacing: var(--track-heading);
}
.nx-step__sub { grid-area: sub; color: var(--text-3); font-size: var(--fs-small); line-height: 20px; }
.nx-step__done {
    grid-area: done;
    align-self: start;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--success-100);
    box-shadow: inset 0 0 0 1px var(--success-200);
    color: var(--success-800);
    opacity: 0;
    transform: scale(.5);
    transition: opacity var(--dur-2) var(--ease), transform var(--dur-3) var(--ease-out);
}
.nx-step__done svg { width: 16px; height: 16px; }
.nx-step--details:has(#name:valid):has(#phone:valid):has(#email:valid) .nx-step__done { opacity: 1; transform: none; }

.nx-step__body { display: flex; flex-direction: column; gap: var(--s-6); margin-top: var(--s-8); }

.nx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
.nx-grid__full { grid-column: 1 / -1; }
.nx-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.nx-label { display: block; margin: 0 0 var(--s-3); padding: 0; font-size: var(--fs-small); line-height: 20px; font-weight: 600; color: var(--text); }
.nx-optional { margin-left: 6px; font-weight: 400; color: var(--text-3); }

/* velden: iets opgetild glas op donker */
.nx-co input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.nx-co textarea,
.nx-co select {
    min-height: 52px;
    border-color: var(--nx-hair-strong);
    border-radius: 14px;
    background-color: var(--nx-lift);
    box-shadow: none;
}
.nx-co textarea { min-height: 112px; }
.nx-co input::placeholder, .nx-co textarea::placeholder { color: var(--text-3); opacity: .8; }
.nx-co input:not([type="radio"]):not([type="checkbox"]):hover,
.nx-co textarea:hover, .nx-co select:hover { border-color: color-mix(in srgb, var(--n-1000) 28%, transparent); }
.nx-co input:not([type="radio"]):not([type="checkbox"]):focus,
.nx-co textarea:focus, .nx-co select:focus {
    border-color: var(--accent);
    border-radius: 14px;
    background-color: var(--surface);
    box-shadow: var(--ring);
}
.nx-co input[disabled], .nx-co select[disabled], .nx-co textarea[disabled] { opacity: .55; }
.nx-co select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23aeadc4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.nx-co .field-hint { color: var(--text-3); }

/* nieuwsbrief: brede keuzerij met eigen vinkje */
.nx-optin {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--s-4);
    padding: var(--s-4) var(--s-5);
    border-radius: var(--r-default);
    background: var(--nx-lift);
    box-shadow: inset 0 0 0 1px var(--nx-hair);
    font-weight: 400;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.nx-optin input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    appearance: none;
}
.nx-optin__box {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 1px;
    border-radius: 7px;
    box-shadow: inset 0 0 0 1.5px var(--n-500);
    transition: background-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.nx-optin__box::after {
    content: "";
    position: absolute;
    inset: 4px;
    background: var(--accent-ink);
    -webkit-mask: var(--nx-i-check) center / contain no-repeat;
    mask: var(--nx-i-check) center / contain no-repeat;
    transform: scale(0);
    transition: transform var(--dur-2) var(--ease-out);
}
.nx-optin__text { display: flex; flex-direction: column; gap: 2px; }
.nx-optin__title { font-size: 15px; line-height: 22px; font-weight: 500; color: var(--text); }
.nx-optin__sub { font-size: var(--fs-small); line-height: 20px; color: var(--text-3); }
.nx-optin:hover { background: var(--nx-lift-2); }
.nx-optin:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.nx-optin:has(input:checked) .nx-optin__box { background: var(--accent); box-shadow: none; }
.nx-optin:has(input:checked) .nx-optin__box::after { transform: scale(1); }
.nx-optin:has(input:focus-visible) { box-shadow: var(--ring); }

/* =========================================================
   4. Keuzekaarten (bestelwijze, betaling)
   ====================================================== */
.nx-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.nx-methods--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.nx-method {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-8);
    min-height: 172px;
    padding: var(--s-5);
    border-radius: 20px;
    background: var(--nx-lift);
    box-shadow: inset 0 0 0 1px var(--nx-hair-strong);
    font-weight: 400;
    cursor: pointer;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: box-shadow var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease), transform var(--dur-1) var(--ease);
}
/* gloed die oplicht bij selectie */
.nx-method::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(120% 90% at 0% 0%, var(--accent-soft-2), transparent 60%);
    opacity: 0;
    transition: opacity var(--dur-3) var(--ease);
}
.nx-method:hover { background: var(--nx-lift-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--n-1000) 26%, transparent); }
.nx-method:active { transform: scale(.985); }
.nx-method input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    opacity: 0;
    cursor: pointer;
    appearance: none;
}
.nx-method__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--nx-lift-2);
    box-shadow: inset 0 0 0 1px var(--nx-hair);
    color: var(--text);
    transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.nx-method__icon svg { width: 26px; height: 26px; }
.nx-method__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin-top: auto; }
.nx-method__title { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.nx-method__sub { font-size: var(--fs-small); line-height: 20px; color: var(--text-3); }
.nx-method__deal {
    position: absolute;
    top: var(--s-5);
    right: calc(var(--s-5) + 34px);
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: var(--accent-soft-2);
    color: var(--accent-text);
    font-size: var(--fs-tiny);
    line-height: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.nx-method__tick {
    position: absolute;
    top: var(--s-5);
    right: var(--s-5);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--n-500);
    transition: background-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.nx-method__tick::after {
    content: "";
    position: absolute;
    inset: 5px;
    background: var(--accent-ink);
    -webkit-mask: var(--nx-i-check) center / contain no-repeat;
    mask: var(--nx-i-check) center / contain no-repeat;
    transform: scale(0);
    transition: transform var(--dur-3) var(--ease-out);
}
.nx-method:has(input:checked) {
    background: var(--surface);
    box-shadow: inset 0 0 0 1.5px var(--accent), 0 18px 50px -24px var(--nx-glow);
}
.nx-method:has(input:checked)::before { opacity: 1; }
.nx-method:has(input:checked) .nx-method__icon {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 8px 26px -8px var(--nx-glow);
}
.nx-method:has(input:checked) .nx-method__tick { background: var(--accent); box-shadow: 0 0 16px -2px var(--nx-glow); }
.nx-method:has(input:checked) .nx-method__tick::after { transform: scale(1); }
.nx-method:has(input:focus-visible) { box-shadow: inset 0 0 0 1.5px var(--accent), var(--ring); }
.nx-method:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.nx-method:has(input:disabled) input { cursor: not-allowed; }

/* rij-variant (betaling) */
.nx-method--row {
    flex-direction: row;
    align-items: center;
    gap: var(--s-4);
    min-height: 88px;
    padding: var(--s-4) calc(var(--s-5) + 36px) var(--s-4) var(--s-4);
}
.nx-method--row .nx-method__text { margin-top: 0; }
.nx-method--row .nx-method__tick { top: 50%; margin-top: -12px; }

/* content switcher (afhaalmoment) */
.nx-slot { display: flex; flex-direction: column; }
.nx-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    max-width: 520px;
    padding: 4px;
    border-radius: var(--r-pill);
    background: var(--nx-lift);
    box-shadow: inset 0 0 0 1px var(--nx-hair);
}
.nx-switch__opt {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px var(--s-4);
    border-radius: var(--r-pill);
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--dur-2) var(--ease), color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.nx-switch__opt:hover { color: var(--text); }
.nx-switch__opt input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    appearance: none;
}
.nx-switch__meta { color: var(--text-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.nx-switch__opt:has(input:checked) {
    background: var(--n-1000);
    color: var(--n-0);
    font-weight: 600;
    box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .8);
}
.nx-switch__opt:has(input:checked) .nx-switch__meta { color: color-mix(in srgb, var(--n-0) 62%, var(--n-1000)); }
.nx-switch__opt:has(input:focus-visible) { box-shadow: var(--ring); }

.nx-slot__picker { margin-top: var(--s-3); max-width: 520px; }
.nx-select { position: relative; --sk-field-x: 46px; }
.nx-select__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    color: var(--text-3);
    pointer-events: none;
}
.nx-co .nx-select select { padding-left: 46px; font-variant-numeric: tabular-nums; }

/* leveradres */
.nx-address {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
    padding: var(--s-6);
    border-radius: 20px;
    background: var(--nx-lift);
    box-shadow: inset 0 0 0 1px var(--nx-hair);
}
.nx-address__head { display: flex; align-items: center; gap: var(--s-3); }
.nx-address__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
    color: var(--accent-text);
}
.nx-address__icon svg { width: 20px; height: 20px; }
.nx-address__title { font-size: var(--fs-body); line-height: 22px; letter-spacing: -0.01em; }
.nx-address__sub { font-size: var(--fs-small); line-height: 20px; color: var(--text-3); }

/* zachte reveal telkens JS display:none weghaalt */
.nx-reveal { animation: nx-reveal var(--dur-3) var(--ease-out); }
@keyframes nx-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* adres-suggesties (indien aanwezig) */
.nx-co .address-suggestions { background: var(--surface-2, var(--surface)); box-shadow: inset 0 0 0 1px var(--nx-hair-strong), var(--e-4); }

/* =========================================================
   5. Kortingscode
   ====================================================== */
.nx-discount__group {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--s-1);
    min-height: 56px;
    padding: 6px;
    border-radius: var(--r-pill);
    background: var(--nx-lift);
    box-shadow: inset 0 0 0 1px var(--nx-hair-strong);
    transition: box-shadow var(--dur-2) var(--ease);
}
.nx-discount__group:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--n-1000) 28%, transparent); }
.nx-discount__group:focus-within { box-shadow: inset 0 0 0 1px var(--accent), var(--ring); }
.nx-discount__icon {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    color: var(--text-3);
    pointer-events: none;
}
.nx-co .nx-discount__group input,
.nx-co .nx-discount__group input:hover,
.nx-co .nx-discount__group input:focus {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 6px 8px 6px 40px;
    border: 0;
    border-radius: var(--r-pill);
    background: transparent;
    box-shadow: none;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.nx-co .nx-discount__group input::placeholder { letter-spacing: 0; text-transform: none; }
.nx-discount__group .btn { flex-shrink: 0; min-height: 44px; }
.nx-discount__group .btn:focus-visible { box-shadow: var(--ring); }
.nx-discount__apply { --btn-bg: var(--n-1000); --btn-fg: var(--n-0); --btn-bd: transparent; --btn-sh: none; }
.nx-discount__apply:hover { --btn-bg: var(--n-800); --btn-bd: transparent; }
.nx-discount__group:has(input:disabled) { background: transparent; box-shadow: inset 0 0 0 1px var(--nx-hair); }
.nx-discount__group:has(input:disabled) [data-apply-discount] { display: none; }
.nx-discount:has([data-clear-discount]:not([hidden])) [data-apply-discount] { display: none; }

.nx-discount__msg {
    display: flex;
    align-items: flex-start;
    gap: var(--s-2);
    margin-top: var(--s-1);
    font-size: var(--fs-small);
    line-height: 20px;
    font-weight: 500;
    color: var(--danger-800);
    animation: nx-reveal var(--dur-2) var(--ease-out);
}
.nx-discount__msg:empty { display: none; }
.nx-discount__msg::before {
    content: "";
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    background: currentColor;
    -webkit-mask: var(--nx-i-alert) center / contain no-repeat;
    mask: var(--nx-i-alert) center / contain no-repeat;
}
.nx-discount:has([data-clear-discount]:not([hidden])) .nx-discount__msg { color: var(--success-800); }
.nx-discount:has([data-clear-discount]:not([hidden])) .nx-discount__msg::before { -webkit-mask-image: var(--nx-i-ok); mask-image: var(--nx-i-ok); }
.nx-discount:has([data-clear-discount]:not([hidden])) .nx-discount__group { box-shadow: inset 0 0 0 1px var(--success-200), 0 0 0 4px var(--success-100); }
.nx-discount:has(#discount_code:disabled) .nx-discount__msg {
    padding: 10px var(--s-4);
    border-radius: var(--r-control);
    background: var(--accent-soft);
    color: var(--accent-text);
}
.nx-discount:has(#discount_code:disabled) .nx-discount__msg::before { -webkit-mask-image: var(--nx-i-tag); mask-image: var(--nx-i-tag); }

/* =========================================================
   6. Bonnetje (verlicht papier) + CTA
   ====================================================== */
.nx-ticket {
    position: relative;
    padding: var(--s-8) var(--s-6) var(--s-6);
    border-radius: 18px 18px 0 0;
    /* gloed + diepte; drop-shadow volgt ook de gekartelde onderrand */
    filter:
        drop-shadow(0 28px 48px rgba(0, 0, 0, .55))
        drop-shadow(0 0 42px color-mix(in srgb, var(--accent) 22%, transparent));
    animation: nx-print 700ms var(--ease-out) both;
}
/* gekartelde (afgescheurde) onderrand */
.nx-ticket::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 9px;
    background: conic-gradient(from 135deg at 50% 0, transparent 90deg, var(--paper) 0) 0 0 / 18px 9px repeat-x;
}
@keyframes nx-print { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

.nx-ticket__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); }
.nx-ticket__brand { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nx-ticket__kicker {
    color: var(--ink-3);
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.nx-ticket__name { font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
.nx-ticket__method {
    flex-shrink: 0;
    padding: 4px 11px;
    border-radius: var(--r-pill);
    box-shadow: inset 0 0 0 1px var(--border-strong);
    color: var(--ink);
    font-size: var(--fs-tiny);
    line-height: 16px;
    font-weight: 600;
}
.nx-ticket__method [data-co-m] { display: none; }
.nx-checkout:has(input[name="method"][value="afhalen"]:checked) [data-co-m="afhalen"],
.nx-checkout:has(input[name="method"][value="ter_plaatse"]:checked) [data-co-m="ter_plaatse"],
.nx-checkout:has(input[name="method"][value="delivery"]:checked) [data-co-m="delivery"] { display: inline; }

.nx-ticket__meta {
    display: flex;
    justify-content: space-between;
    gap: var(--s-3);
    margin-top: var(--s-4);
    padding-bottom: var(--s-3);
    border-bottom: 1.5px dashed var(--border-strong);
    color: var(--ink-3);
    font-size: var(--fs-tiny);
    line-height: 16px;
    font-weight: 500;
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
}
.nx-ticket__count { color: var(--ink-2); font-weight: 600; }

/* tabel → bonnetje-rijen (rijen komen uit app.js renderCart) */
.nx-receipt { display: block; width: 100%; border-collapse: collapse; }
.nx-receipt tbody, .nx-receipt tfoot { display: block; }
.nx-receipt__items {
    max-height: min(42vh, 420px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}
.nx-receipt__items tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "qty name price";
    align-items: start;
    column-gap: var(--s-3);
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--border);
}
.nx-receipt__items tr:last-child { border-bottom: 0; }
.nx-receipt__items td { display: block; padding: 0; }
.nx-receipt__items td:first-child {
    grid-area: name;
    padding-top: 5px;
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}
.nx-receipt__items td:first-child .muted {
    margin-top: 2px;
    font-size: 13px !important;
    line-height: 18px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--ink-3);
}
.nx-receipt__items td:first-child .muted strong { font-weight: 600; color: var(--ink-2); }
.nx-receipt__items td:last-child {
    grid-area: price;
    padding-top: 5px;
    text-align: right;
    font-size: 15px;
    line-height: 22px;
    white-space: nowrap;
}
.nx-receipt__items .price-stack { flex-direction: column; align-items: flex-end; gap: 0; }
.nx-receipt__items .price-old { order: 2; color: var(--ink-3); font-size: 12px; line-height: 16px; }

/* aantal: verticale mini-stepper links (- 2 +) */
.nx-receipt__items td.qty {
    grid-area: qty;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    padding: 1px;
    border-radius: var(--r-pill);
    box-shadow: inset 0 0 0 1px var(--border-strong);
}
.nx-receipt__items td.qty span {
    min-width: 22px;
    font-size: var(--fs-small);
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.nx-receipt button.q {
    position: relative;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 0;
    cursor: pointer;
}
.nx-receipt button.q::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: var(--nx-i-plus) center / contain no-repeat;
    mask: var(--nx-i-plus) center / contain no-repeat;
}
.nx-receipt button.q[data-d="-1"]::before { -webkit-mask-image: var(--nx-i-minus); mask-image: var(--nx-i-minus); }
.nx-receipt button.q::after { content: ""; position: absolute; inset: -7px; } /* tapdoel ≥ 44px */
.nx-receipt button.q:hover { background: var(--n-150); }
.nx-receipt button.q:active { transform: scale(.9); background: var(--n-200); }
.nx-receipt button.q:focus-visible { box-shadow: var(--ring); border-radius: 50%; }

/* totalen */
.nx-receipt__totals { margin-top: var(--s-2); padding-top: var(--s-4); border-top: 1.5px dashed var(--border-strong); }
.nx-receipt__totals tr {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--s-4);
    padding: 3px 0;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 22px;
}
.nx-receipt__totals td { padding: 0; }
.nx-receipt__totals .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nx-receipt__disc .num { color: var(--success-800); font-weight: 600; }
.nx-receipt__total {
    margin-top: var(--s-3);
    padding-top: var(--s-4) !important;
    border-top: 2px solid var(--ink);
    color: var(--ink) !important;
    font-weight: 600;
}
.nx-receipt__total td:first-child { font-size: var(--fs-body); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.nx-receipt__vat { margin-left: 4px; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.nx-receipt__total .num strong { font-size: 30px; line-height: 32px; font-weight: 700; letter-spacing: -0.03em; }

.nx-ticket__foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-2);
    margin-top: var(--s-6);
    color: var(--ink-3);
    font-size: 10px;
    line-height: 14px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
}
/* decoratieve streepjescode */
.nx-ticket__foot::before {
    content: "";
    width: 70%;
    height: 34px;
    opacity: .85;
    background: repeating-linear-gradient(90deg,
        var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px,
        var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 17px);
}

/* CTA */
.nx-cta { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-2); }
.nx-cta__btn {
    min-height: 60px;
    font-size: 17px;
    --btn-sh: inset 0 1px 0 rgba(255, 255, 255, .24), 0 18px 44px -14px var(--nx-glow);
}
.nx-cta__btn:hover { --btn-sh: inset 0 1px 0 rgba(255, 255, 255, .24), 0 22px 54px -12px var(--nx-glow); }
.nx-cta__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: var(--fs-tiny);
    line-height: 16px;
    color: var(--text-3);
    text-align: center;
}
.nx-cta__note svg { width: 14px; height: 14px; flex-shrink: 0; }
.nx-cta__note a { color: var(--text-2); }
.nx-cta__note a:hover { color: var(--text); }

/* =========================================================
   7. Responsief
   ====================================================== */
@media (max-width: 1100px) {
    .nx-checkout { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); gap: var(--s-8); }
    .nx-methods--3 { grid-template-columns: minmax(0, 1fr); }
    .nx-methods--3 .nx-method { flex-direction: row; align-items: center; gap: var(--s-4); min-height: 84px; padding-right: calc(var(--s-5) + 36px); }
    .nx-methods--3 .nx-method__text { margin-top: 0; }
    .nx-methods--3 .nx-method__tick { top: 50%; margin-top: -12px; }
    .nx-methods--3 .nx-method__deal { position: static; margin-left: auto; }
}

@media (max-width: 900px) {
    /* bonnetje eerst, hoofdstukken eronder, CTA zweeft onderaan */
    .nx-checkout { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: var(--s-10); }
    .nx-aside { display: contents; }
    .nx-ticket { order: -1; width: 100%; max-width: 520px; margin: 0 auto var(--s-2); }
    .nx-steps { grid-area: auto; }
    .nx-cta {
        position: sticky;
        bottom: var(--s-4);
        z-index: 800;
        gap: var(--s-2);
        margin: 0;
        padding: var(--s-3);
        border-radius: 26px;
        background: var(--glass-strong);
        -webkit-backdrop-filter: var(--glass-blur);
        backdrop-filter: var(--glass-blur);
        box-shadow: inset 0 0 0 1px var(--glass-border), var(--glass-sheen), var(--e-4);
    }
    .nx-cta__btn { min-height: 56px; }
}

@media (max-width: 768px) {
    /* boven de zwevende tabbalk blijven */
    .nx-cta { bottom: calc(var(--tabbar-h) + 2 * var(--tabbar-inset, 0px) + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
    main.nx-co-main { padding-top: var(--s-6); }
    .nx-co-head { margin-bottom: var(--s-8); }
    .nx-co-back { margin-bottom: var(--s-4); }
    .nx-co-head__title { font-size: 48px; }
    .nx-co-head__lead { font-size: var(--fs-body); }

    .nx-step { padding: var(--s-6) var(--s-5); border-radius: 24px; }
    .nx-step__body { margin-top: var(--s-6); gap: var(--s-5); }
    .nx-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }

    .nx-methods, .nx-methods--3 { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
    .nx-method { flex-direction: row; align-items: center; gap: var(--s-4); min-height: 80px; padding: var(--s-3) calc(var(--s-4) + 36px) var(--s-3) var(--s-3); }
    .nx-method__icon { width: 48px; height: 48px; }
    .nx-method__text { margin-top: 0; }
    .nx-method__tick { top: 50%; right: var(--s-4); margin-top: -12px; }
    .nx-method__deal { position: static; margin-left: auto; }

    .nx-switch { max-width: none; border-radius: 18px; }
    .nx-switch__opt { flex-direction: column; border-radius: 14px; padding: 8px var(--s-2); line-height: 20px; font-size: var(--fs-small); }
    .nx-switch__opt > span { display: flex; flex-direction: column; }
    .nx-slot__picker { max-width: none; }
    .nx-address { padding: var(--s-5) var(--s-4); }

    .nx-ticket { padding: var(--s-6) var(--s-5) var(--s-5); }
    .nx-receipt__total .num strong { font-size: 26px; }
    .nx-discount__group .btn { padding: 0 14px; }
    .nx-closed { padding: var(--s-4); }
    .nx-empty { margin-top: 0; padding-inline: var(--s-5); }
}

@media (prefers-reduced-motion: reduce) {
    .nx-ticket, .nx-reveal { animation: none; }
}

/* =========================================================
   8. Bedankpagina
   ====================================================== */
main.nx-ty-main { padding-top: clamp(32px, 5vw, 64px); }

.nx-ty { max-width: 1120px; margin: 0 auto; }

/* ---------- Hero: gloeiende check ---------- */
.nx-ty-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: clamp(40px, 6vw, 80px);
}
.nx-ty-hero::before {
    content: "";
    position: absolute;
    inset: -30% 0 0;
    z-index: -1;
    background:
        radial-gradient(closest-side at 50% 30%, color-mix(in srgb, var(--success-600) 16%, transparent), transparent),
        radial-gradient(closest-side at 50% 60%, var(--nx-glow-soft), transparent);
    pointer-events: none;
}
.nx-ty-orb {
    position: relative;
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin-bottom: var(--s-8);
}
.nx-ty-orb__core {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--success-600) 70%, #fff), var(--success-600) 70%);
    color: var(--n-0);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .35),
        0 0 0 8px color-mix(in srgb, var(--success-600) 16%, transparent),
        0 0 70px 6px color-mix(in srgb, var(--success-600) 40%, transparent);
    animation: nx-pop 620ms var(--ease-out) both;
}
.nx-ty-orb__core svg { width: 40px; height: 40px; }
.nx-ty-orb__core path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: nx-draw 460ms var(--ease-out) 300ms forwards; }
.nx-ty-orb__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success-600) 45%, transparent);
    animation: nx-ring 2.8s var(--ease-out) 400ms infinite;
    opacity: 0;
}
.nx-ty-orb__ring--2 { animation-delay: 1.8s; }
@keyframes nx-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes nx-draw { to { stroke-dashoffset: 0; } }
@keyframes nx-ring { 0% { transform: scale(.75); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.nx-ty-hero__title {
    max-width: 16ch;
    font-size: clamp(44px, 6.4vw, 96px);
    line-height: .95;
    letter-spacing: var(--track-mega, var(--track-display));
}
.nx-ty-hero__lead { max-width: 44ch; margin-top: var(--s-5); color: var(--text-2); font-size: var(--fs-lead); line-height: 1.55; }

/* ---------- Grid: ticket links, statusbord rechts ---------- */
.nx-ty-grid {
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    grid-template-areas: "ticket side";
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}
.nx-ty-side { grid-area: side; display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.nx-ty-ticket {
    grid-area: ticket;
    position: relative;
    padding: var(--s-6) var(--s-6) var(--s-6);
    border-radius: 18px 18px 0 0;
    filter:
        drop-shadow(0 28px 48px rgba(0, 0, 0, .55))
        drop-shadow(0 0 42px color-mix(in srgb, var(--accent) 22%, transparent));
    animation: nx-print 800ms var(--ease-out) 200ms both;
}
.nx-ty-ticket::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 9px;
    background: conic-gradient(from 135deg at 50% 0, transparent 90deg, var(--paper) 0) 0 0 / 18px 9px repeat-x;
}
.nx-ty-ticket__head { display: flex; justify-content: space-between; gap: var(--s-3); }

.nx-ty-stub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: var(--s-6);
    padding-bottom: var(--s-6);
    border-bottom: 1.5px dashed var(--border-strong);
    text-align: center;
}
.nx-ty-stub__label, .nx-ty-stat__label, .nx-ty-h {
    color: var(--ink-3);
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.nx-ty-stub__no {
    font-size: clamp(64px, 8vw, 96px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}
.nx-ty-stub__meta { color: var(--ink-2); font-size: var(--fs-small); }

.nx-ty-moment {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-auto-flow: column;
    padding: var(--s-5) 0;
    border-bottom: 1.5px dashed var(--border-strong);
}
.nx-ty-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nx-ty-stat + .nx-ty-stat { padding-left: var(--s-5); border-left: 1px solid var(--border); }
.nx-ty-stat__value { font-size: 30px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.nx-ty-stat__value small { font-size: .55em; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); }
.nx-ty-stat__value--text { font-size: 20px; line-height: 30px; color: var(--ink); letter-spacing: -0.015em; overflow-wrap: anywhere; }
.nx-ty-stat__meta { color: var(--ink-3); font-size: 12px; line-height: 16px; }
.nx-ty-ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }

.nx-ty-block { padding: var(--s-5) 0; }
.nx-ty-block + .nx-ty-block { border-top: 1px solid var(--border); }
.nx-ty-h { margin-bottom: var(--s-3); }
.nx-ty-lines { margin: 0; padding: 0; list-style: none; }
.nx-ty-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-3); align-items: baseline; padding: 10px 0; }
.nx-ty-line + .nx-ty-line { border-top: 1px solid var(--border); }
.nx-ty-line__qty { min-width: 26px; color: var(--ink-3); font-size: var(--fs-small); font-weight: 700; font-variant-numeric: tabular-nums; }
.nx-ty-line__name { font-size: 15px; line-height: 22px; font-weight: 600; letter-spacing: -0.01em; }
.nx-ty-line__opts { margin-top: 2px; color: var(--ink-3); font-size: 13px; line-height: 18px; font-weight: 400; letter-spacing: 0; }
.nx-ty-line__price { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nx-ty-totals { margin: var(--s-3) 0 0; padding-top: var(--s-3); border-top: 1.5px dashed var(--border-strong); }
.nx-ty-totals div { display: flex; justify-content: space-between; gap: var(--s-4); padding: 3px 0; color: var(--ink-2); font-size: 15px; line-height: 22px; }
.nx-ty-totals dt, .nx-ty-totals dd { margin: 0; }
.nx-ty-totals dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nx-ty-totals .nx-ty-totals__disc dd { color: var(--success-800); font-weight: 600; }
.nx-ty-totals .nx-ty-totals__total { margin-top: var(--s-2); padding-top: var(--s-3); border-top: 2px solid var(--ink); color: var(--ink); font-weight: 700; }
.nx-ty-totals .nx-ty-totals__total dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; align-self: center; }
.nx-ty-totals .nx-ty-totals__total dd { font-size: 26px; letter-spacing: -0.03em; }
.nx-ty-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); margin: 0; }
.nx-ty-meta div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nx-ty-meta dt { color: var(--ink-3); font-size: 13px; line-height: 18px; }
.nx-ty-meta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.nx-ty-meta .nx-ty-meta__full { grid-column: 1 / -1; }

/* ---------- Statusbord (partial: .ty-live / .ty-steps) ---------- */
.nx-ty .ty-live {
    --st: var(--info-800);
    --st-soft: var(--info-100);
    --st-line: var(--info-200);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: var(--s-8);
    border: 0;
    border-radius: 28px;
    background:
        radial-gradient(90% 80% at 0% 0%, var(--st-soft), transparent 60%),
        linear-gradient(180deg, var(--nx-lift), transparent 140px),
        var(--surface);
    box-shadow: inset 0 0 0 1px var(--nx-hair-strong), var(--e-3);
    transition: box-shadow var(--dur-3) var(--ease);
}
.nx-ty .ty-live[data-status="in_progress"] { --st: var(--warning-800); --st-soft: var(--warning-100); --st-line: var(--warning-200); }
.nx-ty .ty-live[data-status="ready"]:not([data-method="levering"]) { --st: var(--success-800); --st-soft: var(--success-100); --st-line: var(--success-200); }
.nx-ty .ty-live[data-status="completed"] { --st: var(--text-2); --st-soft: var(--nx-lift-2); --st-line: var(--nx-hair-strong); }
.nx-ty .ty-live[data-status="ready"]:not([data-method="levering"]) { box-shadow: inset 0 0 0 1px var(--st-line), var(--e-3), 0 30px 90px -40px color-mix(in srgb, var(--success-600) 60%, transparent); }

.nx-ty .ty-live__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-6); }
.nx-ty .ty-live .ty-h {
    margin: 0;
    color: var(--text-3);
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.nx-ty .ty-live__badge {
    padding: 4px 11px 4px 9px;
    background: var(--success-100);
    box-shadow: inset 0 0 0 1px var(--success-200);
    color: var(--success-800);
}
.nx-ty .ty-live__badge[data-state="connecting"] { background-color: var(--skeleton-base); box-shadow: inset 0 0 0 1px var(--nx-hair, var(--border)); color: var(--text-2); }
.nx-ty .ty-live__badge[data-state="offline"] { background: var(--warning-100); box-shadow: inset 0 0 0 1px var(--warning-200); color: var(--warning-800); }
.nx-ty .ty-live__badge[data-state="done"] { background: var(--nx-lift-2); box-shadow: inset 0 0 0 1px var(--nx-hair); color: var(--text-2); }

.nx-ty .ty-live__now {
    display: flex;
    align-items: center;
    gap: var(--s-5);
    margin-bottom: var(--s-8);
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
.nx-ty .ty-live__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--st-soft);
    color: var(--st);
    box-shadow: inset 0 0 0 1px var(--st-line), 0 0 44px -6px var(--st-line);
}
.nx-ty .ty-live__icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--st-line);
    animation: nx-halo 2.4s var(--ease-out) infinite;
}
.nx-ty .ty-live[data-status="completed"] .ty-live__icon::after { animation: none; opacity: 0; }
@keyframes nx-halo { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.nx-ty .ty-live__i { width: 28px; height: 28px; }
.nx-ty .ty-live[data-status="out_for_delivery"] .ty-live__i--road { animation: nx-drive 1.4s ease-in-out infinite; }
@keyframes nx-drive { 50% { transform: translateX(3px); } }

.nx-ty .ty-live__title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; font-weight: 600; letter-spacing: var(--track-heading); color: var(--text); }
.nx-ty .ty-live__sub { margin-top: 6px; color: var(--text-2); font-size: var(--fs-body); line-height: 1.5; }
.nx-ty .ty-live.is-ready .ty-live__now { background: none; box-shadow: none; }
.nx-ty .ty-live.is-ready .ty-live__icon { background: var(--st-soft); color: var(--st); box-shadow: inset 0 0 0 1px var(--st-line), 0 0 44px -6px var(--st-line); }
.nx-ty .ty-live[data-status="ready"]:not([data-method="levering"]) .ty-live__icon { background: var(--success-600); color: var(--n-0); box-shadow: 0 0 0 6px var(--success-100), 0 0 60px 0 var(--success-200); }
.nx-ty .ty-live.is-ready .ty-live__title { color: var(--text); }
.nx-ty .ty-live[data-status="ready"]:not([data-method="levering"]) .ty-live__title { color: var(--success-800); }

/* tijdlijn: drie segmenten met knoop */
.nx-ty .ty-steps { gap: var(--s-3); }
.nx-ty .ty-steps li { gap: 6px; }
.nx-ty .ty-steps__bar { height: 4px; margin-bottom: var(--s-2); background: var(--nx-hair-strong); overflow: visible; }
.nx-ty .ty-steps__bar::before { background: var(--success-600); box-shadow: 0 0 12px color-mix(in srgb, var(--success-600) 50%, transparent); }
.nx-ty .ty-steps li.is-done .ty-steps__bar { background: var(--nx-hair-strong); }
.nx-ty .ty-steps li.is-current .ty-steps__bar { overflow: hidden; }
.nx-ty .ty-steps li.is-current .ty-steps__bar::after { background: var(--st); box-shadow: 0 0 12px var(--st); }
.nx-ty .ty-steps__label { color: var(--text); font-size: 15px; line-height: 20px; }
.nx-ty .ty-steps li.is-current .ty-steps__label { color: var(--st); }
.nx-ty .ty-steps li:not(.is-done):not(.is-current) .ty-steps__label { color: var(--text-3); }
.nx-ty .ty-steps__sub { margin-top: -2px; color: var(--text-3); font-size: 13px; line-height: 18px; }
.nx-ty .ty-steps li.is-done .ty-steps__label::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: -2px;
    background: var(--success-800);
    -webkit-mask: var(--nx-i-check) center / contain no-repeat;
    mask: var(--nx-i-check) center / contain no-repeat;
}

/* betaalstatus */
.nx-ty-pay {
    display: flex;
    align-items: flex-start;
    gap: var(--s-4);
    padding: var(--s-5) var(--s-6);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--nx-hair);
    color: var(--text-2);
}
.nx-ty-pay__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--nx-lift-2);
    box-shadow: inset 0 0 0 1px var(--nx-hair);
    color: var(--text);
}
.nx-ty-pay__icon svg { width: 18px; height: 18px; }
.nx-ty-pay p { padding-top: 6px; }
.nx-ty-pay strong { color: var(--text); font-weight: 600; }
.nx-ty-pay.is-paid .nx-ty-pay__icon { background: var(--success-100); box-shadow: inset 0 0 0 1px var(--success-200); color: var(--success-800); }
.nx-ty-pay.is-pending .nx-ty-pay__icon { background: var(--warning-100); box-shadow: inset 0 0 0 1px var(--warning-200); color: var(--warning-800); }
.nx-ty-pay.is-pending { box-shadow: inset 0 0 0 1px var(--warning-200); }

.nx-ty-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.nx-ty-actions__ghost { --btn-bg: transparent; --btn-bd: var(--nx-hair-strong); --btn-sh: none; }
.nx-ty-actions__ghost:hover { --btn-bg: var(--nx-lift); --btn-bd: color-mix(in srgb, var(--n-1000) 28%, transparent); --btn-sh: none; }
.nx-ty-help { color: var(--text-3); font-size: var(--fs-small); line-height: 20px; }

@media (max-width: 900px) {
    .nx-ty-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "ticket"; }
    .nx-ty-ticket { width: 100%; max-width: 520px; margin: var(--s-4) auto var(--s-6); }
}
@media (max-width: 640px) {
    main.nx-ty-main { padding-top: var(--s-6); }
    .nx-ty-orb { width: 92px; height: 92px; margin-bottom: var(--s-6); }
    .nx-ty-orb__core { width: 68px; height: 68px; }
    .nx-ty-orb__core svg { width: 32px; height: 32px; }
    .nx-ty-hero__title { font-size: 44px; }
    .nx-ty-hero__lead { font-size: var(--fs-body); }
    .nx-ty .ty-live { padding: var(--s-6) var(--s-5); border-radius: 24px; }
    .nx-ty .ty-live__now { gap: var(--s-4); margin-bottom: var(--s-6); }
    .nx-ty .ty-live__icon { width: 52px; height: 52px; }
    .nx-ty .ty-live__title { font-size: 22px; }
    .nx-ty .ty-steps__sub { display: none; }
    .nx-ty .ty-steps__label { font-size: 13px; }
    .nx-ty-pay { padding: var(--s-4); }
    .nx-ty-actions { flex-direction: column; }
    .nx-ty-actions .btn { width: 100%; }
    .nx-ty-ticket { padding: var(--s-5); }
    .nx-ty-meta { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .nx-ty-orb__core path { stroke-dashoffset: 0; }
    .nx-ty-orb__ring { display: none; }
    .nx-ty-ticket { animation: none; }
}

/* levering + klaar: zelfde tint als "Klaar" in het beheer (DESIGN.md: klaar = success), maar zonder de grote
   groene vink — de bestelling is nog niet vertrokken. Merkkleur zat te dicht bij "bezig" (warning). */
.nx-ty .ty-live[data-status="ready"][data-method="levering"] { --st: var(--success-800); --st-soft: var(--success-100); --st-line: var(--success-200); }

/* partial-uitbreiding: onderweg (.is-transit, accent), afgerond (.is-complete), 4 stappen bij levering */
.nx-ty .ty-live.is-transit { --st: var(--info-800); --st-soft: var(--info-100); --st-line: var(--info-200); } /* = beheer "Onderweg" */
.nx-ty .ty-live.is-transit .ty-live__icon { color: var(--st); }
.nx-ty .ty-live.is-transit .ty-live__now,
.nx-ty .ty-live.is-ready .ty-live__now { background: none; box-shadow: none; }
.nx-ty .ty-live.is-transit .ty-live__title { color: var(--text); }
.nx-ty .ty-live.is-complete { --st: var(--text-2); --st-soft: var(--nx-lift-2); --st-line: var(--nx-hair-strong); }
.nx-ty .ty-live.is-complete .ty-live__icon { background: var(--nx-lift-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--nx-hair-strong); }
.nx-ty .ty-live.is-complete .ty-live__icon::after { animation: none; opacity: 0; }
@media (max-width: 640px) {
    .nx-ty .ty-steps--4 { gap: 6px; }
    .nx-ty .ty-steps--4 .ty-steps__label { font-size: 12px; line-height: 16px; }
    .nx-ty .ty-steps--4 li.is-done .ty-steps__label::before { display: none; }
}
