/* Own checkout (checkout/render.php). Follows DESIGN.md; every colour is a variable on .tce-co,
   so a redesign is CSS only. Buttons set every state themselves, so theme button resets never win. */

/* Tokens on the page wrapper (template mode) and the root; Vormgeving settings override them inline on both. */
.tce-co-page,
.tce-co {
    --tce-co-accent: var(--e-global-color-secondary, #007EF5);
    --tce-co-accent-dark: color-mix(in srgb, var(--tce-co-accent) 82%, #000);
    --tce-co-accent-soft: color-mix(in srgb, var(--tce-co-accent) 9%, #fff);
    --tce-co-on-accent: #fff;
    --tce-co-chip: var(--e-global-color-primary, #FDF6EC);
    --tce-co-highlight: var(--e-global-color-accent, #FEB412);
    --tce-co-text: #1a1a1a;
    --tce-co-muted: #5f6368;
    --tce-co-line: rgba(0, 0, 0, .08);
    --tce-co-input-border: #8c9097;
    --tce-co-input-bg: #eeeeee;
    --tce-co-card-bg: #fff;
    --tce-co-card-border: 0;
    --tce-co-bar-bg: #fff;
    --tce-co-page-bg: var(--e-global-color-primary, #FDF6EC);
    --tce-co-radius: 16px;
    --tce-co-radius-sm: 10px;
    --tce-co-shadow: 0 2px 12px rgba(0, 0, 0, .07), 0 8px 32px rgba(0, 0, 0, .06);
    --tce-co-error: #c62828;
    --tce-co-success: #1b7a3a;
    --tce-co-heading-font: var(--e-global-typography-primary-font-family, "Parkinsans"), sans-serif;
}
.tce-co {
    box-sizing: border-box;
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 16px 64px;
    color: var(--tce-co-text);
}

/* Template mode: cream page, full width (the theme's .site-main limits are undone). */
.tce-co-body .site-main.tce-co-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: var(--tce-co-page-bg);
}
.tce-co *, .tce-co *::before, .tce-co *::after { box-sizing: border-box; }
.tce-co [hidden] { display: none !important; }

.tce-co .tce-co-icon { width: 20px; height: 20px; flex: none; }

/* ── Headings & cards ─────────────────────────────────────────────── */

.tce-co .tce-co-title {
    margin: 0 0 20px;
    font-family: var(--tce-co-heading-font);
    font-weight: 700;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.15;
    color: var(--tce-co-text);
}
.tce-co .tce-co-title:focus { outline: none; }

.tce-co .tce-co-card {
    background: var(--tce-co-card-bg);
    border-radius: var(--tce-co-radius);
    box-shadow: var(--tce-co-shadow);
    border: var(--tce-co-card-border);
    padding: 20px;
}
.tce-co .tce-co-card + .tce-co-card { margin-top: 16px; }
.tce-co .tce-co-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tce-co .tce-co-card__title {
    display: block;
    margin: 0 0 12px;
    font-family: var(--tce-co-heading-font);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    color: var(--tce-co-text);
}
.tce-co .tce-co-card__head .tce-co-card__title { margin: 0; }

/* ── Layout ───────────────────────────────────────────────────────── */

.tce-co__grid { display: grid; gap: 24px; }
.tce-co__main { min-width: 0; }
.tce-co__aside { display: flex; flex-direction: column; gap: 16px; }

@media (min-width: 1025px) {
    .tce-co__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
    .tce-co__aside { position: sticky; top: 24px; padding-top: 56px; }
}

/* ── Progress ─────────────────────────────────────────────────────── */

.tce-co-steps { max-width: 640px; margin: 0 auto 32px; }
.tce-co-steps__list { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tce-co-steps__item { flex: 1; display: flex; justify-content: center; margin: 0; }
.tce-co-steps__item:first-child { justify-content: flex-start; }
.tce-co-steps__item:last-child { justify-content: flex-end; }

.tce-co .tce-co-steps__btn,
.tce-co .tce-co-steps__btn:hover,
.tce-co .tce-co-steps__btn:focus,
.tce-co .tce-co-steps__btn:disabled {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0;
    padding: 4px 14px 4px 4px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--tce-co-muted);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    cursor: default;
    opacity: 1;
}
.tce-co .tce-co-steps__num {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--tce-co-line);
    background: var(--tce-co-card-bg);
    font-family: var(--tce-co-heading-font);
    font-weight: 700;
    font-size: 15px;
    color: var(--tce-co-muted);
}
.tce-co .tce-co-steps__num .tce-co-icon { display: none; width: 18px; height: 18px; }

.tce-co .tce-co-steps__item.is-active .tce-co-steps__btn { color: var(--tce-co-text); font-weight: 600; }
.tce-co .tce-co-steps__item.is-active .tce-co-steps__num { border-color: var(--tce-co-accent); background: var(--tce-co-accent); color: var(--tce-co-on-accent); }

.tce-co .tce-co-steps__item.is-done .tce-co-steps__btn { color: var(--tce-co-text); cursor: pointer; }
.tce-co .tce-co-steps__item.is-done .tce-co-steps__btn:hover { background: var(--tce-co-chip); }
.tce-co .tce-co-steps__item.is-done .tce-co-steps__num { border-color: var(--tce-co-chip); background: var(--tce-co-chip); color: var(--tce-co-accent); }
.tce-co .tce-co-steps__item.is-done .tce-co-steps__digit { display: none; }
.tce-co .tce-co-steps__item.is-done .tce-co-icon { display: block; }

.tce-co-steps__bar { height: 4px; margin-top: 12px; border-radius: 999px; background: var(--tce-co-line); overflow: hidden; }
.tce-co-steps__bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--tce-co-accent); }
.tce-co-steps__mobile { display: none; margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--tce-co-text); }

@media (max-width: 599px) {
    .tce-co-steps { margin-bottom: 24px; }
    .tce-co .tce-co-steps__label { display: none; }
    .tce-co .tce-co-steps__btn { padding: 4px; }
    .tce-co-steps__mobile { display: block; }
}

/* ── Buttons & links ──────────────────────────────────────────────── */

.tce-co .tce-co-btn,
.tce-co .tce-co-btn:hover,
.tce-co .tce-co-btn:focus,
.tce-co .tce-co-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin: 0;
    padding: 12px 24px;
    border: 2px solid var(--tce-co-accent);
    border-radius: var(--tce-co-radius-sm);
    background: var(--tce-co-accent);
    color: var(--tce-co-on-accent);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    cursor: pointer;
}
.tce-co .tce-co-btn:hover { background: var(--tce-co-accent-dark); border-color: var(--tce-co-accent-dark); }
.tce-co .tce-co-btn:disabled { opacity: .6; cursor: progress; }

