html[data-matching] .tracking-panel { width:100%; }
html[data-matching] .tracking-price-context { max-width:100%; overflow-wrap:anywhere; }
#matching-controls { width:100%; }
.matching-intents,.matching-prices { display:flex; gap:8px; }
.matching-intents button,.matching-prices button,#matching-refine,#matching-retry { flex:1; min-height:48px; padding:8px 12px; color:#443a30; background:transparent; border:1px solid rgba(68,58,48,.4); border-radius:8px; font:500 16px Jost,sans-serif; cursor:pointer; }
.matching-intents button[aria-pressed="true"],.matching-prices button[aria-pressed="true"] { background:#eee8dc; border-color:#443a30; box-shadow:inset 0 0 0 1px #443a30; }
.matching-intents button:focus-visible,.matching-prices button:focus-visible,#matching-refine:focus-visible,#matching-retry:focus-visible { outline:2px solid #443a30; outline-offset:3px; }
#matching-refine { display:block; margin:10px auto; }
#matching-refinement[hidden] { display:none; }
.matching-price-heading { margin:16px 0 8px; font:14px Jost,sans-serif; }
#matching-message { min-height:20px; margin:5px 0; font:14px/1.35 Jost,sans-serif; color:#655b4f; text-align:center; }
#matching-message.is-error { color:#9b3e29; }
#matching-retry[hidden],#tracking-explore[hidden] { display:none; }
.matching-context { padding:22px; color:#443a30; font:15px Jost,sans-serif; }
.matching-context label { display:flex; align-items:center; justify-content:space-between; gap:15px; margin:12px 0; }
.matching-context select { min-height:38px; max-width:220px; border:1px solid #b9ad9b; border-radius:6px; color:inherit; background:#fffefa; font:inherit; }
.matching-context small { color:#756f64; }
.matching-route-note { position:absolute; width:calc(var(--veld-b) + 36px); left:calc((var(--veld-b) + 36px) / -2); top:calc(var(--veld-h) / 2 + 4px); padding:4px; margin:0; border:1px dashed rgba(68,58,48,.3); border-radius:8px; background:rgba(252,250,244,.94); color:#443a30; font:12px/1.2 Jost,sans-serif; white-space:pre-line; text-align:center; pointer-events:none; }
html[data-matching] .detail-info { overflow-y:auto; }
/* Direct matches have a pale cyan canvas and foot; the root keeps full cyan. */
html[data-matching] .veld-kaart:not(.is-island-anchor) > .card-canvas[data-matching-relation] {
 background:linear-gradient(180deg, #d4eef1 0%, #b5e1e7 100%);
}
html[data-matching] .veld-kaart.is-island-anchor > .card-canvas .card-frame {
 outline:2px solid var(--island-accent); outline-offset:-1px;
}
@media(max-width:700px){
 .matching-intents button,.matching-prices button,#matching-refine,#matching-retry { min-height:44px; padding:7px 9px; font-size:13px; }
 #matching-message { font-size:11px; min-height:16px; }
 .matching-price-heading { margin:10px 0 5px; font-size:12px; }
 .matching-route-note { font-size:10px; line-height:1.1; padding:2px 4px; }
}
#matching-context-retry[hidden] { display:none; }
#matching-context-retry { padding:10px; color:#443a30; border:1px solid #b9ad9b; background:transparent; border-radius:6px; font:inherit; }
@media(max-width:700px) and (max-height:730px){
 html[data-matching] .detail-beeldvak { min-height:120px; }
 html[data-matching] .detail-sold-out { top:auto; bottom:8px; transform:translateX(-50%); padding:5px 10px; font-size:10px; }
}

/* Card hierarchy: product and purchase first, one quiet departure, then the path. */
html[data-matching] .detail-info { padding:14px 30px 16px; }
html[data-matching] .detail-sold-out { display:none; }
html[data-matching] .tracking-product-meta { gap:20px; margin-bottom:10px; grid-template-columns:minmax(0,1fr) minmax(0,1.9fr); }
html[data-matching] .tracking-product-meta .koop-link { min-height:64px; border-radius:12px; font-size:20px; font-weight:650; box-shadow:0 4px 12px rgba(68,58,48,.13); }
html[data-matching] .tracking-product-meta .koop-link[aria-disabled="true"] { opacity:1; background:#e7e2da; border-color:transparent; color:#756f64; box-shadow:none; cursor:default; }
html[data-matching] .detail-beschrijving { margin-bottom:8px; color:#756f64; }
html[data-matching] .matching-panel { margin-block:auto; padding:14px 0 10px; flex-shrink:0; }
.matching-heading { margin:0 0 12px; font:500 16px/1.25 Jost,sans-serif; color:#756f64; }
html[data-matching] .tracking-layout { grid-template-columns:85px 190px 85px; grid-template-rows:auto 190px auto; justify-content:center; }
html[data-matching] .tracking-label { font-size:16px; color:#756f64; }
html[data-matching] .tracking-label--top { padding-bottom:7px; }
html[data-matching] .tracking-label--bottom { padding-top:7px; }
html[data-matching] .tracking-pad { border-color:rgba(68,58,48,.22); border-radius:12px; background:rgba(238,232,220,.22); overflow:visible; }
html[data-matching] .tracking-axis { background:rgba(68,58,48,.1); }
html[data-matching] .tracking-ball:focus-visible { outline:2px solid #443a30; outline-offset:1px; border-radius:50%; }
html[data-matching] .tracking-pad.is-dragging .tracking-ball { cursor:grabbing; }
html[data-matching] .tracking-explore { display:inline-flex; align-items:center; justify-content:center; gap:12px; width:auto; min-height:56px; margin:8px 0 0; padding:0 14px; border:0; border-radius:8px; background:transparent; color:#443a30; font-size:17px; font-weight:550; }
html[data-matching] .tracking-explore svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
html[data-matching] .tracking-explore:hover { background:rgba(238,232,220,.3); }
html[data-matching] .tracking-explore:focus-visible { outline:2px solid #443a30; outline-offset:2px; }
html[data-matching] .verken-overlay { margin-top:0; border:0; border-top:1px solid rgba(68,58,48,.12); border-radius:0; padding-top:8px; background:transparent; backdrop-filter:none; -webkit-backdrop-filter:none; overflow:visible; }
html[data-matching] .shop-continue { justify-content:space-between; gap:12px; }
html[data-matching] .shop-continue .verken-knop { flex:0 1 auto; min-height:54px; padding:0 6px; border:0; border-radius:6px; font-size:15px; font-weight:500; background:transparent; }
html[data-matching] .shop-continue .verken-knop + .verken-knop { border:0; }
html[data-matching] .shop-continue .verken-knop:hover { text-decoration:underline; text-underline-offset:4px; background:transparent; }
html[data-matching] .shop-continue .verken-knop:focus-visible { outline:2px solid #443a30; outline-offset:1px; }
#matching-message { min-height:0; margin:0; }
#matching-message:empty { display:none; }
#matching-message:not(:empty) { margin:10px 0 4px; }
.matching-price-help { margin-top:16px; font:13px/1.45 Jost,sans-serif; color:#756f64; }
.matching-price-help summary { cursor:pointer; }
@media(max-width:700px){
 html[data-matching] .detail-info { padding:10px 12px 8px; }
 html[data-matching] .detail-beeldvak { flex-basis:25%; }
 html[data-matching] .tracking-product-meta { gap:12px; margin-bottom:8px; }
 html[data-matching] .tracking-product-meta .koop-link { min-height:52px; padding:0 10px; font-size:15px; border-radius:9px; }
 html[data-matching] .detail-beschrijving { font-size:12px; line-height:1.4; }
 html[data-matching] .matching-panel { padding:12px 0 8px; }
 .matching-heading { margin-bottom:9px; font-size:13px; }
 html[data-matching] .tracking-layout { grid-template-columns:62px 144px 62px; grid-template-rows:auto 144px auto; }
 html[data-matching] .tracking-label { font-size:12px; }
 html[data-matching] .tracking-label--top { padding-bottom:5px; }
 html[data-matching] .tracking-label--bottom { padding-top:5px; }
 html[data-matching] .tracking-explore { min-height:44px; margin-top:6px; font-size:14px; }
 html[data-matching] .tracking-explore svg { width:17px; height:17px; }
 html[data-matching] .verken-overlay { padding-top:4px; }
 html[data-matching] .shop-continue .verken-knop { min-height:44px; font-size:13px; }
}
@media(max-width:700px) and (max-height:730px){
 html[data-matching] .detail-beeldvak { flex-basis:18%; min-height:108px; }
 html[data-matching] .matching-panel { padding:8px 0 4px; }
 html[data-matching] .tracking-layout { grid-template-columns:58px 120px 58px; grid-template-rows:auto 120px auto; }
 .matching-heading { margin-bottom:6px; }
}
@media(max-width:350px){
 html[data-matching] .tracking-layout { grid-template-columns:52px 120px 52px; grid-template-rows:auto 120px auto; }
 html[data-matching] .tracking-label { font-size:11px; }
 html[data-matching] .tracking-product-meta .koop-link { font-size:13px; }
}
@media(max-width:700px) and (max-height:620px){
 html[data-matching] .detail-beeldvak { flex-basis:16%; min-height:88px; }
 html[data-matching] .detail-beschrijving { -webkit-line-clamp:1; margin-bottom:6px; }
 html[data-matching] .matching-heading { display:none; }
}
@media(max-width:350px){
 html[data-matching] .detail-kop h2 { white-space:normal; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; font-size:16px; line-height:1.15; }
}
html[data-cake-shop] #cake-facts { margin:3px 0 0; color:#767166; font-size:12px; line-height:1.35; }
html[data-cake-shop] .tracking-product-meta #detail-prijs { font-size:22px; }
html[data-cake-shop] .card-brand { font-size:9px; }
@media(max-width:700px){
 html[data-cake-shop] .tracking-product-meta #detail-prijs { font-size:19px; line-height:1.15; }
 html[data-cake-shop] #cake-facts { font-size:11px; line-height:1.3; }
}
@media(max-width:350px){
 html[data-cake-shop] #detail-merchant { font-size:7px; letter-spacing:1px; }
}
