/* Original static adaptation inspired by Aceternity's perspective / tilt reference.
   The graphic celebrates the gift, never the payment or its pending/error state. */
#affichr-gift-journey{font-smoothing:antialiased;-webkit-font-smoothing:antialiased}
#affichr-gift-journey .gj-return{min-width:0}
#affichr-gift-journey .gj-return.is-gift-ready{display:grid;grid-template-columns:.85fr 1.15fr;gap:36px;align-items:center;padding:70px 46px 92px;min-height:670px}
#affichr-gift-journey .gift-receipt-info{min-width:0;position:relative;z-index:2}
#affichr-gift-journey .gift-status{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;line-height:1.6;margin-bottom:25px}
#affichr-gift-journey .gift-status::before{content:'✓';display:inline-grid;place-items:center;width:22px;height:22px;border:1px solid #8A8474;border-radius:50%;font-size:12px;flex-shrink:0}
#affichr-gift-journey .gj-return.is-gift-ready h1{font-size:clamp(42px,5.8cqw,68px);line-height:1.03;letter-spacing:-.02em;white-space:pre-line;max-width:none;margin:0;text-wrap:balance}
#affichr-gift-journey .gift-receipt-info #return-text{font-size:17px;line-height:1.6;max-width:33ch;margin-top:24px;text-wrap:pretty}
#affichr-gift-journey .gift-actions{display:flex;flex-direction:column;align-items:flex-start;gap:18px;margin-top:30px}
#affichr-gift-journey #print-card{font-size:15px;min-height:52px;max-width:100%;transition:transform 160ms ease}
#affichr-gift-journey #print-card:active{transform:scale(.96)}
#affichr-gift-journey .gift-replay{border:0;background:transparent;color:#6B6453;padding:8px 0;font-size:13px;min-height:40px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
#affichr-gift-journey .gift-test-note{font-size:12px;line-height:1.7;color:#6B6453;max-width:38ch;margin-top:25px}
#affichr-gift-journey #paid-card{position:relative;isolation:isolate;perspective:1100px;width:100%;max-width:560px;margin:0;padding:20px 25px 80px;min-width:0}
#affichr-gift-journey .gift-envelope{position:absolute;inset:auto 0 0;height:72%;perspective:900px;pointer-events:none;z-index:0;filter:drop-shadow(0 14px 12px rgb(38 35 26 / .08))}
#affichr-gift-journey .gift-envelope-back{position:absolute;inset:0;background:#DCCFB9;border:1px solid #C9BCA5;border-radius:4px}
#affichr-gift-journey .gift-envelope-flap{position:absolute;top:0;left:0;right:0;height:60%;background:#C9BCA5;clip-path:polygon(0 0,100% 0,50% 100%);transform-origin:top center;transform:rotateX(172deg);backface-visibility:visible;z-index:0}
#affichr-gift-journey .gift-envelope-front{position:absolute;inset:0;background:#E8DDCB;clip-path:polygon(0 0,50% 50%,100% 0,100% 100%,0 100%);border-radius:4px}
#affichr-gift-journey .gift-envelope-front::after{content:'';position:absolute;inset:0;clip-path:polygon(0 100%,50% 38%,100% 100%);background:#EFE4D1}
#affichr-gift-journey .gift-envelope-pocket{position:absolute;inset:auto 0 0;height:72%;pointer-events:none;z-index:0}
#affichr-gift-journey .gift-card-rise{position:relative;z-index:1;transform:translateY(-12px);transform-style:preserve-3d}
#affichr-gift-journey .gift-card-float{transform-style:preserve-3d}
#affichr-gift-journey .gift-in-view:not(.gift-revealing):not(.gift-awaiting-reveal) .gift-card-float{animation:gift-suspend 4.5s ease-in-out infinite}
#affichr-gift-journey .gift-awaiting-reveal .gift-card-rise{transform:translateY(180px) scale(.9);clip-path:inset(0 0 73% 0)}
#affichr-gift-journey .gift-awaiting-reveal .gift-envelope-pocket,#affichr-gift-journey .gift-revealing .gift-envelope-pocket{z-index:3}
#affichr-gift-journey .gift-awaiting-reveal .gift-envelope-flap{transform:rotateX(0deg)}
#affichr-gift-journey .gift-card-tilt{--tilt-x:0deg;--tilt-y:0deg;position:relative;transform:rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotateZ(var(--card-angle,-3deg));container-type:inline-size;transform-style:preserve-3d;transition:transform 220ms cubic-bezier(.2,0,0,1);min-width:0}
#affichr-gift-journey .gift-card-tilt::after{content:'';position:absolute;inset:0;border-radius:10px;pointer-events:none;z-index:4;background:radial-gradient(ellipse at var(--light-x,50%) var(--light-y,20%),rgb(255 248 236 / .19),transparent 58%);opacity:0;transition:opacity 180ms ease;mix-blend-mode:screen}
#affichr-gift-journey .gift-card-tilt.is-hovered::after{opacity:1}
#affichr-gift-journey [data-comet-scene]{perspective:1100px}
#affichr-gift-journey .gj-hero-art>.gift-card-float{--card-angle:0deg;width:81%;max-width:380px;margin-right:17%;margin-top:72px;z-index:2;position:relative}
#affichr-gift-journey .gj-hero-art .gift-premium-card{width:100%;margin:0;transform:none;min-height:112cqw}
#affichr-gift-journey .gj-card-preview .gift-card-tilt{--card-angle:-2deg}
#affichr-gift-journey .gj-card-preview .gift-premium-card{min-height:0}
#affichr-gift-journey .gift-premium-card .gj-recipient{overflow-wrap:anywhere}
#affichr-gift-journey .gift-premium-card{background:#15140E;color:#FFF8EC;border:1px solid rgb(255 248 236 / .2);border-radius:10px;padding:8cqw;min-height:112cqw;gap:6cqw;box-shadow:0 24px 50px rgb(38 35 26 / .2),0 4px 10px rgb(5 5 5 / .1);overflow:hidden}
#affichr-gift-journey .gift-premium-card::before{content:'';position:absolute;inset:0;background-image:radial-gradient(rgb(255 248 236 / .11) .65px,transparent .8px);background-size:5px 5px;opacity:.22;pointer-events:none}
#affichr-gift-journey .gift-premium-card::after{content:'';position:absolute;inset:-40%;background:linear-gradient(115deg,transparent 42%,rgb(255 248 236 / .13) 49%,rgb(213 40 47 / .13) 50%,transparent 57%);transform:translateX(-90%);pointer-events:none;z-index:3;opacity:0}
#affichr-gift-journey .gift-premium-card .gj-print-logo{width:66%;height:auto;position:relative;margin:-12% 0 -8% -1%}
#affichr-gift-journey .gift-premium-card .gj-print-title{font-size:12.5cqw;line-height:1.12;letter-spacing:-.015em;text-wrap:initial}
#affichr-gift-journey .gift-premium-card .gj-recipient{font-size:18px;margin-top:18px;font-weight:700}
#affichr-gift-journey .gift-premium-card .gj-message{font-size:clamp(12px,3.8cqw,16px);line-height:1.8;overflow-wrap:anywhere;margin:4cqw 0 0 22%;max-width:23ch}
#affichr-gift-journey .gift-premium-card .gj-print-bottom{border-top-color:rgb(255 248 236 / .25);color:#CFCFCF;font-size:12px}
#affichr-gift-journey .gift-premium-card .gj-stamp{color:#EFE4D1;border-color:rgb(239 228 209 / .5);font-size:4cqw;right:9%;top:10%;padding:3cqw;width:19%}
#affichr-gift-journey #paid-code{position:relative;font-size:10px;color:#CFCFCF;line-height:1.6;letter-spacing:.035em;overflow-wrap:anywhere;white-space:normal}
#affichr-gift-journey .gift-spark{position:absolute;z-index:3;color:#D5282F;pointer-events:none;font-size:16px;opacity:0}
#affichr-gift-journey .gift-spark-a{top:1%;left:0;--spark-turn:35deg}
#affichr-gift-journey .gift-spark-b{top:12%;right:1%;font-size:12px;--spark-turn:-22deg}
#affichr-gift-journey .gift-spark-c{bottom:24%;right:0;--spark-turn:50deg}
#affichr-gift-journey .gift-revealing .gift-envelope-flap{animation:gift-open-flap 700ms cubic-bezier(.2,0,0,1) both}
#affichr-gift-journey .gift-revealing .gift-envelope-pocket{animation:gift-pocket 1900ms ease both}
#affichr-gift-journey .gift-revealing .gift-card-rise{animation:gift-lift 1900ms cubic-bezier(.45,0,.2,1) both}
#affichr-gift-journey .gift-revealing .gj-print::after{animation:gift-ink-sheen 1000ms 200ms ease-out both}
#affichr-gift-journey .gift-revealing .gift-spark{animation:gift-spark 800ms 260ms ease-out both}
#affichr-gift-journey .gift-revealing .gift-spark-b{animation-delay:360ms}
#affichr-gift-journey .gift-revealing .gift-spark-c{animation-delay:460ms}
@keyframes gift-open-flap{from{transform:rotateX(0deg)}to{transform:rotateX(172deg)}}
@keyframes gift-lift{0%,15%{transform:translateY(180px) scale(.9);clip-path:inset(0 0 73% 0)}65%{transform:translateY(-76px) scale(.98);clip-path:inset(0 0 0 0)}100%{transform:translateY(-12px) scale(1);clip-path:inset(0 0 0 0)}}
@keyframes gift-pocket{0%,60%{z-index:3}61%,100%{z-index:0}}
@keyframes gift-suspend{0%,100%{transform:translateY(0) rotateZ(0)}50%{transform:translateY(-9px) rotateZ(.6deg)}}
@keyframes gift-ink-sheen{0%{transform:translateX(-75%);opacity:0}25%{opacity:1}100%{transform:translateX(75%);opacity:0}}
@keyframes gift-spark{0%{opacity:0;transform:translateY(8px) rotate(0) scale(.5)}30%{opacity:.8}100%{opacity:0;transform:translateY(-14px) rotate(var(--spark-turn)) scale(1)}}
@container gift-stage (max-width:700px){
 #affichr-gift-journey .gj-hero-art>.gift-card-float{width:82%;margin-right:15%;margin-top:72px}
 #affichr-gift-journey .gj-card-preview .gift-premium-card{padding:8cqw;gap:6cqw;min-height:112cqw}
 #affichr-gift-journey .gj-card-preview .gift-premium-card .gj-print-title{font-size:12.5cqw}
 #affichr-gift-journey .gj-card-preview .gift-premium-card .gj-recipient{font-size:15px;margin-top:7px}
 #affichr-gift-journey .gj-card-preview .gift-premium-card .gj-message{font-size:clamp(12px,3.8cqw,16px)}
 #affichr-gift-journey .gj-return.is-gift-ready{grid-template-columns:1fr;gap:32px;padding:36px 22px 50px;min-height:0}
 #affichr-gift-journey .gj-return.is-gift-ready h1{font-size:clamp(42px,10cqw,60px)}
 #affichr-gift-journey .gift-status{margin-bottom:20px}
 #affichr-gift-journey .gift-receipt-info #return-text{max-width:40ch}
 #affichr-gift-journey #paid-card{grid-row:2;padding:18px 17px 56px;max-width:490px;margin:0 auto}
 #affichr-gift-journey .gift-actions{gap:10px;margin-top:22px}
 #affichr-gift-journey .gift-premium-card{padding:8cqw;gap:6cqw;min-height:112cqw}
 #affichr-gift-journey .gift-premium-card .gj-print-title{font-size:12.5cqw}
 #affichr-gift-journey .gift-test-note{max-width:none}
}
@container gift-stage (max-width:370px){
 #affichr-gift-journey .gift-premium-card{padding:8cqw;gap:6cqw}
 #affichr-gift-journey .gift-premium-card .gj-print-title{font-size:12.5cqw}
 #affichr-gift-journey .gift-premium-card .gj-stamp{font-size:4cqw;right:9%;top:10%;padding:3cqw}
 #affichr-gift-journey .gift-premium-card .gj-print-logo{width:66%}
}
@media(prefers-reduced-motion:reduce){
 #affichr-gift-journey [data-comet-scene] *,#affichr-gift-journey .gift-reveal *::before,#affichr-gift-journey .gift-reveal *::after{animation:none!important;transition:none!important}
 #affichr-gift-journey .gift-card-tilt{transform:none!important}
 #affichr-gift-journey .gift-card-rise{transform:translateY(-12px)!important;clip-path:none!important}
 #affichr-gift-journey .gift-replay{display:none!important}
}
@media print{
 @page{margin:12mm}
 html,body,#affichr-gift-journey,#affichr-gift-journey .gj-stage,#affichr-gift-journey .gj-return{background:#fff!important;color:#050505!important;color-scheme:light;print-color-adjust:economy}
 #affichr-gift-journey .gj-section{display:none!important}
 #affichr-gift-journey .gift-receipt-info,#affichr-gift-journey .gift-envelope,#affichr-gift-journey .gift-envelope-pocket,#affichr-gift-journey .gift-spark{display:none!important}
 #affichr-gift-journey .gj-return.is-gift-ready{display:block!important;padding:0!important;min-height:0}
 #affichr-gift-journey #gift-return:not(.is-gift-ready){display:none!important}
 #affichr-gift-journey #paid-card{padding:0!important;perspective:none!important;width:130mm;max-width:100%;margin:0 auto!important}
 #affichr-gift-journey .gift-card-rise,#affichr-gift-journey .gift-card-float,#affichr-gift-journey .gift-card-tilt{transform:none!important;clip-path:none!important;animation:none!important}
 /* Reuse the approved localized artwork as dark lettering over a pale heart. */
 #affichr-gift-journey .gift-premium-card .gj-print-logo{background:transparent!important;filter:grayscale(1) invert(1)}
 #affichr-gift-journey .gift-premium-card{background:#fff!important;color:#050505!important;border:1px solid #8A8474;box-shadow:none!important;animation:none!important;padding:8mm;gap:5mm;min-height:170mm;overflow:visible;break-inside:avoid}
 #affichr-gift-journey .gift-premium-card .gj-print-title{font-size:32pt}
 #affichr-gift-journey .gift-premium-card .gj-recipient{font-size:11pt;margin-top:4mm}
 #affichr-gift-journey .gift-premium-card .gj-message{font-size:10pt;line-height:1.5;margin-top:3mm}
 #affichr-gift-journey .gift-activation-print{font-size:9pt;line-height:1.5;overflow-wrap:anywhere}
 #affichr-gift-journey .gift-premium-card .gj-print-bottom,#affichr-gift-journey #paid-code{color:#050505!important;border-color:#8A8474!important}
 #affichr-gift-journey .gift-premium-card .gj-stamp{color:#050505!important;border-color:#8A8474!important}
 #affichr-gift-journey .gift-card-tilt::after,#affichr-gift-journey .gift-premium-card::before,#affichr-gift-journey .gift-premium-card::after{display:none!important}
}