/* Main button of a step that isn't complete yet (checkout.js updateReady). Still
   clickable, so a click shows what is missing; turns blue once the step is done. */
.tce-co .tce-co-btn.is-locked,
.tce-co .tce-co-btn.is-locked:hover,
.tce-co .tce-co-btn.is-locked:focus,
.tce-co #payment #place_order.is-locked,
.tce-co #payment #place_order.is-locked:hover,
.tce-co #payment #place_order.is-locked:focus {
    border-color: #d5d7db;
    background: #d5d7db;
    color: var(--tce-co-muted);
    cursor: not-allowed;
}

.tce-co .tce-co-btn--secondary,
.tce-co .tce-co-btn--secondary:focus { background: transparent; color: var(--tce-co-accent); }
.tce-co .tce-co-btn--secondary:hover { background: var(--tce-co-accent); border-color: var(--tce-co-accent); color: var(--tce-co-on-accent); }

.tce-co .tce-co-btn--ghost,
.tce-co .tce-co-btn--ghost:focus { padding-left: 12px; padding-right: 16px; border-color: transparent; background: transparent; color: var(--tce-co-text); }
.tce-co .tce-co-btn--ghost:hover { border-color: transparent; background: var(--tce-co-chip); color: var(--tce-co-text); }

.tce-co .tce-co-btn--danger,
.tce-co .tce-co-btn--danger:focus { border-color: var(--tce-co-error); background: var(--tce-co-error); color: #fff; }
.tce-co .tce-co-btn--danger:hover { border-color: color-mix(in srgb, var(--tce-co-error) 82%, #000); background: color-mix(in srgb, var(--tce-co-error) 82%, #000); color: #fff; }

/* Confirm before removing an item */
.tce-co-confirm {
    width: min(420px, calc(100vw - 32px));
    margin: auto;
    padding: 24px;
    border: 0;
    border-radius: var(--tce-co-radius);
    background: var(--tce-co-card-bg);
    color: var(--tce-co-text);
    box-shadow: 0 12px 48px rgba(0, 0, 0, .2);
}
.tce-co-confirm::backdrop { background: rgba(0, 0, 0, .45); }
.tce-co .tce-co-confirm__title { margin: 0 0 8px; font-family: var(--tce-co-heading-font); font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--tce-co-text); }
.tce-co-confirm__text { margin: 0 0 20px; color: var(--tce-co-muted); }
.tce-co-confirm__actions { display: flex; justify-content: flex-end; gap: 12px; }
@media (max-width: 599px) {
    .tce-co-confirm__actions { flex-direction: column-reverse; }
    .tce-co-confirm__actions .tce-co-btn { width: 100%; }
}

.tce-co .tce-co-link,
.tce-co .tce-co-link:hover,
.tce-co .tce-co-link:focus {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--tce-co-accent);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
}
.tce-co .tce-co-link:hover { text-decoration: underline; }

/* Positioned with justify-content, never margins: the button rules reset margin on hover. */
.tce-co-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.tce-co-nav--end { justify-content: flex-end; }
@media (max-width: 599px) {
    .tce-co-nav { flex-direction: column-reverse; align-items: stretch; }
    .tce-co-nav .tce-co-btn { width: 100%; }
}

/* Theme button resets can add transition: all or a hover transform; keep ours calm. */
.tce-co .tce-co-btn, .tce-co .tce-co-btn:hover, .tce-co .tce-co-btn:focus,
.tce-co .tce-co-stepper__btn, .tce-co .tce-co-stepper__btn:hover,
.tce-co #payment #place_order, .tce-co #payment #place_order:hover { transform: none; transition: none; }
@media (prefers-reduced-motion: no-preference) {
    .tce-co .tce-co-btn, .tce-co .tce-co-btn:hover, .tce-co .tce-co-btn:focus,
    .tce-co .tce-co-stepper__btn, .tce-co .tce-co-stepper__btn:hover,
    .tce-co #payment #place_order, .tce-co #payment #place_order:hover { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
}

.tce-co :focus-visible { outline: 2px solid var(--tce-co-accent); outline-offset: 2px; }

/* ── Step 1: items ────────────────────────────────────────────────── */

.tce-co-items { display: flex; flex-direction: column; gap: 16px; }

.tce-co-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 20px 16px 16px;
    background: var(--tce-co-card-bg);
    border-radius: var(--tce-co-radius);
    box-shadow: var(--tce-co-shadow);
    border: var(--tce-co-card-border);
}
/* Saving: the card stays as it is (the new choice is already visible); only the
   controls are locked and, for a team change, the line total that is about to change dims. */
