# Choice Cards

> Cards to compare and pick, on real radio buttons or checkboxes, with a title, a line and an optional price. The picked card's ink border draws itself around it from the corner while a check draws in its mark. Pure CSS.

Forms · choice cards, radio cards, plan picker, delivery options, checkbox, form · HTML and CSS only · no dependencies · updated 2026-11-04
Demo: https://kodza.dev/components/choice-cards/
Source on GitHub: https://github.com/kodza-dev/kodza/tree/main/components/choice-cards

## Files

The code below, served as files: byte for byte what the Kodza site copies (the CSS includes its theme guard).

- [`kodza-choice-cards.css`](https://kodza.dev/registry/choice-cards/kodza-choice-cards.css) · 13.1 KB
- [`kodza-choice-cards.html`](https://kodza.dev/registry/choice-cards/kodza-choice-cards.html) · 3.8 KB · the markup, to adapt and paste into your page

**Can you run shell commands? Download the CSS, don't retype it.** Retyping costs thousands of tokens and can drop or change lines of the CSS. Put the files where your stack expects them (Use it says where: change the `-o` paths):

```bash
curl -fsSL --create-dirs -o kodza/kodza-choice-cards.css https://kodza.dev/registry/choice-cards/kodza-choice-cards.css
```

Then load the file from your page as Use it shows, instead of pasting the content. The HTML is the part you adapt (text, links, modifiers): paste it from the Code section. Copy the CSS from the Code section only if you can't run commands, exactly as it is. (Windows PowerShell: `curl.exe`.)

## API

- Root: `.kodza-choice-cards`
- Variables (set them on the root element itself: it declares its own defaults):
  - `--kz-choice-cards-bg: #ffffff`
  - `--kz-choice-cards-fg: #0a0a0a`
  - `--kz-choice-cards-muted: rgba(10, 10, 10, 0.58)`
  - `--kz-choice-cards-border: rgba(10, 10, 10, 0.1)`
  - `--kz-choice-cards-border-hover: rgba(10, 10, 10, 0.28)`
  - `--kz-choice-cards-ink: #0a0a0a`
  - `--kz-choice-cards-on-ink: #ffffff`
  - `--kz-choice-cards-width: 720px` — the whole group, at most
  - `--kz-choice-cards-min: 190px` — a card never gets narrower: below it, cards stack
  - `--kz-choice-cards-gap: 12px`

## Keyboard

What each key does, by where the focus is. Keep it working when you adapt the HTML: same elements, same classes.

- On a card with a round mark (focus in `.kodza-choice-cards__input[type="radio"]`):
  - `ArrowRight` / `ArrowDown`: Picks the next card, round and round
  - `ArrowLeft` / `ArrowUp`: Picks the previous card, round and round
- On a card with a square mark (focus in `.kodza-choice-cards__input[type="checkbox"]`):
  - `Space`: Picks the card or lets it go

## Dark mode

The values Kodza uses on a dark background (`#0a0a0a`). For a page that follows the system theme, add them after the component's CSS:

```css
@media (prefers-color-scheme: dark) {
  .kodza-choice-cards {
    --kz-choice-cards-bg: #161616;
    --kz-choice-cards-fg: #f2f2f0;
    --kz-choice-cards-muted: rgba(242, 242, 240, 0.62);
    --kz-choice-cards-border: rgba(255, 255, 255, 0.12);
    --kz-choice-cards-border-hover: rgba(255, 255, 255, 0.3);
    --kz-choice-cards-ink: #f2f2f0;
    --kz-choice-cards-on-ink: #0a0a0a;
  }
}
```

A site with its own theme switch puts the same rules under its dark selector instead (`[data-theme="dark"] .kodza-choice-cards { … }`); a single dark section, under that section's class.

## Use it

### Plain HTML page

- CSS: `kodza/kodza-choice-cards.css` next to the page (the Files commands as they are), linked in `<head>`: `<link rel="stylesheet" href="kodza/kodza-choice-cards.css">`. Without a shell, paste it in a `<style>` in `<head>` instead. It only touches `kodza-` classes.
- HTML: where the component goes. Paste it as many times as you need: instances never interfere.
- No JS.
- Restyle with the `--kz-…` variables, set on the component's root element itself (the root declares its own defaults, so a value on an ancestor is ignored), and with the modifiers / attributes listed under API.
- Font: it takes the page's own. A site with its own type sets it once for every Kodza component, on `:root`, never by editing the CSS (unset, nothing changes): `--kz-font-label`, the face of the small labels (meta, captions, counters, hints, footer links, button labels); `--kz-font-label-size`, their size, one for all of them (`11px`…); `--kz-font-label-weight`, their weight; `--kz-font-label-tracking`, their letter-spacing; `--kz-font-label-leading`, their line-height (`1.45`…; buttons, pills and keys keep their box). The Kodza look is Geist: `<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap">`.
- Corners: a site with its own shapes sets them once for every Kodza component, on `:root`, never by editing the CSS (unset, nothing changes): `--kz-radius-scale` multiplies every corner (`0` square, `0.5` softer, `1` Kodza).
- Motion: a site sets its pace once for every Kodza component, on `:root`, never by editing the CSS or the JS: `--kz-motion-scale` multiplies every duration (`0.5` twice as fast, `2` twice as slow, `0` no motion at all, loops stopped, like reduced motion). Unset, nothing changes.

### Claude artifact (claude.ai)

- Paste the CSS in a `<style>`, in the artifact itself: it loads stylesheets only from Google Fonts and scripts only from a few CDNs, so no `<link>` or `<script src>` to Kodza.
- Writing the artifact file with a shell? Insert the downloaded files (Files) with a command instead of retyping them: a line `KODZA-CSS` alone inside the `<style>`, then `sed -e '/^KODZA-CSS$/{r kodza/kodza-choice-cards.css' -e 'd' -e '}' page.html > artifact.html`.
- Font: load Geist from Google Fonts (allowed): `<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap">`. A site with its own type sets it once for every Kodza component, on `:root`, never by editing the CSS (unset, nothing changes): `--kz-font-label`, the face of the small labels (meta, captions, counters, hints, footer links, button labels); `--kz-font-label-size`, their size, one for all of them (`11px`…); `--kz-font-label-weight`, their weight; `--kz-font-label-tracking`, their letter-spacing; `--kz-font-label-leading`, their line-height (`1.45`…; buttons, pills and keys keep their box).
- Corners: a site with its own shapes sets them once for every Kodza component, on `:root`, never by editing the CSS (unset, nothing changes): `--kz-radius-scale` multiplies every corner (`0` square, `0.5` softer, `1` Kodza).
- Motion: a site sets its pace once for every Kodza component, on `:root`, never by editing the CSS or the JS: `--kz-motion-scale` multiplies every duration (`0.5` twice as fast, `2` twice as slow, `0` no motion at all, loops stopped, like reduced motion). Unset, nothing changes.
- Dark mode: the viewer sets `data-theme="dark"` or `"light"` on `<html>`, or nothing when it follows the system. Write the Dark mode rules twice: inside `@media (prefers-color-scheme: dark)` with `:root:not([data-theme="light"])` in front of each selector, and with `:root[data-theme="dark"]` in front of each selector.
- Forms: there is nowhere to send them. Handle `submit` in your script with `event.preventDefault()` and show the result in the page.

### WordPress

- HTML: a **Custom HTML** block (or a pattern / template part). WordPress keeps this markup as it is only for users allowed to post unfiltered HTML (Administrators; Super Admins on multisite): for anyone else it strips tags such as `<svg>`, `<input>` or `<dialog>`, so add it from the theme (a pattern or template part) instead.
- CSS: the downloaded file goes in the theme, under `wp-content/themes/<your-theme>/kodza/` (the child theme if there is one), enqueued from its functions.php (or a code-snippets plugin):
  ```php
  add_action('wp_enqueue_scripts', function () {
    $dir = get_stylesheet_directory() . '/kodza/';
    $uri = get_stylesheet_directory_uri() . '/kodza/';
    wp_enqueue_style('kodza-choice-cards', $uri . 'kodza-choice-cards.css', [], filemtime($dir . 'kodza-choice-cards.css'));
  });
  ```
  Scoped to `kodza-` classes, the CSS never touches the theme.
- No access to the theme files? The CSS can also go, as it is, in **Appearance → Customize → Additional CSS** (classic theme) or **Styles → Additional CSS** in the Site Editor (block theme).
- No JS.
- Colours: it takes the colour of the text around it (or keeps its own monochrome): nothing to point at the theme.
- WordPress turns straight quotes and `--` into typographic ones in the text of a Custom HTML block (not inside `<code>` or `<pre>`).

#### With Elementor

- HTML: an **HTML** widget (Elementor shows it to administrators only). It keeps the code exactly as pasted, straight quotes included.
- CSS: as above. Elementor's Site Settings → Theme Style styles every button, field, link and image of the page, components included; the theme guard at the end of the CSS keeps the component's buttons, fields and link colours as they are.
- No child theme: the CSS can go in the HTML widget instead, in a `<style>` before the HTML.

### Shopify

- Files: `assets/kodza-choice-cards.css` (the Files commands with `-o assets/…`).
- In the section: `{{ 'kodza-choice-cards.css' | asset_url | stylesheet_tag }}`, then the HTML.

### React / Next.js

- Files, side by side (e.g. in `components/kodza/`): `ChoiceCards.tsx` (below), the CSS block under Code saved as `choice-cards.css`, both as they are. The HTML block is already inside the component: skip it.
- Use it: `import { ChoiceCards } from '@/components/kodza/ChoiceCards';` then `<ChoiceCards />`. Props: `vars` (the `--kz-…` variables listed under API, e.g. `vars={{ '--kz-choice-cards-bg': … }}`), `className`, `style` and the other props of its `<fieldset>` (`onClick`, `aria-…`).
- Next.js App Router: it is a Client Component already (`'use client'`). Pages Router: Next.js takes global CSS only in `pages/_app`, so move the `import './choice-cards.css'` line there.

```tsx
'use client';
// Kodza — Choice Cards, for React. From https://kodza.dev/components/choice-cards/
// Kodza License: free to use, client work included. Not to resell or redistribute, ported or not: https://kodza.dev/docs/#print-license
// Next to this file: choice-cards.css, the component's CSS from Kodza, as they are.
// Yours to edit: the markup is plain JSX below.
import { useRef, type ComponentPropsWithoutRef, type ComponentRef, type CSSProperties } from 'react';
import './choice-cards.css';

export type ChoiceCardsProps = Omit<ComponentPropsWithoutRef<'fieldset'>, "children" | "vars"> & {
  /** Settings, as CSS variables on the root */
  vars?: {
    /** default: #ffffff */
    "--kz-choice-cards-bg"?: string | number;
    /** default: #0a0a0a */
    "--kz-choice-cards-fg"?: string | number;
    /** default: rgba(10, 10, 10, 0.58) */
    "--kz-choice-cards-muted"?: string | number;
    /** default: rgba(10, 10, 10, 0.1) */
    "--kz-choice-cards-border"?: string | number;
    /** default: rgba(10, 10, 10, 0.28) */
    "--kz-choice-cards-border-hover"?: string | number;
    /** default: #0a0a0a */
    "--kz-choice-cards-ink"?: string | number;
    /** default: #ffffff */
    "--kz-choice-cards-on-ink"?: string | number;
    /** the whole group, at most — default: 720px */
    "--kz-choice-cards-width"?: string | number;
    /** a card never gets narrower: below it, cards stack — default: 190px */
    "--kz-choice-cards-min"?: string | number;
    /** default: 12px */
    "--kz-choice-cards-gap"?: string | number;
  };
  className?: string;
};

export function ChoiceCards({ vars, className, style, ...rest }: ChoiceCardsProps) {
  const ref = useRef<ComponentRef<'fieldset'>>(null);
  const classes = ["kodza-choice-cards", className].filter(Boolean).join(' ');

  return (
    <fieldset {...rest} className={classes} style={{ ...vars, ...style } as CSSProperties} ref={ref}>
      <legend className="kodza-choice-cards__legend">How should it get to you?</legend>
      <div className="kodza-choice-cards__list">
        <label className="kodza-choice-cards__card">
          <input className="kodza-choice-cards__input" type="radio" name="delivery" defaultValue="standard" defaultChecked />
          {' '}
          <span className="kodza-choice-cards__mark" aria-hidden="true">
            <svg className="kodza-choice-cards__svg" viewBox="0 0 20 20" width="20" height="20">
              <path className="kodza-choice-cards__check" d="M6 10.4l2.6 2.6L14 7.4" pathLength="1" />
            </svg>
          </span>
          {' '}
          <span className="kodza-choice-cards__title">Standard</span>
          {' '}
          <span className="kodza-choice-cards__text">3 to 5 working days. Tracked, no surprises.</span>
          {' '}
          <span className="kodza-choice-cards__price">Free</span>
        </label>
        {' '}
        <label className="kodza-choice-cards__card">
          <input className="kodza-choice-cards__input" type="radio" name="delivery" defaultValue="express" />
          {' '}
          <span className="kodza-choice-cards__mark" aria-hidden="true">
            <svg className="kodza-choice-cards__svg" viewBox="0 0 20 20" width="20" height="20">
              <path className="kodza-choice-cards__check" d="M6 10.4l2.6 2.6L14 7.4" pathLength="1" />
            </svg>
          </span>
          {' '}
          <span className="kodza-choice-cards__title">Express</span>
          {' '}
          <span className="kodza-choice-cards__text">Tomorrow before noon if you order by 6 pm.</span>
          {' '}
          <span className="kodza-choice-cards__price">€9</span>
        </label>
        {' '}
        <label className="kodza-choice-cards__card">
          <input className="kodza-choice-cards__input" type="radio" name="delivery" defaultValue="pickup" />
          {' '}
          <span className="kodza-choice-cards__mark" aria-hidden="true">
            <svg className="kodza-choice-cards__svg" viewBox="0 0 20 20" width="20" height="20">
              <path className="kodza-choice-cards__check" d="M6 10.4l2.6 2.6L14 7.4" pathLength="1" />
            </svg>
          </span>
          {' '}
          <span className="kodza-choice-cards__title">Pickup</span>
          {' '}
          <span className="kodza-choice-cards__text">Nantes, quai de la Fosse. Bring the code.</span>
          {' '}
          <span className="kodza-choice-cards__price">Free</span>
        </label>
      </div>
    </fieldset>
  );
}
```

## Code

```html
<fieldset class="kodza-choice-cards">
  <legend class="kodza-choice-cards__legend">How should it get to you?</legend>
  <div class="kodza-choice-cards__list">
    <label class="kodza-choice-cards__card">
      <input class="kodza-choice-cards__input" type="radio" name="delivery" value="standard" checked>
      <span class="kodza-choice-cards__mark" aria-hidden="true"><svg class="kodza-choice-cards__svg" viewBox="0 0 20 20" width="20" height="20"><path class="kodza-choice-cards__check" d="M6 10.4l2.6 2.6L14 7.4" pathLength="1"/></svg></span>
      <span class="kodza-choice-cards__title">Standard</span>
      <span class="kodza-choice-cards__text">3 to 5 working days. Tracked, no surprises.</span>
      <span class="kodza-choice-cards__price">Free</span>
    </label>
    <label class="kodza-choice-cards__card">
      <input class="kodza-choice-cards__input" type="radio" name="delivery" value="express">
      <span class="kodza-choice-cards__mark" aria-hidden="true"><svg class="kodza-choice-cards__svg" viewBox="0 0 20 20" width="20" height="20"><path class="kodza-choice-cards__check" d="M6 10.4l2.6 2.6L14 7.4" pathLength="1"/></svg></span>
      <span class="kodza-choice-cards__title">Express</span>
      <span class="kodza-choice-cards__text">Tomorrow before noon if you order by 6 pm.</span>
      <span class="kodza-choice-cards__price">€9</span>
    </label>
    <label class="kodza-choice-cards__card">
      <input class="kodza-choice-cards__input" type="radio" name="delivery" value="pickup">
      <span class="kodza-choice-cards__mark" aria-hidden="true"><svg class="kodza-choice-cards__svg" viewBox="0 0 20 20" width="20" height="20"><path class="kodza-choice-cards__check" d="M6 10.4l2.6 2.6L14 7.4" pathLength="1"/></svg></span>
      <span class="kodza-choice-cards__title">Pickup</span>
      <span class="kodza-choice-cards__text">Nantes, quai de la Fosse. Bring the code.</span>
      <span class="kodza-choice-cards__price">Free</span>
    </label>
  </div>
</fieldset>

<fieldset class="kodza-choice-cards">
  <legend class="kodza-choice-cards__legend">What brings you here? Pick all that apply.</legend>
  <div class="kodza-choice-cards__list">
    <label class="kodza-choice-cards__card">
      <input class="kodza-choice-cards__input" type="checkbox" name="goal" value="launch">
      <span class="kodza-choice-cards__mark" aria-hidden="true"><svg class="kodza-choice-cards__svg" viewBox="0 0 20 20" width="20" height="20"><path class="kodza-choice-cards__check" d="M6 10.4l2.6 2.6L14 7.4" pathLength="1"/></svg></span>
      <span class="kodza-choice-cards__title">A launch this week</span>
      <span class="kodza-choice-cards__text">Landing page, waitlist, the usual panic.</span>
    </label>
    <label class="kodza-choice-cards__card">
      <input class="kodza-choice-cards__input" type="checkbox" name="goal" value="client" checked>
      <span class="kodza-choice-cards__mark" aria-hidden="true"><svg class="kodza-choice-cards__svg" viewBox="0 0 20 20" width="20" height="20"><path class="kodza-choice-cards__check" d="M6 10.4l2.6 2.6L14 7.4" pathLength="1"/></svg></span>
      <span class="kodza-choice-cards__title">A client site</span>
      <span class="kodza-choice-cards__text">WordPress, and a theme you did not pick.</span>
    </label>
    <label class="kodza-choice-cards__card">
      <input class="kodza-choice-cards__input" type="checkbox" name="goal" value="looking">
      <span class="kodza-choice-cards__mark" aria-hidden="true"><svg class="kodza-choice-cards__svg" viewBox="0 0 20 20" width="20" height="20"><path class="kodza-choice-cards__check" d="M6 10.4l2.6 2.6L14 7.4" pathLength="1"/></svg></span>
      <span class="kodza-choice-cards__title">Just looking</span>
      <span class="kodza-choice-cards__text">Fair. Copy something anyway.</span>
    </label>
  </div>
</fieldset>
```

```css
/* Kodza License: free to use, client work included. Not to resell or redistribute, ported or not: https://kodza.dev/docs/#print-license */
/* Kodza — Choice Cards
   Options worth comparing before you pick (a plan, a delivery method, an onboarding goal), as
   cards on real radio buttons or real checkboxes. The picked card's ink border draws itself
   around the card, both ways from the corner, while its mark fills and the check draws in;
   the other cards stay calm. A round mark means one choice (radio), a square one means several
   (checkbox): the input type sets it. The price line is optional.
   Pure CSS: the form gets the value as usual, and the keyboard is the inputs' own.
   Everything is tuned with the --kz-choice-cards-* variables. */
/* The sweep is a typed angle so it can transition. "\3c" is the less-than sign, escaped
   because WordPress refuses one in Additional CSS */
@property --kz-choice-cards-sweep {
  syntax: "\3c angle>";
  inherits: false;
  initial-value: 0deg;
}

.kodza-choice-cards {
  --kz-choice-cards-bg: #ffffff;
  --kz-choice-cards-fg: #0a0a0a;
  --kz-choice-cards-muted: rgba(10, 10, 10, 0.58);
  --kz-choice-cards-border: rgba(10, 10, 10, 0.1);
  --kz-choice-cards-border-hover: rgba(10, 10, 10, 0.28);
  --kz-choice-cards-ink: #0a0a0a;
  --kz-choice-cards-on-ink: #ffffff;
  --kz-choice-cards-width: 720px; /* the whole group, at most */
  --kz-choice-cards-min: 190px; /* a card never gets narrower: below it, cards stack */
  --kz-choice-cards-gap: 12px;

  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: var(--kz-choice-cards-width);
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--kz-choice-cards-fg);
}

.kodza-choice-cards__legend {
  margin-bottom: 14px;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
}

.kodza-choice-cards__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--kz-choice-cards-min)), 1fr));
  gap: var(--kz-choice-cards-gap);
}

.kodza-choice-cards__card {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 20px;
  border-radius: calc(16px * var(--kz-radius-scale, 1));
  background: var(--kz-choice-cards-bg);
  box-shadow: inset 0 0 0 1px var(--kz-choice-cards-border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    box-shadow calc(0.2s * var(--kz-motion-scale, 1)) ease,
    transform calc(0.2s * var(--kz-motion-scale, 1)) cubic-bezier(0.22, 1, 0.36, 1);
}

/* The ink border: drawn from the mark's corner, both ways, and it meets at the opposite one */
.kodza-choice-cards__card::after {
  --kz-choice-cards-sweep: 0deg;

  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 1.5px solid var(--kz-choice-cards-ink);
  border-radius: inherit;
  -webkit-mask: conic-gradient(from calc(48deg - var(--kz-choice-cards-sweep)), #000 calc(2 * var(--kz-choice-cards-sweep)), transparent 0);
  mask: conic-gradient(from calc(48deg - var(--kz-choice-cards-sweep)), #000 calc(2 * var(--kz-choice-cards-sweep)), transparent 0);
  pointer-events: none;
  transition: --kz-choice-cards-sweep calc(0.45s * var(--kz-motion-scale, 1)) cubic-bezier(0.65, 0, 0.35, 1);
}

.kodza-choice-cards__card:has(.kodza-choice-cards__input:checked)::after {
  --kz-choice-cards-sweep: 180deg;

  transition-duration: calc(0.6s * var(--kz-motion-scale, 1));
}

/* The real input covers its card: a click anywhere picks it */
.kodza-choice-cards__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

/* The mark: an empty ring at rest, ink grows from its centre and the check draws in */
.kodza-choice-cards__mark {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--kz-choice-cards-border-hover);
  pointer-events: none;
}

.kodza-choice-cards__card:has([type="checkbox"]) .kodza-choice-cards__mark {
  border-radius: calc(6px * var(--kz-radius-scale, 1));
}

.kodza-choice-cards__mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--kz-choice-cards-ink);
  transform: scale(0);
  transition: transform calc(0.3s * var(--kz-motion-scale, 1)) cubic-bezier(0.22, 1, 0.36, 1);
}

.kodza-choice-cards__svg {
  position: relative;
  display: block;
  overflow: visible;
}

.kodza-choice-cards__check {
  fill: none;
  stroke: var(--kz-choice-cards-on-ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset calc(0.2s * var(--kz-motion-scale, 1)) cubic-bezier(0.65, 0, 0.35, 1);
}

.kodza-choice-cards__card:has(.kodza-choice-cards__input:checked) .kodza-choice-cards__mark::before {
  transform: scale(1);
}

.kodza-choice-cards__card:has(.kodza-choice-cards__input:checked) .kodza-choice-cards__check {
  stroke-dashoffset: 0;
  transition-duration: calc(0.32s * var(--kz-motion-scale, 1));
  transition-delay: calc(0.12s * var(--kz-motion-scale, 1));
}

.kodza-choice-cards__title {
  padding-right: 32px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.kodza-choice-cards__text {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--kz-choice-cards-muted);
  text-wrap: pretty;
}

/* Pushed to the bottom: prices line up across a row of cards */
.kodza-choice-cards__price {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--kz-font-label, inherit);
  font-size: var(--kz-font-label-size, 14px);
  font-weight: var(--kz-font-label-weight, 600);
  line-height: var(--kz-font-label-leading, 1.3);
  letter-spacing: var(--kz-font-label-tracking, inherit);
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
  .kodza-choice-cards__card:hover {
    box-shadow: inset 0 0 0 1px var(--kz-choice-cards-border-hover);
  }
}

.kodza-choice-cards__card:active {
  transform: scale(0.99);
}

.kodza-choice-cards__card:has(.kodza-choice-cards__input:focus-visible) {
  outline: 2px solid var(--kz-choice-cards-fg);
  outline-offset: 3px;
}

.kodza-choice-cards__card:has(.kodza-choice-cards__input:disabled) {
  cursor: not-allowed;
  opacity: 0.45;
}

.kodza-choice-cards__card:has(.kodza-choice-cards__input:disabled):active {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .kodza-choice-cards__card,
  .kodza-choice-cards__card::after,
  .kodza-choice-cards__mark::before,
  .kodza-choice-cards__check {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* Theming example — on a dark background:
.dark-section .kodza-choice-cards {
  --kz-choice-cards-bg: #161616;
  --kz-choice-cards-fg: #f2f2f0;
  --kz-choice-cards-muted: rgba(242, 242, 240, 0.62);
  --kz-choice-cards-border: rgba(255, 255, 255, 0.12);
  --kz-choice-cards-border-hover: rgba(255, 255, 255, 0.3);
  --kz-choice-cards-ink: #f2f2f0;
  --kz-choice-cards-on-ink: #0a0a0a;
}
*/

/* kodza-guard 4cf61ab3aafb — generated by Kodza, do not edit.
   Theme guard: keeps a site's own CSS (WordPress themes, Bootstrap, CSS resets…) off this
   component. :not(#_) is always true and weighs as much as an id, so these lines win over
   theme rules made of classes and tags. Customise the component through its --kz-* variables. */

/* What the browser gives, where the component sets it only in some states: at the lowest weight, so its own rules below put it back */

:where(.kodza-choice-cards__card):not(#_) {
  outline: revert;
  outline-offset: revert;
}

/* What the browser gives, on everything the component leaves to it */

.kodza-choice-cards:not(#_) {
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  position: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-height: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-choice-cards__legend:not(#_) {
  border: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  margin-top: revert;
  margin-right: revert;
  margin-left: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-style: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-choice-cards__list:not(#_),
.kodza-choice-cards__mark:not(#_),
.kodza-choice-cards__check:not(#_),
.kodza-choice-cards__title:not(#_),
.kodza-choice-cards__text:not(#_),
.kodza-choice-cards__price:not(#_) {
  box-sizing: revert;
}

.kodza-choice-cards__card:not(#_) {
  border: revert;
  text-decoration: revert;
  list-style: revert;
  float: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-choice-cards__input:not(#_) {
  border: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
  white-space: revert;
  min-height: revert;
}

.kodza-choice-cards__svg:not(#_) {
  border: revert;
  margin: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-choice-cards__legend:not(#_):where(:not([hidden])),
.kodza-choice-cards__input:not(#_):where(:not([hidden])) {
  display: revert;
}

.kodza-choice-cards__legend:not(#_):where([hidden]),
.kodza-choice-cards__input:not(#_):where([hidden]) {
  display: none;
}

.kodza-choice-cards__input:not(#_)::after,
.kodza-choice-cards__mark:not(#_)::before {
  box-sizing: revert;
}

/* The component's own rules, one step stronger: real buttons and fields, what it sets on tags themes style (links, lists, headings, images…), and the root width (a theme may narrow it, never widen it) */

.kodza-choice-cards:not(#_) {
  display: block;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  color: var(--kz-choice-cards-fg);
}

.kodza-choice-cards:not(#_) {
  width: min(100%, var(--kz-choice-cards-width));
}

.kodza-choice-cards__legend:not(#_) {
  margin-bottom: 14px;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
}

.kodza-choice-cards__card:not(#_) {
  position: relative;
  display: flex;
  box-sizing: border-box;
  margin: 0;
  padding: 20px;
  border-radius: calc(16px * var(--kz-radius-scale, 1));
  background: var(--kz-choice-cards-bg);
  box-shadow: inset 0 0 0 1px var(--kz-choice-cards-border);
  transition: box-shadow calc(0.2s * var(--kz-motion-scale, 1)) ease,
    transform calc(0.2s * var(--kz-motion-scale, 1)) cubic-bezier(0.22, 1, 0.36, 1);
}

.kodza-choice-cards__input:not(#_) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.kodza-choice-cards__svg:not(#_) {
  position: relative;
  display: block;
}

@media (hover: hover) {
  .kodza-choice-cards__card:hover:not(#_) {
    box-shadow: inset 0 0 0 1px var(--kz-choice-cards-border-hover);
  }
}

.kodza-choice-cards__card:has(.kodza-choice-cards__input:focus-visible):not(#_) {
  outline: 2px solid var(--kz-choice-cards-fg);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .kodza-choice-cards__card:not(#_) {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
```

Free to use, from Kodza (https://kodza.dev).
