/* P1N Community Engine v0.2.3-alpha.9 — isolated reaction popup. */
/* Legacy hover selectors used to raise the WHOLE forum card above the page,
   obscuring navigation and later content. Keep the post at its normal depth. */
.post-card:has(.ce234-reactions.is-open),
.post-card:has(.ce234-reactions:hover),
.post-card:has(.ce234-reactions:focus-within){
  z-index:auto!important;
  overflow:hidden!important;
}
/* The open tray is temporarily portalled to <body>, so no post ancestor can
   clip it and no post stacking context needs to be elevated. */
.ce239-portal{
  position:fixed!important;z-index:45!important;
  display:flex!important;visibility:visible!important;opacity:1!important;
  pointer-events:auto!important;transform:none!important;
  box-sizing:border-box!important;margin:0!important;
  align-items:flex-start;justify-content:space-between;gap:3px;
  padding:7px 8px;border:1px solid #3d79a3;border-radius:18px;
  background:linear-gradient(160deg,#163553,#102641 95%);
  box-shadow:0 14px 32px #0009,0 2px 10px #07172670;
  max-width:calc(100vw - 16px)!important;
  transition:opacity .12s ease!important;
}
.ce239-portal::after{content:none!important}
.ce239-portal::before{
  content:'';position:absolute;bottom:-7px;left:var(--ce236-notch,50%);
  width:12px;height:12px;transform:translateX(-50%) rotate(45deg);
  background:#122b47;border-right:1px solid #3d79a3;border-bottom:1px solid #3d79a3;
  pointer-events:none;
}
.ce239-portal[data-placement="bottom"]::before{
  bottom:auto;top:-7px;transform:translateX(-50%) rotate(225deg);
}
.ce239-portal button{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  flex:1 1 0;min-width:0;max-width:none;height:53px;
  border:1px solid transparent;border-radius:12px;padding:5px 2px 4px;
  gap:3px;background:transparent;color:#c7d8e9;
  cursor:pointer;transition:background .15s,border-color .15s;
}
.ce239-portal button span{
  display:flex;align-items:center;justify-content:center;
  width:32px;height:31px;font-size:25px;line-height:1;
}
.ce239-portal button small{font-size:9px;font-weight:580;line-height:1.05;white-space:nowrap}
.ce239-portal button:hover,.ce239-portal button:focus-visible{
  background:#224965;border-color:#386e95;color:#fff;
}
.ce239-portal button.is-active{
  background:#12415d;border-color:var(--brand-accent,#35d4f5);color:#85edff;
}
.ce239-portal button:focus-visible{outline:2px solid var(--brand-accent,#35d4f5);outline-offset:1px}
.ce239-portal[data-ce239-compact="1"]{gap:1px;padding:5px 4px}
.ce239-portal[data-ce239-compact="1"] button{height:48px;padding:4px 0;gap:2px}
.ce239-portal[data-ce239-compact="1"] button span{font-size:21px;width:27px;height:28px}
.ce239-portal[data-ce239-compact="1"] button small{font-size:8px}
@media(max-width:640px){
  .ce239-portal{gap:1px;padding:5px 5px;border-radius:16px}
  .ce239-portal button{height:49px;padding:4px 1px}
  .ce239-portal button span{font-size:23px;width:29px;height:29px}
  .ce239-portal button small{font-size:8px}
}
@media(prefers-reduced-motion:reduce){.ce239-portal,.ce239-portal button{transition:none!important}}