.tce-co-item.is-busy .tce-co-item__options,
.tce-co-item.is-busy .tce-co-item__remove { pointer-events: none; }
.tce-co-item.is-busy.is-qty .tce-co-item__total { opacity: .45; }

/* Removing: the card fades behind an overlay, then folds away before the refresh. */
.tce-co-item { position: relative; }
.tce-co-item.is-removing { pointer-events: none; }
.tce-co-item.is-removing > :not(.tce-co-item__removing) { opacity: .3; filter: grayscale(1); }
.tce-co .tce-co-item__removing {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--tce-co-radius);
    font-size: 15px;
    font-weight: 600;
    color: var(--tce-co-text);
}
.tce-co-item__spinner {
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--tce-co-line, #e3e3e3);
    border-top-color: var(--tce-co-accent);
    border-radius: 50%;
    box-sizing: border-box;
}
.tce-co-item.is-collapsing {
    overflow: hidden;
    opacity: 0;
    max-height: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: -16px; /* cancels the gap to the next card */
}

.tce-co .tce-co-item__status {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    color: var(--tce-co-muted);
}
.tce-co .tce-co-item__status:empty { display: none; }
.tce-co-item__status.is-pending::before {
    content: "";
    flex: none;
    width: 14px;
    height: 14px;
    border: 2px solid var(--tce-co-line, #e3e3e3);
    border-top-color: var(--tce-co-accent);
    border-radius: 50%;
    box-sizing: border-box;
}
.tce-co .tce-co-item__status.is-ok { color: var(--tce-co-success); }
.tce-co-item__status.is-ok::before { content: "\2713"; flex: none; font-size: 14px; }
.tce-co .tce-co-item__status.is-error { color: var(--tce-co-error); }

.tce-co .tce-co-pay__loading { display: flex; align-items: center; gap: 10px; min-height: 56px; color: var(--tce-co-muted); font-size: 15px; }

@keyframes tce-co-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
    .tce-co-item__total { transition: opacity .15s ease; }
    .tce-co-item__status.is-pending::before, .tce-co-item__spinner { animation: tce-co-spin .7s linear infinite; }
    .tce-co-item > * { transition: opacity .2s ease, filter .2s ease; }
    .tce-co-item.is-collapsing { transition: max-height .25s ease, opacity .2s ease, padding .25s ease, margin .25s ease; }
    .tce-co-steps__bar span { transition: width .3s ease; }
}

.tce-co-item__media { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--tce-co-chip); }
.tce-co-item__media--icon { display: grid; place-items: center; color: var(--tce-co-accent); }
.tce-co-item__media--icon .tce-co-icon { width: 40px; height: 40px; }
.tce-co .tce-co-item__img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }

.tce-co-item__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tce-co .tce-co-item__title { margin: 0; font-family: var(--tce-co-heading-font); font-weight: 700; font-size: 20px; line-height: 1.25; }
.tce-co .tce-co-item__title a { color: var(--tce-co-text); text-decoration: none; }
.tce-co .tce-co-item__title a:hover { color: var(--tce-co-accent); }

.tce-co .tce-co-item__remove,
.tce-co .tce-co-item__remove:hover,
.tce-co .tce-co-item__remove:focus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    min-height: 44px;
    margin: -8px -8px 0 0;
    padding: 8px;
    border: 0;
    border-radius: var(--tce-co-radius-sm);
    background: transparent;
    color: var(--tce-co-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
}
.tce-co .tce-co-item__remove:hover { background: var(--tce-co-chip); color: var(--tce-co-text); }

.tce-co-item__price { margin: 2px 0 0; font-size: 15px; color: var(--tce-co-muted); }
.tce-co-item__price .amount { font-weight: 600; color: var(--tce-co-text); }

/* Language, teams and the line total on one row (bottom-aligned, so the controls line up);
   when the column is too narrow the total wraps to its own line, still on the right. */
.tce-co-item__options { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; margin-top: 12px; }
.tce-co .tce-co-option { margin: 0; padding: 0; border: 0; min-width: 0; }
.tce-co .tce-co-label { display: block; margin: 0 0 8px; padding: 0; font-size: 14px; font-weight: 600; line-height: 20px; color: var(--tce-co-text); }
.tce-co .tce-co-hint { margin: 8px 0 0; font-size: 13px; color: var(--tce-co-muted); }

.tce-co .tce-co-item__sum { margin-left: auto; text-align: right; }
.tce-co .tce-co-item__total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 48px;
    margin: 0;
    font-family: var(--tce-co-heading-font);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
}

