.lsb-reaction-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  min-height: 35px;
  margin: 2px 0 5px;
  pointer-events: auto;
}
.lsb-reaction-bar[hidden] { display: none !important; }
.lsb-reaction-bar button {
  width: 37px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 18px;
  background: rgba(0,0,0,.58);
  box-shadow: 0 2px 8px rgba(0,0,0,.38);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.lsb-reaction-bar button:active { transform: scale(.88); }
.lsb-reaction-bar button:focus-visible { outline: 2px solid #facc15; outline-offset: 2px; }
body.lsb-reactions-on .expiring-want-stack {
  bottom: 329px;
  max-height: calc(100dvh - 419px);
}
.lsb-reaction-layer {
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
}
.lsb-reaction-layer.viewer {
  position: fixed;
  z-index: 24;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(280px + env(safe-area-inset-bottom, 0px));
  width: 160px;
  height: min(40vh, 300px);
}
.lsb-reaction-layer.seller {
  position: absolute;
  z-index: 30;
  left: 50%;
  transform: translateX(-50%);
  bottom: 42px;
  width: min(42%, 155px);
  height: min(70%, 280px);
}
.lsb-reaction-layer.seller.desktop-broadcast {
  bottom: calc(var(--reaction-tracker-height, 145px) + 24px);
  width: min(66%, 260px);
  height: min(42%, 230px);
}
.lsb-reaction-layer.seller.desktop-broadcast .lsb-reaction-particle.named {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  max-width: calc(100% - var(--reaction-left, 8%) - 6px);
  padding: 5px 9px;
  border: 1px solid rgba(250, 204, 21, .8);
  border-radius: 999px;
  background: rgba(15, 23, 42, .9);
  color: #fff;
  font: 800 13px/1.2 system-ui, sans-serif;
  white-space: nowrap;
  text-shadow: 0 1px 2px #000;
}
.lsb-reaction-particle-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lsb-reaction-particle-emoji { flex: 0 0 auto; font-size: 22px; }
.lsb-reaction-tracker {
  flex: 0 0 auto;
  min-width: 0;
  padding: 8px 10px;
  border-top: 1px solid rgba(250,204,21,.5);
  background: rgba(15,23,42,.96);
  color: #fff;
  font: 12px/1.3 system-ui, sans-serif;
}
.lsb-reaction-tracker[hidden],
.lsb-reaction-tracker-button[hidden],
.lsb-reaction-tracker-backdrop[hidden] { display: none !important; }
.lsb-reaction-tracker-head,
.lsb-reaction-person-summary,
.lsb-reaction-person-counts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.lsb-reaction-tracker-head strong { font-size: 13px; }
.lsb-reaction-tracker-head span { color: #fde68a; font-weight: 800; }
.lsb-reaction-tracker-list {
  max-height: 150px;
  overflow-y: auto;
  margin-top: 5px;
  scrollbar-width: thin;
}
.lsb-reaction-empty { color: #cbd5e1; padding: 6px 0; }
.lsb-reaction-person {
  position: relative;
  padding: 6px 58px 6px 0;
  border-top: 1px solid rgba(255,255,255,.11);
}
.lsb-reaction-person-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lsb-reaction-person-total { flex: 0 0 auto; color: #cbd5e1; font-size: 11px; }
.lsb-reaction-person-counts { justify-content: flex-start; flex-wrap: wrap; margin-top: 3px; }
.lsb-reaction-count { white-space: nowrap; background: rgba(255,255,255,.1); border-radius: 6px; padding: 2px 5px; }
.lsb-reaction-block {
  position: absolute;
  right: 0;
  bottom: 6px;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  background: #7f1d1d;
  color: #fff;
  padding: 3px 6px;
  font: 700 11px system-ui, sans-serif;
  cursor: pointer;
}
.lsb-reaction-block:disabled { opacity: .6; cursor: default; }
.lsb-reaction-tracker-button {
  position: fixed;
  right: 10px;
  bottom: calc(360px + env(safe-area-inset-bottom, 0px));
  z-index: 92;
  min-width: 48px;
  height: 48px;
  border: 1px solid #fde68a;
  border-radius: 999px;
  background: #facc15;
  color: #111827;
  font: 900 13px system-ui, sans-serif;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  cursor: pointer;
}
.lsb-reaction-tracker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(0,0,0,.7);
}
.lsb-reaction-tracker-panel {
  position: relative;
  width: min(100%, 440px);
  max-height: min(70dvh, 620px);
  overflow: hidden;
  border: 1px solid rgba(250,204,21,.75);
  border-radius: 14px;
  background: #0f172a;
  box-shadow: 0 20px 55px rgba(0,0,0,.65);
}
.lsb-reaction-tracker-panel .lsb-reaction-tracker { padding: 14px; border: 0; }
.lsb-reaction-tracker-panel .lsb-reaction-tracker-list { max-height: calc(min(70dvh, 620px) - 70px); }
.lsb-reaction-tracker-close {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font: 800 26px system-ui, sans-serif;
  cursor: pointer;
}
.lsb-reaction-tracker-panel .lsb-reaction-tracker-head { padding-right: 34px; }
.lsb-reaction-seller-host { position: relative; }
.lsb-reaction-particle {
  position: absolute;
  bottom: 0;
  left: var(--reaction-left, 35%);
  font-size: clamp(25px, 3.5vw, 43px);
  line-height: 1;
  opacity: .75;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.55));
  animation: lsbReactionFloat 3.8s ease-out forwards;
  will-change: transform, opacity;
}
@keyframes lsbReactionFloat {
  0% { transform: translate3d(0, 0, 0) scale(.75); opacity: .75; }
  55% { opacity: .7; }
  100% { transform: translate3d(var(--reaction-drift, 12px), -245px, 0) scale(1.14); opacity: 0; }
}
@media (max-width: 600px) {
  .lsb-reaction-bar { min-height: 31px; gap: 8px; margin: 1px 0 4px; }
  .lsb-reaction-bar button { width: 34px; height: 31px; font-size: 18px; }
  body.lsb-reactions-on .expiring-want-stack {
    bottom: 295px;
    max-height: calc(100dvh - 385px);
  }
  .lsb-reaction-layer.viewer {
    bottom: calc(255px + env(safe-area-inset-bottom, 0px));
    width: 100px;
    height: min(29vh, 190px);
  }
  .lsb-reaction-layer.seller { width: 96px; height: min(62%, 190px); }
  .lsb-reaction-particle { font-size: 26px; }
  @keyframes lsbReactionFloat {
    0% { transform: translate3d(0, 0, 0) scale(.75); opacity: .75; }
    55% { opacity: .7; }
    100% { transform: translate3d(var(--reaction-drift, 10px), -165px, 0) scale(1.1); opacity: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .lsb-reaction-particle { animation-duration: 1s; }
}

/* Let seller reactions rise from the chat into the middle of the phone preview. */
.lsb-reaction-layer.seller.mobile-broadcast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(var(--mobile-controls-height, 384px) + clamp(112px, 21dvh, 160px));
  width: min(40vw, 170px);
  height: min(38dvh, 290px);
}
.lsb-reaction-layer.seller.mobile-broadcast .lsb-reaction-particle {
  animation-name: lsbMobileSellerReactionFloat;
}
@keyframes lsbMobileSellerReactionFloat {
  0% { transform: translate3d(0,0,0) scale(.75); opacity: .75; }
  55% { opacity: .7; }
  100% { transform: translate3d(var(--reaction-drift, 10px),-225px,0) scale(1.1); opacity: 0; }
}
