.fx-basket { display: grid; gap: 12px; --fx-fill: 0%; --fx-bar: var(--fx-sky); }
.fx-basket .fx-basket-steps { list-style: none; padding: 0; margin: 0; }
.fx-basket .fx-basket-steps li + li { margin-top: 6px; }
.fx-basket .fx-basket-goal, .fx-basket .fx-basket-help, .fx-basket .fx-basket-readlabel { margin: 0; }
.fx-basket .fx-basket-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.fx-basket .fx-basket-field legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.fx-basket .fx-btn { min-height: 40px; box-sizing: border-box; color: var(--fx-ink); }
.fx-basket .fx-btn:has(input:checked) { background: var(--fx-mint-pale); color: var(--fx-ink); }
.fx-basket .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 2px; }
.fx-basket .fx-basket-panels { display: grid; }
.fx-basket .fx-basket-panels > .fx-basket-field { grid-area: 1 / 1; }
.fx-basket .fx-basket-small, .fx-basket .fx-basket-large { visibility: hidden; }
.fx-basket:has(#fx-basket-s:checked) .fx-basket-small, .fx-basket:has(#fx-basket-l:checked) .fx-basket-large { visibility: visible; }
.fx-basket .fx-basket-add { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fx-basket .fx-basket-add .fx-btn { visibility: hidden; padding: 8px 4px; text-align: center; justify-content: center; }
.fx-basket .fx-basket-add .fx-btn:first-child, .fx-basket .fx-basket-add .fx-btn:has(input:checked), .fx-basket .fx-basket-add .fx-btn:has(input:checked) + .fx-btn { visibility: inherit; }
.fx-basket .fx-basket-add .fx-btn:has(+ .fx-btn input:checked) { visibility: hidden; }
.fx-basket .fx-basket-hint { margin: 8px 0 0; }
.fx-basket:has(#fx-basket-a:checked) .fx-basket-shint, .fx-basket:has(#fx-basket-g:checked) .fx-basket-lhint { visibility: hidden; }
.fx-basket .fx-basket-stage { position: relative; height: 330px; box-sizing: border-box; color: var(--fx-ink); }
.fx-basket .fx-basket-prices { position: absolute; top: 6px; left: 8px; right: 8px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; font-size: 12px; line-height: 1.4; }
.fx-basket .fx-basket-scene { position: absolute; inset: 0; }
.fx-basket .fx-basket-offer { position: absolute; top: 52px; left: 8px; right: 8px; padding: 5px; box-sizing: border-box; background: var(--fx-sun); text-align: center; font-size: 12px; }
.fx-basket .fx-basket-nooffer { background: var(--fx-paper); }
.fx-basket .fx-basket-cartons { position: absolute; top: 96px; left: 10px; right: 10px; height: 64px; display: flex; justify-content: space-around; align-items: end; gap: 4px; }
.fx-basket .fx-basket-carton { position: relative; flex: 1; max-width: 42px; min-width: 0; height: 52px; box-sizing: border-box; border: 2px solid var(--fx-ink); border-top: 7px solid var(--fx-ink); background: var(--fx-sky); text-align: center; font-size: 12px; line-height: 16px; transition: transform 0.35s; }
.fx-basket .fx-basket-tall { height: 64px; background: var(--fx-grape); padding-top: 6px; }
.fx-basket .fx-basket-free { position: absolute; bottom: -2px; left: -2px; right: -2px; background: var(--fx-mint); color: var(--fx-ink); font-size: 12px; line-height: 16px; visibility: hidden; }
.fx-basket:has(#fx-basket-c:checked) .fx-basket-free3, .fx-basket:has(#fx-basket-f:checked) .fx-basket-free6 { visibility: inherit; }
.fx-basket:has(#fx-basket-a:checked) .fx-basket-ca, .fx-basket:has(#fx-basket-b:checked) .fx-basket-cb, .fx-basket:has(#fx-basket-c:checked) .fx-basket-cc, .fx-basket:has(#fx-basket-d:checked) .fx-basket-cd, .fx-basket:has(#fx-basket-e:checked) .fx-basket-ce, .fx-basket:has(#fx-basket-f:checked) .fx-basket-cf, .fx-basket:has(#fx-basket-g:checked) .fx-basket-cg, .fx-basket:has(#fx-basket-h:checked) .fx-basket-ch, .fx-basket:has(#fx-basket-i:checked) .fx-basket-ci, .fx-basket:has(#fx-basket-j:checked) .fx-basket-cj { transform: translateY(114px); }
.fx-basket .fx-basket-shelfline { position: absolute; left: 8px; right: 8px; top: 160px; border-top: 3px solid var(--fx-ink); }
.fx-basket .fx-basket-basketlabel { position: absolute; top: 169px; left: 8px; font-size: 12px; }
.fx-basket .fx-basket-wire { position: absolute; top: 190px; left: 8px; width: calc(100% - 16px); height: 90px; stroke-width: 2; }
.fx-basket .fx-basket-meter { position: absolute; bottom: 6px; left: 12px; right: 12px; }
.fx-basket .fx-basket-track { height: 12px; border: 1px solid var(--fx-ink); background: var(--fx-paper); }
.fx-basket .fx-basket-fill { width: var(--fx-fill); height: 100%; background: var(--fx-bar); transition: width 0.35s; }
.fx-basket .fx-basket-scale { display: flex; justify-content: space-between; font-size: 12px; }
.fx-basket:has(#fx-basket-a:checked) { --fx-fill: 16.6667%; }
.fx-basket:has(#fx-basket-b:checked) { --fx-fill: 33.3333%; }
.fx-basket:has(#fx-basket-c:checked) { --fx-fill: 50%; }
.fx-basket:has(#fx-basket-d:checked) { --fx-fill: 66.6667%; }
.fx-basket:has(#fx-basket-e:checked) { --fx-fill: 83.3333%; }
.fx-basket:has(#fx-basket-f:checked) { --fx-fill: 100%; --fx-bar: var(--fx-mint); }
.fx-basket:has(#fx-basket-l:checked) { --fx-fill: 0%; --fx-bar: var(--fx-sky); }
.fx-basket:has(#fx-basket-l:checked):has(#fx-basket-g:checked) { --fx-fill: 27.7778%; }
.fx-basket:has(#fx-basket-l:checked):has(#fx-basket-h:checked) { --fx-fill: 55.5556%; }
.fx-basket:has(#fx-basket-l:checked):has(#fx-basket-i:checked) { --fx-fill: 83.3333%; }
.fx-basket:has(#fx-basket-l:checked):has(#fx-basket-j:checked) { --fx-fill: 100%; --fx-bar: var(--fx-mint); }
.fx-basket .fx-basket-readout, .fx-basket .fx-basket-messages { display: grid; min-width: 0; }
.fx-basket .fx-basket-messages, .fx-basket .fx-basket-message { grid-area: 1 / 1; }
.fx-basket .fx-basket-message { visibility: hidden; margin: 0; }
.fx-basket .fx-basket-total { display: block; font-size: 20px; margin-bottom: 10px; }
.fx-basket:not(:has(#fx-basket-a:checked)) .fx-basket-m0, .fx-basket:has(#fx-basket-a:checked):not(:has(#fx-basket-b:checked)) .fx-basket-m1, .fx-basket:has(#fx-basket-b:checked):not(:has(#fx-basket-c:checked)) .fx-basket-m2, .fx-basket:has(#fx-basket-c:checked):not(:has(#fx-basket-d:checked)) .fx-basket-m3, .fx-basket:has(#fx-basket-d:checked):not(:has(#fx-basket-e:checked)) .fx-basket-m4, .fx-basket:has(#fx-basket-e:checked):not(:has(#fx-basket-f:checked)) .fx-basket-m5, .fx-basket:has(#fx-basket-f:checked) .fx-basket-m6, .fx-basket:not(:has(#fx-basket-g:checked)) .fx-basket-n0, .fx-basket:has(#fx-basket-g:checked):not(:has(#fx-basket-h:checked)) .fx-basket-n1, .fx-basket:has(#fx-basket-h:checked):not(:has(#fx-basket-i:checked)) .fx-basket-n2, .fx-basket:has(#fx-basket-i:checked):not(:has(#fx-basket-j:checked)) .fx-basket-n3, .fx-basket:has(#fx-basket-j:checked) .fx-basket-n4 { visibility: inherit; }
@container (max-width: 480px) { .fx-basket .fx-basket-prices { grid-template-columns: minmax(0, 1fr); gap: 0; } .fx-basket .fx-basket-add { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .fx-basket .fx-basket-carton, .fx-basket .fx-basket-fill { transition: none; } }