/* Gift card */
.tce-co .tce-co-item__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    background: var(--tce-co-chip);
    font-size: 13px;
    font-weight: 600;
    color: var(--tce-co-text);
}
.tce-co-item__pill .tce-co-icon { width: 16px; height: 16px; color: var(--tce-co-accent); }
.tce-co-item__gift { flex: 1 1 200px; min-width: 0; }
.tce-co .tce-co-item__meta { margin: 0; color: var(--tce-co-text); font-weight: 500; }
.tce-co .tce-co-item__meta span { color: var(--tce-co-muted); font-weight: 400; }
.tce-co .tce-co-item__message {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin: 4px 0 0;
    font-size: 14px;
    font-style: italic;
    color: var(--tce-co-muted);
    white-space: pre-line;
}
.tce-co-item--gift .tce-co-item__total { min-height: 0; }

/* Language: segmented control */
.tce-co-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--tce-co-chip); }
.tce-co-seg__opt { position: relative; margin: 0; cursor: pointer; }
.tce-co-seg__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tce-co-seg__inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 14px 6px 8px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 500;
    color: var(--tce-co-text);
}
.tce-co-seg__opt:hover .tce-co-seg__inner { background: rgba(255, 255, 255, .6); }
.tce-co-seg__opt input:checked + .tce-co-seg__inner { background: var(--tce-co-card-bg); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.tce-co-seg__opt input:focus-visible + .tce-co-seg__inner { outline: 2px solid var(--tce-co-accent); outline-offset: 2px; }
.tce-co-flag { display: inline-block; width: 24px; height: 24px; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.tce-co-flag svg { display: block; width: 100%; height: 100%; }

/* Teams: stepper */
.tce-co-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: var(--tce-co-chip); }
.tce-co .tce-co-stepper__btn,
.tce-co .tce-co-stepper__btn:hover,
.tce-co .tce-co-stepper__btn:focus {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: var(--tce-co-card-bg);
    color: var(--tce-co-accent);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    cursor: pointer;
}
.tce-co .tce-co-stepper__btn:hover { background: var(--tce-co-accent); color: var(--tce-co-on-accent); }
.tce-co .tce-co-stepper__btn:disabled { background: transparent; color: var(--tce-co-muted); box-shadow: none; opacity: .5; cursor: not-allowed; }
.tce-co .tce-co-stepper__input {
    width: 56px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--tce-co-text);
    font-family: var(--tce-co-heading-font);
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}
.tce-co .tce-co-stepper__input::-webkit-outer-spin-button,
.tce-co .tce-co-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Language as an own dropdown (.tce-co-ldd), same height as the stepper; the list shows flags too. */
.tce-co-ldd { position: relative; display: inline-block; }
.tce-co-ldd.is-open { z-index: 30; }
.tce-co .tce-co-ldd__btn,
.tce-co .tce-co-ldd__btn:hover,
.tce-co .tce-co-ldd__btn:focus {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 110px;
    height: 48px;
    margin: 0;
    padding: 0 12px 0 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--tce-co-chip);
    color: var(--tce-co-text);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
}
.tce-co .tce-co-ldd__btn:hover { border-color: var(--tce-co-input-border); }
.tce-co .tce-co-ldd__btn:focus { outline: none; }
.tce-co .tce-co-ldd__btn:focus-visible,
.tce-co .tce-co-ldd.is-open .tce-co-ldd__btn { border-color: var(--tce-co-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tce-co-accent) 25%, transparent); }
.tce-co .tce-co-ldd__btn .tce-co-icon { margin-left: auto; color: var(--tce-co-muted); transition: transform .15s ease; }
.tce-co .tce-co-ldd.is-open .tce-co-ldd__btn .tce-co-icon { transform: rotate(180deg); }
.tce-co-ldd__current, .tce-co-ldd__label { display: inline-flex; align-items: center; gap: 8px; }
.tce-co .tce-co-ldd__list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    margin: 0;
    padding: 4px;
    list-style: none;
    border-radius: 12px;
    background: var(--tce-co-card-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .06);
    box-sizing: border-box;
}
.tce-co .tce-co-ldd__list[hidden] { display: none; }
.tce-co .tce-co-ldd__list:focus { outline: none; }
.tce-co .tce-co-ldd__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    margin: 0;
    padding: 6px 10px 6px 8px;
    border-radius: 9px;
    color: var(--tce-co-text);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}
.tce-co .tce-co-ldd__opt.is-active,
.tce-co .tce-co-ldd__opt:hover { background: var(--tce-co-chip); }
.tce-co .tce-co-ldd__opt .tce-co-icon { margin-left: auto; color: var(--tce-co-accent); visibility: hidden; }
.tce-co .tce-co-ldd__opt[aria-selected="true"] { font-weight: 600; }
.tce-co .tce-co-ldd__opt[aria-selected="true"] .tce-co-icon { visibility: visible; }
.tce-co-item.is-busy .tce-co-ldd__btn { pointer-events: none; opacity: .6; }

/* Language per device (Vormgeving → Taal van de game) on buttons and dropdown:
   --d-* from 600px, --m-* on phones. */
