# T-shirt print picker

> A T-shirt that switches print at once: Breton stripes, polka dots, gingham or tartan, each with its own swatch.

- Category: [Radio buttons](https://library.aimran.es/components/radios)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-rd-shirt-print
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

This radio group dresses an SVG T-shirt in the print you choose. Four round fabric swatches, Breton stripes, polka dots, gingham and tartan, sit under the garment, and each one swaps the shirt fill to a matching SVG pattern with a small springy turn. It suits clothing shops, print-on-demand tools, uniform builders and fashion lookbooks.

The main color drives the stripes and tartan bands, the secondary color the dots and checks. Add a print by defining another SVG pattern with a prefixed id and a swatch made of CSS gradients that matches it.

## Code

### HTML

```html
<fieldset class="uvq04-tee"><legend>Print</legend><div class="pv" aria-hidden="true"><svg viewBox="0 0 100 92"><defs><pattern id="uvq04-tee-st" width="8" height="8" patternUnits="userSpaceOnUse"><rect class="w" width="8" height="8"/><rect class="a" width="8" height="3.4"/></pattern><pattern id="uvq04-tee-dt" width="10" height="10" patternUnits="userSpaceOnUse"><rect class="r" width="10" height="10"/><circle class="w" cx="2.5" cy="2.5" r="1.7"/><circle class="w" cx="7.5" cy="7.5" r="1.7"/></pattern><pattern id="uvq04-tee-gn" width="10" height="10" patternUnits="userSpaceOnUse"><rect class="w" width="10" height="10"/><rect class="r h" width="10" height="5"/><rect class="r h" width="5" height="10"/></pattern><pattern id="uvq04-tee-tt" width="16" height="16" patternUnits="userSpaceOnUse"><rect class="r" width="16" height="16"/><rect class="a h" y="4" width="16" height="7"/><rect class="a h" x="4" width="7" height="16"/><rect class="y" y="13" width="16" height="1"/><rect class="y" x="13" width="1" height="16"/></pattern></defs><path class="sh" d="M34 6C39 12 61 12 66 6L88 15L97 36L81 42L79 87H21L19 42L3 36L12 15Z"/><path class="ln" d="M34 6C39 14 61 14 66 6M19 42L21 17M81 42L79 17"/></svg></div><div class="op"><label><input type="radio" name="uvq04-tee" checked><span class="sw st" aria-hidden="true"></span><span class="nm">Stripes</span></label><label><input type="radio" name="uvq04-tee"><span class="sw dt" aria-hidden="true"></span><span class="nm">Polka dots</span></label><label><input type="radio" name="uvq04-tee"><span class="sw gn" aria-hidden="true"></span><span class="nm">Gingham</span></label><label><input type="radio" name="uvq04-tee"><span class="sw tt" aria-hidden="true"></span><span class="nm">Tartan</span></label></div></fieldset>
```

### CSS

```css
.uvq04-tee {
  --c1: #22355e;
  --c2: #b8322f;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq04-tee {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  text-align: center;
}

.uvq04-tee legend {
  padding: 0;
  margin: 0 0 .8em;
  font-weight: 700;
  width: 100%;
}

.uvq04-tee .pv {
  width: 11em;
  margin: 0 auto .7em;
  filter: drop-shadow(0 .6em .7em rgba(0,0,0,.25));
}

.uvq04-tee .pv svg {
  display: block;
  width: 100%;
}

.uvq04-tee .w {
  fill: #faf7f0;
}

.uvq04-tee .a {
  fill: var(--c1);
}

.uvq04-tee .r {
  fill: var(--c2);
}

.uvq04-tee .y {
  fill: #f0c94e;
  opacity: .9;
}

.uvq04-tee .h {
  opacity: .5;
}

.uvq04-tee .sh {
  fill: url(#uvq04-tee-st);
  stroke: color-mix(in srgb,var(--fg) 30%,transparent);
  stroke-width: 1;
  stroke-linejoin: round;
}

.uvq04-tee .ln {
  fill: none;
  stroke: rgba(0,0,0,.28);
  stroke-width: .8;
  stroke-dasharray: 2 1.5;
}

.uvq04-tee .op {
  display: flex;
  justify-content: center;
  gap: .9em;
}

.uvq04-tee label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45em;
  cursor: pointer;
}

.uvq04-tee input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.uvq04-tee .sw {
  display: block;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14),0 .2em .4em rgba(0,0,0,.2);
  transition: transform calc(0.4s / var(--k)) cubic-bezier(.34,1.56,.64,1),box-shadow calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq04-tee .st {
  background: repeating-linear-gradient(var(--c1) 0 .26em,#faf7f0 .26em .6em);
}

.uvq04-tee .dt {
  background: radial-gradient(circle,#faf7f0 0 .13em,transparent .15em) 0 0/.6em .6em,radial-gradient(circle,#faf7f0 0 .13em,transparent .15em) .3em .3em/.6em .6em,var(--c2);
}

.uvq04-tee .gn {
  background: linear-gradient(90deg,color-mix(in srgb,var(--c2) 50%,transparent) 50%,transparent 0) 0 0/.6em .6em,linear-gradient(color-mix(in srgb,var(--c2) 50%,transparent) 50%,transparent 0) 0 0/.6em .6em,#faf7f0;
}

.uvq04-tee .tt {
  background: linear-gradient(90deg,transparent .78em,#f0c94e 0 .84em,transparent 0) 0 0/1em 1em,linear-gradient(transparent .78em,#f0c94e 0 .84em,transparent 0) 0 0/1em 1em,linear-gradient(90deg,transparent .25em,color-mix(in srgb,var(--c1) 50%,transparent) 0 .68em,transparent 0) 0 0/1em 1em,linear-gradient(transparent .25em,color-mix(in srgb,var(--c1) 50%,transparent) 0 .68em,transparent 0) 0 0/1em 1em,var(--c2);
}

.uvq04-tee .nm {
  font-size: .72em;
  font-weight: 600;
  color: color-mix(in srgb,var(--fg) 60%,transparent);
}

.uvq04-tee label:hover .sw {
  transform: translateY(-.15em);
}

.uvq04-tee label:active .sw {
  transform: scale(.92);
}

.uvq04-tee input:checked + .sw {
  transform: scale(1.12);
  box-shadow: 0 0 0 .16em var(--bg),0 0 0 .3em var(--fg),0 .4em .7em -.2em rgba(0,0,0,.35);
}

.uvq04-tee input:checked ~ .nm {
  color: var(--fg);
  font-weight: 800;
}

.uvq04-tee input:focus-visible + .sw {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  outline-offset: .45em;
}

.uvq04-tee:has(label:nth-of-type(1) input:checked) .sh {
  fill: url(#uvq04-tee-st);
}

.uvq04-tee:has(label:nth-of-type(1) input:checked) .pv svg {
  animation: uvq04-tee1 calc(0.55s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq04-tee:has(label:nth-of-type(2) input:checked) .sh {
  fill: url(#uvq04-tee-dt);
}

.uvq04-tee:has(label:nth-of-type(2) input:checked) .pv svg {
  animation: uvq04-tee2 calc(0.55s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq04-tee:has(label:nth-of-type(3) input:checked) .sh {
  fill: url(#uvq04-tee-gn);
}

.uvq04-tee:has(label:nth-of-type(3) input:checked) .pv svg {
  animation: uvq04-tee3 calc(0.55s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq04-tee:has(label:nth-of-type(4) input:checked) .sh {
  fill: url(#uvq04-tee-tt);
}

.uvq04-tee:has(label:nth-of-type(4) input:checked) .pv svg {
  animation: uvq04-tee4 calc(0.55s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

@keyframes uvq04-tee1 {
  from {
    transform: scale(.92) rotate(-4deg);
  }
}

@keyframes uvq04-tee2 {
  from {
    transform: scale(.92) rotate(-4deg);
  }
}

@keyframes uvq04-tee3 {
  from {
    transform: scale(.92) rotate(-4deg);
  }
}

@keyframes uvq04-tee4 {
  from {
    transform: scale(.92) rotate(-4deg);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq04-tee,.uvq04-tee *,.uvq04-tee *::before,.uvq04-tee *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
```

### React

```tsx
import type { CSSProperties } from "react";

const css = `
.uvq04-tee {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  text-align: center;
}

.uvq04-tee legend {
  padding: 0;
  margin: 0 0 .8em;
  font-weight: 700;
  width: 100%;
}

.uvq04-tee .pv {
  width: 11em;
  margin: 0 auto .7em;
  filter: drop-shadow(0 .6em .7em rgba(0,0,0,.25));
}

.uvq04-tee .pv svg {
  display: block;
  width: 100%;
}

.uvq04-tee .w {
  fill: #faf7f0;
}

.uvq04-tee .a {
  fill: var(--c1);
}

.uvq04-tee .r {
  fill: var(--c2);
}

.uvq04-tee .y {
  fill: #f0c94e;
  opacity: .9;
}

.uvq04-tee .h {
  opacity: .5;
}

.uvq04-tee .sh {
  fill: url(#uvq04-tee-st);
  stroke: color-mix(in srgb,var(--fg) 30%,transparent);
  stroke-width: 1;
  stroke-linejoin: round;
}

.uvq04-tee .ln {
  fill: none;
  stroke: rgba(0,0,0,.28);
  stroke-width: .8;
  stroke-dasharray: 2 1.5;
}

.uvq04-tee .op {
  display: flex;
  justify-content: center;
  gap: .9em;
}

.uvq04-tee label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45em;
  cursor: pointer;
}

.uvq04-tee input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.uvq04-tee .sw {
  display: block;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14),0 .2em .4em rgba(0,0,0,.2);
  transition: transform calc(0.4s / var(--k)) cubic-bezier(.34,1.56,.64,1),box-shadow calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq04-tee .st {
  background: repeating-linear-gradient(var(--c1) 0 .26em,#faf7f0 .26em .6em);
}

.uvq04-tee .dt {
  background: radial-gradient(circle,#faf7f0 0 .13em,transparent .15em) 0 0/.6em .6em,radial-gradient(circle,#faf7f0 0 .13em,transparent .15em) .3em .3em/.6em .6em,var(--c2);
}

.uvq04-tee .gn {
  background: linear-gradient(90deg,color-mix(in srgb,var(--c2) 50%,transparent) 50%,transparent 0) 0 0/.6em .6em,linear-gradient(color-mix(in srgb,var(--c2) 50%,transparent) 50%,transparent 0) 0 0/.6em .6em,#faf7f0;
}

.uvq04-tee .tt {
  background: linear-gradient(90deg,transparent .78em,#f0c94e 0 .84em,transparent 0) 0 0/1em 1em,linear-gradient(transparent .78em,#f0c94e 0 .84em,transparent 0) 0 0/1em 1em,linear-gradient(90deg,transparent .25em,color-mix(in srgb,var(--c1) 50%,transparent) 0 .68em,transparent 0) 0 0/1em 1em,linear-gradient(transparent .25em,color-mix(in srgb,var(--c1) 50%,transparent) 0 .68em,transparent 0) 0 0/1em 1em,var(--c2);
}

.uvq04-tee .nm {
  font-size: .72em;
  font-weight: 600;
  color: color-mix(in srgb,var(--fg) 60%,transparent);
}

.uvq04-tee label:hover .sw {
  transform: translateY(-.15em);
}

.uvq04-tee label:active .sw {
  transform: scale(.92);
}

.uvq04-tee input:checked + .sw {
  transform: scale(1.12);
  box-shadow: 0 0 0 .16em var(--bg),0 0 0 .3em var(--fg),0 .4em .7em -.2em rgba(0,0,0,.35);
}

.uvq04-tee input:checked ~ .nm {
  color: var(--fg);
  font-weight: 800;
}

.uvq04-tee input:focus-visible + .sw {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  outline-offset: .45em;
}

.uvq04-tee:has(label:nth-of-type(1) input:checked) .sh {
  fill: url(#uvq04-tee-st);
}

.uvq04-tee:has(label:nth-of-type(1) input:checked) .pv svg {
  animation: uvq04-tee1 calc(0.55s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq04-tee:has(label:nth-of-type(2) input:checked) .sh {
  fill: url(#uvq04-tee-dt);
}

.uvq04-tee:has(label:nth-of-type(2) input:checked) .pv svg {
  animation: uvq04-tee2 calc(0.55s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq04-tee:has(label:nth-of-type(3) input:checked) .sh {
  fill: url(#uvq04-tee-gn);
}

.uvq04-tee:has(label:nth-of-type(3) input:checked) .pv svg {
  animation: uvq04-tee3 calc(0.55s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq04-tee:has(label:nth-of-type(4) input:checked) .sh {
  fill: url(#uvq04-tee-tt);
}

.uvq04-tee:has(label:nth-of-type(4) input:checked) .pv svg {
  animation: uvq04-tee4 calc(0.55s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

@keyframes uvq04-tee1 {
  from {
    transform: scale(.92) rotate(-4deg);
  }
}

@keyframes uvq04-tee2 {
  from {
    transform: scale(.92) rotate(-4deg);
  }
}

@keyframes uvq04-tee3 {
  from {
    transform: scale(.92) rotate(-4deg);
  }
}

@keyframes uvq04-tee4 {
  from {
    transform: scale(.92) rotate(-4deg);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq04-tee,.uvq04-tee *,.uvq04-tee *::before,.uvq04-tee *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

export default function RdShirtPrint() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#22355e",
          "--c2": "#b8322f",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <fieldset className="uvq04-tee"><legend>Print</legend><div className="pv" aria-hidden="true"><svg viewBox="0 0 100 92"><defs><pattern id="uvq04-tee-st" width="8" height="8" patternUnits="userSpaceOnUse"><rect className="w" width="8" height="8" /><rect className="a" width="8" height="3.4" /></pattern><pattern id="uvq04-tee-dt" width="10" height="10" patternUnits="userSpaceOnUse"><rect className="r" width="10" height="10" /><circle className="w" cx="2.5" cy="2.5" r="1.7" /><circle className="w" cx="7.5" cy="7.5" r="1.7" /></pattern><pattern id="uvq04-tee-gn" width="10" height="10" patternUnits="userSpaceOnUse"><rect className="w" width="10" height="10" /><rect className="r h" width="10" height="5" /><rect className="r h" width="5" height="10" /></pattern><pattern id="uvq04-tee-tt" width="16" height="16" patternUnits="userSpaceOnUse"><rect className="r" width="16" height="16" /><rect className="a h" y="4" width="16" height="7" /><rect className="a h" x="4" width="7" height="16" /><rect className="y" y="13" width="16" height="1" /><rect className="y" x="13" width="1" height="16" /></pattern></defs><path className="sh" d="M34 6C39 12 61 12 66 6L88 15L97 36L81 42L79 87H21L19 42L3 36L12 15Z" /><path className="ln" d="M34 6C39 14 61 14 66 6M19 42L21 17M81 42L79 17" /></svg></div><div className="op"><label><input type="radio" name="uvq04-tee" checked={true} /><span className="sw st" aria-hidden="true"></span><span className="nm">Stripes</span></label><label><input type="radio" name="uvq04-tee" /><span className="sw dt" aria-hidden="true"></span><span className="nm">Polka dots</span></label><label><input type="radio" name="uvq04-tee" /><span className="sw gn" aria-hidden="true"></span><span className="nm">Gingham</span></label><label><input type="radio" name="uvq04-tee" /><span className="sw tt" aria-hidden="true"></span><span className="nm">Tartan</span></label></div></fieldset>
      </div>
    </>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “T-shirt print picker” block (Radio buttons) from AIMRAN Library to my project.

## What it is
A T-shirt that switches print at once: Breton stripes, polka dots, gingham or tartan, each with its own swatch.

## Chosen settings
- Main color: #22355e
- Secondary color: #b8322f
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Estampado"

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with plain HTML and CSS (the reference wraps it in a React component with its CSS). If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
import type { CSSProperties } from "react";

const css = `
.uvq04-tee {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  text-align: center;
}

.uvq04-tee legend {
  padding: 0;
  margin: 0 0 .8em;
  font-weight: 700;
  width: 100%;
}

.uvq04-tee .pv {
  width: 11em;
  margin: 0 auto .7em;
  filter: drop-shadow(0 .6em .7em rgba(0,0,0,.25));
}

.uvq04-tee .pv svg {
  display: block;
  width: 100%;
}

.uvq04-tee .w {
  fill: #faf7f0;
}

.uvq04-tee .a {
  fill: var(--c1);
}

.uvq04-tee .r {
  fill: var(--c2);
}

.uvq04-tee .y {
  fill: #f0c94e;
  opacity: .9;
}

.uvq04-tee .h {
  opacity: .5;
}

.uvq04-tee .sh {
  fill: url(#uvq04-tee-st);
  stroke: color-mix(in srgb,var(--fg) 30%,transparent);
  stroke-width: 1;
  stroke-linejoin: round;
}

.uvq04-tee .ln {
  fill: none;
  stroke: rgba(0,0,0,.28);
  stroke-width: .8;
  stroke-dasharray: 2 1.5;
}

.uvq04-tee .op {
  display: flex;
  justify-content: center;
  gap: .9em;
}

.uvq04-tee label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45em;
  cursor: pointer;
}

.uvq04-tee input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.uvq04-tee .sw {
  display: block;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14),0 .2em .4em rgba(0,0,0,.2);
  transition: transform calc(0.4s / var(--k)) cubic-bezier(.34,1.56,.64,1),box-shadow calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq04-tee .st {
  background: repeating-linear-gradient(var(--c1) 0 .26em,#faf7f0 .26em .6em);
}

.uvq04-tee .dt {
  background: radial-gradient(circle,#faf7f0 0 .13em,transparent .15em) 0 0/.6em .6em,radial-gradient(circle,#faf7f0 0 .13em,transparent .15em) .3em .3em/.6em .6em,var(--c2);
}

.uvq04-tee .gn {
  background: linear-gradient(90deg,color-mix(in srgb,var(--c2) 50%,transparent) 50%,transparent 0) 0 0/.6em .6em,linear-gradient(color-mix(in srgb,var(--c2) 50%,transparent) 50%,transparent 0) 0 0/.6em .6em,#faf7f0;
}

.uvq04-tee .tt {
  background: linear-gradient(90deg,transparent .78em,#f0c94e 0 .84em,transparent 0) 0 0/1em 1em,linear-gradient(transparent .78em,#f0c94e 0 .84em,transparent 0) 0 0/1em 1em,linear-gradient(90deg,transparent .25em,color-mix(in srgb,var(--c1) 50%,transparent) 0 .68em,transparent 0) 0 0/1em 1em,linear-gradient(transparent .25em,color-mix(in srgb,var(--c1) 50%,transparent) 0 .68em,transparent 0) 0 0/1em 1em,var(--c2);
}

.uvq04-tee .nm {
  font-size: .72em;
  font-weight: 600;
  color: color-mix(in srgb,var(--fg) 60%,transparent);
}

.uvq04-tee label:hover .sw {
  transform: translateY(-.15em);
}

.uvq04-tee label:active .sw {
  transform: scale(.92);
}

.uvq04-tee input:checked + .sw {
  transform: scale(1.12);
  box-shadow: 0 0 0 .16em var(--bg),0 0 0 .3em var(--fg),0 .4em .7em -.2em rgba(0,0,0,.35);
}

.uvq04-tee input:checked ~ .nm {
  color: var(--fg);
  font-weight: 800;
}

.uvq04-tee input:focus-visible + .sw {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  outline-offset: .45em;
}

.uvq04-tee:has(label:nth-of-type(1) input:checked) .sh {
  fill: url(#uvq04-tee-st);
}

.uvq04-tee:has(label:nth-of-type(1) input:checked) .pv svg {
  animation: uvq04-tee1 calc(0.55s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq04-tee:has(label:nth-of-type(2) input:checked) .sh {
  fill: url(#uvq04-tee-dt);
}

.uvq04-tee:has(label:nth-of-type(2) input:checked) .pv svg {
  animation: uvq04-tee2 calc(0.55s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq04-tee:has(label:nth-of-type(3) input:checked) .sh {
  fill: url(#uvq04-tee-gn);
}

.uvq04-tee:has(label:nth-of-type(3) input:checked) .pv svg {
  animation: uvq04-tee3 calc(0.55s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq04-tee:has(label:nth-of-type(4) input:checked) .sh {
  fill: url(#uvq04-tee-tt);
}

.uvq04-tee:has(label:nth-of-type(4) input:checked) .pv svg {
  animation: uvq04-tee4 calc(0.55s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

@keyframes uvq04-tee1 {
  from {
    transform: scale(.92) rotate(-4deg);
  }
}

@keyframes uvq04-tee2 {
  from {
    transform: scale(.92) rotate(-4deg);
  }
}

@keyframes uvq04-tee3 {
  from {
    transform: scale(.92) rotate(-4deg);
  }
}

@keyframes uvq04-tee4 {
  from {
    transform: scale(.92) rotate(-4deg);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq04-tee,.uvq04-tee *,.uvq04-tee *::before,.uvq04-tee *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

export default function RdShirtPrint() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#22355e",
          "--c2": "#b8322f",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <fieldset className="uvq04-tee"><legend>Print</legend><div className="pv" aria-hidden="true"><svg viewBox="0 0 100 92"><defs><pattern id="uvq04-tee-st" width="8" height="8" patternUnits="userSpaceOnUse"><rect className="w" width="8" height="8" /><rect className="a" width="8" height="3.4" /></pattern><pattern id="uvq04-tee-dt" width="10" height="10" patternUnits="userSpaceOnUse"><rect className="r" width="10" height="10" /><circle className="w" cx="2.5" cy="2.5" r="1.7" /><circle className="w" cx="7.5" cy="7.5" r="1.7" /></pattern><pattern id="uvq04-tee-gn" width="10" height="10" patternUnits="userSpaceOnUse"><rect className="w" width="10" height="10" /><rect className="r h" width="10" height="5" /><rect className="r h" width="5" height="10" /></pattern><pattern id="uvq04-tee-tt" width="16" height="16" patternUnits="userSpaceOnUse"><rect className="r" width="16" height="16" /><rect className="a h" y="4" width="16" height="7" /><rect className="a h" x="4" width="7" height="16" /><rect className="y" y="13" width="16" height="1" /><rect className="y" x="13" width="1" height="16" /></pattern></defs><path className="sh" d="M34 6C39 12 61 12 66 6L88 15L97 36L81 42L79 87H21L19 42L3 36L12 15Z" /><path className="ln" d="M34 6C39 14 61 14 66 6M19 42L21 17M81 42L79 17" /></svg></div><div className="op"><label><input type="radio" name="uvq04-tee" checked={true} /><span className="sw st" aria-hidden="true"></span><span className="nm">Stripes</span></label><label><input type="radio" name="uvq04-tee" /><span className="sw dt" aria-hidden="true"></span><span className="nm">Polka dots</span></label><label><input type="radio" name="uvq04-tee" /><span className="sw gn" aria-hidden="true"></span><span className="nm">Gingham</span></label><label><input type="radio" name="uvq04-tee" /><span className="sw tt" aria-hidden="true"></span><span className="nm">Tartan</span></label></div></fieldset>
      </div>
    </>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
