/* Lux Skin — dokument vouchera (podgląd, kreator, strona druku / PDF). Jedno źródło prawdy dla wyglądu. */

/* ---------- Dokument: wszystkie rozmiary w cqw (względem szerokości bonu) ---------- */
.lsv {
	--lsv-ratio: 210 / 148;
	--lsv-acc: 191, 145, 24;
	--lsv-from: #f9f5ee;
	--lsv-to: #ebe1d3;
	--lsv-ink: #4b1738;
	--k: 1;
	--bx: 8cqw; --by: 10%; --bw: 28cqw; --bt: none; --bi: center;
	--tx: 10cqw; --ty: 34%; --tw: 80cqw; --th: 50%; --tal: center; --ta: center; --tj: center;
	--fl: 8cqw; --fr: 8cqw; --fb: 6%; --fj: center;
	--fi: 4cqw;

	position: relative;
	width: 100%;
	aspect-ratio: var(--lsv-ratio);
	container-type: inline-size;
	overflow: hidden;
	isolation: isolate;
	box-sizing: border-box;
	background: linear-gradient(135deg, var(--lsv-from), var(--lsv-to));
	color: var(--lsv-ink);
	font-family: Georgia, "Times New Roman", serif;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}
.lsv *, .lsv *::before, .lsv *::after { box-sizing: border-box; }

.lsv-texture {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; opacity: .42; mix-blend-mode: multiply;
	z-index: -1; pointer-events: none; user-select: none;
}
.lsv.is-dark .lsv-texture { opacity: .16; mix-blend-mode: soft-light; }

.lsv-frame { position: absolute; inset: var(--fi); border: 1px solid rgba(var(--lsv-acc), .7); pointer-events: none; }
.lsv-frame i { position: absolute; inset: 1.1cqw; border: 1px solid rgba(var(--lsv-acc), .32); }
.lsv-frame i + i { display: none; }

.lsv-brand {
	position: absolute; left: var(--bx); top: var(--by); width: var(--bw); transform: var(--bt);
	display: flex; flex-direction: column; align-items: var(--bi); gap: 1.4cqw;
}
.lsv-brand img { display: block; width: 100%; height: auto; }
.lsv-brand span {
	font-family: "Helvetica Neue", Arial, sans-serif; font-size: 1.25cqw; font-weight: 600;
	letter-spacing: .2em; text-align: var(--tal); color: rgb(var(--lsv-acc)); white-space: normal;
}

.lsv-body {
	position: absolute; left: var(--tx); top: var(--ty); width: var(--tw); height: var(--th);
	display: flex; flex-direction: column; justify-content: var(--tj); align-items: var(--ta);
	text-align: var(--tal); gap: 1.5cqw; min-height: 0;
}
.lsv-occasion {
	margin: 0; font-family: "Helvetica Neue", Arial, sans-serif; font-size: calc(2.1cqw * var(--k) * var(--kf, 1));
	font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: rgb(var(--lsv-acc));
}
.lsv-title {
	margin: 0; font-weight: 400; font-size: calc(var(--tsz, 8cqw) * var(--k) * var(--kf, 1));
	line-height: 1.06; letter-spacing: -.003em; text-wrap: balance; overflow-wrap: anywhere; color: var(--lsv-ink);
}
.lsv-for { margin: 0; font-style: italic; font-size: calc(2.9cqw * var(--k) * var(--kf, 1)); color: var(--lsv-ink); opacity: .85; }
.lsv-for strong { font-weight: 600; font-style: normal; }
.lsv-value {
	margin: .6cqw 0 0; font-weight: 400; line-height: 1.1; letter-spacing: .01em;
	font-size: calc(var(--vsz, 5cqw) * var(--k) * var(--kf, 1)); color: rgb(var(--lsv-acc)); overflow-wrap: anywhere;
}
.lsv-note {
	margin: .6cqw 0 0; max-width: 72cqw; font-style: italic; font-size: calc(2.4cqw * var(--k) * var(--kf, 1));
	line-height: 1.45; opacity: .82;
}
.lsv-note::before { content: "“"; } .lsv-note::after { content: "”"; }
.lsv-body[hidden], .lsv [hidden] { display: none !important; }