.tce-co-lv__short { display: none; }
@media (min-width: 600px) {
    .tce-co .tce-co-only-m { display: none; }
    .tce-co-lv--d-short .tce-co-lv__long { display: none; }
    .tce-co-lv--d-short .tce-co-lv__short { display: inline; }
    .tce-co-lv--d-short .tce-co-seg__inner { padding-right: 12px; }
    .tce-co-lv--d-noflag .tce-co-flag { display: none; }
    .tce-co-lv--d-noflag .tce-co-seg__inner { padding-left: 14px; padding-right: 14px; }
    .tce-co .tce-co-lv--d-noflag .tce-co-ldd__btn { padding-left: 14px; }
    .tce-co .tce-co-lv--d-noflag .tce-co-ldd__opt { padding-left: 12px; }
}

/* Phones: compact card. Photo + title/price on top, language and teams side by side below. */
@media (max-width: 599px) {
    .tce-co-items { gap: 12px; }
    .tce-co-item { grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 14px 16px; }
    .tce-co-item__body { display: contents; }
    .tce-co-item__media { grid-row: span 2; width: 56px; height: 56px; border-radius: 10px; }
    .tce-co-item__head, .tce-co-item__price, .tce-co-item__pill { grid-column: 2; }
    .tce-co .tce-co-item__pill { justify-self: start; margin-top: 2px; }
    .tce-co-item__options, .tce-co-item .tce-co-hint, .tce-co-item__status { grid-column: 1 / -1; }
    .tce-co .tce-co-item__title { font-size: 17px; }
    .tce-co .tce-co-item__remove { margin: -10px -10px 0 0; }
    .tce-co .tce-co-item__remove span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .tce-co-item__price { margin-top: 0; font-size: 14px; }

    .tce-co-item__options { justify-content: space-between; gap: 10px 12px; margin-top: 12px; }
    .tce-co .tce-co-item__options .tce-co-label { margin-bottom: 6px; font-size: 13px; }
    .tce-co .tce-co-only-d { display: none; }
    .tce-co-seg__inner { gap: 6px; min-height: 40px; padding: 6px 12px 6px 6px; font-size: 14px; }
    .tce-co-lv--m-short .tce-co-lv__long { display: none; }
    .tce-co-lv--m-short .tce-co-lv__short { display: inline; }
    .tce-co-lv--m-noflag .tce-co-flag { display: none; }
    .tce-co-lv--m-noflag .tce-co-seg__inner { padding-left: 12px; }
    .tce-co .tce-co-lv--m-noflag .tce-co-ldd__btn { padding-left: 14px; }
    .tce-co .tce-co-lv--m-noflag .tce-co-ldd__opt { padding-left: 12px; }
    .tce-co .tce-co-ldd__opt { font-size: 14px; }
    .tce-co-flag { width: 22px; height: 22px; }
    .tce-co .tce-co-stepper__input { width: 36px; font-size: 17px; }
    .tce-co .tce-co-item .tce-co-hint { margin-top: 6px; font-size: 12px; }

    /* The total gets its own row: "Totaal ……… €119,80". */
    .tce-co .tce-co-item__sum { display: flex; flex-basis: 100%; align-items: baseline; justify-content: space-between; margin: 0; }
    .tce-co .tce-co-item__sum .tce-co-label { margin: 0; }
    .tce-co .tce-co-item__total { min-height: 0; font-size: 17px; }
    .tce-co-item--gift .tce-co-item__sum { flex-basis: auto; gap: 12px; }
    .tce-co-item--gift .tce-co-item__sum .tce-co-label { display: none; }
}

/* ── Step 2: fields ───────────────────────────────────────────────── */

.tce-co-fields { display: grid; gap: 16px; }
@media (min-width: 600px) {
    .tce-co-fields { grid-template-columns: 1fr 1fr; }
    .tce-co-fields #billing_email_field { grid-column: 1 / -1; }
}
.tce-co-field { min-width: 0; }
.tce-co-req { color: var(--tce-co-error); }

.tce-co .tce-co-input {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: var(--tce-co-radius-sm);
    background-color: var(--tce-co-input-bg);
    color: var(--tce-co-text);
    font: inherit;
    font-size: 16px; /* no zoom on iOS */
    box-shadow: none;
}
.tce-co .tce-co-input::placeholder { color: var(--tce-co-muted); opacity: 1; }
.tce-co .tce-co-input:hover { border-color: var(--tce-co-input-border); }
.tce-co .tce-co-input:focus { border-color: var(--tce-co-accent); background-color: var(--tce-co-card-bg); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tce-co-accent) 25%, transparent); }
.tce-co .is-invalid .tce-co-input { border-color: var(--tce-co-error); }
.tce-co .tce-co-field__error { margin: 6px 0 0; font-size: 14px; font-weight: 500; color: var(--tce-co-error); }

/* "Hoe heb je ons gevonden?" chips */
.tce-co .tce-co-hf { margin: 24px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--tce-co-line); min-width: 0; }
.tce-co .tce-co-hf legend { float: left; width: 100%; }
.tce-co-hf__chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.tce-co-chip { position: relative; margin: 0; cursor: pointer; }
.tce-co-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tce-co-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--tce-co-line);
    border-radius: 999px;
    background: var(--tce-co-chip);
    font-size: 15px;
    color: var(--tce-co-text);
}
.tce-co-chip:hover span { border-color: var(--tce-co-accent); }
.tce-co-chip input:checked + span { border-color: var(--tce-co-accent); background: var(--tce-co-accent); color: var(--tce-co-on-accent); font-weight: 600; }
.tce-co-chip input:focus-visible + span { outline: 2px solid var(--tce-co-accent); outline-offset: 2px; }
.tce-co-hf__other { margin-top: 16px; max-width: 420px; }

