/* La Bétaillère — réactions emoji La Voix du Bétail v1 */

.lb-comment-reaction-summary {
  appearance: none;
  -webkit-appearance: none;
  height: 20px;
  min-height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(102, 220, 232, .16);
  border-radius: 999px;
  background: rgba(2, 20, 29, .58);
  color: rgba(212, 239, 243, .78);
  font: 750 10px/1 system-ui, sans-serif;
  cursor: pointer;
  vertical-align: middle;
}

.lb-comment-reaction-summary.is-mine {
  border-color: rgba(87, 230, 241, .42);
  background: rgba(8, 55, 67, .66);
  color: #bff7fb;
}

.lb-comment-reaction-summary__emoji {
  font-size: 10px;
  letter-spacing: -3px;
  padding-right: 2px;
}

.lb-comment-reaction-summary__count {
  min-width: 7px;
  text-align: center;
}

.lb-comment-react {
  border: 1px solid rgba(123, 220, 231, .22) !important;
  color: rgba(194, 239, 244, .82) !important;
  font-family: system-ui, sans-serif !important;
  font-size: 11px !important;
}

.lb-comment-react.is-reacted {
  border-color: rgba(80, 233, 244, .58) !important;
  background: rgba(7, 60, 73, .78) !important;
  opacity: 1 !important;
}

.lb-comment-reaction-picker {
  position: fixed;
  z-index: 17000;
  min-height: 46px;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(74, 229, 241, .34);
  border-radius: 999px;
  background: rgba(2, 18, 27, .985);
  box-shadow: 0 12px 30px rgba(0,0,0,.48), 0 0 16px rgba(38, 222, 238, .10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform-origin: center bottom;
  animation: lbReactionPickerIn .12s ease-out;
}

.lb-comment-reaction-picker[hidden] {
  display: none !important;
}

.lb-comment-reaction-option {
  appearance: none;
  -webkit-appearance: none;
  width: 35px;
  min-width: 35px;
  height: 35px;
  min-height: 35px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
}

.lb-comment-reaction-option > span {
  display: block;
  font-size: 21px;
  line-height: 1;
  filter: saturate(.96);
}

.lb-comment-reaction-option > small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.lb-comment-reaction-option:hover,
.lb-comment-reaction-option:focus-visible,
.lb-comment-reaction-option.is-selected {
  outline: none;
  transform: translateY(-3px) scale(1.12);
  background: rgba(42, 215, 231, .12);
  box-shadow: 0 5px 12px rgba(0,0,0,.24);
}

.lb-comment-reaction-option.is-selected {
  box-shadow: 0 0 0 1px rgba(72, 232, 243, .44), 0 5px 12px rgba(0,0,0,.24);
}

.lb-comment-reaction-picker.is-busy {
  pointer-events: none;
  opacity: .72;
}

@keyframes lbReactionPickerIn {
  from { opacity: 0; transform: translateY(4px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Accueil compact : aucune nouvelle ligne permanente. */
html[data-lb-v4-live="1"] body.lb-v3 #home .live-wall-card--home .lb-comment-reaction-summary {
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 4px !important;
  gap: 2px !important;
  font-size: 8.5px !important;
}

html[data-lb-v4-live="1"] body.lb-v3 #home .live-wall-card--home .lb-comment-reaction-summary__emoji {
  font-size: 9px !important;
}

html[data-lb-v4-live="1"] body.lb-v3 #home .live-wall-card--home .lb-comment-react {
  font-size: 9px !important;
}

/* Plein écran : un peu plus tactile sans grossir la conversation. */
.lb-voice-chat-fullscreen__feed .lb-comment-reaction-summary {
  height: 21px !important;
  min-height: 21px !important;
  padding: 0 5px !important;
  font-size: 9px !important;
}

@media (max-width: 720px), (hover:none) and (pointer:coarse) {
  .lb-comment-reaction-picker {
    min-height: 44px;
    padding: 4px 6px;
    gap: 2px;
  }

  .lb-comment-reaction-option {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .lb-comment-reaction-option > span {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lb-comment-reaction-picker { animation: none; }
  .lb-comment-reaction-option { transition: none; }
}


/* Correctif anti-héritage des boutons globaux BER : les réactions doivent rester minuscules. */
.lb-comment-actions .lb-comment-reaction-summary {
  width: auto !important;
  min-width: 0 !important;
  max-width: 56px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
}

.lb-comment-actions .lb-comment-reaction-summary__emoji {
  max-width: 31px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.lb-comment-reaction-picker {
  box-sizing: border-box !important;
  width: auto !important;
  max-width: calc(100vw - 16px) !important;
  margin: 0 !important;
}

.lb-comment-reaction-picker .lb-comment-reaction-option {
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 35px !important;
  max-height: 35px !important;
}

@media (max-width: 720px), (hover:none) and (pointer:coarse) {
  html[data-lb-v4-live="1"] body.lb-v3 #home .live-wall-card--home .lb-comment-reaction-summary {
    width: auto !important;
    min-width: 0 !important;
    max-width: 52px !important;
    padding: 0 3px !important;
  }

  .lb-comment-reaction-picker .lb-comment-reaction-option {
    max-width: 34px !important;
    max-height: 34px !important;
  }
}


/* Réaction au repos = repère Facebook familier : pouce gris, sans couleur vive. */
.lb-comment-react:not(.is-reacted) {
  color: rgba(166, 181, 188, .78) !important;
  border-color: rgba(150, 170, 178, .20) !important;
  background: rgba(7, 20, 28, .42) !important;
  filter: grayscale(1) saturate(0) !important;
  opacity: .82 !important;
}

.lb-comment-react:not(.is-reacted):hover,
.lb-comment-react:not(.is-reacted):focus-visible {
  color: rgba(212, 229, 234, .96) !important;
  border-color: rgba(168, 195, 202, .38) !important;
  background: rgba(18, 42, 51, .64) !important;
  opacity: 1 !important;
}

.lb-comment-react.is-reacted {
  filter: none !important;
}
