/* Vrienda v4.1.7 Persistent Picker + Public Counters */

.vrienda-reactions{
  position:relative;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.reaction-trigger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:0 16px;
  border:none;
  border-radius:999px;
  background:#ff7a18;
  color:#fff;
  font-weight:900;
  cursor:pointer;
  transition:.2s ease;
}

.reaction-trigger:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(255,122,24,.28);
}

.reaction-picker{
  position:absolute;
  left:0;
  bottom:48px;
  display:flex;
  gap:10px;
  padding:12px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 12px 34px rgba(0,0,0,.16);
  opacity:0;
  pointer-events:none;
  transform:translateY(12px) scale(.92);
  transition:.18s ease;
  z-index:9999;
}

.reaction-picker.active{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.reaction-picker button{
  width:50px;
  height:50px;
  border:none;
  border-radius:50%;
  background:#f7f3ef;
  font-size:26px;
  cursor:pointer;
  transition:.16s ease;
}

.reaction-picker button:hover{
  transform:translateY(-8px) scale(1.18);
}

.reaction-picker button.selected{
  background:#ffe0c2;
  box-shadow:inset 0 0 0 2px #ff7a18;
}

.reaction-counts{
  display:flex!important;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  min-height:28px;
}

.reaction-count-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:28px;
  padding:0 9px;
  border-radius:999px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  font-weight:900;
  font-size:13px;
}

.reaction-count-pill.selected{
  background:#ff7a18;
  color:#fff;
  border-color:#ff7a18;
}

.reaction-error{
  display:none;
  width:100%;
  padding:9px 12px;
  border-radius:14px;
  background:#fef2f2;
  border:1px solid #fecaca;
  color:#991b1b;
  font-size:13px;
  font-weight:900;
}

.reaction-error.active{
  display:block;
}

.reaction-success{
  animation:reactionBurst .4s ease;
}

@keyframes reactionBurst{
  0%{transform:scale(1)}
  40%{transform:scale(1.12)}
  100%{transform:scale(1)}
}

@media(max-width:900px){
  .reaction-picker{
    position:fixed;
    left:50%;
    bottom:90px;
    transform:translateX(-50%) translateY(14px) scale(.92);
    border-radius:24px;
    max-width:calc(100vw - 24px);
    overflow-x:auto;
  }

  .reaction-picker.active{
    transform:translateX(-50%) translateY(0) scale(1);
  }

  .reaction-picker button{
    width:54px;
    height:54px;
    font-size:28px;
    flex:0 0 auto;
  }

  .reaction-counts{
    width:100%;
    margin-top:4px;
  }
}