/* Dropdown instead of the chips: always with .is-select, otherwise on phones
   (checkout.js enables only the visible one). */
.tce-co .tce-co-hf__select {
    display: none;
    clear: both;
    padding-right: 44px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%235f6368' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px 20px;
}
.tce-co .tce-co-hf.is-select .tce-co-hf__select { display: block; max-width: 420px; }
.tce-co-hf.is-select .tce-co-hf__chips { display: none; }
@media (max-width: 599px) {
    .tce-co-hf__chips { display: none; }
    .tce-co .tce-co-hf__select { display: block; }
    .tce-co .tce-co-hf.is-select .tce-co-hf__select { max-width: none; }
}

/* ── Step 3 ───────────────────────────────────────────────────────── */

.tce-co-details__list { display: grid; gap: 8px; margin: 0; }
.tce-co-details__list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.tce-co-details__list dt { color: var(--tce-co-muted); font-size: 14px; }
.tce-co-details__list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.tce-co-code__row { display: flex; gap: 8px; }
.tce-co-code__row .tce-co-input { flex: 1; text-transform: uppercase; }
.tce-co-code__row .tce-co-input::placeholder { text-transform: none; }
.tce-co-code__msg { min-height: 0; margin: 8px 0 0; font-size: 14px; font-weight: 500; }
.tce-co-code__msg:empty { margin: 0; }
.tce-co-code__msg.is-error { color: var(--tce-co-error); }
.tce-co-code__msg.is-ok { color: var(--tce-co-success); }

.tce-co-codes { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.tce-co-codes__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 4px 4px 4px 12px;
    border-radius: 999px;
    background: var(--tce-co-accent-soft);
    color: var(--tce-co-text);
    font-size: 14px;
}
.tce-co-codes__item > .tce-co-icon { width: 18px; height: 18px; color: var(--tce-co-accent); }
.tce-co .tce-co-codes__remove,
.tce-co .tce-co-codes__remove:hover,
.tce-co .tce-co-codes__remove:focus {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--tce-co-muted);
    box-shadow: none;
    cursor: pointer;
}
.tce-co .tce-co-codes__remove:hover { background: var(--tce-co-card-bg); color: var(--tce-co-error); }
.tce-co .tce-co-codes__remove .tce-co-icon { width: 16px; height: 16px; }

/* WooCommerce payment block, restyled as tiles */
.tce-co #payment { background: none; border-radius: 0; padding: 0; }
.tce-co #payment ul.payment_methods { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; list-style: none; }
.tce-co #payment ul.payment_methods::before,
.tce-co #payment ul.payment_methods::after { display: none; }
.tce-co #payment ul.payment_methods li {
    position: relative;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid var(--tce-co-line);
    border-radius: var(--tce-co-radius-sm);
    background: var(--tce-co-card-bg);
    line-height: 1.4;
    list-style: none;
}
.tce-co #payment ul.payment_methods li:hover { border-color: var(--tce-co-accent); }
.tce-co #payment ul.payment_methods li:has(> input:checked) { border: 2px solid var(--tce-co-accent); padding: 11px 15px; background: var(--tce-co-accent-soft); }
.tce-co #payment ul.payment_methods li > input { margin: 0 10px 0 0; accent-color: var(--tce-co-accent); vertical-align: middle; }
.tce-co #payment ul.payment_methods li > label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; min-height: 28px; font-weight: 600; cursor: pointer; vertical-align: middle; }
.tce-co #payment ul.payment_methods li img { max-height: 24px; width: auto; margin: 0; float: none; }
.tce-co #payment div.payment_box { margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid var(--tce-co-line); border-radius: 0; background: none; color: var(--tce-co-muted); font-size: 14px; }
.tce-co #payment div.payment_box::before { display: none; }
.tce-co #payment div.payment_box p:last-child { margin-bottom: 0; }
.tce-co #payment div.form-row { margin: 16px 0 0; padding: 0; }
.tce-co .woocommerce-terms-and-conditions-wrapper { font-size: 14px; color: var(--tce-co-muted); }
.tce-co .woocommerce-privacy-policy-text p { margin: 0 0 12px; }
.tce-co .woocommerce-terms-and-conditions-wrapper a { color: var(--tce-co-accent); font-weight: 600; }

/* Terms in step 2, under "Hoe heb je ons gevonden?" */
.tce-co .tce-co-terms { margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--tce-co-line); }
.tce-co .tce-co-terms .form-row { margin: 0; padding: 0; }
.tce-co .tce-co-terms label.checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--tce-co-text); font-size: 15px; font-weight: 500; line-height: 1.4; cursor: pointer; }
.tce-co .tce-co-terms input#terms { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--tce-co-accent); }
.tce-co .tce-co-terms.is-invalid label.checkbox { color: var(--tce-co-error); }

.tce-co #payment #place_order,
.tce-co #payment #place_order:hover,
.tce-co #payment #place_order:focus {
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin: 4px 0 0;
    padding: 14px 24px;
    border: 2px solid var(--tce-co-accent);
    border-radius: var(--tce-co-radius-sm);
    background: var(--tce-co-accent);
    color: var(--tce-co-on-accent);
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    cursor: pointer;
}
.tce-co #payment #place_order:hover { background: var(--tce-co-accent-dark); border-color: var(--tce-co-accent-dark); }

