.fx-till { --fx-n: 2; --fx-c: 0; display: grid; gap: 14px; }
.fx-till * { box-sizing: border-box; }
.fx-till .fx-note ol { margin: 0; padding-left: 24px; }
.fx-till .fx-note li + li { margin-top: 6px; }
.fx-till .fx-till-goal, .fx-till .fx-till-read { margin: 0; color: var(--fx-ink); }
.fx-till .fx-till-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-till .fx-till-controls legend { padding: 0; margin-bottom: 8px; font-weight: 800; }
.fx-till .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-till .fx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; min-width: 44px; padding: 8px 10px; font-size: 14px; line-height: 1.3; }
.fx-till .fx-till-notes .fx-btn:has(input:checked) { background: var(--fx-mint); color: var(--fx-ink); }
.fx-till .fx-till-coins .fx-btn:has(input:checked) { background: var(--fx-sun); color: var(--fx-ink); }
.fx-till .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 2px; }
.fx-till .fx-till-hint { margin: 8px 0 0; font-size: 14px; font-weight: 700; }
.fx-till .fx-till-scene { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 2fr) minmax(0, 1.25fr); gap: 12px; align-items: center; height: 350px; padding: 16px; color: var(--fx-ink); font-size: 16px; line-height: 1.3; }
.fx-till .fx-till-price { padding: 12px 8px; border: 2px solid var(--fx-ink); border-radius: 8px; background: var(--fx-sun-pale); text-align: center; }
.fx-till .fx-till-tick { visibility: hidden; }
.fx-till .fx-till-counter { height: 300px; min-width: 0; display: grid; grid-template-rows: 24px 1fr; gap: 8px; padding: 10px; border-bottom: 4px solid var(--fx-ink); background: var(--fx-paper); }
.fx-till .fx-till-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fx-till .fx-till-part { min-width: 0; }
.fx-till .fx-till-part > p { min-height: 44px; margin: 0; font-size: 14px; font-weight: 700; }
.fx-till .fx-till-pile { position: relative; height: 200px; }
.fx-till .fx-till-note { position: absolute; left: calc(var(--fx-i) * 4px); top: calc(8px + var(--fx-i) * 26px); width: calc(100% - 18px); height: 48px; padding: 3px; border: 2px solid var(--fx-ink); border-radius: 4px; background: var(--fx-mint); font-size: 14px; font-weight: 800; transform: rotate(calc(var(--fx-i) * 2deg - 4deg)); opacity: clamp(0, calc(var(--fx-n) - var(--fx-i)), 1); }
.fx-till .fx-till-coin { position: absolute; left: 50%; top: calc(var(--fx-i) * 20px); width: 32px; height: 32px; padding-top: 1px; border: 2px solid var(--fx-ink); border-radius: 50%; background: var(--fx-sun); font-size: 12px; line-height: 16px; font-weight: 800; text-align: center; transform: translateX(-50%); opacity: clamp(0, calc(var(--fx-c) - var(--fx-i)), 1); }
.fx-till .fx-till-register { min-width: 0; display: grid; gap: 8px; }
.fx-till .fx-till-register > p { margin: 0; }
.fx-till .fx-till-screen { padding: 8px 4px; border: 2px solid var(--fx-ink); border-radius: 8px; background: var(--fx-paper); }
.fx-till .fx-till-number { display: flex; justify-content: center; align-items: center; gap: 2px; margin: 0; font-size: 44px; line-height: 1.3; font-weight: 800; }
.fx-till .fx-till-number > b { font-size: 28px; }
.fx-till .fx-till-stack { display: grid; }
.fx-till .fx-till-stack > span { grid-area: 1 / 1; }
.fx-till .fx-till-digit { width: 0.8em; text-align: center; border-radius: 4px; }
.fx-till .fx-till-tens, .fx-till .fx-till-wordt { background: var(--fx-mint); }
.fx-till .fx-till-ones, .fx-till .fx-till-wordo { background: var(--fx-sun); }
.fx-till:has(#fx-till-c0:checked) .fx-till-wordo { background: transparent; }
.fx-till .fx-till-words { display: flex; justify-content: center; gap: 4px; font-size: 16px; font-weight: 700; }
.fx-till .fx-till-wordt, .fx-till .fx-till-wordo { padding: 3px; border-radius: 3px; }
.fx-till .fx-till-state { visibility: hidden; }
.fx-till .fx-till-live { display: grid; min-width: 0; }
.fx-till .fx-till-live > p { grid-area: 1 / 1; margin: 0; color: var(--fx-ink); }
.fx-till:has(#fx-till-n3:checked) { --fx-n: 3; }
.fx-till:has(#fx-till-n4:checked) { --fx-n: 4; }
.fx-till:has(#fx-till-n5:checked) { --fx-n: 5; }
.fx-till:has(#fx-till-c1:checked) { --fx-c: 1; }
.fx-till:has(#fx-till-c2:checked) { --fx-c: 2; }
.fx-till:has(#fx-till-c3:checked) { --fx-c: 3; }
.fx-till:has(#fx-till-c4:checked) { --fx-c: 4; }
.fx-till:has(#fx-till-c5:checked) { --fx-c: 5; }
.fx-till:has(#fx-till-c6:checked) { --fx-c: 6; }
.fx-till:has(#fx-till-c7:checked) { --fx-c: 7; }
.fx-till:has(#fx-till-c8:checked) { --fx-c: 8; }
.fx-till:has(#fx-till-c9:checked) { --fx-c: 9; }
.fx-till:has(#fx-till-n2:checked) .fx-till-n2, .fx-till:has(#fx-till-n3:checked) .fx-till-n3, .fx-till:has(#fx-till-n4:checked) .fx-till-n4, .fx-till:has(#fx-till-n5:checked) .fx-till-n5, .fx-till:has(#fx-till-c0:checked) .fx-till-c0, .fx-till:has(#fx-till-c1:checked) .fx-till-c1, .fx-till:has(#fx-till-c2:checked) .fx-till-c2, .fx-till:has(#fx-till-c3:checked) .fx-till-c3, .fx-till:has(#fx-till-c4:checked) .fx-till-c4, .fx-till:has(#fx-till-c5:checked) .fx-till-c5, .fx-till:has(#fx-till-c6:checked) .fx-till-c6, .fx-till:has(#fx-till-c7:checked) .fx-till-c7, .fx-till:has(#fx-till-c8:checked) .fx-till-c8, .fx-till:has(#fx-till-c9:checked) .fx-till-c9 { visibility: visible; }
.fx-till:has(#fx-till-n4:checked):has(#fx-till-c8:checked) .fx-till-success, .fx-till:has(#fx-till-n4:checked):has(#fx-till-c8:checked) .fx-till-tick { visibility: visible; }
.fx-till:has(#fx-till-n4:checked):has(#fx-till-c8:checked) .fx-till-pending { visibility: hidden; }
.fx-till:has(#fx-till-n4:checked):has(#fx-till-c8:checked) .fx-till-price, .fx-till:has(#fx-till-n4:checked):has(#fx-till-c8:checked) .fx-till-screen { background: var(--fx-mint-pale); box-shadow: 0 0 0 3px var(--fx-mint); }
@container (max-width: 480px) { .fx-till .fx-till-scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: 80px 300px 180px; align-content: center; gap: 16px; height: 660px; padding: 12px; } .fx-till .fx-till-price { justify-self: center; } .fx-till .fx-till-register { width: 100%; max-width: 260px; justify-self: center; } }