.lsv-foot {
	position: absolute; left: var(--fl); right: var(--fr); bottom: var(--fb);
	display: flex; flex-wrap: wrap; justify-content: var(--fj); gap: 1cqw 3cqw;
	font-family: "Helvetica Neue", Arial, sans-serif; font-size: 1.6cqw; letter-spacing: .14em;
	text-transform: uppercase; opacity: .78;
}
.lsv-foot span + span::before { content: "·"; margin-right: 3cqw; color: rgb(var(--lsv-acc)); }

/* ---------- Formaty: proporcje zgodne z lsgift_formats() ---------- */
.fmt-dl     { --lsv-ratio: 210 / 99; --kf: .68; }
.fmt-dl .lsv-brand { width: calc(var(--bw) * .66); }
.fmt-dl .lsv-brand span { display: none; }
.fmt-dl .lsv-value { margin-top: .2cqw; }
.fmt-dl .lsv-body { gap: .8cqw; }
.fmt-dl .lsv-frame i { inset: .8cqw; }
.fmt-dl .lsv-brand { margin-top: 2cqw; }
.fmt-dl .lsv-foot { bottom: 9%; }
.fmt-a6     { --lsv-ratio: 148 / 105; }
.fmt-a5     { --lsv-ratio: 210 / 148; }
.fmt-a4     { --lsv-ratio: 297 / 210; }
.fmt-square { --lsv-ratio: 1 / 1; }
.fmt-square { --kf: .96; }

