/* ==========================================================================
   rb-2040-actions.css — post action bar / reactions / comments (2040)
   Shared by BOTH themes (ringbd + sunshine), feed + profile feed + post
   view. Loaded LAST in container.phtml, so it wins ties with style.css
   but deliberately does NOT fight the tuned 2040 rules that already exist:
   - sunshine feed  (.rb-2040-feed .rb-2040-actions, rb-2040-feed.css)
   - sunshine post  (.rb2040-postpage-wrap .post_foot_actions, rb-2040-post.css)
   - ringbd mobile  (max-width:767px, rb-2027-premium.css, !important)
   Those keep their values; this file supplies the premium look everywhere
   they do NOT cover: ringbd desktop, sunshine profile feed, the reaction
   picker, and desktop comments. Sunshine tokens with fallbacks throughout.
   2026-11-23 Step 2B (post actions). No JS hooks renamed, no IDs changed.
   ========================================================================== */

/* ------------------------------------------------------------------ */
/* 1. ACTION ROW — Like / Comment / Share (+ Save on ringbd)           */
/* ------------------------------------------------------------------ */

/* Divider above the row (sunshine wrapper; ringbd uses its own <hr>). */
.post .post_foot_actions.rb-2040-actions {
  border-top: 1px solid var(--rb-divider, #EBEDF0);
  margin-top: 12px;
  padding-top: 4px;
}

/* The button row itself. Flex so Like/Comment/Share(/Save) share the row
   evenly on every width; the ringbd mobile premium block keeps its own
   centring/gap on <=767px (its !important wins there, by design). */
.post #wo_post_stat_button {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 2px 0;
  width: 100%;
  border-top: 0;
}

/* Base pill button. Weak-ish selector on purpose: the scoped sunshine
   feed/post rules (0,3,0) keep their 40px/48px heights and radii where
   they exist; this is the look for ringbd desktop + sunshine profile. */
.post .post_foot_actions.rb-2040-actions .stat-item,
.post #wo_post_stat_button .stat-item {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 8px;
  border: 0;
  border-radius: var(--rb-radius-full, 999px);
  background: transparent;
  color: var(--rb-ink-700, #374151);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms var(--rb-ease-out-cubic, cubic-bezier(0.215, 0.61, 0.355, 1)),
    color 150ms var(--rb-ease-out-cubic, cubic-bezier(0.215, 0.61, 0.355, 1)),
    transform 100ms var(--rb-ease-out-cubic, cubic-bezier(0.215, 0.61, 0.355, 1));
}
.post .post_foot_actions.rb-2040-actions .stat-item:hover,
.post #wo_post_stat_button .stat-item:hover {
  background: var(--rb-surface-2, #E4E6EB);
}
.post .post_foot_actions.rb-2040-actions .stat-item:active,
.post #wo_post_stat_button .stat-item:active {
  transform: scale(0.98);
}
.post .post_foot_actions.rb-2040-actions .stat-item:focus-visible,
.post #wo_post_stat_button .stat-item:focus-visible {
  outline: 2px solid var(--rb-info, #1570EF);
  outline-offset: 2px;
}

/* Icons: the Like thumb ships with 58.5px width/height attributes and the
   comment/share SVGs with 682pt ones — pin them all. 20px desktop keeps
   icon and 13px label in balance; sunshine feed keeps its 24px (its more
   specific rule wins), ringbd mobile keeps 18px (premium !important). */
.post .post_foot_actions.rb-2040-actions .stat-item svg,
.post .post_foot_actions.rb-2040-actions .stat-item img,
.post #wo_post_stat_button .stat-item svg,
.post #wo_post_stat_button .stat-item img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* Post page keeps its 48px row height and gets the same full-pill radius
   as the feed (unifies the two 2040 radii: feed 999px, post 8px -> 999px). */
.rb2040-postpage-wrap .post_foot_actions .stat-item {
  min-height: 48px;
  border-radius: var(--rb-radius-full, 999px);
}

/* The Like control is a .wo-reaction (reaction mode) or #like-button
   (plain-like mode) inside the same row. It must anchor the picker. */
.post #wo_post_stat_button .wo-reaction {
  position: relative;
}

/* Reacted / liked state: brand tint + brand-700 text. :has(.active-like)
   is what the live JS leaves behind (extra_js adds .active to
   .wo-reaction-post and Wo_GetReactedTextIcon renders .active-like);
   the reacted label keeps its own reaction colour where it sets one. */