/* ── Sidebar ──────────────────────────────────────────────────────── */

.tce-co .tce-co-summary .tce-co-card__title { font-size: 20px; }
.tce-co-summary__edit { display: none !important; }
.tce-co[data-step="2"] .tce-co-summary__edit,
.tce-co[data-step="3"] .tce-co-summary__edit { display: inline-flex !important; }

.tce-co-summary__lines { display: grid; gap: 12px; margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--tce-co-line); list-style: none; }
.tce-co[data-step="1"] .tce-co-summary__lines { display: none; }
.tce-co-summary__lines li { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.tce-co-summary__name { font-weight: 600; font-size: 15px; }
.tce-co-summary__name small { display: block; margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--tce-co-muted); }
.tce-co-summary__price { white-space: nowrap; font-size: 15px; }

/* Phone/tablet (aside stacks under the steps): setting mobile_summary, class is-sum-*. */
.tce-co-sumtoggle,
.tce-co-sumtop { display: none; }
@media (max-width: 1024px) {
    .tce-co.is-sum-top[data-step="2"] .tce-co__aside .tce-co-summary,
    .tce-co.is-sum-top[data-step="3"] .tce-co__aside .tce-co-summary,
    .tce-co.is-sum-compact[data-step="2"] .tce-co__aside .tce-co-summary,
    .tce-co.is-sum-compact[data-step="3"] .tce-co__aside .tce-co-summary,
    .tce-co.is-sum-hidden[data-step="2"] .tce-co__aside .tce-co-summary,
    .tce-co.is-sum-hidden[data-step="3"] .tce-co__aside .tce-co-summary { display: none; }

    /* Step 3: closed "Jouw bestelling · €…" row on top that opens to the summary. */
    .tce-co .tce-co-sumtoggle { display: block; margin-bottom: 16px; padding: 0; }
    .tce-co .tce-co-sumtoggle + .tce-co-card { margin-top: 0; }
    .tce-co-sumtoggle__head {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 56px;
        padding: 12px 20px;
        cursor: pointer;
        list-style: none;
    }
    .tce-co-sumtoggle__head::-webkit-details-marker { display: none; }
    .tce-co-sumtoggle__title { flex: 1; font-family: var(--tce-co-heading-font); font-weight: 600; font-size: 17px; }
    .tce-co-sumtoggle__total { font-family: var(--tce-co-heading-font); font-weight: 700; font-size: 17px; white-space: nowrap; }
    .tce-co-sumtoggle__head .tce-co-icon { color: var(--tce-co-muted); }
    .tce-co-sumtoggle[open] .tce-co-sumtoggle__head .tce-co-icon { transform: rotate(180deg); }
    .tce-co-sumtoggle__head:focus-visible { outline: 2px solid var(--tce-co-accent); outline-offset: -2px; border-radius: var(--tce-co-radius); }
    .tce-co .tce-co-sumtoggle .tce-co-summary { margin: 0; padding: 4px 20px 20px; border: 0; border-radius: 0; box-shadow: none; background: none; }
    .tce-co .tce-co-sumtoggle .tce-co-summary > .tce-co-card__head { display: none; }
    .tce-co .tce-co-sumtoggle .tce-co-summary__lines { display: grid; }

    /* Step 3: the full summary card, open, on top. */
    .tce-co .tce-co-sumtop { display: block; margin-bottom: 16px; }
    .tce-co .tce-co-sumtop .tce-co-summary { margin: 0; }
}

.tce-co-totals { display: grid; gap: 8px; margin: 0; }
.tce-co-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tce-co-totals dt { font-size: 15px; color: var(--tce-co-muted); }
.tce-co-totals dt small { font-size: 12px; }
.tce-co-totals dd { margin: 0; font-size: 15px; white-space: nowrap; }
.tce-co-totals .is-discount dd { color: var(--tce-co-success); font-weight: 600; }
.tce-co-totals__total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--tce-co-line); }
.tce-co-totals .tce-co-totals__total dt { color: var(--tce-co-text); font-family: var(--tce-co-heading-font); font-weight: 700; font-size: 18px; }
.tce-co-totals .tce-co-totals__total dt small { font-family: inherit; font-weight: 400; color: var(--tce-co-muted); font-size: 13px; }
.tce-co-totals .tce-co-totals__total dd { font-family: var(--tce-co-heading-font); font-weight: 700; font-size: 26px; }

.tce-co-trust { padding: 20px; border: var(--tce-co-card-border); border-radius: var(--tce-co-radius); background: var(--tce-co-card-bg); box-shadow: var(--tce-co-shadow); }
.tce-co-trust__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tce-co-trust__list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 14px; line-height: 1.45; color: var(--tce-co-muted); }
.tce-co-trust__list strong { color: var(--tce-co-text); font-weight: 600; font-size: 15px; }
.tce-co-trust__list .tce-co-trust__proof strong { color: var(--tce-co-accent); }
.tce-co-trust__icon { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--tce-co-chip); color: var(--tce-co-accent); }
.tce-co .tce-co-trust__link,
.tce-co .tce-co-trust__link:visited,
.tce-co .tce-co-trust__link:hover,
.tce-co .tce-co-trust__link:focus {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    color: var(--tce-co-accent);
    font-weight: 600;
    text-decoration: none;
}
.tce-co .tce-co-trust__link:hover { text-decoration: underline; }
.tce-co .tce-co-trust__link .tce-co-icon { width: 14px; height: 14px; }
.tce-co-trust__logos:empty { display: none; }
.tce-co-trust__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(0, 0, 0, .06); }
.tce-co-trust__logos img { display: block; max-height: 24px; width: auto; margin: 0; }