/* ---------- Tła (25) ---------- */
.tpl-pearl        { --lsv-from: #f9f5ee; --lsv-to: #ebe1d3; --lsv-ink: #4b1738; }
.tpl-champagne    { --lsv-from: #f5ead6; --lsv-to: #e3c99a; --lsv-ink: #3d1a2c; }
.tpl-ivory        { --lsv-from: #fcfaf5; --lsv-to: #f0eadc; --lsv-ink: #3f2a35; }
.tpl-opal         { --lsv-from: #eef4f7; --lsv-to: #d7e5ec; --lsv-ink: #1f3b47; }
.tpl-rose_gold    { --lsv-from: #f8e7e1; --lsv-to: #e6c3b9; --lsv-ink: #4a2430; }
.tpl-rose         { --lsv-from: #faedef; --lsv-to: #eed3d7; --lsv-ink: #4b1738; }
.tpl-botanical    { --lsv-from: #eaf0e6; --lsv-to: #cddbc6; --lsv-ink: #26392c; }
.tpl-spring       { --lsv-from: #f6f8e9; --lsv-to: #e2eac5; --lsv-ink: #34401f; }
.tpl-plum         { --lsv-from: #3f1631; --lsv-to: #200a19; --lsv-ink: #f3e6d6; }
.tpl-ruby         { --lsv-from: #5c1427; --lsv-to: #2c0913; --lsv-ink: #f5e5d3; }
.tpl-emerald      { --lsv-from: #18412f; --lsv-to: #09201a; --lsv-ink: #f1e6cf; }
.tpl-midnight     { --lsv-from: #222743; --lsv-to: #0b0e1d; --lsv-ink: #f2e6cb; }
.tpl-christmas    { --lsv-from: #f0f4f8; --lsv-to: #d3dee8; --lsv-ink: #1d3247; }
.tpl-valentine    { --lsv-from: #fbe8ed; --lsv-to: #efc5d1; --lsv-ink: #5a1a35; }
.tpl-cashmere     { --lsv-from: #f2eade; --lsv-to: #dccbb6; --lsv-ink: #3f3029; }
.tpl-porcelain    { --lsv-from: #f9fafc; --lsv-to: #e0e6ee; --lsv-ink: #242c3a; }
.tpl-silk_noir    { --lsv-from: #28262c; --lsv-to: #110f12; --lsv-ink: #f2ebdf; }
.tpl-aurora       { --lsv-from: #f9f1dd; --lsv-to: #dfc98c; --lsv-ink: #3b2a12; }
.tpl-magnolia     { --lsv-from: #fdf6f3; --lsv-to: #eedbd3; --lsv-ink: #4a2b2f; }
.tpl-eucalyptus   { --lsv-from: #e8f0eb; --lsv-to: #c7d9cd; --lsv-ink: #203a2e; }
.tpl-mocha        { --lsv-from: #4e3c34; --lsv-to: #281e1a; --lsv-ink: #f2e4d6; }
.tpl-moonstone    { --lsv-from: #e3e8ef; --lsv-to: #c4cdd9; --lsv-ink: #242f3f; }
.tpl-ceremony     { --lsv-from: #f6edd7; --lsv-to: #d8be7d; --lsv-ink: #3a2a14; }
.tpl-peony        { --lsv-from: #f9e9ef; --lsv-to: #e5c2cf; --lsv-ink: #5a2140; }

/* ---------- Kompozycje (12): pozycje pionowe w % wysokości bonu, poziome w cqw ---------- */
.layout-split .lsv-brand   { --bx: 8cqw; --by: 11%; --bw: 25cqw; --bi: flex-start; }
.layout-split .lsv-body    { --tx: 40cqw; --ty: 12%; --tw: 52cqw; --th: 72%; --tal: left; --ta: flex-start; --tj: center; --k: .86; }
.layout-split .lsv-body::before { content: ""; position: absolute; left: -5cqw; top: 8%; bottom: 8%; width: .25cqw; background: rgba(var(--lsv-acc), .6); }
.layout-split .lsv-foot    { --fl: 8cqw; --fr: 8cqw; --fj: flex-start; }

.layout-center .lsv-brand  { --bx: 50%; --bt: translateX(-50%); --bw: 28cqw; --by: 9%; --bi: center; }
.layout-center .lsv-body   { --tx: 10cqw; --tw: 80cqw; --ty: 36%; --th: 50%; --tal: center; --ta: center; --tj: center; }

.layout-editorial .lsv-brand { --bx: 8cqw; --by: 10%; --bw: 20cqw; --bi: flex-start; }
.layout-editorial .lsv-body  { --tx: 8cqw; --tw: 62cqw; --ty: 34%; --th: 50%; --tal: left; --ta: flex-start; --tj: flex-end; --k: .92; }
.layout-editorial .lsv-value { font-size: calc(var(--vsz, 5cqw) * 1.1); }
.layout-editorial .lsv-foot  { --fl: 8cqw; --fr: 8cqw; --fj: space-between; }

.layout-signature .lsv-frame { --fi: 3.2cqw; }
.layout-signature .lsv-frame i { inset: .9cqw; }
.layout-signature .lsv-brand { --bx: 50%; --bt: translateX(-50%); --bw: 26cqw; --by: 10%; --bi: center; }
.layout-signature .lsv-body  { --tx: 10cqw; --tw: 80cqw; --ty: 40%; --th: 44%; --tal: center; --ta: center; --tj: center; --k: .9; }

.layout-atelier .lsv-frame   { --fi: 6.5cqw; }
.layout-atelier .lsv-brand   { --bx: 14cqw; --by: 14%; --bw: 22cqw; --bi: flex-start; }
.layout-atelier .lsv-body    { --tx: 14cqw; --tw: 72cqw; --ty: 42%; --th: 42%; --tal: left; --ta: flex-start; --tj: center; --k: .9; }
.layout-atelier .lsv-foot    { --fl: 14cqw; --fr: 14cqw; --fb: 9%; --fj: flex-start; }

.layout-monogram .lsv-frame  { --fi: 5cqw; border-radius: 40cqw 40cqw 0 0 / 22cqw 22cqw 0 0; }
.layout-monogram .lsv-frame i { border-radius: inherit; }
.layout-monogram .lsv-brand  { --bx: 50%; --bt: translateX(-50%); --bw: 22cqw; --by: 15%; --bi: center; }
.layout-monogram .lsv-body   { --tx: 10cqw; --tw: 80cqw; --ty: 50%; --th: 34%; --tal: center; --ta: center; --tj: center; --k: .9; }

.layout-ribbon .lsv-brand    { --bx: 8cqw; --by: 10%; --bw: 22cqw; --bi: flex-start; }
.layout-ribbon .lsv-body     { --tx: 8cqw; --tw: 84cqw; --ty: 34%; --th: 50%; --tal: center; --ta: center; --tj: center; --k: .9; }
.layout-ribbon .lsv-value    {
	margin-top: 1.6cqw; padding: 1.4cqw 6cqw; background: rgb(var(--lsv-acc)); color: #fff;
	box-shadow: 0 .6cqw 2cqw rgba(0, 0, 0, .12); font-size: calc(var(--vsz, 5cqw) * .9);
}
.layout-ribbon .lsv-foot     { --fb: 5%; }

.layout-couture .lsv-brand   { --bx: 50%; --bt: translateX(-50%); --bw: 20cqw; --by: 9%; --bi: center; }
.layout-couture .lsv-body    { --tx: 10cqw; --tw: 80cqw; --ty: 38%; --th: 46%; --tal: center; --ta: center; --tj: center; --k: .8; }
.layout-couture .lsv-title   { text-transform: uppercase; letter-spacing: .08em; line-height: 1.2; }

.layout-arch .lsv-frame      { --fi: 4.5cqw; border-radius: 50cqw 50cqw 0 0 / 34cqw 34cqw 0 0; }
.layout-arch .lsv-frame i    { border-radius: inherit; }
.layout-arch .lsv-brand      { --bx: 50%; --bt: translateX(-50%); --bw: 22cqw; --by: 17%; --bi: center; }
.layout-arch .lsv-body       { --tx: 10cqw; --tw: 80cqw; --ty: 52%; --th: 32%; --tal: center; --ta: center; --tj: center; --k: .88; }

.layout-horizon .lsv-brand   { --bx: 8cqw; --by: 9%; --bw: 22cqw; --bi: flex-start; }
.layout-horizon .lsv-body    { --tx: 8cqw; --tw: 84cqw; --ty: 37%; --th: 47%; --tal: left; --ta: flex-start; --tj: flex-start; --k: .9; }
.layout-horizon .lsv-title   { padding-bottom: 3cqw; border-bottom: .25cqw solid rgba(var(--lsv-acc), .75); width: 100%; }
.layout-horizon .lsv-foot    { --fl: 8cqw; --fr: 8cqw; --fj: flex-start; }

.layout-offset .lsv-brand    { --bx: 22cqw; --by: 12%; --bw: 24cqw; --bi: flex-start; }
.layout-offset .lsv-body     { --tx: 22cqw; --tw: 70cqw; --ty: 40%; --th: 44%; --tal: left; --ta: flex-start; --tj: center; --k: .9; }
.layout-offset .lsv-foot     { --fl: 22cqw; --fr: 8cqw; --fj: flex-start; }

.layout-portrait .lsv-brand  { --bx: 7cqw; --by: 50%; --bt: translateY(-50%); --bw: 18cqw; --bi: center; }
.layout-portrait .lsv-body   { --tx: 33cqw; --tw: 60cqw; --ty: 12%; --th: 72%; --tal: left; --ta: flex-start; --tj: center; --k: .86; }
.layout-portrait .lsv-body::before { content: ""; position: absolute; left: -4cqw; top: 0; bottom: 0; width: .25cqw; background: rgba(var(--lsv-acc), .7); }
.layout-portrait .lsv-foot   { --fl: 33cqw; --fr: 8cqw; --fb: 5%; --fj: flex-start; }

/* ---------- Ekran: podgląd w kreatorze i ustawieniach ---------- */
.lsv-preview-grid .lsv { border-radius: 4px; }

/* ---------- Strona druku / PDF ---------- */
.lsv-print { margin: 0; background: #e8e0da; font-family: Georgia, serif; }
.lsv-print .sheet { position: relative; }
.lsv-toolbar {
	position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
	gap: 12px; padding: 12px 20px; background: #2a1020; color: #f4e9dc; font: 14px/1.4 "Helvetica Neue", Arial, sans-serif;
}
.lsv-toolbar button {
	border: 0; border-radius: 999px; padding: 10px 18px; background: #c9a24a; color: #2a1020;
	font: 700 14px/1 "Helvetica Neue", Arial, sans-serif; cursor: pointer;
}
@media print {
	@page { margin: 0; }
	html, body { background: #fff !important; }
	.no-print { display: none !important; }
	.sheet { margin: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
	* { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
@media screen and (max-width: 480px) {
	.lsv-toolbar { flex-direction: column; align-items: stretch; text-align: center; }
}