.post #wo_post_stat_button .wo-reaction-post.active,
.post #wo_post_stat_button .stat-item:has(.active-like) {
  background: var(--rb-brand-50, #E6F7EE);
  color: var(--rb-brand-700, #006A4E);
}
.post #wo_post_stat_button .rb-save-action.rb-saved {
  background: var(--rb-brand-50, #E6F7EE);
  color: var(--rb-brand-700, #006A4E);
}

/* Counts row (sunshine .right_stats / ringbd top .stats.post-actions):
   compact text counts, not grey Bootstrap pills. */
.post .right_stats .stats.post-actions,
.post .stats.post-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
}
.post .right_stats .stat-item,
.post .stats.post-actions .stat-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 8px;
  border: 0;
  border-radius: var(--rb-radius-full, 999px);
  background: transparent;
  color: var(--rb-ink-500, #65676B);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 150ms var(--rb-ease-out-cubic, cubic-bezier(0.215, 0.61, 0.355, 1)),
    color 150ms var(--rb-ease-out-cubic, cubic-bezier(0.215, 0.61, 0.355, 1));
}
.post .right_stats .stat-item:hover,
.post .stats.post-actions .stat-item:hover {
  background: var(--rb-surface-2, #E4E6EB);
  color: var(--rb-ink-900, #111827);
}
.post .right_stats .stat-item svg,
.post .stats.post-actions .stat-item svg,
.post .right_stats .stat-item img,
.post .stats.post-actions .stat-item img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.post .right_stats .stat-item:focus-visible,
.post .stats.post-actions .stat-item:focus-visible {
  outline: 2px solid var(--rb-info, #1570EF);
  outline-offset: 2px;
}

/* Reaction-emoji stack in the counts row: flat 20px icons, slight
   overlap, never clipped (matches the mobile premium fix). */
.post .like-emo {
  display: inline-flex;
  align-items: center;
}
.post .like-emo .how_reacted,
.post .like-emo .inline_post_count_emoji {
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0 2px 0 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  flex: 0 0 auto;
}
.post .like-emo .inline_post_count_emoji img,
.post .like-emo .how_reacted img {
  width: 20px;
  height: 20px;
  display: block;
}
.post .like-emo .how_reacted + .how_reacted,
.post .like-emo .inline_post_count_emoji + .inline_post_count_emoji {
  margin-left: -6px;
}

/* RingBD mobile counts line (.rb-m-counts): keep the premium mobile
   layout, add the hover affordance + tighter desktop treatment. */
.post .rb-m-counts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 0;
  font-size: 14px;
  color: var(--rb-ink-500, #65676B);
}
.post .rb-m-counts .rb-m-left,
.post .rb-m-counts .rb-m-right {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  border-radius: var(--rb-radius-full, 999px);
  cursor: pointer;
}
.post .rb-m-counts .rb-m-left:hover,
.post .rb-m-counts .rb-m-right:hover {
  color: var(--rb-ink-900, #111827);
}
.post .rb-m-counts .rb-m-num {
  font-weight: 600;
  color: var(--rb-ink-500, #65676B);
  margin-left: 4px;
}
.post .rb-m-counts .rb-m-dot {
  margin: 0 5px;
}
.post .rb-m-counts .how_many_reacts {
  display: none;
}

/* ------------------------------------------------------------------ */
/* 2. REACTION PICKER — glass pill, pop-in, hover grow + label         */
/* ------------------------------------------------------------------ */
.post .reactions-box {
  background: var(--rb-surface, #FFFFFF);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--rb-radius-full, 999px);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.18), 0 2px 8px rgba(17, 24, 39, 0.08);
  padding: 6px 8px;
  /* RB Like-fix 2026-11-25: the picker is an absolutely-positioned <ul> with
     no width, so it shrink-to-fits to the narrow Like button and the 6 emojis
     wrap into a 60x250 vertical strip over the button. Pin it to one row:
     content width (~264px) + no wrap. */
  width: max-content;
  max-width: calc(100vw - 24px);
  white-space: nowrap;
  top: -58px;
  left: 0;
  z-index: 999;
}
.post .reactions-box .reaction {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 180ms var(--rb-ease-out-cubic, cubic-bezier(0.215, 0.61, 0.355, 1));
}
.post .reactions-box .reaction img,
.post .reactions-box .reaction svg {
  width: 40px;
  height: 40px;
  padding: 2px;
}
.post .reactions-box .reaction:hover {
  transform: scale(1.3) translateY(-6px);
}
/* Hover label from the data-reaction-lang the template already renders. */
.post .reactions-box .reaction:hover::after {
  content: attr(data-reaction-lang);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: var(--rb-radius-full, 999px);
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
}
/* Comment picker sits inside the narrower bubble column. */
.post .post-footer .comments-list .comment .comment-body .reactions-box {
  top: -55px;
  left: -8px;
}

/* ------------------------------------------------------------------ */
/* 3. COMMENTS — bubbles, avatar ring, Like/Reply row, threading       */
/* ------------------------------------------------------------------ */
.post .post-footer.post-comments {
  margin-top: 4px;
}
.post .post-footer .comments-list .comment {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0 12px;
}
.post .post-footer .comments-list .comment .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--rb-surface, #FFFFFF);
  flex: 0 0 auto;
}
.post .post-footer .comments-list .comment .comment-body {
  flex: 1 1 auto;
  min-width: 0;
}
/* Bubble: name + time + text share one soft grey bubble (same language
   as the mobile premium block, which styles .comment-heading the same
   way on <=767px). */
.post .post-footer .comments-list .comment .comment-heading {
  display: inline-block;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 18px;
  background: var(--rb-surface-2, #F0F2F5);
}
.post .post-footer .comments-list .comment .comment-heading .user {
  font-size: 13px;
  font-weight: 600;
  color: var(--rb-ink-900, #111827);
  margin: 0;
}
.post .post-footer .comments-list .comment .comment-heading .time {
  font-size: 12px;
  color: var(--rb-ink-500, #65676B);
}
.post .post-footer .comments-list .comment .comment-text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--rb-ink-900, #111827);
  overflow-wrap: anywhere;
}
.post .post-footer .comments-list .comment .comment-text p {
  margin: 0;
}
/* Like / Reply / counts row under each bubble. */
.post .post-footer .comments-list .comment .comment-options {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rb-ink-500, #65676B);
}
.post .post-footer .comments-list .comment .comment-options .pointer {
  border-radius: var(--rb-radius-full, 999px);
  padding: 2px 4px;
  transition: color 150ms var(--rb-ease-out-cubic, cubic-bezier(0.215, 0.61, 0.355, 1));
}
.post .post-footer .comments-list .comment .comment-options .pointer:hover {
  color: var(--rb-ink-900, #111827);
  text-decoration: underline;
}
.post .post-footer .comments-list .comment .comment-options svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}
.post .post-footer .comments-list .comment .comment-options .active-like,
.post .post-footer .comments-list .comment .comment-options .comment-status-reaction.active-like {
  color: var(--rb-brand-700, #006A4E);
}
/* The comment Like control anchors its own picker. */
.post .post-footer .comments-list .comment .wo-reaction-comment {
  position: relative;
}
/* Replies: indent + a hairline rail so threading reads at a glance. */
.post .post-footer .comments-list .comment .comment-replies {
  margin: 8px 0 0 40px;
  padding-left: 12px;
  border-left: 2px solid var(--rb-divider, #EBEDF0);
}
.post .post-footer .comments-list .comment .comment-replies .comment {
  padding-left: 0;
  padding-right: 0;
}
.post .post-footer .comments-list .comment .comment-replies .comment .avatar {
  width: 28px;
  height: 28px;
}
.post .post-footer .comments-list .comment .view-more-replies {
  font-size: 13px;
  font-weight: 600;
  color: var(--rb-brand-700, #006A4E);
  cursor: pointer;
}
.post .post-footer .comments-list .comment .view-more-replies:hover {
  text-decoration: underline;
}

/* "View all N comments" row + avatar stack (desktop; mobile premium
   already defines the same on <=767px). */
.post .post-footer .view-more-wrapper,
.post .post-footer .view-more-comments {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--rb-ink-700, #374151);
  cursor: pointer;
}
.post .post-footer .view-more-wrapper:hover,
.post .post-footer .view-more-comments:hover {
  color: var(--rb-ink-900, #111827);
}
.post .post-footer .view-more-comments .rb-viewall-avatars {
  display: inline-flex;
}
.post .post-footer .view-more-comments .rb-viewall-avatars img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--rb-surface, #FFFFFF);
  margin-left: -8px;
}
.post .post-footer .view-more-comments .rb-viewall-avatars img:first-child {
  margin-left: 0;
}

/* ------------------------------------------------------------------ */
/* 4. COMPOSER — pill input, round brand send, quiet tool icons        */
/* ------------------------------------------------------------------ */
.post .post-footer .post-commet-textarea .comment-textarea {
  border: 0;
  border-radius: 20px;
  background: var(--rb-surface-2, #F0F2F5);
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--rb-ink-900, #111827);
  resize: none;
  box-shadow: none;
}
.post .post-footer .post-commet-textarea .comment-textarea:focus {
  outline: none;
  background: var(--rb-surface, #FFFFFF);
  box-shadow: 0 0 0 2px var(--rb-brand-100, #CDEEDD);
}
.post .post-footer .post-commet-textarea .comment-textarea::placeholder {
  color: var(--rb-ink-500, #65676B);
}
.post .post-footer .post-commet-textarea .comment_combo_footer .btn-file,
.post .post-footer .post-commet-textarea .comment_combo_footer .btn {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 6px;
  border-radius: var(--rb-radius-full, 999px);
  color: var(--rb-ink-500, #65676B);
}
.post .post-footer .post-commet-textarea .comment_combo_footer .btn-file:hover,
.post .post-footer .post-commet-textarea .comment_combo_footer .btn:hover {
  background: var(--rb-surface-2, #E4E6EB);
  color: var(--rb-ink-900, #111827);
}
.post .post-footer .post-commet-textarea .comment_combo_footer .btn-file svg,
.post .post-footer .post-commet-textarea .comment_combo_footer .btn svg {
  width: 20px;
  height: 20px;
}
/* Round brand send button. */
.post .post-footer .post-commet-textarea .sendbtn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--rb-radius-full, 999px);
  background: var(--rb-brand-500, #00A651);
  color: #fff;
  box-shadow: var(--rb-elev-1, 0 1px 2px rgba(17, 24, 39, 0.14));
  transition: background-color 150ms var(--rb-ease-out-cubic, cubic-bezier(0.215, 0.61, 0.355, 1)),
    transform 100ms var(--rb-ease-out-cubic, cubic-bezier(0.215, 0.61, 0.355, 1));
}
.post .post-footer .post-commet-textarea .sendbtn:hover {
  background: var(--rb-brand-600, #008A44);
}
.post .post-footer .post-commet-textarea .sendbtn:active {
  transform: scale(0.94);
}
.post .post-footer .post-commet-textarea .sendbtn svg {
  width: 18px;
  height: 18px;
}
.post .post-footer .post-commet-textarea .sendbtn svg path {
  fill: #fff;
}

/* ------------------------------------------------------------------ */
/* 5. SMALL SCREENS — keep labels, keep 40px targets, picker on-screen */
/* ------------------------------------------------------------------ */
@media (max-width: 767px) {
  .post #wo_post_stat_button .stat-item {
    min-height: 40px;
    font-size: 13px;
  }
  /* Picker is 6 x 40px + padding (~264px); the Like button sits at the
     row's left edge, so left:0 keeps it inside a 360px viewport. */
  .post .reactions-box {
    left: 0;
    padding: 4px 6px;
  }
  .post .post-footer .comments-list .comment {
    padding: 0 12px;
  }
  .post .post-footer .comments-list .comment .comment-replies {
    margin-left: 32px;
    padding-left: 10px;
  }
}
@media (max-width: 360px) {
  .post #wo_post_stat_button .stat-item {
    gap: 4px;
    padding: 4px 4px;
  }
  .post .reactions-box .reaction,
  .post .reactions-box .reaction img,
  .post .reactions-box .reaction svg {
    width: 36px;
    height: 36px;
  }
}

/* ------------------------------------------------------------------ */
/* 6. 2026 PREMIUM OVERRIDE — action bar (2026-11-24, staging)         */
/*    WHY: rb-2027-premium.css (feed-sun, 2026-11-21) paints every     */
/*    action button as a pale-grey filled pill (rgba(241,245,249,.85)  */
/*    !important + hairline border) and stock style.css hides the      */
/*    Comment/Share labels on desktop (.like-btn-mobile display:none)  */
/*    — that flat grey pill + icon-only Comment/Share is the 2022      */
/*    look Dipu flagged. This section (loaded LAST, higher            */
/*    specificity, !important throughout) restores the 2040 intent:    */
/*    transparent pills, labels on every button at every width, a      */
/*    real brand-tint active state, and icon micro-motion. No JS, no   */
/*    markup, no behaviour change. Geometry KEPT: 40px feed / 48px     */
/*    post rows. Tokens only, no new colours.                          */
/* ------------------------------------------------------------------ */

/* 6.1 Resting buttons: transparent, no border (kills the grey fill). */
.post .post_foot_actions.rb-2040-actions #wo_post_stat_button .stat-item,
.rb-2040-feed .rb-2040-actions #wo_post_stat_button .stat-item,
.rb2040-postpage-wrap .post_foot_actions #wo_post_stat_button .stat-item {
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

/* 6.2 Labels on every button, every width (Comment/Share were icon-only
   on desktop because .like-btn-mobile is display:none above 767px). */
.post #wo_post_stat_button .stat-item .like-btn-mobile {
  display: inline !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.post #wo_post_stat_button .stat-item .like-btn {
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* 6.3 Icons: 22px desktop, 20px mobile; hover micro-scale. */
.post #wo_post_stat_button .stat-item svg {
  width: 22px !important;
  height: 22px !important;
  transition: transform 150ms var(--rb-ease-out-cubic, cubic-bezier(0.215, 0.61, 0.355, 1));
}
.post #wo_post_stat_button .stat-item:hover svg {
  transform: scale(1.12);
}
/* Reacted emoji stays 20px (its own pin rules win inside .like-btn). */
.post #wo_post_stat_button .stat-item .like-btn [class*="status-reaction-"] img,
.post #wo_post_stat_button .stat-item .like-btn .inline_post_count_emoji img {
  width: 20px !important;
  height: 20px !important;
}

/* 6.4 Hover: neutral surface-2 + 1px lift (replaces the green-tint hover). */
.post .post_foot_actions.rb-2040-actions #wo_post_stat_button .stat-item:hover,
.rb-2040-feed .rb-2040-actions #wo_post_stat_button .stat-item:hover,
.rb2040-postpage-wrap .post_foot_actions #wo_post_stat_button .stat-item:hover {
  background: var(--rb-surface-2, #E4E6EB) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}
.post .post_foot_actions.rb-2040-actions #wo_post_stat_button .stat-item:active,
.rb-2040-feed .rb-2040-actions #wo_post_stat_button .stat-item:active,
.rb2040-postpage-wrap .post_foot_actions #wo_post_stat_button .stat-item:active {
  transform: scale(0.98);
}

/* 6.5 Active (liked / reacted / saved): real brand tint, never colour-only.
   SPECIFICITY: these selectors are (1,5,0) / (1,4,0) — deliberately ABOVE
   §6.1's resting rule (max (1,4,0)), which otherwise wins the !important
   tie and leaves active buttons transparent (caught by the after-probe:
   Saved measured rgba(0,0,0,0) instead of brand-50). All three §6.1
   contexts (post / feed / post-page-wrap) are covered.
   The reacted label keeps its own reaction colour (Love = red, etc.), so
   the :has(.active-like) rule tints only the background, not the text. */
.post .post_foot_actions.rb-2040-actions #wo_post_stat_button .wo-reaction-post.active,
.post .post_foot_actions.rb-2040-actions #wo_post_stat_button .rb-save-action.rb-saved,
.rb-2040-feed .rb-2040-actions #wo_post_stat_button .wo-reaction-post.active,
.rb-2040-feed .rb-2040-actions #wo_post_stat_button .rb-save-action.rb-saved,
.rb2040-postpage-wrap .post_foot_actions #wo_post_stat_button .wo-reaction-post.active,
.rb2040-postpage-wrap .post_foot_actions #wo_post_stat_button .rb-save-action.rb-saved {
  background: var(--rb-brand-50, #E6F7EE) !important;
  color: var(--rb-brand-700, #006A4E) !important;
  border-color: transparent !important;
}
.post .post_foot_actions.rb-2040-actions #wo_post_stat_button .stat-item:has(.active-like),
.rb-2040-feed .rb-2040-actions #wo_post_stat_button .stat-item:has(.active-like),
.rb2040-postpage-wrap .post_foot_actions #wo_post_stat_button .stat-item:has(.active-like) {
  background: var(--rb-brand-50, #E6F7EE) !important;
  border-color: transparent !important;
}

/* 6.6 Reaction picker: pop-in on open (replays each time it displays). */
@keyframes rb-actions-picker-in {
  from { opacity: 0; transform: translateY(6px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .post .reactions-box {
    animation: rb-actions-picker-in 180ms var(--rb-ease-out-cubic, cubic-bezier(0.215, 0.61, 0.355, 1));
  }
}

/* 6.7 Counts row: keep the chip look, make hover honest. */
.post .right_stats .stat-item:hover,
.post .stats.post-actions .stat-item:hover {
  background: var(--rb-surface-2, #E4E6EB) !important;
}

/* 6.8 Small screens: 20px icons, labels kept, 40px targets kept. */
@media (max-width: 767px) {
  .post #wo_post_stat_button .stat-item svg {
    width: 20px !important;
    height: 20px !important;
  }
  .post #wo_post_stat_button .stat-item:hover svg {
    transform: none;
  }
}

/* D-08 note (2026-11-25, stream B): §6 above is byte-identical to prod
   ringbd rb-2040-actions.css (936 lines, §6+§7) — merged in so a future
   staging→prod port cannot silently drop it. §7 below (with FIX1-2b /
   §7.10-7.12) is staging's newer work and still wins by load order. */
/* ------------------------------------------------------------------ */
/* 7. PREMIUM ACTION BAR (2026-11-25) — flat 2026 rebuild              */
/*    WHY: ringbd desktop pills were a pale-grey fill                  */
/*    (rgba(241,245,249,.85) !important, rb-2027-premium.css:553/1874) */
/*    with grey #65676B text and NO visible liked state (the mint      */
/*    from §1 loses the !important tie); sunshine (§6) went fully      */
/*    borderless and read as bare text links. This section owns the    */
/*    resting look in ONE place for both themes: transparent pill +    */
/*    hairline divider border + ink-900 600 labels at every width,     */
/*    22px icons, surface-2 hover + 1px lift, mint #E6F7EE / #006A4E   */
/*    active state, label-only Share (its count lives in the counts    */
/*    row), counts ABOVE the actions in both themes, and a             */
/*    width-pinned picker that can never wrap over the Like button.    */
/*    Loaded last, so these (1,4,0) rules win the !important ties      */
/*    with rb-2027-premium.css. Geometry KEPT: 40px feed / 48px        */
/*    sunshine post rows. Tokens only, no new colours.                 */
/* ------------------------------------------------------------------ */

/* 7.1 Resting buttons: transparent pill, hairline divider border, ink-900. */
.post #wo_post_stat_button .stat-item,
.post .post_foot_actions.rb-2040-actions #wo_post_stat_button .stat-item,
.rb-2040-feed .rb-2040-actions #wo_post_stat_button .stat-item,
.rb2040-postpage-wrap .post_foot_actions #wo_post_stat_button .stat-item {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 6px 8px !important;
  gap: 6px !important;
  background: transparent !important;
  border: 1px solid var(--rb-divider, #EBEDF0) !important;
  border-radius: var(--rb-radius-full, 999px) !important;
  box-shadow: none !important;
  color: var(--rb-ink-900, #111827) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: background-color 150ms var(--rb-ease-out-cubic, cubic-bezier(0.215, 0.61, 0.355, 1)),
    color 150ms var(--rb-ease-out-cubic, cubic-bezier(0.215, 0.61, 0.355, 1)),
    border-color 150ms var(--rb-ease-out-cubic, cubic-bezier(0.215, 0.61, 0.355, 1)),
    box-shadow 150ms var(--rb-ease-out-cubic, cubic-bezier(0.215, 0.61, 0.355, 1)),
    transform 150ms var(--rb-ease-out-cubic, cubic-bezier(0.215, 0.61, 0.355, 1)) !important;
}

/* 7.2 Labels on every button, every width. Comment/Share labels live in
   .like-btn-mobile spans that stock style.css hides on desktop. */
.post #wo_post_stat_button .stat-item .like-btn-mobile,
.post #wo_post_stat_button .stat-item .like-btn {
  display: inline !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: inherit !important;
}

/* 7.3 Icons: 22px desktop, reacted emoji stays 20px, hover micro-scale. */
.post #wo_post_stat_button .stat-item svg,
.post #wo_post_stat_button .stat-item img {
  width: 22px !important;
  height: 22px !important;
}
.post #wo_post_stat_button .stat-item .like-btn [class*="status-reaction-"] img,
.post #wo_post_stat_button .stat-item .like-btn .inline_post_count_emoji img,
.post #wo_post_stat_button .stat-item .inline_post_count_emoji img {
  width: 20px !important;
  height: 20px !important;
}
.post #wo_post_stat_button .stat-item:hover svg {
  transform: scale(1.12);
}

/* 7.4 Hover: neutral surface-2 + 1px lift + soft shadow (replaces the
   green-tint hover and the grey-pill hover). Press: slight shrink. */
.post #wo_post_stat_button .stat-item:hover,
.post .post_foot_actions.rb-2040-actions #wo_post_stat_button .stat-item:hover,
.rb-2040-feed .rb-2040-actions #wo_post_stat_button .stat-item:hover,
.rb2040-postpage-wrap .post_foot_actions #wo_post_stat_button .stat-item:hover {
  background: var(--rb-surface-2, #E4E6EB) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08) !important;
  transform: translateY(-1px) !important;
}
.post #wo_post_stat_button .stat-item:active,
.post .post_foot_actions.rb-2040-actions #wo_post_stat_button .stat-item:active,
.rb-2040-feed .rb-2040-actions #wo_post_stat_button .stat-item:active,
.rb2040-postpage-wrap .post_foot_actions #wo_post_stat_button .stat-item:active {
  transform: scale(0.97) !important;
}

/* 7.5 Active (liked / reacted / saved): mint pill + brand-700 text.
   Listed AFTER :hover so a liked button keeps its mint on hover.
   Ringbd desktop had NO visible liked state before this (grey pill +
   grey text whether liked or not — probe 2026-11-25). The reacted
   label keeps its own reaction colour (Love = red, etc.); the
   :has(.active-like) rule tints background + border only. */
.post #wo_post_stat_button .wo-reaction-post.active,
.post #wo_post_stat_button .stat-item:has(.active-like),
.post #wo_post_stat_button .rb-save-action.rb-saved,
.post .post_foot_actions.rb-2040-actions #wo_post_stat_button .wo-reaction-post.active,
.post .post_foot_actions.rb-2040-actions #wo_post_stat_button .stat-item:has(.active-like),
.post .post_foot_actions.rb-2040-actions #wo_post_stat_button .rb-save-action.rb-saved,
.rb-2040-feed .rb-2040-actions #wo_post_stat_button .wo-reaction-post.active,
.rb-2040-feed .rb-2040-actions #wo_post_stat_button .stat-item:has(.active-like),
.rb-2040-feed .rb-2040-actions #wo_post_stat_button .rb-save-action.rb-saved,
.rb2040-postpage-wrap .post_foot_actions #wo_post_stat_button .wo-reaction-post.active,
.rb2040-postpage-wrap .post_foot_actions #wo_post_stat_button .stat-item:has(.active-like),
.rb2040-postpage-wrap .post_foot_actions #wo_post_stat_button .rb-save-action.rb-saved {
  background: var(--rb-brand-50, #E6F7EE) !important;
  color: var(--rb-brand-700, #006A4E) !important;
  border-color: rgba(0, 106, 78, 0.25) !important;
}
.post #wo_post_stat_button .stat-item:has(.active-like) svg path {
  fill: #006A4E;
}

/* 7.6 Share: label-only at EVERY width, same palette as the other buttons.
   Ringbd showed "Share 0" at desktop but "Share" at mobile because
   rb-2027-premium.css:1463 hides #shares only below 768px. The count
   lives in the counts row (post_share), so hide it in the button. */
.post #wo_post_stat_button .stat-item #shares {
  display: none !important;
}

/* 7.7 Counts row: one hairline under it separates it from the actions.
   Counts sit ABOVE the actions in both themes (sunshine footer moved
   .right_stats above #wo_post_stat_button 2026-11-25; ringbd already
   had them up). Same order both themes: reactions left, comments right. */
.post .post_foot_actions.rb-2040-actions .right_stats {
  border-bottom: 1px solid var(--rb-divider, #EBEDF0);
  padding-bottom: 6px;
  margin-bottom: 2px;
}
.post .right_stats .stat-item,
.post .stats.post-actions .stat-item {
  background: transparent !important;
  color: var(--rb-ink-500, #65676B) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
.post .right_stats .stat-item:hover,
.post .stats.post-actions .stat-item:hover {
  background: var(--rb-surface-2, #E4E6EB) !important;
  color: var(--rb-ink-900, #111827) !important;
}

/* 7.8 Reaction picker: one row, never over the button. The 2B width fix
   stands (width: max-content); pin it with !important and anchor it
   above the Like button so a wrapped 60x250 strip can never reappear.
   FIX1-2 (2026-11-25): the old top:-58px assumed a 54px-tall picker, so
   sunshine's 62px desktop picker overlapped the Like button by 5px.
   Anchor by the BOTTOM instead — 4px above the Like button's top edge
   whatever the picker/button height — and top:auto so the §2 top:-58px
   cannot re-apply. The comment-picker rule (top:-55px, higher
   specificity) is untouched. */
.post .reactions-box {
  width: max-content !important;
  max-width: calc(100vw - 24px) !important;
  white-space: nowrap !important;
  top: auto;
  bottom: calc(100% + 4px);
  left: 0;
  transform-origin: bottom left;
  /* FIX1-2b (2026-11-25): Bootstrap's ul{margin-bottom:10px} enters the
     abspos constraint, so the measured gap was 14px, not 4px. Zero it. */
  margin-bottom: 0 !important;
}

/* 7.9 Sunshine post page keeps its 48px row (desktop only; mobile stays
   40px, as before — the mobile premium block owns that height). */
@media (min-width: 768px) {
  .rb2040-postpage-wrap .post .post_foot_actions #wo_post_stat_button .stat-item {
    min-height: 48px !important;
  }
}

/* 7.10 Small screens: content-sized buttons that can never shrink below
   their label (FIX2 2026-11-25: flex:0 1 auto + min-width:0 from §7.1 let
   the four buttons shrink below content on sunshine's 302px row at 390px
   — Comment/Share/Saved clipped, "Commen" etc. Ringbd's 332px row
   happened to fit, sunshine's did not. Total content was ~319px vs a 302px
   row. This block now sizes pills to content with NO shrink (flex:0 0 auto
   + nowrap) and buys the missing ~43px: row gap 8->4px, padding 6px 4px ->
   6px 3px, icons 20->18px, labels 13->12px. Measured fit after the change:
   ~276px of buttons+gaps in a 302px row. Desktop is untouched. */
@media (max-width: 767px) {
  .post #wo_post_stat_button {
    justify-content: center !important;
    gap: 4px !important;
  }
  .post #wo_post_stat_button .stat-item,
  .post .post_foot_actions.rb-2040-actions #wo_post_stat_button .stat-item,
  .rb-2040-feed .rb-2040-actions #wo_post_stat_button .stat-item,
  .rb2040-postpage-wrap .post_foot_actions #wo_post_stat_button .stat-item {
    flex: 0 0 auto !important;
    padding: 6px 3px !important;
    gap: 4px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
  .post #wo_post_stat_button .stat-item .like-btn-mobile,
  .post #wo_post_stat_button .stat-item .like-btn {
    font-size: 12px !important;
  }
  .post #wo_post_stat_button .stat-item svg,
  .post #wo_post_stat_button .stat-item img {
    width: 18px !important;
    height: 18px !important;
  }
  .post #wo_post_stat_button .stat-item:hover {
    transform: none !important;
  }
  .post #wo_post_stat_button .stat-item:hover svg {
    transform: none;
  }
}
@media (max-width: 360px) {
  .post #wo_post_stat_button {
    gap: 3px !important;
  }
  .post #wo_post_stat_button .stat-item,
  .post .post_foot_actions.rb-2040-actions #wo_post_stat_button .stat-item,
  .rb-2040-feed .rb-2040-actions #wo_post_stat_button .stat-item,
  .rb2040-postpage-wrap .post_foot_actions #wo_post_stat_button .stat-item {
    padding: 6px 2px !important;
    gap: 3px !important;
  }
  .post #wo_post_stat_button .stat-item svg,
  .post #wo_post_stat_button .stat-item img {
    width: 16px !important;
    height: 16px !important;
  }
}

/* ------------------------------------------------------------------ */
/* 7B. HOME/FEED OVERRIDE (2026-11-25) — specificity bump              */
/*    rb-glossy-home.css loads AFTER this file on the home/feed page   */
/*    (ringbd home/content.phtml:2) and repaints the buttons as gloss  */
/*    gradient pills (white -> #f7f9f8 + inset shadow) at (1,2,0) —    */
/*    same specificity as §7, later file, so it won on the feed while  */
/*    the post page (no glossy-home) showed the flat §7 look. These    */
/*    .post-container-prefixed rules (1,3,0)/(1,4,0) beat it without   */
/*    touching that file, so feed and post page render identically.    */
/*    Harmless on sunshine (no glossy-home there; same values).        */
/* ------------------------------------------------------------------ */
.post-container .post #wo_post_stat_button .stat-item {
  background: transparent !important;
  background-image: none !important;
  border: 1px solid var(--rb-divider, #EBEDF0) !important;
  box-shadow: none !important;
  color: var(--rb-ink-900, #111827) !important;
}
.post-container .post #wo_post_stat_button .stat-item:hover {
  background: var(--rb-surface-2, #E4E6EB) !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08) !important;
  transform: translateY(-1px) !important;
}
.post-container .post #wo_post_stat_button .wo-reaction-post.active,
.post-container .post #wo_post_stat_button .stat-item:has(.active-like),
.post-container .post #wo_post_stat_button .rb-save-action.rb-saved {
  background: var(--rb-brand-50, #E6F7EE) !important;
  background-image: none !important;
  color: var(--rb-brand-700, #006A4E) !important;
  border-color: rgba(0, 106, 78, 0.25) !important;
}
body.night_mode .post-container .post #wo_post_stat_button .stat-item {
  background: transparent !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  color: #e2e8f0 !important;
}

/* ------------------------------------------------------------------ */
/* 7.11 FIX1 (2026-11-25) — premium-bar round-1 defects                */
/*                                                                      */
/*  (a) Picker clipped on touch (both themes, <=767px): rb-2027-        */
/*      premium.css sets overflow:hidden !important on EVERY .stat-item */
/*      at mobile widths, including the Like button — the absolutely-    */
/*      positioned picker (which sits entirely ABOVE the button) was    */
/*      clipped to a 1px sliver: laid out (real rects) but invisible    */
/*      and absent from elementFromPoint, so every picker tap hit the   */
/*      counts-row div underneath. z-index could not fix it (clipping,  */
/*      not stacking — proven by live A/B). Only the Like button        */
/*      carries a picker, so only it gets overflow:visible; Comment /   */
/*      Share / Save keep the premium ellipsis clipping. Same (1,2,0)   */
/*      specificity as the premium rule, later file wins the             */
/*      !important tie. Desktop is a no-op (no such rule there).        */
/*  (b) Real press scale: §7.4 :active scale(0.97) never applied — the  */
/*      only matching :active rule is (1,3,0) while §7B :hover is       */
/*      (1,4,0), so the hover lift won every press (CDP matched-styles  */
/*      proof). :hover:active outranks :hover-only, and this block sits  */
/*      AFTER §7B so it wins the (1,4,0) tie too.                       */
/* ------------------------------------------------------------------ */
.post #wo_post_stat_button .wo-reaction-post {
  overflow: visible !important;
}
.post #wo_post_stat_button .stat-item:hover:active,
.post-container .post #wo_post_stat_button .stat-item:hover:active,
.rb-2040-feed .rb-2040-actions #wo_post_stat_button .stat-item:hover:active,
.rb2040-postpage-wrap .post_foot_actions #wo_post_stat_button .stat-item:hover:active {
  transform: translateY(-1px) scale(0.97) !important;
}

/* ------------------------------------------------------------------ */
/* 7.12 FIX2 (2026-11-25) — gate round-2 defects                       */
/*                                                                      */
/*  (a) Mobile sticky hover (E4): §7.10's :hover rule is (1,3,0) while   */
/*      §7B's :hover is (1,4,0) and §7.4's post-page :hover is      */
/*      (1,5,0), so at <=767px the lift + shadow + #E4E6EB background   */
/*      survived on touch (sticky until the next tap elsewhere). This   */
/*      block restores the §7.10 intent at (1,5,0)/(1,6,0) — above  */
/*      every §7/§7B hover rule — then re-asserts the two things  */
/*      the blanket suppression must NOT kill: the mint active state    */
/*      on hover (a liked button must stay mint, not go transparent)    */
/*      and the §7.11(b) press scale (:hover:active, which outranks  */
/*      the suppression by specificity). Desktop hover is untouched    */
/*      (media-scoped to <=767px).                                      */
/*  (b) Picker corner bleed (E1 P1/E5 P0): the picker is a 999px pill   */
/*      (z-index 999, already above the counts row) but its fully       */
/*      rounded bottom-left corner curves away from the counts row's    */
/*      thumbs-up icon directly underneath, so the icon shows through   */
/*      the corner and reads as a duplicated thumbs-up hanging below    */
/*      the pill. Proven by live A/B: hiding .right_stats removes it,  */
/*      border-radius:0 removes it. The ::before skirt is an opaque     */
/*      backing (same background as the picker via inherit, so night    */
/*      mode follows) extending 6px right, 3px below (exactly to the    */
/*      Like button's top edge) and 10px left, covering the corner      */
/*      triangles and the 3px gap; corner hit-tests now return the      */
/*      picker itself. The picker's own gap stays 3px (bottom:          */
/*      calc(100% + 4px) is untouched).                                 */
/* ------------------------------------------------------------------ */
@media (max-width: 767px) {
  .post #wo_post_stat_button .stat-item:hover,
  .post .post_foot_actions.rb-2040-actions #wo_post_stat_button .stat-item:hover,
  .rb-2040-feed .rb-2040-actions #wo_post_stat_button .stat-item:hover,
  .rb2040-postpage-wrap .post_foot_actions #wo_post_stat_button .stat-item:hover,
  .post-container .post #wo_post_stat_button .stat-item:hover {
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-color: var(--rb-divider, #EBEDF0) !important;
  }
  .post-container .post #wo_post_stat_button .wo-reaction-post.active:hover,
  .post-container .post #wo_post_stat_button .stat-item:has(.active-like):hover,
  .post-container .post #wo_post_stat_button .rb-save-action.rb-saved:hover {
    background: var(--rb-brand-50, #E6F7EE) !important;
    border-color: rgba(0, 106, 78, 0.25) !important;
  }
  .post #wo_post_stat_button .stat-item:hover:active,
  .post .post_foot_actions.rb-2040-actions #wo_post_stat_button .stat-item:hover:active,
  .rb-2040-feed .rb-2040-actions #wo_post_stat_button .stat-item:hover:active,
  .rb2040-postpage-wrap .post_foot_actions #wo_post_stat_button .stat-item:hover:active,
  .post-container .post #wo_post_stat_button .stat-item:hover:active {
    transform: translateY(-1px) scale(0.97) !important;
  }
}
/*  (c) Counts row above the picker at desktop (E1 P1/E5 P0, 1280): stock
   style.css makes .like-emo display:flex and gives its .how_reacted
   children z-index 3/2/1 (overlapping reaction bubbles). Flex items honour
   z-index even when position:static, so the counts-row thumbs-up paints
   ABOVE the picker's z-index 999 (proven: picker z-index 9999 did not
   help; span z-index:auto did). Scope the whole counts row into its own
   z-index:0 stacking context: the bubbles keep their internal 3/2/1
   overlap order, but nothing in the row can ever paint above the picker
   again. position:relative with no offsets moves nothing; the row overlaps
   nothing except the picker. */
.post .right_stats,
.post .stats.post-actions {
  position: relative !important;
  z-index: 0 !important;
}
.post .reactions-box::before {
  content: "";
  position: absolute;
  inset: 0 -6px -3px -10px;
  background: inherit;
  border-radius: 8px;
  z-index: -1;
}
