
/* Gift-Q v6.6.1 – portrait catalogue book with uncropped art */
article.gift-card{display:flex;flex-direction:column;border-radius:22px;overflow:hidden;min-width:0}
article.gift-card .gift-title{font-size:clamp(1.08rem,1.35vw,1.42rem);line-height:1.28;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
article.gift-card .gift-desc{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
article.gift-card .giftq-secondary-actions{margin-top:auto}
article.gift-card .giftq-item-id{display:none!important}

article.gift-card>.giftq-art-frame,
article.gift-card>.gift-media{
  width:100%;
  aspect-ratio:16/10;
  margin:0 0 16px!important;
  border-radius:18px;
  overflow:hidden;
  position:relative;
  background:#e7e2d7;
}
article.gift-card>.giftq-art-frame img{
  width:100%;height:100%;display:block;
  object-fit:contain;object-position:center;
  padding:10px;background:#e7e2d7;
}
/* real permitted photos remain unchanged in classic card view */
article.gift-card>.gift-media:not(.giftq-art-frame) img{width:100%;height:100%;display:block;object-fit:cover}
article.gift-card .giftq-art-caption{
  position:absolute;right:12px;bottom:12px;
  font:600 11px/1.2 system-ui,sans-serif;
  color:#2d3342;background:rgba(255,255,255,.92);
  padding:6px 10px;border-radius:999px;box-shadow:0 2px 10px rgba(0,0,0,.12)
}

.giftq-book-view{max-width:1100px;margin:0 auto 2.6rem;padding:0 10px}
.giftq-book-header{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:18px}
.giftq-book-header h1{margin:0;font:400 clamp(1.7rem,3vw,2.7rem)/1.05 Georgia,serif;color:#1e2433}
.giftq-book-header span{color:#6b6677;font-size:.98rem}
.giftq-book-sub{margin:.35rem 0 0;color:#6b6677;font-size:.98rem}

.giftq-book-cover-shell{display:flex;justify-content:center;align-items:center;padding:8px 0 14px}
.giftq-book-cover{
  width:min(86vw,440px);aspect-ratio: 3 / 4;position:relative;
  border-radius:16px 20px 20px 16px;
  background:linear-gradient(135deg,#5541d7 0%,#6f5cf2 38%,#f1ecff 39%,#f6f0e5 100%);
  box-shadow:0 28px 60px rgba(33,29,61,.20), 18px 0 0 rgba(255,255,255,.45) inset, -10px 0 0 rgba(0,0,0,.12) inset;
  overflow:hidden;
}
.giftq-book-cover::before{content:'';position:absolute;left:0;top:0;bottom:0;width:18px;background:linear-gradient(180deg,#3d2fb5,#4f46e5 55%,#372f7d);box-shadow:4px 0 12px rgba(0,0,0,.18)}
.giftq-book-cover::after{content:'';position:absolute;right:-18px;top:18px;bottom:18px;width:22px;border-radius:0 14px 14px 0;background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(236,228,207,.9));transform:skewY(-2deg);box-shadow:0 0 16px rgba(0,0,0,.08)}
.giftq-cover-inner{position:absolute;inset:0;padding:34px 34px 28px 46px;display:flex;flex-direction:column;justify-content:space-between}
.giftq-cover-top small{display:inline-block;background:rgba(255,255,255,.78);padding:6px 10px;border-radius:999px;font:700 12px/1 system-ui,sans-serif;letter-spacing:.04em;color:#403888;text-transform:uppercase}
.giftq-cover-top h2{margin:16px 0 8px;font:400 clamp(2.15rem,4vw,3rem)/.98 Georgia,serif;color:#1d2230}
.giftq-cover-top p{margin:0;color:#262b38;font-size:1rem;max-width:19rem}
.giftq-cover-art{margin:20px 0;border-radius:16px;overflow:hidden;box-shadow:0 10px 22px rgba(28,31,45,.18)}
.giftq-cover-art img{display:block;width:100%;aspect-ratio: 4/3;object-fit:cover}
.giftq-cover-meta{display:grid;gap:10px;margin-top:auto}
.giftq-cover-meta .giftq-book-chip{display:inline-flex;align-items:center;gap:7px;width:max-content;max-width:100%;background:rgba(255,255,255,.80);padding:8px 12px;border-radius:999px;color:#2b3040;font-weight:600}
.giftq-cover-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}

.giftq-book-spread{position:relative;display:flex;justify-content:center;align-items:flex-start}
.giftq-book-shadow{position:absolute;inset:auto 8% 12px;z-index:0;height:36px;border-radius:50%;background:radial-gradient(ellipse at center, rgba(0,0,0,.22), rgba(0,0,0,0) 68%);filter:blur(10px)}
.giftq-book-page{
  position:relative;z-index:1;
  width:min(92vw,640px);min-height:min(86vh,920px);
  background:linear-gradient(90deg,#f3ecdc 0,#faf6ed 6%,#fbf8f1 50%,#f8f3e9 94%,#efe6d2 100%);
  border-radius:10px 18px 18px 10px;
  box-shadow:0 26px 58px rgba(24,18,45,.16), 14px 0 0 rgba(0,0,0,.05) inset, -20px 0 22px rgba(0,0,0,.04) inset;
  overflow:hidden;transform-origin:left center;perspective:1600px;
}
.giftq-book-page::before{content:'';position:absolute;left:18px;top:0;bottom:0;width:1px;background:rgba(76,63,41,.12)}
.giftq-book-page::after{content:'';position:absolute;left:0;top:0;bottom:0;width:28px;background:linear-gradient(90deg,rgba(72,56,31,.09),rgba(72,56,31,0))}
.giftq-book-page-inner{padding:26px 26px 28px 42px;min-height:inherit;display:flex;flex-direction:column}
.giftq-book-page-top{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:14px;color:#6c6772;font-size:.95rem}
.giftq-book-page-label{font:700 12px/1 system-ui,sans-serif;letter-spacing:.13em;text-transform:uppercase;color:#81776a}
.giftq-book-card-wrap{margin-top:2px;display:flex;justify-content:center;align-items:stretch;flex:1}
.giftq-book-page article.gift-card{width:100%;max-width:520px;background:transparent;box-shadow:none;border-radius:20px;padding:0;margin:0 auto}
.giftq-book-page article.gift-card>.gift-media,
.giftq-book-page article.gift-card>.giftq-art-frame{aspect-ratio:4/3;background:#ece4d2;border:1px solid rgba(106,90,59,.12)}
.giftq-book-page article.gift-card>.giftq-art-frame img,
.giftq-book-page article.gift-card>.gift-media img{object-fit:contain!important;object-position:center;padding:12px;background:#ece4d2}
.giftq-book-page article.gift-card .badge-row{margin-bottom:10px}
.giftq-book-page article.gift-card .gift-desc{display:block;overflow:visible;-webkit-line-clamp:unset}
.giftq-book-page article.gift-card .meta{margin:12px 0 10px}
.giftq-book-footer{display:flex;justify-content:center;align-items:center;gap:12px;color:#887e70;font-size:.92rem;margin-top:16px}
.giftq-book-footer::before,.giftq-book-footer::after{content:'';height:1px;flex:1;max-width:110px;background:rgba(94,81,57,.22)}

.giftq-book-page.giftq-turn-next{animation:giftqPageNext .52s ease both}
.giftq-book-page.giftq-turn-prev{animation:giftqPagePrev .52s ease both}
@keyframes giftqPageNext{0%{transform:rotateY(-20deg) translateX(-22px);opacity:.55}45%{transform:rotateY(10deg) translateX(12px);opacity:.88}100%{transform:rotateY(0) translateX(0);opacity:1}}
@keyframes giftqPagePrev{0%{transform:rotateY(20deg) translateX(22px);opacity:.55}45%{transform:rotateY(-10deg) translateX(-12px);opacity:.88}100%{transform:rotateY(0) translateX(0);opacity:1}}
.giftq-book-controls{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin:20px auto 0}
.giftq-book-controls .btn{min-width:155px}

@media (max-width:760px){
  .giftq-book-view{padding:0 6px}
  .giftq-book-header{align-items:flex-start;flex-direction:column}
  .giftq-book-page{width:min(96vw,620px);min-height:min(82vh,860px)}
  .giftq-book-page-inner{padding:18px 14px 18px 26px}
  .giftq-book-page article.gift-card{max-width:100%}
  .giftq-book-page article.gift-card .gift-desc{font-size:.98rem}
  .giftq-book-controls{position:sticky;bottom:8px;z-index:5;padding-bottom:8px}
}

/* v6.6.2: full artwork visible in both grid and book, no clipping */
article.gift-card>.giftq-art-frame,article.gift-card>.gift-media {aspect-ratio: 4 / 3!important;background:#efeae1!important;}
article.gift-card>.giftq-art-frame img,article.gift-card>.gift-media img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;padding:0!important;}
article.gift-card>.giftq-art-frame{display:flex;align-items:center;justify-content:center;overflow:hidden!important;}
.giftq-book-page article.gift-card>.giftq-art-frame img{object-fit:contain!important;padding:0!important;}
/* Actual turning sheet, old paper folds away above the next printed page */
.giftq-book-spread{perspective:2200px;transform-style:preserve-3d;isolation:isolate}
.giftq-book-page{transform-style:preserve-3d;overflow:visible!important;}
.giftq-book-page.giftq-under-page{background:linear-gradient(90deg,#efe5d4,#fffcf4 8%,#f8f1e5 96%);}
.giftq-flipping-sheet{position:absolute;inset:0;z-index:20;overflow:hidden;border-radius:10px 18px 18px 10px;background:#fbf8f1;backface-visibility:hidden;box-shadow:0 10px 35px #352c3d55;will-change:transform;display:flex;flex-direction:column;}
.giftq-flipping-sheet .giftq-book-page-inner{height:100%;min-height:100%;}
.giftq-sheet-forward{transform-origin:left center;animation:giftqFlipForward 850ms cubic-bezier(.34,.02,.45,1) forwards;}
.giftq-sheet-backward{transform-origin:right center;animation:giftqFlipBack 850ms cubic-bezier(.34,.02,.45,1) forwards;}
@keyframes giftqFlipForward{0%{transform:rotateY(0deg);filter:brightness(1)}45%{transform:rotateY(-84deg);filter:brightness(.76)}100%{transform:rotateY(-165deg);filter:brightness(.92);opacity:0}}
@keyframes giftqFlipBack{0%{transform:rotateY(0deg);filter:brightness(1)}45%{transform:rotateY(84deg);filter:brightness(.76)}100%{transform:rotateY(165deg);filter:brightness(.92);opacity:0}}
@media (prefers-reduced-motion:reduce){.giftq-sheet-forward,.giftq-sheet-backward{animation-duration:.01ms}}

/* Gift-Q v6.6.3: visual book proof; paper bend / outside arrows */
.giftq-book-view{max-width:1160px!important;position:relative;padding:4px clamp(28px,5vw,85px)!important}
.giftq-book-spread{position:relative;perspective:2500px!important;overflow:visible!important;background:linear-gradient(90deg,#e5ddcf 0,#f8f5ed 2%,#fff9ee 48%,#a9a092 50%,#fffaf0 52%,#f8f1e7 98%,#c5b8a5);padding:11px 16px 16px;border-radius:9px;box-shadow:0 26px 45px #382d2544}
.giftq-book-page{width:min(100%,760px)!important;min-height: min(78vh,1000px)!important;background:#fffaf1!important;box-shadow:inset 14px 0 22px #6d534020,inset -12px 0 16px #917a5a1a!important}
.giftq-book-page-inner{min-height:inherit; padding:12px 18px 14px 30px!important}
.giftq-book-page-top{font-size:12px;margin-bottom:5px!important}
.giftq-book-page-top>div:first-child>div:nth-child(2){display:none}
.giftq-book-card-wrap{min-height:0;flex:1;}
.giftq-book-page article.gift-card{width:100%!important;max-width:100%!important;display:flex;flex-direction:column;justify-content:flex-start;padding:0!important}
.giftq-book-page article.gift-card>.giftq-art-frame,.giftq-book-page article.gift-card>.gift-media{aspect-ratio:auto!important;height:clamp(230px,48vh,540px)!important;margin:0 0 10px!important}
.giftq-book-page article.gift-card img{object-fit:contain!important;width:100%;height:100%}
.giftq-book-page article.gift-card .gift-desc{max-height:4.5em;overflow:hidden!important}
.giftq-book-page article.gift-card .badge-row{margin:5px 0!important}
.giftq-book-page .giftq-book-footer{margin-top:auto}
.giftq-book-controls{display:contents!important}
.giftq-book-controls button{position:absolute;top:46%;transform:translateY(-50%);z-index:55;border-radius:90px!important;padding:12px!important;width:66px;min-width:0!important;height:66px;background:#fff8eb!important;color:#252b30!important;box-shadow:0 5px 17px #3f302d35!important;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:23px}
.giftq-book-controls button span{font-size:10px;line-height:1.1}
.giftq-side-prev{left:-64px}.giftq-side-next{right:-64px}
.giftq-book-controls button:disabled{opacity:.25}
.giftq-cover-back{text-align:center;margin:18px}
.giftq-flipping-sheet{background:linear-gradient(110deg,#f1e6d7,#fffdf8 21%,#f9f2e8 72%,#e0d0bb);border:1px solid #d5c6af;box-shadow:15px 10px 35px #493c3350;backface-visibility:visible;overflow:hidden!important;transform-style:preserve-3d}
.giftq-flipping-sheet::after{content:'';position:absolute;pointer-events:none;inset:0;background:linear-gradient(90deg,transparent 5%,#b7a38633 46%,#fffef588 69%,#8675604d 100%);animation:giftqPaperHighlight 2300ms ease-in-out forwards}
.giftq-sheet-forward{animation:giftqPaperForward 2300ms cubic-bezier(.36,.03,.26,1) both!important;transform-origin:left center!important}
.giftq-sheet-backward{animation:giftqPaperBackward 2300ms cubic-bezier(.36,.03,.26,1) both!important;transform-origin:right center!important}
@keyframes giftqPaperForward{0%{transform:rotateY(0) skewY(0) scaleX(1);border-radius:8px 18px 18px 8px;opacity:1}25%{transform:rotateY(-34deg) skewY(-1.5deg) scaleX(.94);border-radius:8px 110px 95px 10px;opacity:1}52%{transform:rotateY(-87deg) skewY(-3deg) scaleX(.80);border-radius:8px 145px 130px 8px;opacity:1}79%{transform:rotateY(-148deg) skewY(-1deg) scaleX(.93);border-radius:60px 20px 24px 75px;opacity:1}100%{transform:rotateY(-180deg) scaleX(1);opacity:0}}
@keyframes giftqPaperBackward{0%{transform:rotateY(0) skewY(0) scaleX(1);opacity:1}25%{transform:rotateY(34deg) skewY(1.5deg) scaleX(.94);border-radius:110px 8px 8px 95px;opacity:1}52%{transform:rotateY(87deg) skewY(3deg) scaleX(.80);border-radius:145px 8px 8px 130px;opacity:1}79%{transform:rotateY(148deg) skewY(1deg) scaleX(.93);opacity:1}100%{transform:rotateY(180deg);opacity:0}}
@keyframes giftqPaperHighlight{0%{opacity:.05}45%{opacity:.85}100%{opacity:.15}}
@media(max-width:700px){.giftq-book-view{padding:0 33px!important}.giftq-side-prev{left:-38px}.giftq-side-next{right:-38px}.giftq-book-controls button{width:37px;height:54px;padding:3px!important}.giftq-book-controls button span{display:none}.giftq-book-page-inner{padding:8px!important}.giftq-book-page article.gift-card>.giftq-art-frame,.giftq-book-page article.gift-card>.gift-media{height:38vh!important}.giftq-book-page{min-height:78vh!important}}
@media(prefers-reduced-motion:reduce){.giftq-sheet-forward,.giftq-sheet-backward{animation-duration:.01ms!important}}

/* v6.6.4: true fixed-size open-book layout; artwork is never cropped */
.giftq-book-real{max-width:1370px!important;margin:0 auto;padding:22px 55px!important}
.giftq-book-real .giftq-book-spread{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch!important;max-width:1180px;min-height:0!important;aspect-ratio:1.46 / 1;margin:0 auto;padding:12px!important;background:#b6a58f!important;border:8px solid #e6dccf;border-radius:12px;box-shadow:0 30px 55px #30251c55!important}
.giftq-book-real .giftq-book-page{width:100%!important;min-width:0!important;min-height:0!important;height:100%!important;aspect-ratio:auto!important;border-radius:0 7px 7px 0;overflow:hidden!important;box-shadow:inset -16px 0 24px #5f45341c!important;background:#fffaf1!important}
.giftq-book-real .giftq-book-left{border-radius:7px 0 0 7px;box-shadow:inset -16px 0 25px #5e432d31!important;border-right:1px solid #a18c72;z-index:2}
.giftq-book-real .giftq-book-right{box-shadow:inset 18px 0 30px #61493230!important;z-index:1}
.giftq-book-real .giftq-book-page-inner{height:100%;min-height:0!important;padding:11px 16px!important;display:flex;flex-direction:column}
.giftq-book-real .giftq-book-page-top{margin:0 0 8px!important;flex:none;color:#76634b}
.giftq-book-real .giftq-book-card-wrap{flex:1;min-height:0;align-items:stretch!important;overflow:hidden;display:flex}
.giftq-book-real article.gift-card{flex:1;min-height:0;display:flex!important;flex-direction:column!important;gap:5px!important;overflow:hidden!important;border:none!important;background:transparent!important;box-shadow:none!important}
.giftq-book-real article.gift-card>.giftq-art-frame,.giftq-book-real article.gift-card>.gift-media{height:auto!important;aspect-ratio:auto!important;min-height:0!important;flex:1 1 57%!important;max-height:58%!important;padding:0!important;overflow:hidden!important;background:#f7efe1!important}
.giftq-book-real article.gift-card img{object-fit:contain!important;width:100%!important;height:100%!important;max-width:100%;max-height:100%;padding:0!important}
.giftq-book-real article.gift-card .gift-desc{max-height:3.3em!important;overflow:hidden!important}
.giftq-book-real article.gift-card .badge-row{margin:2px 0!important}
.giftq-book-real article.gift-card .meta{margin:4px 0!important}
.giftq-book-real article.gift-card .btn{min-height:36px!important}
.giftq-book-real .giftq-book-footer{margin-top:auto;font-size:12px!important;padding-top:3px!important;flex:none}
.giftq-book-real .giftq-book-controls button{top:50%!important}
.giftq-book-real .giftq-side-prev{left:-81px!important}.giftq-book-real .giftq-side-next{right:-81px!important}
.giftq-book-real .giftq-flipping-sheet{inset:0!important;transform-origin:left center!important;z-index:10!important;box-shadow:-12px 12px 28px #3b302850!important}
.giftq-book-real .giftq-flipping-sheet .giftq-book-page-inner{height:100%!important}
@media(max-width:780px){.giftq-book-real{padding:10px 28px!important}.giftq-book-real .giftq-book-spread{aspect-ratio:auto!important;min-height:75vh!important;grid-template-columns:minmax(0,1fr)!important}.giftq-book-real .giftq-book-left{display:none!important}.giftq-book-real .giftq-book-right{min-height:75vh!important}.giftq-book-real .giftq-side-prev{left:-37px!important}.giftq-book-real .giftq-side-next{right:-37px!important}.giftq-book-real .giftq-book-page-inner{padding:10px!important}}

/* Gift-Q 6.6.5: stable paper-book stage, two pages, no card-layout resizing. */
.giftq-book-real{max-width:1500px!important;padding:10px 66px!important}
.giftq-book-real .giftq-book-spread{position:relative!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;aspect-ratio:1.56!important;min-height:0!important;max-width:1280px!important;width:100%!important;margin:auto!important;overflow:visible!important;padding:10px!important;background:#e9e1d5!important;border:5px solid #574739!important;border-radius:7px!important;box-shadow:0 4px 0 #c9bca7,0 11px 2px #8e7d68,0 22px 46px #55433150!important;perspective:2200px!important;isolation:isolate}
.giftq-book-real .giftq-book-page{min-height:0!important;height:100%!important;width:100%!important;position:relative!important;overflow:hidden!important;z-index:1!important;background:#fff9ee!important}
.giftq-book-real .giftq-book-left{border-radius:3px 0 0 3px!important;box-shadow:inset -16px 0 21px #40301b25!important}
.giftq-book-real .giftq-book-right{border-radius:0 3px 3px 0!important;box-shadow:inset 16px 0 23px #40301b29!important}
.giftq-book-real .giftq-book-page-inner{box-sizing:border-box;height:100%!important;min-height:0!important;overflow:hidden!important;padding:clamp(6px,1vw,15px)!important}
.giftq-book-real .giftq-book-page-top{font:11px Georgia,serif!important;height:18px!important;line-height:18px!important;flex:0 0 18px!important;margin:0 0 7px!important}
.giftq-book-real .giftq-book-page .giftq-book-card-wrap{display:flex!important;min-height:0!important;flex:1 1 auto!important;overflow:hidden!important}
.giftq-book-real .giftq-book-page article.gift-card{box-sizing:border-box;display:flex!important;flex-direction:column!important;gap:4px!important;overflow:hidden!important;min-height:0!important;height:100%!important;width:100%!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.giftq-book-real .giftq-book-page article.gift-card>.giftq-art-frame,.giftq-book-real .giftq-book-page article.gift-card>.gift-media{box-sizing:border-box;display:flex!important;flex:0 1 65%!important;max-height:65%!important;min-height:0!important;height:auto!important;aspect-ratio:auto!important;align-items:center!important;justify-content:center!important;background:transparent!important;border:0!important;margin:0 0 5px!important}
.giftq-book-real .giftq-book-page article.gift-card img{max-height:100%!important;max-width:100%!important;width:100%!important;height:100%!important;object-fit:contain!important;border-radius:3px!important}
.giftq-book-real .giftq-book-page article.gift-card .gift-desc{max-height:3.1em!important;overflow:hidden!important}
.giftq-book-real .giftq-book-page article.gift-card .btn{flex:none!important;min-height:31px!important;padding:6px 9px!important}
.giftq-book-real .giftq-book-page .giftq-book-footer{margin-top:auto!important;flex:0 0 16px!important;line-height:16px!important;padding:0!important;text-align:center!important;font:12px Georgia,serif!important}
.giftq-book-real .giftq-book-controls button{top:50%!important;z-index:60!important;width:58px!important;height:58px!important}
.giftq-book-real .giftq-side-prev{left:-79px!important}.giftq-book-real .giftq-side-next{right:-79px!important}
/* Animated bent paper sheet. Web CSS uses a continuous 3-D turning face and
   animated corner warp, not an instant rerender of content. */
.giftq-paper-turn{position:absolute;top:10px;bottom:10px;width:calc((100% - 20px)/2);z-index:38;pointer-events:none;transform-style:preserve-3d;backface-visibility:visible;will-change:transform,clip-path;overflow:visible;background:#fff8ec}
.giftq-paper-next{right:10px;transform-origin:left center;animation:giftqPageRight 2150ms cubic-bezier(.43,.01,.23,1) both}
.giftq-paper-prev{left:10px;transform-origin:right center;animation:giftqPageLeft 2150ms cubic-bezier(.43,.01,.23,1) both}
.giftq-paper-face,.giftq-paper-verso{position:absolute;inset:0;overflow:hidden;backface-visibility:hidden;background:#fffaf0;box-shadow:inset 8px 0 18px #63544219;display:block}
.giftq-paper-face>.giftq-book-page-inner{height:100%!important;min-height:0!important;padding:clamp(6px,1vw,15px)!important}
.giftq-paper-verso{transform:rotateY(180deg);background:linear-gradient(90deg,#e8dac5 0%,#fffaf0 18%,#fffaf0 76%,#d2c1a7 100%)}
.giftq-paper-light{position:absolute;inset:0;pointer-events:none;background:linear-gradient(100deg,transparent 4%,#fffdfa55 23%,#4b362c58 50%,#fffaf070 75%,transparent 95%);animation:giftqPaperLight 2150ms ease-in-out both;opacity:.16;backface-visibility:visible}
.giftq-paper-curl{position:absolute;width:44%;height:100%;right:0;top:0;border-radius:0 23% 26% 0;box-shadow:20px 0 24px -16px #2b201b7a,inset -18px 0 16px -12px #8e7b61a0;animation:giftqCurl 2150ms ease-in-out both;pointer-events:none}
.giftq-paper-prev .giftq-paper-curl{left:0;right:auto;transform:scaleX(-1)}
@keyframes giftqPageRight{0%{transform:rotateY(0deg) scaleX(1);border-radius:0 4px 5px 0}18%{transform:rotateY(-22deg) scaleX(.985);border-radius:0 9% 16% 0}41%{transform:rotateY(-67deg) scaleX(.935);border-radius:0 20% 25% 0}59%{transform:rotateY(-113deg) scaleX(.92);border-radius:16% 19% 21% 11%}83%{transform:rotateY(-165deg) scaleX(.975);border-radius:16% 4% 4% 19%}100%{transform:rotateY(-180deg) scaleX(1)}}
@keyframes giftqPageLeft{0%{transform:rotateY(0deg) scaleX(1)}18%{transform:rotateY(22deg) scaleX(.985)}41%{transform:rotateY(67deg) scaleX(.935)}59%{transform:rotateY(113deg) scaleX(.92)}83%{transform:rotateY(165deg) scaleX(.975)}100%{transform:rotateY(180deg) scaleX(1)}}
@keyframes giftqPaperLight{0%{opacity:.08}45%{opacity:.77}70%{opacity:.45}100%{opacity:.08}}
@keyframes giftqCurl{0%{transform:scaleX(1);opacity:.2}33%{transform:scaleX(.6);opacity:1}62%{transform:scaleX(.2);opacity:.95}100%{transform:scaleX(1);opacity:.15}}
.giftq-turn-hand{position:absolute;right:-40px;bottom:-32px;width:clamp(92px,15%,190px);height:clamp(105px,18%,240px);z-index:45;pointer-events:none;transform-origin:90% 90%;animation:giftqHandPage 2150ms cubic-bezier(.35,.02,.23,1) both;filter:drop-shadow(0 8px 5px #422a2233)}
.giftq-turn-hand img{width:100%;height:100%;object-fit:contain}
.giftq-hand-prev{left:-40px;right:auto;transform:scaleX(-1);animation-name:giftqHandBack}
@keyframes giftqHandPage{0%{transform:translate(9%,15%) rotate(7deg);opacity:0}12%{transform:translate(0,0) rotate(0);opacity:1}43%{transform:translate(-85%,-26%) rotate(-19deg);opacity:1}75%{transform:translate(-145%,-17%) rotate(-15deg);opacity:.92}100%{transform:translate(-195%,5%) rotate(-10deg);opacity:0}}
@keyframes giftqHandBack{0%{transform:scaleX(-1) translate(9%,15%);opacity:0}12%{transform:scaleX(-1);opacity:1}55%{transform:scaleX(-1) translate(-90%,-20%);opacity:1}100%{transform:scaleX(-1) translate(-190%,5%);opacity:0}}
@media(max-width:800px){.giftq-book-real{padding:8px 32px!important}.giftq-book-real .giftq-book-spread{grid-template-columns:minmax(0,1fr)!important;aspect-ratio:.72!important;min-height:0!important}.giftq-book-real .giftq-book-left{display:none!important}.giftq-book-real .giftq-book-right{min-height:0!important;height:100%!important}.giftq-paper-turn{left:10px!important;right:10px!important;width:calc(100% - 20px)!important}.giftq-book-real .giftq-side-prev{left:-37px!important}.giftq-book-real .giftq-side-next{right:-37px!important}.giftq-turn-hand{right:-25px;bottom:-18px}}
@media(prefers-reduced-motion:reduce){.giftq-paper-next,.giftq-paper-prev,.giftq-turn-hand,.giftq-paper-curl,.giftq-paper-light{animation-duration:.01ms!important}}

/* v6.6.6: synchronised paper edge and photographed hand, full-duration hold. */
.giftq-paper-next,.giftq-paper-prev{animation-duration:3100ms!important;animation-timing-function:cubic-bezier(.45,0,.55,1)!important}
.giftq-paper-light,.giftq-paper-curl{animation-duration:3100ms!important}
.giftq-turn-hand{width:clamp(86px,12%,157px)!important;height:auto!important;aspect-ratio:308/400!important;left:auto!important;right:2%!important;bottom:-5%!important;transform-origin:75% 21%!important;animation:giftqHoldTurn 3100ms cubic-bezier(.45,0,.55,1) both!important;filter:drop-shadow(1px 5px 5px #37221955)!important}
.giftq-turn-hand img{width:100%;height:100%;object-fit:contain!important}
.giftq-hand-prev{right:auto!important;left:2%!important;animation-name:giftqHoldBack!important}
@keyframes giftqHoldTurn{
  0%{right:2%;bottom:-5%;transform:rotate(0deg) scale(1);opacity:1}
  12%{right:5%;bottom:-4%;transform:rotate(-4deg) scale(1);opacity:1}
  30%{right:19%;bottom:-3%;transform:rotate(-14deg) scale(.97);opacity:1}
  50%{right:43%;bottom:-2%;transform:rotate(-24deg) scale(.94);opacity:1}
  70%{right:66%;bottom:-3%;transform:rotate(-15deg) scale(.96);opacity:1}
  88%{right:80%;bottom:-4%;transform:rotate(-7deg) scale(.99);opacity:1}
  99%{right:89%;bottom:-5%;transform:rotate(-2deg) scale(1);opacity:1}
  100%{right:89%;bottom:-5%;transform:rotate(0deg) scale(1);opacity:0}
}
@keyframes giftqHoldBack{
  0%{left:2%;bottom:-5%;transform:scaleX(-1);opacity:1}
  12%{left:5%;bottom:-4%;transform:scaleX(-1) rotate(-4deg);opacity:1}
  30%{left:19%;bottom:-3%;transform:scaleX(-1) rotate(-14deg);opacity:1}
  50%{left:43%;bottom:-2%;transform:scaleX(-1) rotate(-24deg);opacity:1}
  70%{left:66%;bottom:-3%;transform:scaleX(-1) rotate(-15deg);opacity:1}
  88%{left:80%;bottom:-4%;transform:scaleX(-1) rotate(-7deg);opacity:1}
  99%{left:89%;bottom:-5%;transform:scaleX(-1);opacity:1}
  100%{left:89%;bottom:-5%;transform:scaleX(-1);opacity:0}
}
@keyframes giftqPageRight{
0%{transform:rotateY(0deg) scaleX(1);border-radius:0 3px 5px 0}
15%{transform:rotateY(-11deg) scaleX(.98);border-radius:0 10% 14% 0}
30%{transform:rotateY(-37deg) scaleX(.94);border-radius:0 20% 23% 0}
50%{transform:rotateY(-90deg) scaleX(.86);border-radius:12% 28% 30% 10%}
70%{transform:rotateY(-143deg) scaleX(.93);border-radius:20% 15% 16% 19%}
85%{transform:rotateY(-170deg) scaleX(.98);border-radius:8% 4% 5% 10%}
100%{transform:rotateY(-180deg) scaleX(1);border-radius:0}
}
@keyframes giftqPageLeft{
0%{transform:rotateY(0deg) scaleX(1)}15%{transform:rotateY(11deg) scaleX(.98)}30%{transform:rotateY(37deg) scaleX(.94)}50%{transform:rotateY(90deg) scaleX(.86)}70%{transform:rotateY(143deg) scaleX(.93)}85%{transform:rotateY(170deg) scaleX(.98)}100%{transform:rotateY(180deg) scaleX(1)}
}
@media(prefers-reduced-motion:reduce){.giftq-turn-hand,.giftq-paper-next,.giftq-paper-prev{animation-duration:.01ms!important}}

/* v6.6.7: clean paper, stable controls, single composited leaf. */
.giftq-book-real .giftq-book-spread{perspective:1800px!important;isolation:isolate;background:#ffffff!important;}
.giftq-book-real .giftq-book-page,.giftq-book-page-inner,.giftq-paper-face{background:#fff!important;color:#202d38!important}
.giftq-book-real .giftq-book-page{box-shadow:inset 0 0 9px #2833410b!important}
.giftq-paper-turn{background:#fff!important;contain:layout style;will-change:transform!important;transform-style:preserve-3d!important}
.giftq-paper-next,.giftq-paper-prev{animation-duration:2650ms!important;animation-timing-function:cubic-bezier(.55,.08,.34,.98)!important}
.giftq-paper-light,.giftq-paper-curl{animation-duration:2650ms!important}
.giftq-paper-face,.giftq-paper-verso{background:#fff!important}
.giftq-paper-verso{background:linear-gradient(90deg,#e9e9e9,#fff 17%,#fff 80%,#ddd)!important}
.giftq-paper-curl{width:26%!important;box-shadow:14px 0 23px -13px #26344355,inset -13px 0 14px -9px #26344333!important}
.giftq-turn-hand{display:none!important}
.giftq-book-real .giftq-book-controls button,.giftq-book-real .giftq-book-controls button:hover,.giftq-book-real .giftq-book-controls button:focus-visible{transform:translateY(-50%)!important;transition:background-color .2s ease,box-shadow .2s ease!important;margin:0!important;}
.giftq-book-real .giftq-book-controls button:hover{box-shadow:0 5px 16px #12202a25!important}
@keyframes giftqPageRight{0%{transform:rotateY(0deg) scaleX(1)}20%{transform:rotateY(-20deg) scaleX(.98)}40%{transform:rotateY(-66deg) scaleX(.91)}60%{transform:rotateY(-115deg) scaleX(.91)}80%{transform:rotateY(-160deg) scaleX(.98)}100%{transform:rotateY(-180deg) scaleX(1)}}
@keyframes giftqPageLeft{0%{transform:rotateY(0deg) scaleX(1)}20%{transform:rotateY(20deg) scaleX(.98)}40%{transform:rotateY(66deg) scaleX(.91)}60%{transform:rotateY(115deg) scaleX(.91)}80%{transform:rotateY(160deg) scaleX(.98)}100%{transform:rotateY(180deg) scaleX(1)}}
@media(prefers-reduced-motion:reduce){.giftq-paper-next,.giftq-paper-prev,.giftq-paper-curl,.giftq-paper-light{animation-duration:.01ms!important}}

/* v6.6.9: Book-only corrections. Offer database remains untouched. */
.giftq-book-real .giftq-book-page,.giftq-book-real .giftq-book-page-inner{background:#fff!important}
.giftq-book-real article.gift-card{min-height:0!important;overflow:auto!important;scrollbar-width:thin;justify-content:flex-start!important;gap:7px!important}
.giftq-book-real .giftq-book-card-wrap{overflow:auto!important;min-height:0!important}
.giftq-book-real article.gift-card .gift-title,.giftq-book-real article.gift-card h2,.giftq-book-real article.gift-card h3{display:block!important;max-height:none!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;overflow:visible!important;white-space:normal!important}
.giftq-book-real article.gift-card .gift-desc,.giftq-book-real article.gift-card p{max-height:none!important;overflow:visible!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;white-space:normal!important}
.giftq-book-real article.gift-card>.giftq-art-frame,.giftq-book-real article.gift-card>.gift-media{flex:0 0 auto!important;max-height:39%!important;height:clamp(110px,24vw,285px)!important;aspect-ratio:auto!important;background:#fff!important}
.giftq-book-real article.gift-card .giftq-art-frame img,.giftq-book-real article.gift-card .gift-media img{object-fit:contain!important;object-position:center!important;width:100%!important;height:100%!important}
.giftq-book-real .giftq-cover-art img,.giftq-book-cover img{object-fit:contain!important;object-position:center!important;background:#fff!important}
.giftq-book-real .giftq-tier-mini img,.giftq-book-real .giftq-tier-mini:before,.giftq-book-real .giftq-tier-mini:after{display:none!important}
.giftq-book-real .giftq-tier-mini{background:transparent!important;box-shadow:none!important;filter:none!important}
.giftq-book-real img[src*="giftq_logo_"]{display:none!important}
.giftq-book-real .giftq-book-controls button{transform:translateY(-50%)!important;transition:background .18s ease!important}
.giftq-paper-next,.giftq-paper-prev,.giftq-paper-turn{animation-duration:var(--giftq-turn-ms,2200ms)!important;animation-timing-function:cubic-bezier(.4,0,.2,1)!important}
.giftq-paper-light,.giftq-paper-curl{animation-duration:var(--giftq-turn-ms,2200ms)!important}
.giftq-book-speed{display:flex;align-items:center;justify-content:center;gap:12px;margin:12px auto 0;color:#34404c;font:14px system-ui,sans-serif}
.giftq-book-speed input{width:min(260px,42vw);accent-color:#5145d8}
.giftq-book-speed output{min-width:56px}
@media(max-width:780px){.giftq-book-real article.gift-card>.giftq-art-frame,.giftq-book-real article.gift-card>.gift-media{height:25vh!important;max-height:32%!important}}

/* v6.7.0 – wider reader, paper compositing and unclipped pages. */
body:has(.giftq-book-real) .app-main,body:has(.giftq-book-real) main,body:has(.giftq-book-real) .main-content{max-width:none!important;width:100%!important}
.giftq-book-real{width:100%!important;max-width:none!important;padding:8px clamp(45px,4vw,85px)!important;box-sizing:border-box!important}
.giftq-book-real .giftq-book-spread{max-width:1800px!important;width:100%!important;aspect-ratio:1.8!important;max-height:none!important;min-height:min(78vh,820px)!important;padding:6px!important;border:3px solid #4c4038!important;border-radius:5px!important;background:#fff!important;box-shadow:0 12px 36px #19212b22!important;perspective:3400px!important}
.giftq-book-real .giftq-book-page{background:#fff!important;box-shadow:inset 6px 0 17px #10131a0a!important}
.giftq-book-real .giftq-book-page-inner{padding:clamp(10px,1.2vw,24px)!important}
.giftq-book-real .giftq-book-page article.gift-card>.giftq-art-frame,.giftq-book-real .giftq-book-page article.gift-card>.gift-media{height:clamp(170px,26vw,410px)!important;max-height:52%!important}
.giftq-book-real .giftq-side-prev{left:-64px!important}.giftq-book-real .giftq-side-next{right:-64px!important}
.giftq-paper-turn{transform-style:preserve-3d!important;backface-visibility:visible!important;will-change:transform!important;filter:drop-shadow(0 5px 8px #0002);contain:layout style!important}
.giftq-paper-next,.giftq-paper-prev{animation-timing-function:linear!important}
.giftq-paper-light,.giftq-paper-curl{animation-timing-function:linear!important}
@keyframes giftqPageRight{0%{transform:rotateY(0deg) scaleX(1)}10%{transform:rotateY(-5deg) scaleX(.996)}20%{transform:rotateY(-18deg) scaleX(.982)}30%{transform:rotateY(-39deg) scaleX(.949)}40%{transform:rotateY(-64deg) scaleX(.916)}50%{transform:rotateY(-90deg) scaleX(.90)}60%{transform:rotateY(-116deg) scaleX(.916)}70%{transform:rotateY(-141deg) scaleX(.949)}80%{transform:rotateY(-162deg) scaleX(.982)}90%{transform:rotateY(-175deg) scaleX(.996)}100%{transform:rotateY(-180deg) scaleX(1)}}
@keyframes giftqPageLeft{0%{transform:rotateY(0deg) scaleX(1)}10%{transform:rotateY(5deg) scaleX(.996)}20%{transform:rotateY(18deg) scaleX(.982)}30%{transform:rotateY(39deg) scaleX(.949)}40%{transform:rotateY(64deg) scaleX(.916)}50%{transform:rotateY(90deg) scaleX(.90)}60%{transform:rotateY(116deg) scaleX(.916)}70%{transform:rotateY(141deg) scaleX(.949)}80%{transform:rotateY(162deg) scaleX(.982)}90%{transform:rotateY(175deg) scaleX(.996)}100%{transform:rotateY(180deg) scaleX(1)}}
@media(max-width:800px){.giftq-book-real{padding:4px 34px!important}.giftq-book-real .giftq-book-spread{aspect-ratio:.72!important;min-height:65vh!important;max-height:none!important}.giftq-book-real .giftq-book-page article.gift-card>.giftq-art-frame,.giftq-book-real .giftq-book-page article.gift-card>.gift-media{height:clamp(150px,40vh,330px)!important}.giftq-book-real .giftq-side-prev{left:-35px!important}.giftq-book-real .giftq-side-next{right:-35px!important}}

/* v6.7.1: full cover artwork, no clipped edges */
.giftq-book-cover .giftq-cover-art{
  width:100%; min-height:0; flex:1 1 auto; display:flex; align-items:center;
  justify-content:center; overflow:visible; margin:14px 0; border-radius:0; box-shadow:none;
}
.giftq-book-cover .giftq-cover-art img{
  display:block; width:100%; height:100%; max-height:100%; min-height:0;
  aspect-ratio:auto; object-fit:contain!important; object-position:center;
  border-radius:12px; box-shadow:0 8px 20px rgba(28,31,45,.12);
}
.giftq-cover-inner{gap:8px;}
.giftq-cover-meta{margin-top:0;}

/* v6.7.2: retain the previous spread while the next images load. */
.giftq-book-real .giftq-book-spread{position:relative!important;}
.giftq-book-real .giftq-frozen-page{position:absolute!important;top:6px!important;bottom:6px!important;width:calc((100% - 12px)/2)!important;height:auto!important;z-index:32!important;pointer-events:none!important;overflow:hidden!important;background:white!important;}
.giftq-book-real .giftq-frozen-left{left:6px!important;right:auto!important;}
.giftq-book-real .giftq-frozen-right{right:6px!important;left:auto!important;}
.giftq-book-real .giftq-frozen-reveal{animation:giftqRevealBehind var(--giftq-turn-ms,2200ms) linear both!important;}
@keyframes giftqRevealBehind{0%,43%{opacity:1}58%,100%{opacity:0}}
.giftq-book-real .giftq-paper-turn{z-index:40!important;}
.giftq-book-real .giftq-paper-face{backface-visibility:hidden!important;-webkit-backface-visibility:hidden!important;}
.giftq-book-real .giftq-paper-verso{backface-visibility:hidden!important;-webkit-backface-visibility:hidden!important;background:#fff!important;}
.giftq-book-cover .giftq-cover-art{background:transparent!important;border:0!important;}
.giftq-book-cover .giftq-cover-art img{width:auto!important;max-width:100%!important;max-height:100%!important;box-shadow:none!important;background:transparent!important;}
@media(max-width:800px){.giftq-book-real .giftq-frozen-left{display:none!important}.giftq-book-real .giftq-frozen-right{width:calc(100% - 12px)!important;left:6px!important;right:6px!important}}

/* v6.7.4: clean blank turning paper, never render mirrored live product content. */
.giftq-book-real .giftq-paper-turn .giftq-paper-face,.giftq-book-real .giftq-paper-turn .giftq-paper-verso{background:#fff!important;color:transparent!important;user-select:none!important;}
.giftq-book-real .giftq-paper-turn .giftq-paper-face *,.giftq-book-real .giftq-paper-turn .giftq-paper-verso *{visibility:hidden!important;}

/* v6.7.6: Keep both finished pages visible during page-turn.
   Neutral rotating paper overlay must not cover new offers for 1-2 seconds. */
.giftq-book-real .giftq-paper-turn{background:transparent!important;box-shadow:none!important;filter:none!important;}
.giftq-book-real .giftq-paper-turn .giftq-paper-face,
.giftq-book-real .giftq-paper-turn .giftq-paper-verso{background:transparent!important;box-shadow:none!important;opacity:0!important;}
.giftq-book-real .giftq-paper-turn .giftq-paper-light{opacity:.14!important;}
.giftq-book-real .giftq-paper-turn .giftq-paper-curl{opacity:.22!important;}
