.fx-till { display: grid; }
.fx-till .fx-till-wrap, .fx-till .fx-till-wrap * { box-sizing: border-box; }
.fx-till .fx-till-wrap { display: grid; gap: 16px; min-width: 0; color: var(--fx-ink); font-size: 16px; line-height: 1.45; }
.fx-till .fx-till-steps { margin: 0; padding-left: 24px; }
.fx-till .fx-till-goal { margin: 0; }
.fx-till .fx-till-receipt { min-width: 0; margin: 0; padding: 14px; border: 2px solid var(--fx-ink); border-radius: 8px; background: var(--fx-paper); }
.fx-till .fx-till-receipt legend { max-width: 100%; padding: 0 6px; font-weight: 800; }
.fx-till .fx-till-caption { margin: 0 0 6px; text-align: center; }
.fx-till .fx-till-help { margin: 8px 0; font-size: 14px; }
.fx-till .fx-till-lines { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
.fx-till .fx-btn { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; min-width: 0; min-height: 56px; padding: 10px 8px; border: 2px solid var(--fx-ink); border-radius: 6px; background: var(--fx-paper); color: var(--fx-ink); text-align: left; line-height: 1.35; cursor: pointer; }
.fx-till .fx-btn strong { white-space: nowrap; }
.fx-till .fx-btn:has(input:checked) { background: var(--fx-mint-pale); color: var(--fx-ink); border-color: var(--fx-ink); }
.fx-till .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-till .fx-till-icon { display: block; width: 28px; height: 32px; fill: var(--fx-sun); stroke: var(--fx-ink); stroke-width: 1.5; stroke-linejoin: round; }
.fx-till .fx-till-buckle { fill: var(--fx-paper); }
.fx-till .fx-till-hint { grid-column: 2 / 4; font-size: 12px; font-weight: 400; }
.fx-till .fx-till-hand { display: inline-block; font-size: 18px; transform-origin: center; animation: fx-till-point 0.8s ease-in-out 3; }
.fx-till:has(input:checked) .fx-till-hint { visibility: hidden; }
.fx-till .fx-till-total { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 2px dashed var(--fx-ink); }
.fx-till .fx-till-total-box { display: grid; place-items: center; width: 132px; height: 44px; border: 2px solid var(--fx-ink); background: var(--fx-sun-pale); }
.fx-till .fx-till-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 20px; height: 320px; padding: 12px; overflow: hidden; }
.fx-till .fx-till-machine { display: grid; align-content: center; gap: 8px; width: 100%; height: 160px; padding: 12px; border: 3px solid var(--fx-ink); border-radius: 12px; background: var(--fx-sky-pale); text-align: center; }
.fx-till .fx-till-numbers { display: grid; padding: 8px 2px; border: 2px solid var(--fx-ink); background: var(--fx-mint-pale); font-size: 28px; font-weight: 800; line-height: 1.25; font-variant-numeric: tabular-nums; }
.fx-till .fx-till-numbers span { grid-area: 1 / 1; }
.fx-till .fx-till-machine small { font-size: 14px; }
.fx-till .fx-till-bag { width: 100%; max-width: 280px; justify-self: center; }
.fx-till .fx-till-handle { width: 64px; height: 24px; margin: 0 auto; border: 3px solid var(--fx-ink); border-bottom: 0; border-radius: 18px 18px 0 0; }
.fx-till .fx-till-bag-body { height: 250px; padding: 12px; border: 3px solid var(--fx-ink); border-radius: 3px 3px 12px 12px; background: var(--fx-sun-pale); text-align: center; }
.fx-till .fx-till-bag-items { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; height: 180px; margin-top: 8px; }
.fx-till .fx-till-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }
.fx-till .fx-till-tile { display: grid; justify-items: center; align-content: center; gap: 2px; padding: 3px; border: 1px solid var(--fx-ink); border-radius: 5px; background: var(--fx-paper); font-size: 12px; line-height: 1.25; visibility: hidden; transform: translateY(-14px); transition: transform 0.35s; }
.fx-till:has(#fx-till-t:checked) .fx-till-bag-t, .fx-till:has(#fx-till-c:checked) .fx-till-bag-c, .fx-till:has(#fx-till-s:checked) .fx-till-bag-s, .fx-till:has(#fx-till-b:checked) .fx-till-bag-b { visibility: visible; transform: translateY(0); }
.fx-till .fx-till-says { display: grid; }
.fx-till .fx-till-says p { grid-area: 1 / 1; display: block; margin: 0; }
.fx-till .fx-till-says small { display: block; margin-top: 8px; font-size: 14px; }
.fx-till .fx-till-v { visibility: hidden; }
.fx-till:not(:has(input:checked)) .fx-till-s0 { visibility: visible; }
.fx-till:has(#fx-till-t:checked):not(:has(#fx-till-c:checked, #fx-till-s:checked, #fx-till-b:checked)) .fx-till-s1 { visibility: visible; }
.fx-till:has(#fx-till-c:checked):not(:has(#fx-till-t:checked, #fx-till-s:checked, #fx-till-b:checked)) .fx-till-s2 { visibility: visible; }
.fx-till:has(#fx-till-s:checked):not(:has(#fx-till-t:checked, #fx-till-c:checked, #fx-till-b:checked)) .fx-till-s3 { visibility: visible; }
.fx-till:has(#fx-till-b:checked):not(:has(#fx-till-t:checked, #fx-till-c:checked, #fx-till-s:checked)) .fx-till-s4 { visibility: visible; }
.fx-till:has(#fx-till-t:checked):has(#fx-till-c:checked):not(:has(#fx-till-s:checked, #fx-till-b:checked)) .fx-till-s5 { visibility: visible; }
.fx-till:has(#fx-till-t:checked):has(#fx-till-s:checked):not(:has(#fx-till-c:checked, #fx-till-b:checked)) .fx-till-s6 { visibility: visible; }
.fx-till:has(#fx-till-t:checked):has(#fx-till-b:checked):not(:has(#fx-till-c:checked, #fx-till-s:checked)) .fx-till-s7 { visibility: visible; }
.fx-till:has(#fx-till-c:checked):has(#fx-till-s:checked):not(:has(#fx-till-t:checked, #fx-till-b:checked)) .fx-till-s8 { visibility: visible; }
.fx-till:has(#fx-till-c:checked):has(#fx-till-b:checked):not(:has(#fx-till-t:checked, #fx-till-s:checked)) .fx-till-s9 { visibility: visible; }
.fx-till:has(#fx-till-s:checked):has(#fx-till-b:checked):not(:has(#fx-till-t:checked, #fx-till-c:checked)) .fx-till-s10 { visibility: visible; }
.fx-till:has(#fx-till-t:checked):has(#fx-till-c:checked):has(#fx-till-s:checked):not(:has(#fx-till-b:checked)) .fx-till-s11 { visibility: visible; }
.fx-till:has(#fx-till-t:checked):has(#fx-till-c:checked):has(#fx-till-b:checked):not(:has(#fx-till-s:checked)) .fx-till-s12 { visibility: visible; }
.fx-till:has(#fx-till-t:checked):has(#fx-till-s:checked):has(#fx-till-b:checked):not(:has(#fx-till-c:checked)) .fx-till-s13 { visibility: visible; }
.fx-till:has(#fx-till-c:checked):has(#fx-till-s:checked):has(#fx-till-b:checked):not(:has(#fx-till-t:checked)) .fx-till-s14 { visibility: visible; }
.fx-till:has(#fx-till-t:checked):has(#fx-till-c:checked):has(#fx-till-s:checked):has(#fx-till-b:checked) .fx-till-s15 { visibility: visible; }
@container (max-width: 480px) { .fx-till .fx-till-stage { grid-template-columns: minmax(0, 1fr); align-content: center; height: 520px; } }
@keyframes fx-till-point { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .fx-till .fx-till-hand { animation: none; } .fx-till .fx-till-tile { transition: none; } }