StealThis .dev

Upsell — Add-on / cross-sell at checkout

A self-contained checkout summary for the fictional Northwind Cloud Pro plan, art-directed in a neutral product-UI palette with Inter type and soft shadows. Optional add-on cards — extra seats with a stepper, a Recommended priority-support tier, extra storage and advanced analytics — toggle on and off as accent-tinted cards. Each change live-updates an order summary, count-up animating the subtotal, tax and sticky total, while a toast confirms every selection. Fully keyboard operable and responsive down to 360px.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Add-on / cross-sell at checkout

A complete checkout panel for Northwind Cloud, a fictional SaaS, built in the neutral product-UI palette with Inter type, hairline borders and soft shadows. A summary card pins the selected Pro base plan at the top, followed by a column of optional add-on cards — extra seats, priority support, extra storage and advanced analytics — each with an inline SVG icon, a short benefit blurb, a checkbox and a price. The priority-support card wears a teal Recommended badge and is pre-selected, and selecting any card tints it with the brand or accent colour.

The add-ons drive a sticky Order summary on the right. Toggling a card injects or removes its line, recomputes the subtotal, the 8.5% tax and the total, and count-up animates every figure with a brief pulse so the change is easy to follow. The extra-seats card reveals a stepper when enabled; bumping the seat count multiplies its line item and updates the × n quantity live. The summary shows an empty note when only the base plan is selected, and the CTA mirrors the running total (“Pay $138.88”).

Every control is keyboard operable with focus-visible rings, the stepper clamps between 1 and 25 seats and disables its buttons at the limits, and an aria-live summary plus a small toast announce each change. The layout collapses to a single column under ~860px and reflows the cards and prices down to ~360px, with a prefers-reduced-motion guard on the animations. Vanilla JS only — no frameworks, no build step, and no network requests beyond the single Google Fonts link.

Illustrative UI only — Northwind Cloud, its plans, add-ons and prices are fictional.