/* Keep the existing review palette and geometry intact. */
.jph-engagement-card { position:relative; min-width:0; }
.jph-engagement-card > .jph-card-link { display:contents; color:inherit; text-decoration:none; }
.jph-engagement { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:8px; font:500 14px/1.3 Inter,ui-sans-serif,system-ui,sans-serif; color:#f6f0e7; }
.jph-engagement-card > .jph-engagement { position:absolute; z-index:3; top:16px; right:16px; opacity:0; transition:opacity .18s; }
.jph-engagement-card:hover > .jph-engagement,.jph-engagement-card:focus-within > .jph-engagement { opacity:1; }
.jph-engagement .jph-like,.jph-engagement .jph-download-total { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:9px 13px; border:1px solid rgba(246,240,231,.25); border-radius:14px; background:rgba(18,24,25,.9); color:#f6f0e7; font:inherit; box-shadow:0 4px 14px rgba(0,0,0,.1); }
.jph-engagement .jph-like { cursor:pointer; }
.jph-engagement .jph-like[aria-pressed="true"] { color:#f6f0e7; background:#644b3c; }
.jph-engagement .jph-like:focus-visible { outline:2px solid #f6f0e7; outline-offset:3px; }
.jph-engagement .jph-like:disabled { opacity:.6; cursor:wait; }
.jph-engagement-status { position:absolute; top:100%; right:0; width:230px; font-size:12px; }
.summary > .jph-engagement { position:relative; margin-top:18px; margin-bottom:18px; }
@media (hover:none),(max-width:980px) { .jph-engagement-card > .jph-engagement { opacity:1; top:12px; right:12px; } }
@media (prefers-reduced-motion:reduce) { .jph-engagement-card > .jph-engagement { transition:none; } }

/* Paid product reaction follows the same left edge as its purchase controls. */
body.single-product:not(.jph-free-product) .summary > .jph-engagement {
 justify-content:flex-start !important; width:100% !important;
}
.jph-review-trap { position:absolute !important; width:1px !important; height:1px !important; overflow:hidden !important; clip-path:inset(50%) !important; opacity:0 !important; pointer-events:none !important; }
.jph-review-guard-message { color:rgba(246,240,231,.75); font:400 14px/1.6 Inter,ui-sans-serif,system-ui,sans-serif; }

/* v3.4.3 — Short heartbeat and counter motion, with immediate feedback. */
.jph-engagement .jph-like { transition:background-color .25s ease,border-color .25s ease; }
.jph-engagement .jph-like > span:first-child { display:inline-block; transform-origin:center; transition:color .2s ease; }
.jph-engagement .jph-like [data-likes] { display:inline-block; min-width:1ch; font-variant-numeric:tabular-nums; }
.jph-engagement .jph-like[aria-pressed="true"] { background:rgba(255,134,85,.12); border-color:rgba(255,134,85,.55); color:#f6f0e7; }
.jph-engagement .jph-like[aria-pressed="true"] > span:first-child { color:#ff8655; }
.jph-engagement .jph-like:disabled { opacity:1; cursor:progress; }
.jph-like-pop > span:first-child { animation:jph-heartbeat .52s ease both; }
.jph-like-pop [data-likes] { animation:jph-count-rise .32s ease both; }
.jph-like-release > span:first-child { animation:jph-heart-release .28s ease both; }
.jph-like-release [data-likes] { animation:jph-count-fall .25s ease both; }
@keyframes jph-heartbeat { 0%,100% { transform:scale(1); } 28% { transform:scale(1.28); } 48% { transform:scale(.94); } 70% { transform:scale(1.1); } }
@keyframes jph-count-rise { from { opacity:.3; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
@keyframes jph-heart-release { 40% { transform:scale(.88); } 100% { transform:scale(1); } }
@keyframes jph-count-fall { from { opacity:.4; transform:translateY(-3px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:reduce) {
 .jph-engagement .jph-like,.jph-engagement .jph-like > span:first-child { transition:none; }
 .jph-like-pop > span,.jph-like-release > span { animation:none !important; }
}
