/* "See where the token spend goes and what it shipped" story beat (src/_includes/story-receipt.njk). Styles
   from the Nov 12 problem page (PR #30). White paper with a zigzag torn edge, in both themes. */
.sc-bill-beat .st-h { max-width: 30ch; }
.sc-bill-beat .st-how-lead { text-wrap: pretty; }
.sc-bill-wrap { justify-self: center; width: min(100%, 380px); min-width: 0; margin-top: 12px; text-align: left; filter: drop-shadow(0 0 0.5px color-mix(in srgb, var(--palette-greyscale-900) 35%, transparent)) drop-shadow(0 2px 3px color-mix(in srgb, var(--palette-greyscale-900) 12%, transparent)) drop-shadow(0 18px 28px color-mix(in srgb, var(--palette-greyscale-900) 14%, transparent)); }
.sc-bill { display: grid; gap: 12px; width: 100%; padding: 26px 22px 36px; background: var(--palette-greyscale-50); clip-path: polygon(0 0, 100% 0, 100% 100%, 95.83% calc(100% - 7px), 91.67% 100%, 87.5% calc(100% - 7px), 83.33% 100%, 79.17% calc(100% - 7px), 75% 100%, 70.83% calc(100% - 7px), 66.67% 100%, 62.5% calc(100% - 7px), 58.33% 100%, 54.17% calc(100% - 7px), 50% 100%, 45.83% calc(100% - 7px), 41.67% 100%, 37.5% calc(100% - 7px), 33.33% 100%, 29.17% calc(100% - 7px), 25% 100%, 20.83% calc(100% - 7px), 16.67% 100%, 12.5% calc(100% - 7px), 8.33% 100%, 4.17% calc(100% - 7px), 0 100%); font: 400 13px/1.35 var(--font-body); color: var(--palette-greyscale-900); font-variant-numeric: tabular-nums; }
.sc-bill p, .sc-bill ul { margin: 0; }
.sc-bill-logo { display: flex; align-items: center; justify-content: center; gap: 8px; font: 600 20px/1.1 var(--font-heading); white-space: nowrap; }
.sc-bill-logo img { filter: brightness(0); }
.sc-bill-meta { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--palette-greyscale-900); opacity: 0.7; white-space: nowrap; }
.sc-bill ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.sc-bill li, .sc-bill-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.sc-bill-p { white-space: nowrap; }
.sc-bill b { font-weight: 500; }
.sc-bill-ship, .sc-bill-ship b { font-weight: 700; }
.sc-bill-total { padding-block: 12px; border-block: 1px dashed var(--palette-greyscale-900); font-size: 15px; font-weight: 600; }
.sc-bill-total b { font-weight: 700; }
.sc-bill-saved { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 4px; background: var(--theme-accent); color: var(--theme-accent-contrast); font-weight: 600; white-space: nowrap; }
.sc-bill-foot { text-align: center; }
.sc-bill-bars { display: flex; justify-content: center; align-items: stretch; gap: 2px; height: 40px; }
.sc-bill-bars i { flex: none; width: calc(var(--w) * 1.5px); background: var(--palette-greyscale-900); }
@media (min-width: 960px) { .sc-bill { padding: 32px 30px 42px; font-size: 14px; } .sc-bill-wrap { transform: rotate(-1.5deg); } }
@media (prefers-reduced-motion: no-preference) {
  .sc-ready.sc-bill b { opacity: 0; }
  .sc-in.sc-bill li b, .sc-in.sc-bill .sc-bill-total b { opacity: 1; transition: opacity 200ms ease-out var(--d); }
  .sc-in.sc-bill .sc-bill-saved b { opacity: 1; transition: opacity 200ms ease-out 2100ms; }
}