/* ── WooCommerce notices inside the form ──────────────────────────── */

.tce-co .woocommerce-NoticeGroup,
.tce-co > .woocommerce-notices-wrapper { margin-bottom: 20px; }
.tce-co .woocommerce-error,
.tce-co .woocommerce-message,
.tce-co .woocommerce-info {
    margin: 0 0 16px;
    padding: 14px 16px 14px 20px;
    border: 0;
    border-left: 4px solid var(--tce-co-accent);
    border-radius: var(--tce-co-radius-sm);
    background: var(--tce-co-card-bg);
    box-shadow: var(--tce-co-shadow);
    color: var(--tce-co-text);
    list-style: none;
}
.tce-co .woocommerce-error { border-left-color: var(--tce-co-error); }
.tce-co .woocommerce-message {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    border-left-color: var(--tce-co-success);
}

/* "Verder winkelen" and other notice buttons: our outline button instead of the theme link. */
.tce-co .woocommerce-message .button,
.tce-co .woocommerce-info .button,
.tce-co .woocommerce-error .button,
.tce-co .woocommerce-message .button:visited,
.tce-co .woocommerce-info .button:visited,
.tce-co .woocommerce-message .button:focus,
.tce-co .woocommerce-info .button:focus {
    order: 2;
    float: none;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin: 0;
    padding: 8px 16px;
    border: 2px solid var(--tce-co-accent);
    border-radius: var(--tce-co-radius-sm);
    background: transparent;
    color: var(--tce-co-accent);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
    box-shadow: none;
}
.tce-co .woocommerce-message .button:hover,
.tce-co .woocommerce-info .button:hover,
.tce-co .woocommerce-error .button:hover {
    border-color: var(--tce-co-accent);
    background: var(--tce-co-accent);
    color: var(--tce-co-on-accent);
    text-decoration: none;
}
.tce-co .woocommerce-error::before,
.tce-co .woocommerce-message::before,
.tce-co .woocommerce-info::before { display: none; }
.tce-co .woocommerce-error li { margin: 0; padding: 2px 0; }

/* ── Empty cart ───────────────────────────────────────────────────── */

.tce-co--empty { max-width: 640px; }
.tce-co-empty { text-align: center; padding: 48px 24px; }
.tce-co-empty p { margin: 0 0 24px; color: var(--tce-co-muted); }

/* ── Phone bar: back, total, main button (setting mobile_bar, class has-bar) ── */

.tce-co-bar { display: none; }

@media (max-width: 767px) {
    .tce-co.has-bar .tce-co-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        border-radius: var(--tce-co-radius) var(--tce-co-radius) 0 0;
        background: var(--tce-co-bar-bg);
        box-shadow: 0 -4px 24px rgba(0, 0, 0, .1);
    }
    .tce-co.has-bar .tce-co-nav { display: none; }
    .tce-co-has-bar { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
    /* Cookie banner open (html.tce-cc-open, cookie-consent.js): it covers the fixed bar,
       so use the in-page buttons and leave room to scroll them above the banner. */
    .tce-cc-open .tce-co.has-bar .tce-co-bar { display: none; }
    .tce-cc-open .tce-co.has-bar .tce-co-nav { display: flex; }
    .tce-cc-open .tce-co-has-bar { padding-bottom: calc(var(--tce-cc-h, 60vh) + 16px); }

    .tce-co .tce-co-bar__back,
    .tce-co .tce-co-bar__back:hover,
    .tce-co .tce-co-bar__back:focus {
        display: inline-grid;
        place-items: center;
        flex: none;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        border: 1px solid var(--tce-co-line);
        border-radius: 50%;
        background: var(--tce-co-card-bg);
        color: var(--tce-co-text);
        box-shadow: none;
        cursor: pointer;
    }
    .tce-co .tce-co-bar__back:hover { background: var(--tce-co-chip); }
    .tce-co .tce-co-bar__back[hidden] { display: none !important; }

    .tce-co-bar__total { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
    .tce-co-bar__total span { font-size: 12px; color: var(--tce-co-muted); }
    .tce-co-bar__total strong { font-family: var(--tce-co-heading-font); font-weight: 700; font-size: 19px; white-space: nowrap; color: var(--tce-co-text); }

    .tce-co .tce-co-bar__next { flex: 1; min-width: 0; padding-left: 16px; padding-right: 16px; white-space: nowrap; }
}

/* Review line (setting "Reviewregel"): pay = above "Betalen", cart = step 1, details = step 2. */
.tce-co .tce-co-proof { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--tce-co-text); }
.tce-co .tce-co-proof .tce-co-icon { flex: none; color: var(--tce-co-accent); }
.tce-co .tce-co-proof a,
.tce-co .tce-co-proof a:visited { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tce-co .tce-co-proof a:hover,
.tce-co .tce-co-proof a:focus { color: var(--tce-co-accent); }
.tce-co .tce-co-proof--pay { justify-content: center; margin: 0 0 12px; text-align: center; }
