/* Kopnota marketing site · receipt gallery and amount in words */
/* ---------- Receipts ---------- */
.rc-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 2vw, 22px); align-items: start; }
.rc-card { margin: 0; grid-column: span 2; display: grid; gap: 10px; }
.rc-card.rc-wide { grid-column: span 3; }
.rc-card.rc-tall { grid-row: span 2; }
.rc-card img { width: 100%; height: auto; border-radius: 8px; background: #fff; box-shadow: var(--shadow); transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; }
.rc-card:hover img { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.rc-card figcaption { display: grid; gap: 2px; font-size: .9rem; }
.rc-card figcaption span { color: var(--muted); font-size: .85rem; }
.rc-gallery .rc-card:nth-child(1) { grid-column: 1 / span 4; }
.rc-gallery .rc-card:nth-child(2) { grid-column: 5 / span 2; grid-row: 1 / span 2; }
.rc-gallery .rc-card:nth-child(3) { grid-column: 1 / span 2; }
.rc-gallery .rc-card:nth-child(4) { grid-column: 3 / span 2; }
.rc-gallery .rc-card:nth-child(5) { grid-column: 1 / span 6; max-width: 820px; justify-self: center; width: 100%; }
.words-row { margin-top: clamp(56px, 8vw, 96px); }
.words-controls { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-bottom: 14px; }
.words-controls input, .words-controls select { width: 100%; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); background: var(--sw); cursor: pointer; box-shadow: 0 0 0 1px var(--line-strong); transition: transform .2s, box-shadow .2s; }
.swatches button:hover { transform: scale(1.12); }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--sw); transform: scale(1.12); }
.finish-seg { margin-bottom: 16px; }
.live-receipt { --rc: #1C2C8C; --rc2: #3B5BDB; background: #fff; color: #10173A; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; transition: --rc .4s; }
.lr-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; color: #fff; background: var(--rc); transition: background .4s; }
.live-receipt[data-finish="gradient"] .lr-head { background: linear-gradient(120deg, var(--rc), var(--rc2)); }
.live-receipt[data-finish="outline"] .lr-head { background: #fff; color: var(--rc); border-bottom: 3px solid var(--rc); }
.lr-head b { font: 800 1.2rem/1 var(--font-display); letter-spacing: .18em; }
.lr-head code { background: rgba(255, 255, 255, .16); border: 0; color: inherit; }
.live-receipt[data-finish="outline"] .lr-head code { background: color-mix(in srgb, var(--rc) 10%, transparent); }
.lr-body { padding: 18px 20px 20px; display: grid; gap: 10px; }
.lr-amt { font: 800 clamp(1.5rem, 4vw, 2rem)/1.1 var(--font-display); color: var(--rc); font-variant-numeric: tabular-nums; transition: color .4s; }
.lr-words { display: flex; gap: 10px; align-items: baseline; font-style: italic; color: #2A3358; min-height: 1.6em; }
.lr-lang { flex: none; font: 700 .68rem/1 var(--font-body); font-style: normal; letter-spacing: .08em; padding: 4px 6px; border-radius: 6px; background: color-mix(in srgb, var(--rc) 12%, transparent); color: var(--rc); }
.lr-foot { display: flex; justify-content: space-between; align-items: end; gap: 14px; padding-top: 12px; border-top: 1px dashed #D5DAEC; }
.lr-foot > div:first-child { display: grid; font-size: .86rem; }
.lr-foot small { color: #6B7398; font-size: .72rem; margin-top: 4px; }
.lr-qr { flex: none; width: 76px; height: 76px; display: grid; grid-template-columns: repeat(21, 1fr); }
.lr-qr i { background: #10173A; }
.lr-qr i.o { background: transparent; }
@media (max-width: 900px) {
  .rc-gallery { grid-template-columns: repeat(2, 1fr); }
  .rc-gallery .rc-card:nth-child(n) { grid-column: auto; grid-row: auto; max-width: none; }
  .rc-gallery .rc-card:nth-child(1), .rc-gallery .rc-card:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .rc-gallery { grid-template-columns: 1fr; }
  .words-controls { grid-template-columns: 1fr; }
}
