/* JBD dāvanu karte – vienots dizains (lapa, konts, druka). Izmēri relatīvi pret kartes platumu (cqw). */
.jbd-card { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 1.4 / 1; overflow: hidden; background: #f5f4f0 var(--jbd-card-bg, none) center / cover no-repeat; color: #2b2b2b; font-family: 'Figtree', 'Helvetica Neue', Arial, sans-serif; border: 1px solid #e2e0da; box-sizing: border-box; }
.jbd-card * { box-sizing: border-box; }
.jbd-card__inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 7.5cqw 6.5cqw 5cqw; text-align: center; }
.jbd-card p { margin: 0; }
.jbd-card__brand { font-size: 2.1cqw; letter-spacing: .32em; text-transform: uppercase; font-weight: 400; }
.jbd-card__center { display: flex; flex-direction: column; align-items: center; }
.jbd-card__title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; font-size: 8.6cqw; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.jbd-card__amount { margin-top: .8cqw !important; font-weight: 500; font-size: 7.2cqw; line-height: 1; letter-spacing: -.005em; }
.jbd-card__desc { margin-top: 2cqw !important; max-width: 88%; font-size: 1.8cqw; line-height: 1.45; }
.jbd-card__for { margin-top: 1.8cqw !important; font-size: 1.7cqw; letter-spacing: .16em; text-transform: uppercase; }
.jbd-card__msg { margin-top: .6cqw !important; max-width: 80%; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 400; font-size: 2.7cqw; line-height: 1.2; }
.jbd-card__for[hidden], .jbd-card__msg[hidden] { display: none; }
.jbd-card__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 3cqw; text-align: left; }
.jbd-card__valid, .jbd-card__num { font-weight: 500; font-size: 1.85cqw; text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; white-space: nowrap; }
.jbd-card__id { display: flex; align-items: flex-end; gap: 2cqw; }
.jbd-card__qr { width: 11.5cqw; flex: none; background: #fff; padding: .5cqw; line-height: 0; }
.jbd-card__qr svg, .jbd-card__qr img { display: block; width: 100%; height: auto; }
.jbd-card__qr--ph { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1px dashed #a8a6a1; background: rgba(255,255,255,.6); font-size: 1.6cqw; letter-spacing: .1em; line-height: 1; color: #777; }
.jbd-card__inner:not(:has(.jbd-card__foot))::after { content: ""; height: 2.6cqw; } /* bez apakšējās rindas saturs paliek vertikāli centrā */
