/**
 * Fbtheme — Facebook-inspired surface styling for WoWonder.
 * Restyles existing WoWonder classes; does not remove them.
 */

:root {
  --card-bg: #ffffff;
  --background-alt: #f0f2f5;
  --fb-group-max-width: clamp(1020px, 82vw, 1080px);
  --text-primary: #050505;
  --text-secondary: #65676b;
  --fb-bg: #f0f2f5;
  --fb-surface: #ffffff;
  --fb-blue: #1877f2;
  --fb-blue-hover: #166fe5;
  --fb-blue-press: #1565d8;
  --fb-text: #050505;
  --fb-text-secondary: #65676b;
  --fb-border: #e4e6eb;
  --fb-radius: 8px;
  --fb-radius-sm: 6px;
  --fb-featured-card-bg: #f0f2f5;
  --fb-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --fb-shadow-nav: 0 1px 2px rgba(0, 0, 0, 0.1);
  --fb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fb-page-cover-height: 340px;
  --wo-hp-scrollbar-thumb: rgba(0, 0, 0, 0.16);
  --wo-hp-scrollbar-thumb-hover: rgba(0, 0, 0, 0.28);
}

/* Night mode: vars on html + body so the canvas behind fixed header matches (html used var(--fb-bg) from :root otherwise). */
html.wo-night-mode,
body.wo-night-mode {
  --card-bg: #2a2a2a;
  --background-alt: #1a1a1a;
  --text-primary: #ececec;
  --text-secondary: #b3b3b3;
  --fb-bg: #181818;
  --fb-surface: #2a2a2a;
  --fb-featured-card-bg: #323334;
  --fb-text: #ececec;
  --fb-text-secondary: #b3b3b3;
  --fb-border: #3d3d3d;
  --fb-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.25);
  --fb-shadow-nav: 0 1px 2px rgba(0, 0, 0, 0.5);
  --wo-hp-scrollbar-thumb: rgba(255, 255, 255, 0.22);
  --wo-hp-scrollbar-thumb-hover: rgba(255, 255, 255, 0.38);
}

html.wo-night-mode,
body.wo-night-mode .content-container {
  background-color: var(--fb-bg) !important;
}

/* --- Global canvas & typography --- */
body,
html {
  background-color: var(--fb-bg) !important;
  font-family: var(--fb-font) !important;
  color: var(--fb-text);
  -webkit-font-smoothing: antialiased;
}

.post .post-description a,
.post .post-heading .meta a,
.comment-text a,
.reply-text a,
.wow_content a:not(.btn):not(.btn-main):not(.bg-main):not(.dropdown-toggle):not(.avatar),
.wow_sett_content a:not(.btn):not(.btn-main):not(.bg-main) {
  color: var(--fb-blue);
}

.post .post-description a:hover,
.wow_content a:not(.btn):not(.btn-main):hover {
  color: var(--fb-blue-hover);
}

/* Global header: use default Sunshine theme navbar rules from style.css (no fb overrides). */

/* Primary actions / WoWonder buttons */
.btn-main,
.btn.bg-main,
.bg-main,
button.bg-main,
a.bg-main {
  background-color: var(--fb-blue) !important;
  border-color: var(--fb-blue) !important;
  color: #fff !important;
  border-radius: var(--fb-radius-sm) !important;
  background-image: none !important;
}

.btn-main:hover,
.btn.bg-main:hover,
.bg-main:hover,
button.bg-main:hover,
a.bg-main:hover {
  background-color: var(--fb-blue-hover) !important;
  border-color: var(--fb-blue-hover) !important;
  background-image: none !important;
}

.btn-main:active,
.btn.bg-main:active {
  background-color: var(--fb-blue-press) !important;
  border-color: var(--fb-blue-press) !important;
}

/* Flatten common gradient hero bars → FB blue */
.wow_main_float_head,
.wow_main_float_head.com_thing,
.wow_main_float_head.contactus,
.wow_main_float_head.fundus,
.wow_main_float_head.findfrnd,
.wow_main_float_head.gopro,
.wow_main_float_head.jobs,
.wow_main_float_head.moviez,
.wow_main_float_head.markets {
  background: var(--fb-blue) !important;
  background-image: none !important;
}

/* Onboarding / colored headers → flat (keep hue families, no gradients) */
.sun_head_onboard {
  background-color: var(--fb-blue) !important;
  background-image: none !important;
}

.sun_head_onboard:after {
  display: none !important;
}

.sun_head_onboard.album {
  background-color: #42b72a !important;
}

.sun_head_onboard.blog,
.sun_head_onboard.event {
  background-color: #e41e3f !important;
}

.sun_head_onboard.group {
  background-color: var(--fb-blue) !important;
}

.sun_head_onboard.product {
  background-color: #606770 !important;
}

.sun_head_onboard.page {
  background-color: #f28c38 !important;
}

/* Cards & panels */
.wow_content,
.wow_sett_content,
.setting-well,
.post .panel,
.fake_ad_post,
.wo_settings_page,
.modal-content {
  background-color: var(--fb-surface) !important;
  border-radius: var(--fb-radius) !important;
  box-shadow: var(--fb-shadow) !important;
  border: 1px solid var(--fb-border) !important;
}

.wow_content.negg_padd {
  border: 1px solid var(--fb-border) !important;
}

.post .panel {
  overflow: visible;
}

/* Keep media clipped to card; post header dropdown must escape the panel */
.post .panel .post-file,
.post .panel .post-youtube,
.post .panel .post-map,
.post .panel .post-fetched-url,
.post .panel .embed-responsive,
.post .panel .post-file-media,
.post .panel .wo_imagecombo_lbox,
.post .panel .post-photo,
.post .panel .post-record {
  overflow: hidden;
}

.post {
  position: relative;
  z-index: 1;
}

.post.post-dropdown-open {
  z-index: 10050 !important;
}

.post.post-dropdown-open .post-container,
.post.post-dropdown-open .panel {
  overflow: visible !important;
}

#posts,
#posts .post-container,
.page-margin > .row > .middlecol {
  overflow: visible !important;
}

.post .post-heading {
  position: relative;
  z-index: 3;
}

.post .post-heading .dropdown {
  position: relative;
}

.post .post-heading .dropdown.open {
  z-index: 1060;
}

.post.post-dropdown-open .post-heading .dropdown.open .dropdown-menu.post-options,
.post.post-dropdown-open .post-heading .dropdown.open .dropdown-menu.post-privacy-menu {
  z-index: 1070;
}

.post .post-privacy-menu.post-options {
  position: absolute;
  z-index: 1061;
}

/* Feed dropdown: menu must paint above following posts */
.post .post-heading,
.post .post-heading .dropdown,
.post .post-heading .dropdown-menu.post-options,
.post .post-heading .dropdown-menu.post-privacy-menu {
  overflow: visible !important;
}

.post.post-dropdown-open .post-heading .dropdown.open .dropdown-menu.post-options,
.post.post-dropdown-open .post-heading .dropdown.open .dropdown-menu.post-privacy-menu {
  z-index: 10060 !important;
}

/* Post modals are moved to body via Wo_MountPostModalToBody (script.js) */
body > .modal.wo-post-action-modal,
body > .modal[id^="delete-post-"],
body > .modal.wo-confirm-modal,
body > .modal#edit-post {
  z-index: 10070 !important;
}

/* Keep general backdrops BELOW the lightbox (lightbox is 1055). */
body > .modal-backdrop {
  z-index: 1040 !important;
}

/* When post action modals are mounted to body, backdrop must sit above feed chrome. */
body > .modal.wo-post-action-modal.in + .modal-backdrop,
body > .modal.wo-post-action-modal.show + .modal-backdrop,
body > .modal[id^="delete-post-"].in + .modal-backdrop,
body > .modal.wo-confirm-modal.in + .modal-backdrop,
body > .modal.wo-confirm-modal.show + .modal-backdrop,
body > .modal#edit-post.in + .modal-backdrop {
  z-index: 10065 !important;
}

.post .post-description,
.post .post-file,
.post .post-footer,
.post .post-reactions {
  position: relative;
  z-index: 0;
}

/* Replace gradient dividers / accents with flat color */
hr.style-two {
  background: var(--fb-border) !important;
  background-image: none !important;
}

/* Form controls — FB-like */
.sun_input > input:focus,
.sun_input > textarea:focus,
.sun_input > select:focus,
.sun_input_holder .sun_input input:focus {
  border-color: var(--fb-blue) !important;
  box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2) !important;
}

.search-container .search-input {
  background: var(--fb-bg) !important;
  border-radius: 20px !important;
  border: 1px solid transparent !important;
}

.search-container .search-input:focus {
  background: var(--fb-surface) !important;
  border-color: var(--fb-blue) !important;
}

/* Loading bar accent */
.loading::before {
  background-color: var(--fb-blue) !important;
}

/* Misc blues → FB blue */
.ads-navbar-wrapper ul li a.active,
.ads_switch.checked .switch__label:after,
.select_radio_btn label > input:checked ~ .sr_btn_lab_innr,
.select_radio_btn label > input:checked ~ .sr_btn_lab_innr > span {
  border-color: var(--fb-blue) !important;
  color: var(--fb-blue) !important;
}

.wo_load_more > span {
  background-color: var(--fb-blue) !important;
}

/* Left sidebar: CSS sticky only (no theiaStickySidebar on leftcol). */
@media (min-width: 992px) {
  .page-margin > .row > .leftcol {
    position: sticky;
    top: var(--wo-sidebar-sticky-top, 56px);
    z-index: 2;
    align-self: flex-start;
    height: fit-content;
    max-height: calc(100vh - var(--wo-sidebar-sticky-top, 56px));
    overflow-x: hidden;
    overflow-y: auto;
  }
  .page-margin > .row > .leftcol .theiaStickySidebar {
    position: static !important;
    transform: none !important;
    left: auto !important;
    width: auto !important;
    min-height: 0 !important;
    top: auto !important;
  }
  .page-margin > .row > .leftcol .left-sidebar {
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
  }
}
.left-sidebar > ul > li > a {
  font-family: var(--wo-font-sidebar_menu, var(--fb-font));
}

/* Post image lightbox — mount on body, stack above page chrome */
.lightbox-container {
  position: fixed;
  inset: 0;
  z-index: 1055;
  pointer-events: none;
}

.lightbox-container > * {
  pointer-events: auto;
}

.lightbox-container .lightbox-backgrond {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}

.lightbox-container .lb-preloader {
  /* If it stays visible, don't block closing the lightbox. */
  pointer-events: none !important;
  z-index: 1 !important;
}

.lightbox-container .lightbox-content,
.lightbox-container .lightbox-content.wo_imagecombo_lbox {
  position: relative !important;
  z-index: 2 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  height: 100% !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column;
}

.lightbox-container .lightbox-content.multi {
  align-items: center;
  justify-content: center;
}

.lightbox-container .lightbox-content.multi .story-img {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40vh;
  margin: 0 !important;
}

.lightbox-container .lightbox-content.multi .story-img img {
  max-width: min(100%, 1200px);
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.wo_imagecombo_lbox .story-img {
  flex: 1 1 auto;
  min-height: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.wo_imagecombo_lbox .story-img .sun_img_innr,
.wo_imagecombo_lbox .story-img #draggableHelper {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lightbox-container .wo_imagecombo_lbox .story-img img {
  pointer-events: auto !important;
  object-fit: contain;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: calc(100vh - 80px);
}

/* Flatten heavy image overlays where safe (keep readability) */
.wo_imagecombo_lbox .story-img .wo_lbox_topbar {
  background: rgba(0, 0, 0, 0.55) !important;
  background-image: none !important;
}

.wo_imagecombo_lbox .story-img .changer {
  background: rgba(0, 0, 0, 0.35) !important;
  background-image: none !important;
}

/* Remove glossy / gradient buttons in sidebars where theme used flat color fills */
.btn-glossy .btn-main {
  background-image: none !important;
}

/* Story / status ring — flat accent */
.not_seen_story .avatar:before,
.user-status-home ul.status-list li.create_new .avatar:before {
  background: var(--fb-blue) !important;
  background-image: none !important;
}

/* Facebook-style "Create story" card */
.user-status-home ul.status-list li.wo-fb-create-story a {
  display: block;
  position: relative;
  padding-bottom: 145% !important;
  background: var(--card-bg, #fff);
  border: 1px solid var(--fb-border, #e4e6eb);
  box-shadow: none;
  overflow: hidden;
}

.user-status-home ul.status-list li.wo-fb-create-story a::after {
  display: none;
}

.user-status-home ul.status-list li.wo-fb-create-story .wo-fb-create-story__cover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 66%;
  overflow: hidden;
  background: var(--fb-surface, #f0f2f5);
}

.user-status-home ul.status-list li.wo-fb-create-story .wo-fb-create-story__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  pointer-events: none;
}

.user-status-home ul.status-list li.wo-fb-create-story .wo-fb-create-story__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 19px 8px 8px;
  background: var(--card-bg, #fff);
  text-align: center;
}

.user-status-home ul.status-list li.wo-fb-create-story .wo-fb-create-story__plus {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--fb-blue, #1877f2) !important;
  color: #fff !important;
  border: 3px solid var(--card-bg, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.user-status-home ul.status-list li.wo-fb-create-story .wo-fb-create-story__plus svg {
  width: 16px;
  height: 16px;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #fff !important;
  stroke: #fff !important;
}

.user-status-home ul.status-list li.wo-fb-create-story .wo-fb-create-story__label {
  position: static;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--text-primary, #050505);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.wo-night-mode .user-status-home ul.status-list li.wo-fb-create-story a,
body.wo-night-mode .user-status-home ul.status-list li.wo-fb-create-story a {
  background: #242526;
  border-color: #3a3b3c;
}

html.wo-night-mode .user-status-home ul.status-list li.wo-fb-create-story .wo-fb-create-story__footer,
body.wo-night-mode .user-status-home ul.status-list li.wo-fb-create-story .wo-fb-create-story__footer {
  background: #242526;
}

html.wo-night-mode .user-status-home ul.status-list li.wo-fb-create-story .wo-fb-create-story__plus,
body.wo-night-mode .user-status-home ul.status-list li.wo-fb-create-story .wo-fb-create-story__plus {
  border-color: #242526;
}

html.wo-night-mode .user-status-home ul.status-list li.wo-fb-create-story .wo-fb-create-story__label,
body.wo-night-mode .user-status-home ul.status-list li.wo-fb-create-story .wo-fb-create-story__label {
  color: #e4e6eb;
}

.wow_home_stories ul.status-list li.wo-fb-create-story a {
  padding-bottom: 145% !important;
}

/* Profile header actions — keep clickable above cover gradient */
.wo_user_profile .problackback {
  pointer-events: none;
}

.wo_user_profile .pic-info-cont {
  z-index: 5;
  position: relative;
}

.wo_user_profile .pic-info-cont .options-buttons {
  position: relative;
  z-index: 6;
}

/* --- User profile cover block: image + overlay info + attached tab bar --- */
.wo_user_profile .profile-container .card.hovercard.wo-fb-user-profile-card {
  overflow: hidden;
  border-radius: var(--fb-radius) !important;
  margin-bottom: 16px !important;
  background: var(--card-bg, #fff);
  box-shadow: var(--fb-shadow);
}

.wo_user_profile .wo-fb-user-cover-block {
  position: relative;
  display: flex;
  flex-direction: column;
  --fb-profile-inset: 20px;
  --fb-user-nav-height: 58px;
  --fb-profile-nav-bg: rgba(255, 255, 255, 0.94);
  --fb-profile-nav-border: rgba(0, 0, 0, 0.06);
  --fb-profile-nav-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  --fb-profile-nav-inactive: var(--text-secondary, #65676b);
  --fb-profile-nav-active: var(--fb-blue, #1877f2);
  --fb-profile-nav-hover-bg: color-mix(in srgb, var(--fb-profile-nav-active) 6%, transparent);
  --fb-profile-nav-active-bg: color-mix(in srgb, var(--fb-profile-nav-active) 8%, transparent);
  --fb-profile-nav-night-bg: rgba(36, 37, 38, 0.92);
  --fb-profile-nav-night-border: rgba(255, 255, 255, 0.08);
  --fb-profile-nav-night-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  --fb-profile-nav-night-inactive: var(--text-secondary, #b0b3b8);
  --fb-profile-nav-night-active: #2d88ff;
}

.wo_user_profile .profile-container .card.hovercard .cardheader.user-cover {
  position: relative;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  border-radius: 0 !important;
  overflow: hidden;
  background: #000;
  line-height: 0;
}

.wo_user_profile .user-cover-reposition-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.wo_user_profile .user-cover-reposition-container:not(.is-cover-repositioning) {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

.wo_user_profile .user-cover-reposition-w {
  position: relative;
  z-index: 1;
  width: 100%;
  line-height: 0;
}

.wo_user_profile .user-cover-reposition-w img#cover-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 366px;
  object-fit: cover;
  object-position: center top;
}

.wo_user_profile .user-cover-reposition-container.is-cover-repositioning .user-reposition-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.wo_user_profile .wo-fb-user-cover-block:not(:has(.wo-fb-user-profile-nav)) {
  --fb-user-nav-height: 0px;
}

.wo_user_profile .wo-fb-user-cover-block:not(:has(.wo-fb-user-profile-nav)) .problackback,
.wo_user_profile .wo-fb-user-cover-block:not(:has(.wo-fb-user-profile-nav)) .pic-info-cont {
  bottom: 0;
}

.wo_user_profile .problackback {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--fb-user-nav-height, 58px);
  height: 170px;
  padding: 0 !important;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%) !important;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%) !important;
  border-radius: 0 !important;
  pointer-events: none;
  z-index: 2;
}

.wo_user_profile .pic-info-cont {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--fb-user-nav-height, 58px);
  height: auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 var(--fb-profile-inset, 20px) var(--fb-profile-inset, 20px);
  box-sizing: border-box;
  z-index: 4;
  transform: translateY(0);
}

.container .wo_user_profile .pic-info-cont .user-avatar {
  margin: 0 16px 0 0 !important;
  flex-shrink: 0;
  width: 140px;
  height: 140px;
}

.wo_user_profile .pic-info-cont .info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  padding: calc((140px - 30px) / 2) 0 0;
  min-width: 0;
}

.wo_user_profile .pic-info-cont .info .title {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.15;
  font-size: 26px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.wo_user_profile .pic-info-cont .info .title a {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.wo_user_profile .pic-info-cont .info .options-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding-left: 0 !important;
  justify-content: flex-start !important;
  align-self: flex-start;
  position: relative;
  z-index: 6;
}

.container .wo_user_profile .card.hovercard .info .options-buttons {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.wo_user_profile .pic-info-cont .info .options-buttons .wo-fb-profile-owner-btn {
  display: inline-flex;
  margin: 0 !important;
  float: none !important;
}

.wo_user_profile .pic-info-cont .info .options-buttons .wo-fb-profile-owner-btn > a,
.wo_user_profile .pic-info-cont .info .options-buttons .wo-fb-profile-owner-btn > button {
  margin-left: 0 !important;
  float: none !important;
}

.wo_user_profile .pic-info-cont .wo-fb-profile-owner-btn > a.wo-fb-profile-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}

.wo_user_profile .pic-info-cont .wo-fb-profile-action-btn svg {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  flex-shrink: 0;
  stroke-width: 2.25;
}

.wo_user_profile .pic-info-cont .wo-fb-profile-action-btn--primary {
  color: #050505 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
}

.wo_user_profile .pic-info-cont .wo-fb-profile-action-btn--primary:hover {
  color: #050505 !important;
  background: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
}

.wo_user_profile .pic-info-cont .wo-fb-profile-action-btn--secondary {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
}

.wo_user_profile .pic-info-cont .wo-fb-profile-action-btn--secondary:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.26) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

.wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav {
  --fb-user-nav-height: 58px;
  position: relative;
  width: 100%;
  margin: 0 !important;
  padding: 0;
  height: var(--fb-user-nav-height);
  min-height: var(--fb-user-nav-height);
  background: var(--fb-profile-nav-bg) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--fb-profile-nav-border);
  border-radius: 0 0 var(--fb-radius) var(--fb-radius);
  box-shadow: var(--fb-profile-nav-shadow) !important;
  z-index: 5;
}

.wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav ul {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: visible;
  white-space: normal;
}

.wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav ul li {
  flex: 1 1 0;
  min-width: 0;
  margin: 0 !important;
  display: flex;
}

.wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 100%;
  padding: 0 8px 2px;
  text-align: center;
  text-decoration: none !important;
  color: var(--fb-profile-nav-inactive);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border-bottom: none !important;
  box-sizing: border-box;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a::after {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  transition: background-color 0.18s ease, transform 0.18s ease;
  transform: scaleX(0.6);
}

.wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a .split-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.88;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a .split-link svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 !important;
  flex-shrink: 0;
  stroke-width: 2;
}

.wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a > span:not(.split-link) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a:hover {
  color: var(--fb-profile-nav-active);
  background: var(--fb-profile-nav-hover-bg);
}

.wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a:hover .split-link {
  opacity: 1;
}

.wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a.menuactive {
  color: var(--fb-profile-nav-active) !important;
  background: var(--fb-profile-nav-active-bg);
  border-bottom: none !important;
  font-weight: 700;
}

.wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a.menuactive .split-link {
  opacity: 1;
}

.wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a.menuactive::after {
  background: var(--fb-profile-nav-active);
  transform: scaleX(1);
}

html.wo-night-mode .wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav,
body.wo-night-mode .wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav {
  background: var(--fb-profile-nav-night-bg) !important;
  border-top-color: var(--fb-profile-nav-night-border);
  box-shadow: var(--fb-profile-nav-night-shadow) !important;
}

html.wo-night-mode .wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a,
body.wo-night-mode .wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a {
  color: var(--fb-profile-nav-night-inactive);
}

html.wo-night-mode .wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a:hover,
body.wo-night-mode .wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a:hover {
  color: var(--fb-profile-nav-night-active);
  background: color-mix(in srgb, var(--fb-profile-nav-night-active) 10%, transparent);
}

html.wo-night-mode .wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a.menuactive,
body.wo-night-mode .wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a.menuactive {
  color: var(--fb-profile-nav-night-active) !important;
  background: color-mix(in srgb, var(--fb-profile-nav-night-active) 14%, transparent);
}

html.wo-night-mode .wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a.menuactive::after,
body.wo-night-mode .wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a.menuactive::after {
  background: var(--fb-profile-nav-night-active);
}

@media (max-width: 767px) {
  .wo_user_profile .wo-fb-user-cover-block {
    --fb-profile-inset: 14px;
    --fb-user-nav-height: 52px;
  }

  .wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav {
    overflow-x: auto;
  }

  .wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav ul {
    min-width: 100%;
  }

  .wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a {
    font-size: 12px;
    gap: 5px;
    padding: 0 4px 2px;
  }

  .wo_user_profile .wo-fb-user-profile-nav.user-bottom-nav li a .split-link svg {
    width: 16px;
    height: 16px;
  }

  .wo_user_profile .pic-info-cont {
    padding: 0 var(--fb-profile-inset, 14px) var(--fb-profile-inset, 14px);
    transform: translateY(0);
  }

  .wo_user_profile .pic-info-cont .info {
    padding-top: calc((96px - 26px) / 2);
  }

  .container .wo_user_profile .pic-info-cont .user-avatar {
    width: 96px;
    height: 96px;
    margin-right: 12px !important;
  }
}

/* User profile sidebar: info card (trending-style) + search */
.wo_user_profile .wo-fb-profile-info-list.right_user_info > li {
  padding: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
}

.wo_user_profile .wo-fb-profile-info-list.right_user_info > li > svg {
  margin: 0 !important;
}

.wo_user_profile .wo-fb-profile-info-card.wo-trending-card {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.wo_user_profile .wo-fb-profile-info-badge {
  background: linear-gradient(135deg, #1877f2 0%, #6366f1 100%);
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.35);
}

.wo_user_profile .wo-fb-profile-info-badge svg {
  stroke: #fff;
}

.wo_user_profile .wo-fb-profile-info-list.wo-trending-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 14px !important;
}

.wo_user_profile .wo-fb-profile-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  margin: 0;
  min-height: 36px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.wo_user_profile .wo-fb-profile-info-row--stacked {
  align-items: flex-start;
  padding-top: 6px;
  padding-bottom: 6px;
}

.wo_user_profile .wo-fb-profile-info-row--stacked .wo-fb-profile-info-row__icon {
  margin-top: 1px;
}

.wo_user_profile .wo-fb-profile-info-row:hover {
  background: rgba(24, 119, 242, 0.06);
}

.wo_user_profile .wo-fb-profile-info-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 5px;
  border-radius: 8px;
  background: var(--fb-bg, #f0f2f5);
  color: var(--fb-text-secondary, #65676b);
  flex-shrink: 0;
}

.wo_user_profile .wo-fb-profile-info-row__icon svg {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  color: inherit !important;
}

.wo_user_profile .wo-fb-profile-info-row__body {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fb-text-secondary, #65676b);
  word-break: break-word;
  padding: 1px 0;
}

.wo_user_profile .wo-fb-profile-info-row__body a {
  color: var(--fb-blue, #1877f2) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.wo_user_profile .wo-fb-profile-info-row__body a:hover {
  text-decoration: underline !important;
}

.wo_user_profile .wo-fb-profile-info-row__body #user_post_count {
  font-weight: 700;
  color: var(--fb-text, #050505);
}

.wo_user_profile .wo-fb-profile-info-row--stacked .wo-fb-profile-info-row__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wo_user_profile .wo-fb-profile-info-row__text {
  display: block;
}

.wo_user_profile .wo-fb-profile-info-divider {
  list-style: none;
  padding: 0 6px !important;
  margin: 2px 0;
}

.wo_user_profile .wo-fb-profile-info-divider hr {
  margin: 0;
  border: none;
  border-top: 1px solid var(--fb-border, #e4e6eb);
}

.wo_user_profile .wo-fb-profile-info-section-label {
  padding: 6px 6px 2px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fb-text-secondary, #65676b);
  list-style: none;
}

.wo_user_profile .wo-fb-profile-info-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 6px 4px !important;
  margin: 0;
  list-style: none;
}

.wo_user_profile .wo-fb-profile-info-social a.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 10px;
  background: var(--fb-bg, #f0f2f5);
  transition: transform 0.15s ease, background 0.15s ease;
}

.wo_user_profile .wo-fb-profile-info-social a.social-btn:hover {
  transform: translateY(-1px);
  background: rgba(24, 119, 242, 0.1);
}

.wo_user_profile .wo-fb-profile-info-social a.social-btn svg {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

.wo_user_profile .wo-fb-profile-info-row .user-location-frame,
.wo_user_profile .wo-fb-profile-info-row [id^="place_"] {
  width: 100%;
  border-radius: var(--fb-radius-sm);
  overflow: hidden;
}

.page-margin > .row > .rightcol > .wow_content.wo_prof_side_info_padd.wo-fb-profile-info-card,
.page-margin > .row > .rightcol > .wow_content.wo-fb-profile-info-card,
.page-margin > .row > .rightcol > .wow_content.wo-fb-group-sidebar-card,
.page-margin > .row > .rightcol > .wow_content.wo-fb-group-suggested-card,
.page-margin > .row > .rightcol > .wow_content.wo-fb-group-recent-media-card,
.page-margin > .row > .rightcol > .wow_content.wo-fb-profile-search-card,
.wo_group_profile > .col-md-4 > .wow_content.wo-fb-group-recent-media-card {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid var(--fb-border, #e4e6eb) !important;
}

.wo_user_profile .wo-fb-profile-search-card {
  margin-bottom: 12px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: var(--fb-surface, #fff) !important;
}

.wo_user_profile .wo-fb-profile-search-card .group-post-search-bar {
  margin-bottom: 0;
}

html.wo-night-mode .wo_user_profile .wo-fb-profile-info-row:hover,
body.wo-night-mode .wo_user_profile .wo-fb-profile-info-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Group sidebar info card — same trending-card pattern as profile */
.wo_group_profile .wo-fb-profile-info-list.right_user_info > li {
  padding: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
}

.wo_group_profile .wo-fb-profile-info-list.right_user_info > li > svg {
  margin: 0 !important;
}

.wo_group_profile .wo-fb-profile-info-card.wo-trending-card {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.wo_group_profile .wo-fb-profile-info-badge {
  background: linear-gradient(135deg, #1877f2 0%, #6366f1 100%);
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.35);
}

.wo_group_profile .wo-fb-profile-info-badge svg {
  stroke: #fff;
}

.wo_group_profile .wo-fb-profile-info-list.wo-trending-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 14px !important;
}

.wo_group_profile .wo-fb-profile-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  margin: 0;
  min-height: 36px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.wo_group_profile .wo-fb-profile-info-row:hover {
  background: rgba(24, 119, 242, 0.06);
}

.wo_group_profile .wo-fb-profile-info-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 5px;
  border-radius: 8px;
  background: var(--fb-bg, #f0f2f5);
  color: var(--fb-text-secondary, #65676b);
  flex-shrink: 0;
}

.wo_group_profile .wo-fb-profile-info-row__icon svg {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  color: inherit !important;
}

.wo_group_profile .wo-fb-profile-info-row__body {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fb-text-secondary, #65676b);
  word-break: break-word;
  padding: 1px 0;
}

.wo_group_profile .wo-fb-profile-info-row__body a {
  color: var(--fb-blue, #1877f2) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.wo_group_profile .wo-fb-profile-info-row__body a:hover {
  text-decoration: underline !important;
}

.wo_group_profile .wo-fb-profile-info-row__body .green {
  color: #31a24c;
  font-weight: 600;
}

html.wo-night-mode .wo_group_profile .wo-fb-profile-info-row:hover,
body.wo-night-mode .wo_group_profile .wo-fb-profile-info-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

html.wo-night-mode .wo_group_profile .wo-fb-profile-info-row__icon,
body.wo-night-mode .wo_group_profile .wo-fb-profile-info-row__icon {
  background: #3a3b3c;
  color: #b0b3b8;
}

.wo_group_profile .wo-fb-group-sidebar-card.wo-trending-card {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.wo_group_profile .wo-fb-group-sidebar-card__body {
  padding: 12px 14px 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fb-text-secondary, #65676b);
  word-break: break-word;
}

.wo_group_profile .wo-fb-group-rules-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 10px 10px 14px !important;
  counter-reset: wo-group-rule;
}

.wo_group_profile .wo-fb-group-rules-list__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  margin: 0;
  border-radius: 10px;
  background: var(--fb-bg, #f0f2f5);
  transition: background 0.15s ease;
  counter-increment: wo-group-rule;
}

.wo_group_profile .wo-fb-group-rules-list__item:hover {
  background: rgba(24, 119, 242, 0.06);
}

.wo_group_profile .wo-fb-group-rules-list__title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fb-text, #050505);
}

.wo_group_profile .wo-fb-group-rules-list__title::before {
  content: counter(wo-group-rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1877f2 0%, #6366f1 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.3);
}

.wo_group_profile .wo-fb-group-rules-list__desc {
  padding-left: 30px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fb-text-secondary, #65676b);
}

html.wo-night-mode .wo_group_profile .wo-fb-group-sidebar-card__body,
body.wo-night-mode .wo_group_profile .wo-fb-group-sidebar-card__body {
  color: #b0b3b8;
}

html.wo-night-mode .wo_group_profile .wo-fb-group-rules-list__item,
body.wo-night-mode .wo_group_profile .wo-fb-group-rules-list__item {
  background: #3a3b3c;
}

html.wo-night-mode .wo_group_profile .wo-fb-group-rules-list__item:hover,
body.wo-night-mode .wo_group_profile .wo-fb-group-rules-list__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

html.wo-night-mode .wo_group_profile .wo-fb-group-rules-list__title,
body.wo-night-mode .wo_group_profile .wo-fb-group-rules-list__title {
  color: var(--fb-text, #ececec);
}

html.wo-night-mode .wo_user_profile .wo-fb-profile-info-row__icon,
body.wo-night-mode .wo_user_profile .wo-fb-profile-info-row__icon {
  background: #3a3b3c;
  color: #b0b3b8;
}

html.wo-night-mode .wo_user_profile .wo-fb-profile-info-row__body #user_post_count,
body.wo-night-mode .wo_user_profile .wo-fb-profile-info-row__body #user_post_count {
  color: var(--fb-text, #ececec);
}

html.wo-night-mode .wo_user_profile .wo-fb-profile-info-social a.social-btn,
body.wo-night-mode .wo_user_profile .wo-fb-profile-info-social a.social-btn {
  background: #3a3b3c;
}

/* Profile & media overlays — flat (no linear gradients) */
.profile-container .text-shadow,
.sidebar-page-data .text-shadow {
  background: rgba(0, 0, 0, 0.55) !important;
  background-image: none !important;
}

.event-info-cont-small {
  background: rgba(0, 0, 0, 0.65) !important;
  background-image: none !important;
}

.wow_read_blog_hdr_img_innr {
  background: rgba(0, 0, 0, 0.55) !important;
  background-image: none !important;
}

/* --- Group profile: centered banner column + info (banner = image + cover control only) --- */
.wo_group_profile .profile-container {
  width: 100%;
  max-width: calc(var(--fb-group-max-width) + 20px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
}

.row.page-margin.wo_group_profile {
  max-width: calc(var(--fb-group-max-width) + 20px);
  margin-left: auto;
  margin-right: auto;
}

.row.page-margin.wo_group_profile > .col-md-8,
.row.page-margin.wo_group_profile > .col-md-4 {
  padding-left: 10px;
  padding-right: 10px;
}

@media (min-width: 992px) {
  .row.page-margin.wo_group_profile {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .row.page-margin.wo_group_profile > .profile-container {
    flex: 0 0 100%;
    width: 100%;
  }
  .row.page-margin.wo_group_profile > .col-md-8,
  .row.page-margin.wo_group_profile > .col-md-4.wo-group-sidebar-col {
    float: none !important;
  }
  .wo_group_profile > .col-md-4.wo-group-sidebar-col .wo-group-sidebar-sticky-tail {
    position: sticky;
    top: var(--wo-sidebar-sticky-top, 56px);
    z-index: 3;
  }
}

.wo_group_profile .profile-container .wo-fb-group-card.card.hovercard {
  max-width: var(--fb-group-max-width);
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: hidden !important;
  border-radius: var(--fb-radius) !important;
  border: 1px solid var(--fb-border) !important;
  box-shadow: var(--fb-shadow) !important;
  background: var(--card-bg) !important;
}

.wo_group_profile .group-banner-wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.wo_group_profile .wo-fb-group-cover-wrap {
  position: relative !important;
  display: block;
  flex: 0 1 var(--fb-group-max-width);
  width: 100%;
  max-width: var(--fb-group-max-width) !important;
  overflow: hidden;
  background: #000;
  margin-left: auto;
  margin-right: auto;
}

/* Override Sunshine: .group-cover / full-bleed img rules — cap width on containers only (not img % here) */
.wo_group_profile .group-cover {
  width: 100% !important;
  max-width: var(--fb-group-max-width) !important;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.wo_group_profile .group-banner {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  width: 100% !important;
  max-width: var(--fb-group-max-width) !important;
  box-sizing: border-box;
}

.wo_group_profile .group-banner .user-cover-reposition-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--fb-bg, #f0f2f5);
  aspect-ratio: 800 / 312;
}

.wo_group_profile .group-banner .user-cover-reposition-w {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.wo_group_profile .group-banner .user-cover-reposition-w img#cover-image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  min-height: 0 !important;
  max-height: none !important;
  object-position: center top;
  vertical-align: top;
}

.wo_group_profile .group-banner .user-reposition-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 2;
  display: none;
}

.wo_group_profile .group-banner .user-cover-reposition-container.is-cover-repositioning {
  overflow: hidden;
}

.wo_group_profile .group-banner .user-cover-reposition-container.is-cover-repositioning .user-reposition-container {
  display: block;
  height: 100%;
  max-height: 100%;
}

.wo_group_profile .group-banner .user-reposition-container img#full-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  object-fit: unset !important;
}

.wo_group_profile .wo-fb-group-cover-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 11;
}

.wo_group_profile .wo-fb-group-cover-wrap .profile-cover-changer {
  position: static !important;
  display: none;
  width: auto !important;
  right: auto !important;
  top: auto !important;
}

body.wo-lang-rtl .wo_group_profile .wo-fb-group-cover-tools {
  right: auto;
  left: 12px;
}

/* Beat @media rules targeting .wo_group_profile .cardheader img and similar */
.wo_group_profile .profile-container .card.hovercard .group-banner img#cover-image,
.wo_group_profile .profile-container .card.hovercard .group-banner img {
  height: 100% !important;
  max-height: none !important;
}

.wo_group_profile .group-info-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  --fb-group-header-inset: 20px;
  padding: 18px var(--fb-group-header-inset);
  background: var(--card-bg) !important;
  border-top: 1px solid var(--fb-border);
  box-shadow: none;
  width: 100%;
  box-sizing: border-box;
  text-align: start;
  color: var(--text-primary);
  position: relative;
}

.wo_group_profile .group-info-block__main {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 100%;
  text-align: start;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.wo_group_profile .group-info-block__main a,
.wo_group_profile .group-info-block__main button {
  pointer-events: auto;
}

/* Title/meta only — do not use .group-info-block * (it breaks member avatar circles via overflow:visible) */
.wo_group_profile .group-info-block__main .group-info-block__title,
.wo_group_profile .group-info-block__main .group-info-block__title *,
.wo_group_profile .group-info-block__main .group-info-block__meta,
.wo_group_profile .group-info-block__main .group-info-block__meta * {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  flex-wrap: wrap !important;
}

.wo_group_profile .group-info-block__title {
  margin: 0 0 11px;
  padding: 0;
  font-size: inherit;
  font-weight: 800;
  line-height: 1.25;
  max-height: none !important;
  overflow: visible !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wo_group_profile .group-title {
  display: inline;
  font-size: 26px;
  font-weight: 700 !important;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  line-height: 1.25;
  color: var(--text-primary) !important;
  letter-spacing: -0.02em;
  text-decoration: none !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

/* Never clamp/truncate group title */
.wo_group_profile .group-info-block__title,
.wo_group_profile .group-info-block__title a,
.wo_group_profile .group-title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  max-height: none !important;
  font-weight: 700 !important;
}

.wo_group_profile .group-title:hover {
  text-decoration: none !important;
  color: var(--text-primary) !important;
}

.wo_group_profile .group-info-block__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.wo_group_profile .group-info-block__privacy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: calc(1.125rem + 1px);
}

.wo_group_profile .group-info-block__members {
  font-weight: 500;
  font-size: calc(1.125rem + 1px);
}

.wo_group_profile .group-members-strip {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  margin-top: 10px;
  overflow: visible;
  line-height: 0;
}

.wo_group_profile .group-members-strip__item {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2px solid var(--card-bg) !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  position: relative;
  z-index: 1;
  line-height: 0;
  padding: 0 !important;
  flex-shrink: 0;
  box-sizing: border-box;
}

.wo_group_profile .group-members-strip__item:hover {
  z-index: 2;
}

.wo_group_profile .group-members-strip__item + .group-members-strip__item {
  margin-inline-start: -8px;
}

.wo_group_profile .group-members-strip__item img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center;
  display: block !important;
  border-radius: 50% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  vertical-align: top;
  clip-path: circle(50% at 50% 50%);
  aspect-ratio: 1 / 1;
}

.wo_group_profile .group-info-block__privacy svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}

.wo_group_profile .group-info-block__dot {
  color: var(--text-secondary);
  opacity: 0.8;
  user-select: none;
}

/* Page cover — slightly taller than legacy 313px, not full FB ratio */
.wo_page_profile .profile-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wo_page_profile .profile-container .card,
.wo_page_profile .profile-container .card.hovercard {
  margin-bottom: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  background: transparent !important;
  padding-bottom: 0 !important;
}

.wo_page_profile .profile-container .card.hovercard .cardheader.user-cover {
  max-height: var(--fb-page-cover-height) !important;
  min-height: var(--fb-page-cover-height) !important;
  height: var(--fb-page-cover-height) !important;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  line-height: 0;
}

.wo_page_profile .cardheader.user-cover .profile-cover-changer {
  top: 14px;
  right: 10px;
  z-index: 20;
}

.wo_page_profile .user-cover-reposition-container {
  position: relative;
  width: 100%;
  height: var(--fb-page-cover-height);
  max-height: var(--fb-page-cover-height) !important;
  min-height: var(--fb-page-cover-height) !important;
  overflow: hidden;
  border: 0 !important;
  background: transparent !important;
}

.wo_page_profile .user-cover-reposition-w,
.wo_page_profile .user-reposition-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--fb-page-cover-height) !important;
  max-height: var(--fb-page-cover-height) !important;
  min-height: var(--fb-page-cover-height) !important;
  overflow: hidden;
}

.wo_page_profile .user-cover-reposition-w {
  z-index: 1;
}

.wo_page_profile .user-reposition-container {
  z-index: 2;
  display: none;
}

.wo_page_profile .user-cover-reposition-w img#cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wo_page_profile .user-reposition-container img#full-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  object-fit: unset !important;
}

/* Page header — seamless cover-to-info join (no black body/navbar seam) */
.wo_page_profile .profile-container {
  overflow: visible;
  --fb-page-seam-fill: var(--card-bg, #fff);
}

.wo_page_profile .profile-container .card.hovercard {
  position: relative;
  z-index: 1;
}

/* Paint the gap between cover bottom and info block with card surface colour */
.wo_page_profile .profile-container .card.hovercard::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  transform: translateY(100%);
  background: var(--fb-page-seam-fill);
  pointer-events: none;
  z-index: 2;
}

.wo_page_profile .profile-container .page-info-cont {
  margin-top: -48px !important;
}

.wo_page_profile .page-info-cont {
  --fb-page-avatar-size: 130px;
  --fb-page-head-offset: 34px;
  margin: 0 0 20px !important;
  padding: 0 20px 16px !important;
  min-height: 0 !important;
  border: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  position: relative;
  z-index: 3;
  background-color: var(--card-bg, #fff) !important;
  background-image: none !important;
  overflow: visible;
}

html.wo-night-mode .wo_page_profile .page-info-cont,
body.wo-night-mode .wo_page_profile .page-info-cont {
  background-color: var(--card-bg, #2a2a2a) !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: none !important;
}

/* Legacy page_navbar dark gradient (old templates) — hide or match surface */
.wo_page_profile .page_navbar,
.wo_page_profile .page-info-cont .page_navbar,
.wo_page_profile .wo-page-navbar-col,
html.wo-night-mode .wo_page_profile .page-info-cont .page_navbar,
html.wo-night-mode .wo_page_profile .page_navbar,
body.wo-night-mode .wo_page_profile .page-info-cont .page_navbar,
body.wo-night-mode .wo_page_profile .page_navbar {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
  background: var(--card-bg, #fff) !important;
  background-image: none !important;
}

@media (min-width: 768px) {
  .wo_page_profile .page_navbar {
    display: none !important;
    background: var(--card-bg, #fff) !important;
    background-image: none !important;
  }
}

.wo_page_profile .page-info-cont.row {
  align-items: center;
}

/* Anchor line = vertical centre of the profile picture */
.wo_page_profile .page-info-cont .first_row {
  position: relative;
  display: block;
  min-height: calc(var(--fb-page-avatar-size) / 2 + 12px + var(--fb-page-head-offset));
}

.wo_page_profile .page-info-cont .user-avatar {
  position: absolute;
  left: 0;
  top: calc(var(--fb-page-avatar-size) / -2 + var(--fb-page-head-offset));
  width: var(--fb-page-avatar-size);
  height: var(--fb-page-avatar-size);
  margin: 0 !important;
  z-index: 3;
}

.wo_page_profile .page-info-cont .user-avatar img {
  width: var(--fb-page-avatar-size);
  height: var(--fb-page-avatar-size);
}

.wo_page_profile .page-info-cont .info {
  position: absolute;
  left: calc(var(--fb-page-avatar-size) + 16px);
  top: var(--fb-page-head-offset);
  right: 0;
  transform: translateY(-50%);
  max-width: none !important;
  min-width: 0;
}

.wo_page_profile .page-info-cont .wo-page-head-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.wo_page_profile .page-info-cont .wo-page-head-row .title {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.wo_page_profile .page-info-cont .title a {
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.wo_page_profile .page-info-cont .title .page_username {
  margin: 1px 0 0;
  padding: 0;
}

.wo_page_profile .page-info-cont .info .options-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: auto !important;
  flex: 0 0 auto;
  margin: 0 !important;
  position: relative !important;
  right: auto !important;
  float: none !important;
}

.wo_page_profile .page-info-cont .info .options-buttons a,
.wo_page_profile .page-info-cont .info .options-buttons button {
  float: none !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .wo_page_profile .page-info-cont {
    --fb-page-avatar-size: 100px;
    --fb-page-head-offset: 0px;
    padding: 0 16px 14px !important;
  }

  .wo_page_profile .profile-container .page-info-cont {
    margin-top: -12px !important;
  }

  .wo_page_profile .profile-container .card.hovercard::after {
    height: 12px;
  }

  .wo_page_profile .page-info-cont .first_row {
    display: flex;
    align-items: center;
    min-height: 0;
  }

  .wo_page_profile .page-info-cont .user-avatar {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 var(--fb-page-avatar-size);
  }

  .wo_page_profile .page-info-cont .info {
    position: static;
    transform: none;
    flex: 1 1 0;
    left: auto;
    right: auto;
  }

  .wo_page_profile .page-info-cont .wo-page-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .wo_page_profile .page-info-cont .wo-page-head-row .title {
    margin: 0 0 0 12px;
  }

  .wo_page_profile .page-info-cont .info .options-buttons {
    margin: 0 0 0 12px !important;
    width: 100% !important;
  }

  .wo_page_profile .page-info-cont .last_row {
    justify-content: flex-start;
    margin-top: 12px !important;
  }
}

@media (max-width: 570px) {
  .wo_page_profile .page-info-cont .first_row {
    --fb-page-avatar-size: 80px;
  }
}

.wo_page_profile .page-info-cont .last_row {
  margin: 10px 0 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 12px;
}

.wo_page_profile .last_row .wo-page-invite-btn {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wo_page_profile .last_row .wo-page-invite-btn svg {
  width: 16px;
  height: 16px;
}

/* Fill corner wedges where affiliation banner bottom corners round */
.wo_group_profile .group-banner-wrapper:has(.group-affiliation-banner) + .group-info-block {
  margin-top: calc(-1 * var(--fb-radius));
  padding-top: calc(18px + var(--fb-radius));
  border-top-color: transparent;
}

.wo_group_profile .group-affiliation-banner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 37px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  z-index: 3;
  pointer-events: auto;
  border-radius: 0 0 var(--fb-radius) var(--fb-radius);
}

.wo_group_profile .group-affiliation-banner a {
  margin-inline-start: 4px;
  text-decoration: none;
  font-weight: 700;
}

.wo_group_profile .group-affiliation-banner a:hover {
  text-decoration: underline;
}

.wo_group_profile .wo-group-header-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 0;
}

.wo_group_profile .wo-group-header-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.wo_group_profile .wo-group-header-badge__img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.group-header-badges-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.group-header-badge-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--fb-border, #ddd);
  border-radius: var(--fb-radius-sm, 6px);
  background: var(--card-bg, #fff);
}

.group-header-badge-item__preview {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.group-header-badge-item__preview img {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}

.group-header-badge-item__meta {
  flex: 1 1 auto;
  min-width: 0;
}

.group-header-badge-item__tooltip {
  font-weight: 600;
  word-break: break-word;
}

.group-header-badge-item__hint {
  font-size: 12px;
  color: var(--text-secondary, #65676b);
}

.group-header-badge-item__actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.wo_group_profile .group-info-block__byline {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.wo_group_profile .group-info-block__byline a {
  color: var(--text-primary) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.wo_group_profile .group-info-block__byline a:hover {
  text-decoration: underline !important;
}

/* Group header actions — override legacy .options-buttons absolute positioning */
.wo_group_profile .group-info-block__actions.options-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  margin-inline-start: auto !important;
  margin-inline-end: 0 !important;
  padding: 0 !important;
  position: relative !important;
  float: none !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  z-index: 4 !important;
  text-align: end;
  justify-content: flex-end;
  flex: 0 0 auto;
  width: auto !important;
  max-width: 100%;
  align-self: flex-start;
  pointer-events: auto !important;
}

.wo_group_profile .group-info-block__actions.options-buttons a,
.wo_group_profile .group-info-block__actions.options-buttons button {
  float: none !important;
  margin-left: 0 !important;
}

.wo_group_profile .group-info-block__actions .wo-fb-group-owner-btn {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
}

.wo_group_profile .group-info-block__actions .wo-fb-group-owner-btn > a.wo-fb-group-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  box-sizing: border-box !important;
  transition: color 0.35s ease, background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
  white-space: nowrap;
  position: relative !important;
  z-index: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.wo_group_profile .group-info-block__actions .wo-fb-group-owner-btn > a.wo-fb-group-action-btn:hover {
  transform: none !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  border-width: 1px !important;
  border-style: solid !important;
  box-sizing: border-box !important;
}

.wo_group_profile .group-info-block__actions.options-buttons .wo-fb-group-owner-btn:last-child > a.wo-fb-group-action-btn {
  margin-inline-end: 0 !important;
}

@media (max-width: 767px) {
  .wo_group_profile .group-info-block {
    flex-direction: column;
    align-items: stretch;
  }

  .wo_group_profile .group-info-block__actions.options-buttons {
    margin-inline-start: 0 !important;
    width: 100% !important;
    justify-content: flex-start;
  }
}

.wo_group_profile .group-info-block__actions .btn,
.wo_group_profile .group-info-block__actions .btn-default {
  border-radius: var(--fb-radius-sm) !important;
}

.wo_group_profile .group-info-block__actions .group-join-btn .btn,
.wo_group_profile .group-info-block__actions .group-join-btn button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  height: 42px !important;
  min-height: 42px !important;
  padding: 10px 18px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  border-radius: 2em !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

.wo_group_profile .group-info-block__actions .group-join-btn .btn svg,
.wo_group_profile .group-info-block__actions .group-join-btn button svg {
  width: 17px;
  height: 17px;
  margin: 0;
  flex-shrink: 0;
}

.wo_group_profile .group-info-block__actions .group-join-btn .btn-default:not(.btn-main),
.wo_group_profile .group-info-block__actions .group-join-btn .wo_follow_btn,
.wo_group_profile .group-info-block__actions .group-join-btn .wo_request_btn {
  background: #fff !important;
  color: #050505 !important;
}

.wo_group_profile .group-info-block__actions .wo-fb-group-action-btn__text {
  display: inline;
  white-space: nowrap;
}

.wo_group_profile .group-info-block__actions .wo-fb-group-owner-btn > a.wo-fb-group-action-btn svg,
.wo_group_profile .group-info-block__actions .wo-fb-group-action-btn svg {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  flex-shrink: 0;
  stroke-width: 2.25;
}

.wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--primary {
  color: #fff !important;
  background: var(--fb-blue, #1877f2) !important;
  border-color: var(--fb-blue, #1877f2) !important;
}

.wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--primary:hover {
  color: #fff !important;
  background: var(--fb-blue-hover, #166fe5) !important;
  border-color: var(--fb-blue-hover, #166fe5) !important;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35) !important;
}

.wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--admin {
  position: relative;
  overflow: hidden;
  display: inline-flex !important;
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  z-index: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--admin::before {
  pointer-events: none !important;
}

.wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--admin svg,
.wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--admin .wo-fb-group-action-btn__text {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--secondary {
  color: var(--fb-text, #050505) !important;
  background: var(--fb-bg, #f0f2f5) !important;
  border-color: var(--fb-border, #e4e6eb) !important;
}

.wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--secondary:hover {
  color: var(--fb-text, #050505) !important;
  background: #e4e6eb !important;
  border-color: #ccd0d5 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important;
}

html.wo-night-mode .wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--secondary,
body.wo-night-mode .wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--secondary {
  color: #e4e6eb !important;
  background: #3a3b3c !important;
  border-color: #4e4f50 !important;
}

html.wo-night-mode .wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--secondary:hover,
body.wo-night-mode .wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--secondary:hover {
  background: #4e4f50 !important;
  border-color: #5a5b5c !important;
}

/* Night mode — re-lock group header button layout (dark.css / admin night rules must not break placement) */
html.wo-night-mode .wo_group_profile .group-info-block,
body.wo-night-mode .wo_group_profile .group-info-block,
.night-mode .wo_group_profile .group-info-block {
  display: flex !important;
  align-items: flex-start !important;
  flex-direction: row !important;
  gap: 16px !important;
}

html.wo-night-mode .wo_group_profile .group-info-block__actions.options-buttons,
body.wo-night-mode .wo_group_profile .group-info-block__actions.options-buttons,
.night-mode .wo_group_profile .group-info-block__actions.options-buttons {
  position: relative !important;
  float: none !important;
  display: flex !important;
  flex: 0 0 auto !important;
  flex-flow: row wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 0 0 auto !important;
  margin-top: 0 !important;
  padding: 0 !important;
  right: auto !important;
  top: auto !important;
  left: auto !important;
  z-index: 4 !important;
  align-self: flex-start !important;
  pointer-events: auto !important;
}

html.wo-night-mode .wo_group_profile .group-info-block__actions.options-buttons a,
html.wo-night-mode .wo_group_profile .group-info-block__actions.options-buttons button,
body.wo-night-mode .wo_group_profile .group-info-block__actions.options-buttons a,
body.wo-night-mode .wo_group_profile .group-info-block__actions.options-buttons button,
.night-mode .wo_group_profile .group-info-block__actions.options-buttons a,
.night-mode .wo_group_profile .group-info-block__actions.options-buttons button {
  float: none !important;
  margin-left: 0 !important;
}

html.wo-night-mode .wo_group_profile .group-info-block__actions .wo-fb-group-owner-btn,
html.wo-night-mode .wo_group_profile .group-info-block__actions .group-join-btn,
body.wo-night-mode .wo_group_profile .group-info-block__actions .wo-fb-group-owner-btn,
body.wo-night-mode .wo_group_profile .group-info-block__actions .group-join-btn,
.night-mode .wo_group_profile .group-info-block__actions .wo-fb-group-owner-btn,
.night-mode .wo_group_profile .group-info-block__actions .group-join-btn {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}

html.wo-night-mode .wo_group_profile .group-info-block__actions .wo-fb-group-owner-btn > a.wo-fb-group-action-btn,
html.wo-night-mode .wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--admin,
body.wo-night-mode .wo_group_profile .group-info-block__actions .wo-fb-group-owner-btn > a.wo-fb-group-action-btn,
body.wo-night-mode .wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--admin,
.night-mode .wo_group_profile .group-info-block__actions .wo-fb-group-owner-btn > a.wo-fb-group-action-btn,
.night-mode .wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--admin {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  float: none !important;
  white-space: nowrap !important;
  position: relative !important;
  z-index: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

html.wo-night-mode .wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--admin::before,
body.wo-night-mode .wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--admin::before,
.night-mode .wo_group_profile .group-info-block__actions .wo-fb-group-action-btn--admin::before {
  pointer-events: none !important;
}

html.wo-night-mode .wo_group_profile .group-info-block__main,
body.wo-night-mode .wo_group_profile .group-info-block__main,
.night-mode .wo_group_profile .group-info-block__main {
  pointer-events: none !important;
}

html.wo-night-mode .wo_group_profile .group-info-block__main a,
html.wo-night-mode .wo_group_profile .group-info-block__main button,
body.wo-night-mode .wo_group_profile .group-info-block__main a,
body.wo-night-mode .wo_group_profile .group-info-block__main button,
.night-mode .wo_group_profile .group-info-block__main a,
.night-mode .wo_group_profile .group-info-block__main button {
  pointer-events: auto !important;
}

.wo_group_profile .wo-fb-group-suggested-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 8px 10px 12px !important;
}

.wo_group_profile .wo-fb-group-suggested-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  margin: 0;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.wo_group_profile .wo-fb-group-suggested-row:hover {
  background: rgba(24, 119, 242, 0.06);
}

.wo_group_profile .wo-fb-group-suggested-row__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  line-height: 0;
}

.wo_group_profile .wo-fb-group-suggested-row__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wo_group_profile .wo-fb-group-suggested-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wo_group_profile .wo-fb-group-suggested-row__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fb-text, #050505) !important;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wo_group_profile .wo-fb-group-suggested-row__name:hover {
  text-decoration: underline !important;
}

.wo_group_profile .wo-fb-group-suggested-row__meta {
  font-size: 12px;
  line-height: 1.3;
  color: var(--fb-text-secondary, #65676b);
}

.wo_group_profile .wo-fb-group-suggested-row__action {
  flex-shrink: 0;
}

.wo_group_profile .wo-fb-group-suggested-row__action .btn,
.wo_group_profile .wo-fb-group-suggested-row__action button {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  line-height: 1 !important;
  white-space: nowrap;
}

html.wo-night-mode .wo_group_profile .wo-fb-group-suggested-row:hover,
body.wo-night-mode .wo_group_profile .wo-fb-group-suggested-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

html.wo-night-mode .wo_group_profile .wo-fb-group-suggested-row__name,
body.wo-night-mode .wo_group_profile .wo-fb-group-suggested-row__name {
  color: var(--fb-text, #ececec) !important;
}

body.wo-night-mode .wo_group_profile .group-info-block__actions .group-join-btn .btn-default:not(.btn-main),
body.wo-night-mode .wo_group_profile .group-info-block__actions .group-join-btn .wo_follow_btn,
body.wo-night-mode .wo_group_profile .group-info-block__actions .group-join-btn .wo_request_btn,
.night-mode .wo_group_profile .group-info-block__actions .group-join-btn .btn-default:not(.btn-main),
.night-mode .wo_group_profile .group-info-block__actions .group-join-btn .wo_follow_btn,
.night-mode .wo_group_profile .group-info-block__actions .group-join-btn .wo_request_btn {
  background: #24313d !important;
  color: #fff !important;
}

/* Group page: card-like columns follow theme surfaces (day / night via tokens) */
.wo_group_profile .wow_content,
.wo_group_profile ul.wow_content {
  background-color: var(--card-bg) !important;
  color: var(--text-primary);
}

.wo_group_profile .wo_prof_side_info_padd > li,
.wo_group_profile .event-options-list > li {
  color: var(--text-primary);
}

.wo_group_profile .wo_prof_side_info_padd > li a:not(.btn):not(.btn-main) {
  color: var(--text-primary) !important;
}

/* Manage headers: increase title/subtitle gap without growing block */
.group-manage-header.popular_posts_hdr > h2 {
  margin-top: -10px !important;
  margin-bottom: 0 !important;
}

.group-manage-header.popular_posts_hdr > p {
  margin: 16px 0 -10px !important;
}

html.wo-night-mode .group-manage-header.popular_posts_hdr > h2,
body.wo-night-mode .group-manage-header.popular_posts_hdr > h2 {
  color: var(--text-primary, #e8e8e8);
}

html.wo-night-mode .popular_posts_hdr > h2 svg,
body.wo-night-mode .popular_posts_hdr > h2 svg {
  background: rgba(255, 255, 255, 0.08);
}

/* Sidebar mini group header for manage/edit pages */
.group-mini-header-card {
  margin: 0;
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-sm);
  overflow: hidden;
  background: var(--card-bg);
}

.group-mini-header-shell {
  margin-bottom: 14px !important;
}

.group-setting-menu-list {
  margin-top: 0 !important;
  padding-top: 10px !important;
}

.group-setting-switch-shell {
  margin-top: 14px !important;
}

.group-setting-switch-menu {
  padding-top: 10px !important;
  padding-bottom: 6px !important;
}

.group-pending-posts-toolbar {
  margin-bottom: 14px;
}

.group-pending-posts-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.group-pending-select-all-label {
  margin: 0 8px 0 0;
  font-weight: 600;
}

.group-pending-post-item__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.group-pending-post-item__check {
  margin: 8px 0 0;
  flex-shrink: 0;
}

.group-pending-post-item__author {
  flex: 1;
  min-width: 0;
}

.group-pending-posts-pagination {
  margin-top: 16px;
}

.group-mini-header-card__cover-link {
  display: block;
}

.group-mini-header-card__cover {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.group-mini-header-card__body {
  padding: 10px 12px 12px;
}

.group-mini-header-card__title {
  display: block;
  color: var(--text-primary) !important;
  font-family: "Segoe UI Historic", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
}

.group-mini-header-card__title:hover {
  text-decoration: underline !important;
}

.group-mini-header-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.3;
}

.group-mini-header-card__privacy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.group-mini-header-card__privacy svg {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
}

/*
 * Base themes/fbtheme/stylesheet/style.css has corrupted mojibake in
 * .w-check-handler:before / :checked...::before `content:` (UTF-8 mis-saved as Latin-1).
 * That string renders as a huge white glyph overlay; toggling moves the handler so it "shifts".
 * Remove the broken pseudo-element text site-wide in fbtheme.
 */
.w-check-handler::before,
.w-check-handler:before,
input[type=checkbox]:checked + .w-check-trail .w-check-handler::before,
input[type=checkbox]:checked + .w-check-trail .w-check-handler:before {
  content: none !important;
  display: none !important;
}

/* Admin Assist (Manage): hero + criteria card layout (uses theme tokens, not forced dark) */
.aa-manage {
  --aa-card-radius: 12px;
}

.aa-hero {
  text-align: center;
  padding: 28px 24px 32px;
  border-radius: var(--aa-card-radius);
  background-color: var(--card-bg) !important;
  border: 1px solid var(--fb-border) !important;
  box-shadow: var(--fb-shadow) !important;
  margin-bottom: 0;
}

.aa-hero__icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--background-alt, #f0f2f5);
  color: var(--fb-blue, #1877f2);
}

body.wo-night-mode .aa-hero__icon-wrap {
  background: rgba(24, 119, 242, 0.12);
}

.aa-hero__icon {
  width: 30px;
  height: 30px;
}

.aa-hero__title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
  font-family: "Segoe UI Historic", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary, #050505);
}

.aa-hero__subtitle {
  max-width: 36rem;
  margin: 12px auto 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary, #65676b) !important;
}

.aa-criteria-stack {
  margin-top: 22px;
}

.aa-criteria-eyebrow {
  margin: 0 0 12px 2px;
  padding: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary, #050505);
}

.aa-criteria-stack .wo_settings_page {
  margin-top: 0;
}

.group-admin-assist-card {
  border: 1px solid var(--fb-border, #e4e6eb);
  border-radius: var(--aa-card-radius);
  padding: 20px 24px 22px;
  margin: 0 0 4px 0;
  background: var(--card-bg, #fff);
  box-shadow: var(--fb-shadow);
}

.group-admin-assist-card__head {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.group-admin-assist-card__text {
  flex: 1 1 auto;
  min-width: 0;
}

.group-admin-assist-card__title {
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--text-primary, #050505);
  margin: 0 0 6px 0;
}

.group-admin-assist-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary) !important;
}

/* Toggle: in-flow, padded away from the card edge and from the text (no absolute corner hugging) */
.group-admin-assist-switch {
  float: none !important;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 6px 4px 6px 12px;
  position: relative;
  top: 0;
  align-self: center;
}

.group-admin-assist-switch .w-check-trail {
  margin-top: 0 !important;
}

.group-admin-assist-days {
  margin-top: 18px;
  max-width: 240px;
}

.group-admin-assist-warning {
  margin-top: 18px;
  margin-bottom: 0;
  text-align: left;
  border-radius: var(--fb-radius-sm);
}

.group-admin-assist-form__actions {
  margin-top: 20px;
  padding-top: 4px;
}

.group-admin-assist-keywords-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--fb-border, #e4e6eb);
}

.group-admin-assist-keywords-block__label {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 8px;
  display: block;
}

.group-admin-assist-keywords-block textarea.form-control {
  min-height: 100px;
  font-size: 0.875rem;
  resize: vertical;
}

.group-admin-assist-keywords-block .form-hint {
  font-size: 0.8125rem;
  margin-top: 6px;
  color: var(--text-secondary) !important;
}

.group-admin-assist-csv-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Group manage dashboard digest + widgets */
.group-manage-digest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.group-manage-digest-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.group-manage-digest-card--link:hover,
.group-manage-digest-card--link:focus {
  color: inherit;
  text-decoration: none;
  border-color: rgba(24, 119, 242, 0.35);
  background: rgba(24, 119, 242, 0.06);
}

.group-manage-digest-card {
  background: rgba(125, 125, 125, 0.08);
  border: 1px solid rgba(125, 125, 125, 0.14);
  border-radius: 10px;
  padding: 16px;
}

.group-manage-digest-number {
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 8px;
}

.group-manage-digest-label {
  font-size: 14px;
  opacity: 0.9;
}

.group-manage-digest-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.group-manage-total-members {
  font-size: 14px;
}

.group-manage-member-avatars {
  display: flex;
  align-items: center;
}

.group-manage-member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--card-bg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
  display: inline-flex;
}

.group-manage-member-avatar + .group-manage-member-avatar {
  margin-inline-start: -7px;
}

.group-manage-member-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.group-dashboard-widgets {
  margin-top: 24px;
  padding-top: 8px;
  font-family: 'Poppins', var(--fb-font);
  font-size: 14px;
  font-weight: 500;
}

.group-dashboard-widgets__heading {
  margin: 0 0 14px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary, #050505);
  letter-spacing: -0.02em;
}

.group-dashboard-widgets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.group-dashboard-charts-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.group-dashboard-widget {
  background: rgba(125, 125, 125, 0.06);
  border: 1px solid rgba(125, 125, 125, 0.14);
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 120px;
}

.group-dashboard-widget__title {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--text-primary, #050505);
  margin: 0 0 12px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fb-border, rgba(125, 125, 125, 0.22));
  letter-spacing: -0.01em;
}

.group-dashboard-widget--keywords {
  margin-top: 14px;
}

.group-dashboard-widget__hint {
  font-size: 14px;
  font-weight: 400;
  margin: -2px 0 12px 0;
}

.group-dashboard-widget__post-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.group-dashboard-widget__post-link:hover {
  color: inherit;
  text-decoration: none;
}

.group-dashboard-widget__post-meta {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 8px;
}

.group-dashboard-widget__excerpt {
  margin: 0;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.group-dashboard-widget__empty {
  margin: 0;
  font-size: 14.5px;
  font-weight: 400;
}

.group-dashboard-user-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.group-dashboard-user-list li + li {
  margin-top: 8px;
}

.group-dashboard-user-list__row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.group-dashboard-user-list__row:hover {
  color: inherit;
  text-decoration: none;
}

.group-dashboard-user-list__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.group-dashboard-user-list__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-dashboard-user-list__meta {
  font-size: 13px;
  font-weight: 400;
  flex-shrink: 0;
}

.group-dashboard-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 120px;
  padding-top: 8px;
}

.group-dashboard-bar-chart__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  height: 100%;
}

.group-dashboard-bar-chart__bar {
  width: 100%;
  max-width: 28px;
  margin-top: auto;
  background: var(--fb-blue, #1877f2);
  border-radius: 4px 4px 0 0;
  min-height: 0;
  transition: height 0.2s ease;
}

.group-dashboard-bar-chart--members .group-dashboard-bar-chart__bar {
  background: #42b72a;
}

.group-dashboard-bar-chart__label {
  font-size: 13px;
  margin-top: 6px;
  color: var(--text-secondary);
}

.group-dashboard-bar-chart__value {
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

.group-dashboard-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.group-dashboard-keywords__tag {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(24, 119, 242, 0.1);
  color: var(--fb-blue, #1877f2);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.25;
}

body.wo-night-mode .group-dashboard-keywords__tag {
  background: rgba(24, 119, 242, 0.18);
}

.group-affiliation-preview {
  min-height: 39px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 14px;
}

.group-affiliation-enable-field {
  margin-bottom: 16px;
}

.group-affiliation-enable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.group-affiliation-enable-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.group-affiliation-enable-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary, #050505);
  margin-bottom: 4px;
}

.group-affiliation-enable-switch {
  flex: 0 0 auto;
  margin: 0 !important;
}

.group-affiliation-enable-switch .w-check-trail {
  margin-top: 0 !important;
}

.group-affiliation-enable-switch input[type="checkbox"] {
  width: auto !important;
  height: auto !important;
  transform: none !important;
  margin: 0 !important;
}

.group-affiliation-preview a {
  margin-inline-start: 4px;
  text-decoration: none;
  font-weight: 700;
}

.group-dashboard-widgets__footer {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .group-manage-digest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-dashboard-widgets-grid,
  .group-dashboard-charts-row {
    grid-template-columns: 1fr;
  }
}

.group-pending-post-item {
  border: 1px solid var(--border-color, rgba(125, 125, 125, 0.2));
  border-radius: var(--fb-radius-md, 10px);
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--card-bg, #fff);
}

.group-pending-post-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color, rgba(125, 125, 125, 0.14));
}

.group-pending-post-item__author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.group-pending-post-item__author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.group-pending-post-item__author span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.group-pending-post-item__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.group-pending-post-item__preview .post-container {
  margin: 0;
  box-shadow: none;
}

.group-pending-post-item__preview .panel-shadow {
  box-shadow: none;
}

.group-post-pending-badge {
  margin: 10px 12px 0;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #9a6700;
  background: #fff8e6;
  border: 1px solid #f5d565;
  border-radius: 6px;
}

/* Group page (members tab): search + card grid with stable circular avatars */
.wo_group_profile .group-page-members {
  margin-top: 0;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: var(--fb-radius);
  border: 1px solid var(--fb-border);
}

.wo_group_profile .group-page-members__search {
  margin-bottom: 16px;
}

.wo_group_profile .group-page-members__search input.form-control {
  max-width: 420px;
}

.wo_group_profile .group-page-members__leadership {
  margin-bottom: 20px;
  padding: 14px 14px 4px;
  border-radius: var(--fb-radius-sm);
  border: 1px solid var(--fb-border);
  background: var(--card-bg);
}

.wo_group_profile .group-page-members__leadership-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fb-text);
}

.group-page-members__pagination,
.group-setting-members-wrap .group-page-members__pagination {
  margin: 16px 0 4px;
}

.group-page-members__pagination-meta {
  margin: 0 0 8px;
  color: var(--fb-text-muted, #65676b);
  font-size: 13px;
}

.group-info-block__actions .btn-glossy .btn svg.feather {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  stroke: currentColor;
  fill: none;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.group-info-block__actions .btn-glossy .btn svg.feather .icon_main {
  stroke: var(--fb-blue, #1877f2);
  fill: none;
}

.wo_group_profile .group-info-block__actions .btn-glossy > a,
.wo_group_profile .group-info-block__actions .btn-glossy > button,
.wo_group_profile .group-info-block__actions .btn-glossy > span > a,
.wo_group_profile .group-info-block__actions .wo-fb-group-owner-btn > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
}

/* Group settings / manage sidebar — dual-tone SVG menu icons */
.wow_sett_sidebar > ul > li > a span svg,
.wow_sett_sidebar > ul > li > a > svg {
  color: rgba(0, 0, 0, 0.65);
}

.wow_sett_sidebar > ul > li > a span svg .icon_main,
.wow_sett_sidebar > ul > li > a svg .icon_main,
.wo_group_setting_layout .group-setting-switch-menu > li > a span svg .icon_main {
  stroke: var(--fb-blue, #1877f2);
  fill: none;
}

.wow_sett_sidebar > ul > li > a span svg .icon_main_fill,
.wo_group_setting_layout .group-setting-switch-menu > li > a span svg .icon_main_fill {
  fill: var(--fb-blue, #1877f2);
  stroke: none;
}

.group-post-search-wrap {
  margin-bottom: 12px;
  padding: 12px !important;
  border-radius: 12px;
  background: var(--card-bg, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.group-post-search-bar {
  position: relative;
  margin-bottom: 10px;
}

.group-post-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--fb-text-muted, #65676b);
  z-index: 2;
}

.group-post-search__input.search-for-posts {
  width: 100%;
  height: 44px;
  margin: 0 !important;
  padding: 0 16px 0 42px !important;
  border: none !important;
  border-radius: 22px !important;
  background: var(--fb-surface-muted, #f0f2f5);
  color: var(--fb-text, #050505);
  font-size: 15px;
  box-shadow: none !important;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.group-post-search__input.search-for-posts:focus {
  outline: none;
  background: var(--card-bg, #fff);
  box-shadow: 0 0 0 2px var(--fb-blue, #1877f2) !important;
}

.group-post-search-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  position: relative;
}

.group-post-search-filter-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.group-post-search-filter {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--fb-text-muted, #65676b);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, color 0.15s ease;
}

.group-post-search-filter:hover {
  background: var(--fb-surface-muted, #f0f2f5);
  color: var(--fb-text, #050505);
}

.group-post-search-filter.is-active {
  background: var(--fb-blue-soft, rgba(24, 119, 242, 0.12));
  color: var(--fb-blue, #1877f2);
}

html.wo-night-mode .group-post-search-filter.is-active,
body.wo-night-mode .group-post-search-filter.is-active {
  background: rgba(45, 136, 255, 0.18);
  color: #2d88ff;
}

.wo_group_suggested_sidebar .wo_page_hdng.profile_hdng_side {
  margin: 0;
  padding: 14px 15px 10px;
  border-bottom: 1px solid var(--fb-border, #e4e6eb);
}

.wo_group_suggested_sidebar .wo_page_hdng_innr {
  padding: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.wo_group_profile .rightcol .wow_content.negg_padd {
  overflow: visible;
}

.wo_group_profile .wo_prof_side_info_padd.padd_top {
  padding-top: 12px !important;
  padding-bottom: 10px !important;
  overflow: visible;
}

.wo_group_profile .wo_prof_side_info_padd > li:first-child {
  padding-top: 4px;
}

.wo_group_profile .wo_prof_side_info_padd .wo_page_hdng.pag_neg_padd {
  margin: 0 0 8px;
  padding: 12px 15px;
}

.wo_group_suggested_sidebar.page-margin.wow_content.negg_padd {
  padding-top: 4px !important;
  overflow: visible;
}

.wo_group_suggested_sidebar .event-options-list {
  padding: 4px 0 8px;
}

.share-post-message-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--fb-border, #e4e6eb);
}

.share-post-message-panel h5 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.share-post-message-list {
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.share-post-message-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--fb-border, #e4e6eb);
  border-radius: 8px;
  background: var(--card-bg, #fff);
  margin-bottom: 6px;
  text-align: left;
  cursor: pointer;
}

.share-post-message-item img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.share-post-message-item.is-active {
  border-color: var(--fb-blue, #1877f2);
  box-shadow: 0 0 0 1px var(--fb-blue, #1877f2);
}

.wo_global_search_filter {
  min-width: 160px;
}

.wo_global_search_filter select.form-control {
  height: 38px;
  border-radius: 8px;
}

.wo_group_profile .group-page-members__grid {
  margin-left: -8px;
  margin-right: -8px;
  display: flex;
  flex-wrap: wrap;
}

.wo_group_profile .group-page-members__grid::after {
  content: "";
  display: table;
  clear: both;
}

.wo_group_profile .group-page-members__grid > .cool-style-album {
  float: none !important;
  padding-left: 8px;
  padding-right: 8px;
}

.wo_group_profile .group-page-members .cool-style-album.profi_groups.user_list .album_parent {
  min-height: 172px;
  max-height: 210px;
  height: auto;
  padding: 16px 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: var(--fb-radius-sm);
  border: 1px solid var(--fb-border);
  background: var(--card-bg);
  box-shadow: none;
  margin-bottom: 0;
}

.wo_group_profile .group-page-members .cool-style-album.profi_groups.user_list .album_parent .avatar {
  width: 100%;
  max-width: 132px;
  margin: 0 auto;
}

.wo_group_profile .group-page-members .cool-style-album.profi_groups.user_list .album_parent .avatar {
  width: 88px !important;
  max-width: 88px !important;
  flex-shrink: 0;
}

.wo_group_profile .group-page-members .cool-style-album.profi_groups.user_list .album_parent .avatar a {
  width: 88px !important;
  height: 88px !important;
  max-width: 88px !important;
  min-width: 88px !important;
  min-height: 88px !important;
  margin: 0 auto 10px !important;
  padding: 0 !important;
  position: relative;
  display: block;
  border-radius: 50%;
  overflow: hidden !important;
  box-sizing: border-box;
}

.wo_group_profile .group-page-members .cool-style-album.profi_groups.user_list .album_parent .avatar a img {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
  border-radius: 50% !important;
  box-shadow: none !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wo_group_profile .group-page-members .cool-style-album.profi_groups.user_list .album_parent {
  overflow: hidden;
}

.wo_group_profile .group-page-members .cool-style-album .album-name {
  width: 100%;
  min-width: 0;
}

.wo_group_profile .group-page-members .cool-style-album .album-name .wo-group-admin-badge {
  display: inline-flex;
  margin-top: 6px;
  max-width: 100%;
}

.wo_group_profile .group-page-members .cool-style-album .album-name h4 {
  margin-top: 0;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.75em;
  line-height: 1.35;
}

.wo_group_profile .group-page-members .cool-style-album .album-name {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  min-height: 2.75em;
}

.wo_group_profile .group-page-members .cool-style-album .album-name a {
  color: var(--text-primary) !important;
}

/* Group settings: members list */
.group-setting-members-wrap .group-setting-members-search {
  margin-bottom: 14px;
}

.group-setting-members-wrap .group-setting-members-search input.form-control {
  max-width: 420px;
}

.group-setting-member-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-sm);
  background: var(--card-bg);
}

.group-setting-member-row__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  line-height: 0;
}

.group-setting-member-row__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.group-setting-member-row__body {
  flex: 1 1 160px;
  min-width: 0;
}

.group-setting-member-row__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-weight: 600;
}

.group-setting-member-row__name a {
  color: var(--text-primary) !important;
}

.group-setting-member-row__actions {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .group-setting-member-row__actions {
    justify-content: flex-start;
    width: 100%;
  }
}

.group-banned-members-search {
  margin-bottom: 16px;
}

.group-banned-member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--border-color, #e4e6eb);
  border-radius: 8px;
  background: var(--body-bg, #fff);
}

.group-banned-member-item__author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.group-banned-member-item__author a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
}

.group-banned-member-item__author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.group-banned-member-item__author span {
  font-weight: 600;
}

.group-banned-member-item__actions {
  flex-shrink: 0;
}

.group-banned-viewer-msg {
  max-width: 480px;
  margin: 24px auto;
}

.group-banned-notice {
  pointer-events: none;
  opacity: 0.85;
}

.post .post-heading .meta .title {
  gap: 2px !important;
}

.post .post-heading .meta .title .wo-user-profile-badges,
.comment .comment-heading .wo-user-profile-badges {
  margin-left: 4px;
}

.post .post-heading .meta .title .wo-group-admin-badge,
.comment .comment-heading .wo-group-admin-badge {
  margin-left: 4px;
}

/* Admin badge directly after name (no custom badges) — same offset as profile badges */
.post .post-heading .meta .title .user-popover + .wo-group-admin-badge,
.comment .comment-heading .user-popover + .wo-group-admin-badge {
  margin-left: 4px;
}

.wo-group-admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-left: 2px;
  padding: 0 6px;
  height: 18px;
  min-height: 18px;
  box-sizing: border-box;
  vertical-align: middle;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  color: #1a5fb4;
  background: rgba(26, 95, 180, 0.1);
  border-radius: 9px;
  border: 1px solid rgba(26, 95, 180, 0.22);
}

.wo-group-admin-badge--comment {
  margin-left: 4px;
  position: relative;
  top: 0;
}

.wo-group-admin-badge__icon {
  flex-shrink: 0;
  display: block;
  opacity: 0.95;
}

.wo-group-admin-badge__text {
  letter-spacing: 0.02em;
}

body[data-mode="night"] .wo-group-admin-badge:not(.wo-group-role-badge--custom),
body.wo-night-mode .wo-group-admin-badge:not(.wo-group-role-badge--custom),
.night-mode .wo-group-admin-badge:not(.wo-group-role-badge--custom) {
  color: #7eb6ff;
  background: rgba(126, 182, 255, 0.12);
  border-color: rgba(126, 182, 255, 0.28);
}

body[data-mode="night"] .wo-group-admin-badge.wo-group-role-badge--custom,
body.wo-night-mode .wo-group-admin-badge.wo-group-role-badge--custom,
.night-mode .wo-group-admin-badge.wo-group-role-badge--custom {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

body[data-mode="night"] .wo-group-admin-badge,
body.wo-night-mode .wo-group-admin-badge,
.night-mode .wo-group-admin-badge {
  height: 18px;
  min-height: 18px;
  line-height: 1;
  vertical-align: middle;
}

body[data-mode="night"] .wo-group-admin-badge__icon,
body.wo-night-mode .wo-group-admin-badge__icon,
.night-mode .wo-group-admin-badge__icon {
  width: 12px;
  height: 12px;
}

.wo-group-role-badge--custom .wo-group-role-badge__icon-img {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  object-fit: contain;
  border-radius: 2px;
}

.group-role-members-modal-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color, rgba(125, 125, 125, 0.2));
}

.group-role-members-modal-list__item:last-child {
  border-bottom: none;
}

.group-role-members-modal-list__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.group-role-members-modal-list__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.group-roles-page .group-role-editor {
  padding: 16px;
  margin-bottom: 16px;
}

.group-roles-page .group-role-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--fb-border, #e5e7eb);
}

.group-roles-page .group-role-section__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.group-roles-page .group-role-section__hint {
  margin: 0 0 12px;
}

.group-roles-page .group-role-perms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
  padding: 4px 0;
}

@media (max-width: 575px) {
  .group-roles-page .group-role-perms-grid {
    grid-template-columns: 1fr;
  }
}

.group-roles-page .group-role-perm-item.round-check,
.group-roles-page .group-role-badge-toggle.round-check {
  margin: 0;
  padding: 4px 0 4px 2px;
}

.group-roles-page .group-role-perm-item.round-check label,
.group-roles-page .group-role-badge-toggle.round-check label {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  padding-left: 28px;
  cursor: pointer;
}

.group-roles-page .group-role-badge-section {
  border-top-width: 2px;
}

.group-roles-page .group-role-badge-fields {
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--fb-radius-sm, 8px);
  border: 1px solid var(--fb-border, #e5e7eb);
  background: var(--card-bg, #fafafa);
}

.group-roles-page .group-role-badge-fields.is-disabled {
  opacity: 0.65;
  pointer-events: none;
}

.group-roles-page .group-role-color-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 12px 0 4px;
}

.group-roles-page .group-role-rgba-picker {
  padding: 10px 12px;
  border-radius: var(--fb-radius-sm, 8px);
  border: 1px solid var(--fb-border, #e5e7eb);
  background: #fff;
}

.group-roles-page .group-role-rgba-picker__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary, #1c1e21);
}

.group-roles-page .group-role-rgba-picker__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.group-roles-page .group-role-rgba-picker input[type="color"].group-role-rgba-hex {
  width: 48px;
  height: 40px !important;
  min-height: 40px !important;
  padding: 2px !important;
  border: 1px solid var(--fb-border, #ddd);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  background: #fff !important;
}

.group-roles-page .group-role-rgba-alpha-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 140px;
  min-width: 120px;
}

.group-roles-page .group-role-rgba-picker input[type="range"].group-role-rgba-alpha {
  flex: 1;
  height: auto !important;
  min-height: 0 !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.group-roles-page .group-role-rgba-alpha-val {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary, #65676b);
  min-width: 36px;
  text-align: right;
}

.group-roles-page .group-role-field.wow_form_fields {
  margin: 10px 0;
}

.group-roles-page .group-role-file-input {
  height: auto !important;
  min-height: 0 !important;
  padding: 6px 8px !important;
  width: 100% !important;
  background: #fff !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.group-roles-page .group-role-badge-preview-wrap {
  margin-top: 14px;
  margin-bottom: 28px;
  padding-bottom: 4px;
}

.group-roles-page .group-role-preview-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.group-roles-page .group-role-badge-preview {
  min-height: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.group-roles-page .group-role-form-actions {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--fb-border, #e5e7eb);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.group-roles-page .group-role-list-panel {
  padding: 16px;
}

.group-roles-page .group-role-list-panel__hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.group-roles-page .group-role-list-panel__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.group-roles-page .group-role-form-back {
  margin: 0 0 12px;
}

.group-roles-page .group-role-form-back a {
  font-size: 14px;
}

.group-member-roles-menu {
  min-width: 180px;
}

.wo-user-profile-badges {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 2px;
  vertical-align: middle;
  line-height: 0;
}

.wo_user_profile .info .title .wo-user-profile-badges {
  margin-left: 4px;
}

.wo-user-profile-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.wo-user-profile-badge__img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
}

.wo-user-profile-badge__img--dark {
  display: none;
}

body.wo-night-mode .wo-user-profile-badge__img--light {
  display: none;
}

body.wo-night-mode .wo-user-profile-badge__img--dark {
  display: inline-block;
}

/* Home feed: flat surfaces without grey outlines on posts and sidebar user card */
.page-margin > .row > .middlecol .post .panel,
.page-margin > .row > .middlecol > .wow_content:not(.modal-content),
.page-margin > .row > .middlecol .user-status-home,
.page-margin > .row > .middlecol .home-announcement .wow_content,
.page-margin > .row > .rightcol .wow_side_loggd_usr.wow_content,
.page-margin > .row > .rightcol > .wow_content.wo_prof_side_info_padd {
  border: none !important;
  box-shadow: none !important;
}

.page-margin > .row > .middlecol .post .panel {
  border-radius: var(--fb-radius) !important;
}

.page-margin > .row > .rightcol .wow_side_loggd_usr.wow_content {
  border-radius: var(--fb-radius) !important;
}

/* Facebook-style comment bubbles */
:root {
  --fb-comment-bubble-bg: #f0f2f5;
}

html.wo-night-mode,
body.wo-night-mode,
.night-mode {
  --fb-comment-bubble-bg: #3a3b3c;
}

/* Neutralize blue-tinted surfaces from dark.css when fbtheme night mode is active */
html.wo-night-mode .wow_content,
body.wo-night-mode .wow_content,
html.wo-night-mode .wo_settings_page,
body.wo-night-mode .wo_settings_page,
html.wo-night-mode .navbar-default,
body.wo-night-mode .navbar-default,
html.wo-night-mode .header-container,
body.wo-night-mode .header-container {
  background-color: var(--card-bg) !important;
}

.post .post-footer .comments-list .comment .comment-body,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100% !important;
}

/* Let comment bubbles use the full comment column width */
.post .post-footer .comments-list .comment .comment-text,
.post .post-footer .comments-list .reply .reply-text,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-heading .comment-text,
.comment-text,
.reply-text {
  width: auto !important;
  max-width: 100%;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.post .post-footer .comments-list .comment .comment-heading,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-heading,
.post .post-footer .comments-list .reply .reply-heading,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .reply .reply-heading {
  background: var(--fb-comment-bubble-bg);
  border-radius: 18px;
  padding: 8px 12px 10px;
  max-width: 100%;
  width: fit-content;
  margin-bottom: 4px;
  position: relative;
  box-sizing: border-box;
}

.post .post-footer .comments-list .comment .comment-heading .user,
.post .post-footer .comments-list .reply .reply-heading .user,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-heading .user {
  display: inline;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.post .post-footer .comments-list .comment .comment-heading .comment-text,
.post .post-footer .comments-list .reply .reply-heading .comment-text,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-heading .comment-text {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
}

/* Comment / reply photo attachments — inside bubble, FB-style responsive sizing */
.post .post-footer .comments-list .comment .comment-heading .wo-comment-media,
.post .post-footer .comments-list .reply .reply-heading .wo-comment-media,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-heading .wo-comment-media {
  width: auto !important;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 0;
}

.post .post-footer .comments-list .comment .comment-heading .wo-comment-media__link,
.post .post-footer .comments-list .reply .reply-heading .wo-comment-media__link,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-heading .wo-comment-media__link {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  line-height: 0;
  background: rgba(0, 0, 0, 0.04);
}

.post .post-footer .comments-list .comment .comment-heading .wo-comment-media img,
.post .post-footer .comments-list .reply .reply-heading .wo-comment-media img,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-heading .wo-comment-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 !important;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.post .post-footer .comments-list .comment .comment-heading .wo-comment-media--landscape,
.post .post-footer .comments-list .reply .reply-heading .wo-comment-media--landscape,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-heading .wo-comment-media--landscape {
  max-width: min(100%, 420px);
}

.post .post-footer .comments-list .comment .comment-heading .wo-comment-media--landscape img,
.post .post-footer .comments-list .reply .reply-heading .wo-comment-media--landscape img {
  max-height: 280px;
}

.post .post-footer .comments-list .comment .comment-heading .wo-comment-media--portrait,
.post .post-footer .comments-list .reply .reply-heading .wo-comment-media--portrait,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-heading .wo-comment-media--portrait {
  max-width: min(100%, 240px);
}

.post .post-footer .comments-list .comment .comment-heading .wo-comment-media--portrait img,
.post .post-footer .comments-list .reply .reply-heading .wo-comment-media--portrait img {
  max-height: 360px;
}

.post .post-footer .comments-list .comment .comment-heading .wo-comment-media--square,
.post .post-footer .comments-list .reply .reply-heading .wo-comment-media--square,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-heading .wo-comment-media--square {
  max-width: min(100%, 260px);
}

.post .post-footer .comments-list .comment .comment-heading .wo-comment-media--square img,
.post .post-footer .comments-list .reply .reply-heading .wo-comment-media--square img {
  aspect-ratio: 1 / 1;
  max-height: 260px;
}

.post .post-footer .comments-list .comment .comment-heading .wo-comment-media__link:hover img,
.post .post-footer .comments-list .reply .reply-heading .wo-comment-media__link:hover img {
  opacity: 0.95;
}

.comment-image-con.wo-comment-media-preview {
  width: auto !important;
  max-width: min(100%, 260px);
  margin-top: 8px;
}

.comment-image-con.wo-comment-media-preview img {
  border-radius: 12px;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}

@media (max-width: 480px) {
  .post .post-footer .comments-list .comment .comment-heading .wo-comment-media--landscape,
  .post .post-footer .comments-list .reply .reply-heading .wo-comment-media--landscape {
    max-width: 100%;
  }

  .post .post-footer .comments-list .comment .comment-heading .wo-comment-media--portrait,
  .post .post-footer .comments-list .reply .reply-heading .wo-comment-media--portrait {
    max-width: min(100%, 200px);
  }
}

.post .post-footer .comments-list .comment .comment-heading .time,
.post .post-footer .comments-list .reply .reply-heading .time,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-heading .time {
  display: inline;
  margin: 0 0 0 6px;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted, #65676b);
  position: static;
  float: none;
  vertical-align: middle;
  white-space: nowrap;
}

.post .post-footer .comments-list .comment .comment-meta-row,
.post .post-footer .comments-list .reply .reply-heading .comment-meta-row,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.post .post-footer .comments-list .comment .comment-meta-inline,
.post .post-footer .comments-list .reply .reply-heading .comment-meta-inline,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-meta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.post .post-footer .comments-list .comment .comment-meta-row .comment_edele_options,
.post .post-footer .comments-list .reply .reply-heading .comment-meta-row .comment_edele_options,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-meta-row .comment_edele_options {
  position: static;
  float: none;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

#wo_comment_combo .comment_combo_footer .wo_feed_post_comments > div:last-child,
.wo_commreply_combo .image-comment,
.wo_commreply_combo__tools {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
}

/* Feed post — more space between last comment and composer divider */
.post .post-footer.post-comments #wo_comment_combo {
  margin-top: 4px !important;
  padding-top: 14px !important;
}

.wo_commreply_combo {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  position: relative;
}

.wo_commreply_combo .avatar {
  width: 32px !important;
  height: 32px !important;
  flex-shrink: 0;
}

.wo_commreply_combo__main {
  flex: 1;
  min-width: 0;
}

.wo_commreply_combo .comment-reply-textarea {
  width: 100% !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  padding-right: 12px !important;
  border-radius: 18px !important;
  min-height: 36px;
}

.wo_commreply_combo__tools {
  justify-content: flex-end;
  margin-top: 6px;
  position: static !important;
  right: auto !important;
  float: none !important;
}

.wo-comment-compose-action {
  display: inline-flex;
  vertical-align: middle;
  flex-shrink: 0;
}

.wo-comment-compose-btn,
.wo-comment-compose-send {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0 !important;
  border-radius: 50% !important;
  border: none !important;
  background: transparent !important;
  color: var(--fb-text-muted, #65676b);
  transition: background 0.15s ease, color 0.15s ease;
  box-shadow: none !important;
  line-height: 1 !important;
  margin: 0 !important;
  float: none !important;
}

.wo-comment-compose-btn--gif,
.wo-comment-compose-btn.btngif {
  width: auto !important;
  min-width: 34px !important;
  height: 28px !important;
  border-radius: 6px !important;
  padding: 0 4px !important;
  overflow: visible !important;
}

.wo-comment-compose-btn:hover,
.wo-comment-compose-send:hover {
  background: var(--fb-surface-muted, #f0f2f5) !important;
  color: var(--fb-text, #050505);
}

.wo-comment-compose-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  opacity: 1 !important;
}

.wo-comment-compose-icon circle,
.wo-comment-compose-icon rect,
.wo-comment-compose-icon path,
.wo-comment-compose-icon line,
.wo-comment-compose-icon polygon {
  vector-effect: non-scaling-stroke;
}

#wo_comment_combo .comment_combo_footer .wo_feed_post_comments .btn:not(.btn-main) svg.wo-comment-compose-icon,
.wo_commreply_combo .wo-comment-compose-btn svg.wo-comment-compose-icon {
  fill: none !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}

.wo-comment-compose-icon--send {
  fill: currentColor !important;
  stroke: none !important;
  width: 18px;
  height: 18px;
}

.wo-comment-icon-gif {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 16px;
  padding: 0 4px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.wo-comment-compose-send {
  background: var(--fb-blue, #1877f2) !important;
  color: #fff !important;
  flex-shrink: 0;
}

.wo-comment-compose-send:hover {
  background: #166fe5 !important;
  color: #fff !important;
}

.wo-comment-compose-send .wo-comment-compose-icon--send {
  fill: #fff !important;
  stroke: none !important;
}

#wo_comment_combo .comment_combo_footer .wo_feed_post_comments .btn.sendbtn.wo-comment-compose-send,
#wo_comment_combo .comment_combo_footer .wo_feed_post_comments .btn.wo-comment-compose-send {
  background: var(--fb-blue, #1877f2) !important;
  color: #fff !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
}

#wo_comment_combo .comment_combo_footer .wo_feed_post_comments .btn.sendbtn.wo-comment-compose-send svg,
#wo_comment_combo .comment_combo_footer .wo_feed_post_comments .btn.wo-comment-compose-send svg {
  fill: #fff !important;
  opacity: 1 !important;
}

.post .post-footer .comments-list .comment .comment-bubble-row,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-bubble-row,
.post .post-footer .comments-list .reply .comment-bubble-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
  width: 100%;
}

.post .post-footer .comments-list .comment .comment-bubble-row .comment-heading,
.post .post-footer .comments-list .reply .comment-bubble-row .reply-heading,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-bubble-row .comment-heading {
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 36px);
}

.post .post-footer .comments-list .comment .comment-bubble-row .comment_edele_options,
.post .post-footer .comments-list .reply .comment-bubble-row .comment_edele_options,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-bubble-row .comment_edele_options {
  position: static;
  flex-shrink: 0;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.post .post-footer .comments-list .comment .comment-body > .comment-options,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-body > .comment-options {
  margin-left: 12px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #65676b);
}

.post .post-footer .comments-list .comment .comment-body > .comment-options .pointer,
.post .post-footer .comments-list .comment .comment-body > .comment-options span {
  color: inherit;
}

/* Comment reactions: counts slightly overlap bubble bottom; horizontal picker like posts */
.post .post-footer .comments-list .comment .comment-body,
.post .post-footer .comments-list .reply .comment-body,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-body {
  position: relative;
}

.post .post-footer .comments-list .comment .comment-body > .comment-heading,
.post .post-footer .comments-list .reply .comment-body > .reply-heading,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-body > .comment-heading {
  margin-bottom: 0 !important;
}

.post .post-footer .comments-list .comment .comment-body #comment_reacted,
.post .post-footer .comments-list .reply .comment-body #comment_reacted,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-body #comment_reacted {
  position: relative !important;
  float: none !important;
  margin: -5px 0 4px 12px !important;
  display: inline-flex !important;
  align-items: center;
  vertical-align: middle;
  z-index: 3;
  pointer-events: none;
}

.post .post-footer .comments-list .comment .comment-body #comment_reacted .like-emo,
.post .post-footer .comments-list .reply .comment-body #comment_reacted .like-emo,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-body #comment_reacted .like-emo {
  pointer-events: auto;
}

.post .post-footer .comments-list .comment .comment-body #comment_reacted:not(:has(.how_reacted)),
.post .post-footer .comments-list .reply .comment-body #comment_reacted:not(:has(.how_reacted)),
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-body #comment_reacted:not(:has(.how_reacted)) {
  display: none !important;
  margin: 0 !important;
  min-height: 0 !important;
}

.post .post-footer .comments-list .comment .comment-body #comment_reacted .like-emo > .how_reacted,
.post .post-footer .comments-list .reply .comment-body #comment_reacted .like-emo > .how_reacted,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-body #comment_reacted .like-emo > .how_reacted {
  background: var(--card-bg, #fff) !important;
  box-shadow: 0 0 0 1px var(--fb-border, #e4e6eb);
}

.post .post-footer .comments-list .comment .comment-body > .comment-options,
.post .post-footer .comments-list .reply .comment-body > .comment-options,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-body > .comment-options {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  max-width: 100%;
  margin-top: 0 !important;
  margin-left: 12px !important;
  position: relative;
  z-index: 2;
}

.post .post-footer .comments-list .comment .comment-body .wo-fb-comment-like-host,
.post .post-footer .comments-list .reply .comment-body .wo-reaction-replay.wo-fb-comment-like-host {
  position: relative !important;
  display: inline-flex !important;
  align-items: center;
  max-width: none !important;
  padding: 0 !important;
  margin: 0;
  vertical-align: middle;
  pointer-events: auto;
  z-index: 4;
}

.post .post-footer .comments-list .wo-fb-comment-like-host .wo-fb-like-btn,
.post .post-footer .comments-list .wo-reaction-replay .wo-fb-like-btn {
  cursor: pointer;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1;
}

.post .post-footer .comments-list .wo-fb-comment-like-host .wo-fb-action-icon,
.post .post-footer .comments-list .wo-reaction-replay .wo-fb-action-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.post .post-footer .comments-list .wo-fb-comment-like-host .comment-status-reaction.active-like .wo-fb-action-icon--filled,
.post .post-footer .comments-list .wo-reaction-replay .replay-status-reaction.active-like .wo-fb-action-icon--filled {
  color: var(--fb-blue, #1877f2);
}

.post .post-footer .comments-list .comment .comment-body .wo-reaction-comment,
.post .post-footer .comments-list .reply .comment-body .wo-reaction-replay,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-body .wo-reaction-lightbox-comment {
  position: relative !important;
  display: inline-flex !important;
  align-items: center;
  max-width: none !important;
  padding: 0 !important;
  margin: 0;
  vertical-align: middle;
}

.post .post-footer .comments-list .comment .comment-body .reactions-box,
.post .post-footer .comments-list .reply .comment-body .reactions-box,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-body .reactions-box {
  display: none;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: max-content !important;
  max-width: min(320px, calc(100vw - 24px)) !important;
  height: auto !important;
  top: auto !important;
  bottom: calc(100% + 4px) !important;
  left: 0 !important;
  right: auto !important;
  margin: 0;
  padding: 2px 4px !important;
  border-radius: 2em !important;
  box-sizing: border-box;
  list-style: none;
  z-index: 20;
}

/* jQuery fadeIn sets display:block — keep reactions in a horizontal row */
.post .post-footer .comments-list .comment .comment-body .reactions-box[style*="display: block"],
.post .post-footer .comments-list .reply .comment-body .reactions-box[style*="display: block"],
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-body .reactions-box[style*="display: block"] {
  display: flex !important;
}

.post .post-footer .comments-list .comment .comment-body .reactions-box .reaction,
.post .post-footer .comments-list .reply .comment-body .reactions-box .reaction,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-body .reactions-box .reaction {
  float: none !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
}

@media (max-width: 345px) {
  .post .post-footer .comments-list .comment .comment-body .reactions-box,
  .post .post-footer .comments-list .reply .comment-body .reactions-box {
    width: max-content !important;
    top: auto !important;
    bottom: calc(100% + 4px) !important;
    left: 0 !important;
  }
}

html.wo-night-mode .post .post-footer .comments-list .comment .comment-body .reactions-box,
body.wo-night-mode .post .post-footer .comments-list .comment .comment-body .reactions-box,
html.wo-night-mode .post .post-footer .comments-list .reply .comment-body .reactions-box,
body.wo-night-mode .post .post-footer .comments-list .reply .comment-body .reactions-box {
  background-color: var(--card-bg, #2a2a2a) !important;
  border: 1px solid var(--fb-border, #3d3d3d);
  box-shadow: var(--fb-shadow, 0 1px 5px rgba(0, 0, 0, 0.35)) !important;
}

/* Link preview cards inside comment bubbles */
.post .post-footer .comments-list .comment .comment-link-preview,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-link-preview,
.post .post-footer .comments-list .reply .comment-link-preview {
  display: block;
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
}

.post .post-footer .comments-list .comment .comment-link-preview.wo_post_fetch_link,
.post .post-footer .comments-list .reply .comment-link-preview.wo_post_fetch_link {
  border: 1px solid var(--divider, rgba(0, 0, 0, 0.08));
  background: var(--card-bg, #fff);
}

.post .post-footer .comments-list .comment .comment-link-preview .post-fetched-url-con,
.post .post-footer .comments-list .reply .comment-link-preview .post-fetched-url-con {
  padding-top: 52%;
}

.post .post-footer .comments-list .comment .comment-link-preview .fetched-url-text,
.post .post-footer .comments-list .reply .comment-link-preview .fetched-url-text {
  padding: 8px 10px 10px;
}

.post .post-footer .comments-list .comment .comment-link-preview .fetched-url-text h4,
.post .post-footer .comments-list .reply .comment-link-preview .fetched-url-text h4 {
  font-size: 14px;
  line-height: 1.3;
  margin: 0 0 4px;
  font-weight: 600;
}

.post .post-footer .comments-list .comment .comment-link-preview .fetched-url-text .description,
.post .post-footer .comments-list .reply .comment-link-preview .fetched-url-text .description {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted, #65676b);
}

.post .post-footer .comments-list .comment .comment-link-preview--embed,
.post .post-footer .comments-list .reply .comment-link-preview--embed {
  margin-top: 8px;
  overflow: hidden;
  border-radius: 12px;
}

/* Facebook-style comment thread polish */
.post .post-footer .comments-list .comment,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment,
.post .post-footer .comments-list .reply,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .reply {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  width: 100% !important;
  margin: 8px 0 !important;
  float: none !important;
}

.post .post-footer .comments-list .comment > a,
.post .post-footer .comments-list .reply > a,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment > a {
  float: none !important;
  flex: 0 0 auto;
  line-height: 0;
  margin: 0 !important;
}

.post .post-footer .comments-list .comment > .avatar,
.post .post-footer .comments-list .reply > .avatar,
.post .post-footer .comments-list .comment > a .avatar,
.post .post-footer .comments-list .reply > a .avatar,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment > .avatar,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment > a .avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin: 2px 0 0 !important;
  float: none !important;
}

.post .post-footer .comments-list .reply > .avatar,
.post .post-footer .comments-list .reply > a .avatar {
  width: 28px !important;
  height: 28px !important;
}

.post .post-footer .comments-list .comment .comment-body,
.post .post-footer .comments-list .reply .comment-body,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-body,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .reply .comment-body {
  margin-left: 0 !important;
  margin-top: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100% !important;
  float: none !important;
}

.post .post-footer .comments-list .comment .comment-heading .comment-meta-inline .time,
.post .post-footer .comments-list .reply .reply-heading .comment-meta-inline .time {
  display: none !important;
}

.post .post-footer .comments-list .comment .comment-body > .comment-options .wo-fb-comment-time,
.post .post-footer .comments-list .reply .comment-body > .comment-options .wo-fb-comment-time,
.wo_imagecombo_lbox .lightbox-post-footer .comments-list .comment .comment-body > .comment-options .wo-fb-comment-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #65676b);
  margin-right: 2px;
}

.post .post-footer .comments-list .comment .comment-replies,
.post .post-footer .comments-list .comment .comment-body > .comment-replies {
  margin-left: 0 !important;
  padding-left: 0;
  border-left: none;
}

.post .post-footer .comments-list .comment-replies .comment-replies-text {
  position: relative;
  margin-left: 12px;
  padding-left: 18px;
}

.post .post-footer .comments-list .comment-replies .comment-replies-text::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 16px;
  width: 2px;
  background: var(--fb-border, #ccd0d5);
  border-radius: 1px;
}

.post .post-footer .comments-list .comment-replies .reply-container {
  position: relative;
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}

.post .post-footer .comments-list .comment-replies .reply-container::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 14px;
  width: 13px;
  height: 10px;
  border-left: 2px solid var(--fb-border, #ccd0d5);
  border-bottom: 2px solid var(--fb-border, #ccd0d5);
  border-bottom-left-radius: 8px;
  box-sizing: border-box;
  pointer-events: none;
}

html.wo-night-mode .post .post-footer .comments-list .comment-replies .comment-replies-text::before,
body.wo-night-mode .post .post-footer .comments-list .comment-replies .comment-replies-text::before,
html.wo-night-mode .post .post-footer .comments-list .comment-replies .reply-container::before,
body.wo-night-mode .post .post-footer .comments-list .comment-replies .reply-container::before {
  border-color: #3a3b3c;
  background: transparent;
}

.post .post-footer .comments-list .comment-replies .comment-replies-text::before {
  background: var(--fb-border, #ccd0d5);
}

.post .post-footer .comments-list .view-more-replies {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #65676b);
  margin: 4px 0 6px;
  padding-left: 40px;
  cursor: pointer;
}

.post .post-footer .comments-list .view-more-replies svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.post .post-footer .comments-list .comment .comment-heading .comment_edele_options .comment-icons svg,
.post .post-footer .comments-list .reply .reply-heading .comment_edele_options svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.wo_commreply_combo {
  gap: 8px;
}

.wo_commreply_combo > a,
.wo_commreply_combo > img.avatar {
  float: none !important;
  flex-shrink: 0;
}

.wo_commreply_combo .wo-comment-compose-send {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
}

.wo_commreply_combo .wo-comment-compose-send .wo-comment-compose-icon--send {
  width: 14px !important;
  height: 14px !important;
}

.wo_commreply_combo .wo-comment-compose-btn:not(.wo-comment-compose-send) {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
}

.wo_commreply_combo .wo-comment-compose-icon:not(.wo-comment-compose-icon--send) {
  width: 18px;
  height: 18px;
}

/* Group activity log */
.group-activity-log-page .group-activity-log-filters {
  margin-bottom: 16px;
  padding: 16px;
}

.group-activity-log-page .group-activity-log-filters label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.group-activity-log-page .group-activity-hide-aa.round-check {
  margin-top: 28px;
}

.group-activity-log-list {
  padding: 0;
}

.group-activity-log-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--fb-border, #e4e6eb);
}

.group-activity-log-item:last-child {
  border-bottom: none;
}

.group-activity-log-item__actor {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 140px;
}

.group-activity-log-item__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.group-activity-log-item__aa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(26, 95, 180, 0.12);
  color: #1a5fb4;
}

body.wo-night-mode .group-activity-log-item__aa-icon,
.night-mode .group-activity-log-item__aa-icon {
  background: rgba(126, 182, 255, 0.15);
  color: #7eb6ff;
}

.group-activity-log-item__name {
  font-weight: 600;
  font-size: 14px;
}

.group-activity-log-item__body {
  flex: 1;
  min-width: 0;
}

.group-activity-log-item__action {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.group-activity-log-more-wrap {
  margin-top: 12px;
  text-align: center;
}

/* Group settings sidebar + dashboard — night mode (override dark.css blue tints & accent icon_main) */
html.wo-night-mode .wow_sett_sidebar > ul > li > a,
body.wo-night-mode .wow_sett_sidebar > ul > li > a {
  color: var(--text-secondary, #b3b3b3);
}

html.wo-night-mode .wow_sett_sidebar > ul > li > a:hover,
html.wo-night-mode .wow_sett_sidebar .wow_sett_submenu > ul li a:hover,
body.wo-night-mode .wow_sett_sidebar > ul > li > a:hover,
body.wo-night-mode .wow_sett_sidebar .wow_sett_submenu > ul li a:hover {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-primary, #ececec) !important;
}

html.wo-night-mode .wow_sett_sidebar > ul > li.active > a,
body.wo-night-mode .wow_sett_sidebar > ul > li.active > a {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

html.wo-night-mode .wow_sett_sidebar > ul > li > a span:before,
body.wo-night-mode .wow_sett_sidebar > ul > li > a span:before {
  background: rgba(255, 255, 255, 0.08) !important;
}

html.wo-night-mode .wow_sett_sidebar > ul > li.active > a span:before,
body.wo-night-mode .wow_sett_sidebar > ul > li.active > a span:before {
  background: rgba(255, 255, 255, 0.14) !important;
}

html.wo-night-mode .wow_sett_sidebar > ul > li > a svg .icon_main,
html.wo-night-mode .wow_sett_sidebar > ul > li > a span svg .icon_main,
body.wo-night-mode .wow_sett_sidebar > ul > li > a svg .icon_main,
body.wo-night-mode .wow_sett_sidebar > ul > li > a span svg .icon_main {
  stroke: currentColor !important;
}

html.wo-night-mode .wow_sett_sidebar > ul > li > a span svg,
body.wo-night-mode .wow_sett_sidebar > ul > li > a span svg {
  color: inherit;
}

html.wo-night-mode #wo_main_sett_mid .wo_settings_page .group-dashboard-widgets__heading,
html.wo-night-mode .wo_settings_page .group-dashboard-widgets__heading,
body.wo-night-mode #wo_main_sett_mid .wo_settings_page .group-dashboard-widgets__heading,
body.wo-night-mode .wo_settings_page .group-dashboard-widgets__heading {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-bottom: none !important;
  color: var(--text-primary, #ececec) !important;
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
}

/* Header profile menu dropdown — neutral night mode (override dark.css #262D34 / #2b3843) */
html.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu,
body.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu {
  background-color: var(--card-bg, #2a2a2a) !important;
  border-color: var(--fb-border, #3d3d3d) !important;
}

html.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu > li > a,
body.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu > li > a {
  color: var(--text-primary, #ececec) !important;
}

html.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu > li > a:hover,
html.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu > li > a:focus,
body.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu > li > a:hover,
body.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu > li > a:focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

html.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu .wo_user_name,
body.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu .wo_user_name {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

html.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu .divider,
html.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu > li > hr,
body.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu .divider,
body.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu > li > hr {
  background-color: var(--fb-border, #3d3d3d) !important;
  border-color: var(--fb-border, #3d3d3d) !important;
}

html.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu .icon_main,
body.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu .icon_main {
  stroke: currentColor !important;
}

html.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu .icon_main_fill,
body.wo-night-mode .navbar-default .dropdown-menu.ani-acc-menu .icon_main_fill {
  fill: currentColor !important;
}

/* Group featured posts strip (Facebook-style) */
.wo-group-featured-box {
  margin-bottom: 12px;
  padding: 0;
  border-radius: 8px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--fb-border, #e4e6eb);
  overflow: hidden;
}
.wo-group-featured-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid transparent;
}
.wo-group-featured-box:not(.is-collapsed) .wo-group-featured-box__head {
  border-bottom-color: var(--fb-border, #e4e6eb);
}
.wo-group-featured-box__head-main {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.wo-group-featured-box__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--fb-text, #050505);
}
.wo-group-featured-box__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fb-text-muted, #65676b);
  flex-shrink: 0;
}
.wo-group-featured-box__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--fb-text-muted, #65676b);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.wo-group-featured-box__toggle:hover {
  background: var(--fb-surface-muted, #f0f2f5);
}
.wo-group-featured-box__chevron {
  transition: transform 0.2s ease;
}
.wo-group-featured-box.is-collapsed .wo-group-featured-box__chevron {
  transform: rotate(180deg);
}
.wo-group-featured-box__body {
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.32s ease;
}
.wo-group-featured-box.is-collapsed .wo-group-featured-box__body {
  grid-template-rows: 0fr;
}
.wo-group-featured-box__body-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 0 14px;
  transition: opacity 0.24s ease;
}
.wo-group-featured-box.is-collapsed .wo-group-featured-box__body-inner {
  opacity: 0;
}
.wo-group-featured-box:not(.is-collapsed) .wo-group-featured-box__body-inner {
  opacity: 1;
}
.wo-group-featured-box__track {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 14px 4px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.wo-group-featured-box__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #050505;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.wo-group-featured-box__nav--prev {
  left: 6px;
}
.wo-group-featured-box__nav--next {
  right: 6px;
}
html.wo-night-mode .wo-group-featured-box__nav,
body.wo-night-mode .wo-group-featured-box__nav {
  background: rgba(58, 59, 60, 0.95);
  color: #e4e6eb;
}
.wo-group-featured-card {
  position: relative;
  flex: 0 0 260px;
  max-width: 260px;
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  background: var(--fb-featured-card-bg, #f0f2f5);
  border: 1px solid var(--fb-border, #e4e6eb);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.wo-group-featured-card--text-only {
  min-height: 220px;
}
.wo-group-featured-card__link--text-only {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.wo-group-featured-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  flex: 1 1 auto;
}
.wo-group-featured-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 0;
}
.wo-group-featured-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--fb-surface-muted, #e4e6eb);
}
.wo-group-featured-card__avatar--placeholder {
  display: inline-block;
}
.wo-group-featured-card__head-text {
  min-width: 0;
  flex: 1;
}
.wo-group-featured-card__author {
  font-size: 13px;
  font-weight: 700;
  color: var(--fb-text, #050505);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.wo-group-featured-card__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
  font-size: 12px;
  color: var(--fb-text-muted, #65676b);
  line-height: 1.2;
}
.wo-group-featured-card__privacy {
  display: inline-flex;
  align-items: center;
  opacity: 0.85;
}
.wo-group-featured-card__excerpt {
  margin: 8px 10px 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--fb-text, #050505);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wo-group-featured-card__excerpt--fill {
  flex: 1 1 auto;
  margin: 8px 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: hidden;
}
.wo-group-featured-card__media {
  height: 140px;
  margin-top: 8px;
  background-size: cover;
  background-position: center;
  background-color: #dce1e8;
}
.wo-group-featured-card__media--text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: linear-gradient(135deg, #e7f3ff 0%, #f0f2f5 100%);
}
.wo-group-featured-card__text-preview {
  font-size: 13px;
  line-height: 1.35;
  color: #65676b;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wo-group-featured-card__engagement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--fb-border, #e4e6eb);
  font-size: 12px;
  color: var(--fb-text-muted, #65676b);
}
.wo-group-featured-card__reactions {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}
.wo-group-featured-card__reaction-icons.like-emo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.wo-group-featured-card__reaction-icons .how_reacted {
  width: 18px;
  height: 18px;
  margin-left: 0 !important;
}
.wo-group-featured-card__reaction-icons .how_reacted .inline_post_count_emoji,
.wo-group-featured-card__reaction-icons .how_reacted img {
  width: 18px !important;
  height: 18px !important;
}
.wo-group-featured-card__reaction-icons .how_many_reacts {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--fb-text-muted, #65676b);
}
.wo-group-featured-card__reaction-count {
  font-size: 12px;
}
.wo-group-featured-card__comments {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 12px;
}
.wo-group-featured-card__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
.wo-group-featured-card__remove:hover {
  background: rgba(0, 0, 0, 0.75);
}
html.wo-night-mode .wo-group-featured-card,
body.wo-night-mode .wo-group-featured-card {
  background: var(--fb-featured-card-bg, #323334);
  border-color: var(--fb-border, #3a3b3c);
}
html.wo-night-mode .wo-group-featured-card__media--text,
body.wo-night-mode .wo-group-featured-card__media--text {
  background: linear-gradient(135deg, #263951 0%, #3a3b3c 100%);
}

/* Group settings / manage — fbtheme-style sidebar + main (not 75px icon strip) */
.wo_group_setting_layout .setting-panel {
  margin-left: 0;
  margin-right: 0;
}

.wo_group_setting_layout .wo_new_sett_sidee {
  padding-left: 15px;
  padding-right: 15px;
}

.wo_group_setting_layout .wo_new_sett_sidee .wow_sett_sidebar {
  width: 100%;
  position: static;
  right: auto;
  left: auto;
  top: auto;
  text-align: left;
  box-shadow: none;
}

.wo_group_setting_layout .wo_new_sett_sidee .wow_sett_sidebar > ul {
  white-space: normal;
  overflow: visible;
}

.wo_group_setting_layout .wo_new_sett_sidee .wow_sett_sidebar > ul > li {
  display: block;
  margin-right: 0;
}

.wo_group_setting_layout .wo_new_sett_sidee .wow_sett_sidebar > ul > li > a {
  padding: 8px 14px;
  min-width: 0;
  white-space: normal;
}

.wo_group_setting_layout #wo_main_sett_mid .wo_settings_page,
.wo_group_setting_layout .wow_sett_content {
  padding: 15px !important;
}

.wo_group_setting_layout .group-setting-menu-list > li > a .report-not-seen {
  position: static;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}

@media (min-width: 992px) {
  .wo_group_setting_layout .wo_new_sett_sidee {
    width: 33.333333%;
  }

  .wo_group_setting_layout .wo_new_sett_pagee {
    width: 66.666667%;
  }
}

/* Group settings — night mode surfaces (tokens + dark.css together) */
html.wo-night-mode .wo_group_setting_layout .wow_content,
body.wo-night-mode .wo_group_setting_layout .wow_content,
html.wo-night-mode .wo_group_setting_layout .wo_settings_page,
body.wo-night-mode .wo_group_setting_layout .wo_settings_page,
html.wo-night-mode .wo_group_setting_layout .popular_posts_hdr,
body.wo-night-mode .wo_group_setting_layout .popular_posts_hdr,
html.wo-night-mode .wo_group_setting_layout .group-admin-assist-card,
body.wo-night-mode .wo_group_setting_layout .group-admin-assist-card,
html.wo-night-mode .wo_group_setting_layout .group-manage-digest-card,
body.wo-night-mode .wo_group_setting_layout .group-manage-digest-card {
  background-color: var(--card-bg) !important;
  color: var(--text-primary) !important;
  border-color: var(--fb-border) !important;
}

html.wo-night-mode .wo_group_setting_layout .popular_posts_hdr > p,
body.wo-night-mode .wo_group_setting_layout .popular_posts_hdr > p,
html.wo-night-mode .wo_group_setting_layout .group-manage-digest-label,
body.wo-night-mode .wo_group_setting_layout .group-manage-digest-label {
  color: var(--text-secondary) !important;
}

html.wo-night-mode .group-roles-page .group-role-rgba-picker,
body.wo-night-mode .group-roles-page .group-role-rgba-picker,
html.wo-night-mode .group-roles-page .group-role-rgba-picker input[type="color"].group-role-rgba-hex,
body.wo-night-mode .group-roles-page .group-role-rgba-picker input[type="color"].group-role-rgba-hex,
html.wo-night-mode .group-roles-page .group-role-file-input,
body.wo-night-mode .group-roles-page .group-role-file-input {
  background: var(--card-bg) !important;
  border-color: var(--fb-border) !important;
  color: var(--text-primary) !important;
}

/* Groups hub (desktop) */
.wo_groups_hub_menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wo_groups_page_actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wo_groups_page_actions .btn svg {
  width: 18px;
  height: 18px;
  margin: -2px 4px 0 0;
  vertical-align: middle;
}

.wo_groups_hub_section {
  margin-top: 12px;
}

.wo_groups_hub_section_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.wo_groups_hub_section_title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--fb-text, #050505);
}

.wo_groups_hub_section_link {
  font-size: 14px;
  font-weight: 600;
  color: var(--fb-blue, #1877f2);
  text-decoration: none;
  white-space: nowrap;
}

.wo_groups_hub_section_link:hover {
  text-decoration: underline;
  color: var(--fb-blue-hover, #166fe5);
}

/* Groups & Pages directory lists — individual card outlines */
.profile-lists .wow_my_groups.wow_content,
.wo_groups_hub_page .wow_my_groups.wow_content {
  background-color: var(--fb-surface) !important;
  border: 1px solid var(--fb-border) !important;
  border-radius: var(--fb-radius) !important;
  box-shadow: var(--fb-shadow) !important;
  overflow: hidden;
}

.wo_my_pages .page_list {
  background-color: var(--fb-surface) !important;
  border: 1px solid var(--fb-border) !important;
  border-radius: var(--fb-radius) !important;
  box-shadow: var(--fb-shadow) !important;
}

html.wo-night-mode .profile-lists .wow_my_groups.wow_content,
body.wo-night-mode .profile-lists .wow_my_groups.wow_content,
html.wo-night-mode .wo_groups_hub_page .wow_my_groups.wow_content,
body.wo-night-mode .wo_groups_hub_page .wow_my_groups.wow_content,
html.wo-night-mode .wo_my_pages .page_list,
body.wo-night-mode .wo_my_pages .page_list {
  border: 1px solid var(--fb-border) !important;
  box-shadow: var(--fb-shadow) !important;
  background-color: var(--card-bg, var(--fb-surface)) !important;
}

.wo_groups_hub_menu ul li.active span {
  color: var(--fb-text, #050505);
  font-weight: 600;
}

/* Homepage customization blocks */
.wo-hp-custom-block {
  margin-bottom: 12px;
}

.wo-hp-custom-block.wo-hp-block-styled {
  border-radius: var(--fb-radius, 8px);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.wo-hp-custom-block.wo-hp-block-outlined,
.wo-hp-feed-block.wo-hp-block-outlined,
.wo-hp-image-flat-wrap.wo-hp-block-outlined {
  box-sizing: border-box;
}

.wo-hp-custom-block.wo-hp-block-outlined.wo-hp-block-styled,
.wo-hp-feed-block.wo-hp-block-outlined.wo-hp-block-styled,
.wo-hp-image-flat-wrap.wo-hp-block-outlined {
  overflow: visible;
}

.wo-hp-block-shadow {
  box-shadow: var(--wo-hp-block-shadow, 0 2px 12px rgba(0, 0, 0, 0.12));
}

.wo-hp-custom-block.wo-hp-block-styled .list-group-item,
.wo-hp-custom-block.wo-hp-block-styled .sidebar-title-back {
  background: transparent !important;
  border-color: rgba(0, 0, 0, 0.06);
}

.wo-hp-custom-block-body {
  padding: 10px 12px 14px !important;
}

.wo-hp-feed-block {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: var(--fb-radius, 8px);
  border: 1px solid var(--fb-border, #e4e6eb);
  background: var(--card-bg, #fff);
  box-shadow: var(--fb-shadow, 0 1px 2px rgba(0, 0, 0, 0.08));
}

.wo-hp-feed-block.wo-hp-block-styled:not(.wo-hp-block-outlined) {
  border-color: rgba(0, 0, 0, 0.08);
}

.wo-hp-feed-block.wo-hp-block-shadow {
  box-shadow: var(--wo-hp-block-shadow, 0 2px 12px rgba(0, 0, 0, 0.12));
}

.wo-hp-feed-block-hdr {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary, #050505);
  margin-bottom: 14px;
  font-family: var(--fb-font);
}

.wo-hp-block-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wo-hp-block-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  color: inherit;
}

.wo-hp-block-title-icon--image img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

.wo-hp-block-title-icon--dark {
  display: none;
}

html.wo-night-mode .wo-hp-block-title-icon--light,
body.wo-night-mode .wo-hp-block-title-icon--light {
  display: none;
}

html.wo-night-mode .wo-hp-block-title-icon--dark,
body.wo-night-mode .wo-hp-block-title-icon--dark {
  display: inline-flex;
}

.wo-hp-block-title-row[style*="--wo-hp-title-color"] {
  color: var(--wo-hp-title-color) !important;
}

html.wo-night-mode .wo-hp-block-title-row[style*="--wo-hp-title-color"],
body.wo-night-mode .wo-hp-block-title-row[style*="--wo-hp-title-color"] {
  color: var(--wo-hp-title-color-dark, var(--wo-hp-title-color)) !important;
}

.wo-hp-block-title-text {
  min-width: 0;
}

.wo-hp-custom-block.wo-hp-gradient-animate:not(.wo-hp-block-outlined),
.wo-hp-feed-block.wo-hp-gradient-animate:not(.wo-hp-block-outlined) {
  background-size: 200% 200% !important;
  animation: wo-hp-gradient-shift var(--wo-hp-gradient-speed, 8s) ease infinite;
}

.wo-hp-custom-block.wo-hp-block-outlined.wo-hp-gradient-animate:not(.wo-hp-outline-gradient-animate),
.wo-hp-feed-block.wo-hp-block-outlined.wo-hp-gradient-animate:not(.wo-hp-outline-gradient-animate) {
  background-size: 200% 200%, 100% 100% !important;
  animation: wo-hp-gradient-shift var(--wo-hp-gradient-speed, 8s) ease infinite;
}

.wo-hp-custom-block.wo-hp-block-outlined.wo-hp-gradient-animate.wo-hp-outline-gradient-animate,
.wo-hp-feed-block.wo-hp-block-outlined.wo-hp-gradient-animate.wo-hp-outline-gradient-animate {
  background-size: 200% 200%, 200% 200% !important;
  animation: wo-hp-gradient-shift var(--wo-hp-gradient-speed, 8s) ease infinite, wo-hp-outline-gradient-shift var(--wo-hp-outline-gradient-speed, 8s) ease infinite;
}

.wo-hp-custom-block.wo-hp-gradient-animate.wo-hp-gradient-radial:not(.wo-hp-block-outlined),
.wo-hp-feed-block.wo-hp-gradient-animate.wo-hp-gradient-radial:not(.wo-hp-block-outlined) {
  animation: wo-hp-gradient-radial-pulse var(--wo-hp-gradient-speed, 8s) ease-in-out infinite;
}

@keyframes wo-hp-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes wo-hp-gradient-radial-pulse {
  0%, 100% { background-size: 100% 100% !important; }
  50% { background-size: 140% 140% !important; }
}

.wo-hp-custom-block.wo-hp-block-outlined.wo-hp-outline-gradient-animate:not(.wo-hp-gradient-animate),
.wo-hp-feed-block.wo-hp-block-outlined.wo-hp-outline-gradient-animate:not(.wo-hp-gradient-animate) {
  background-size: 100% 100%, 200% 200% !important;
  animation: wo-hp-outline-gradient-shift var(--wo-hp-outline-gradient-speed, 8s) ease infinite;
}

.wo-hp-custom-block.wo-hp-outline-gradient-animate.wo-hp-outline-gradient-radial,
.wo-hp-feed-block.wo-hp-outline-gradient-animate.wo-hp-outline-gradient-radial {
  animation: wo-hp-outline-gradient-radial var(--wo-hp-outline-gradient-speed, 8s) ease-in-out infinite;
}

@keyframes wo-hp-outline-gradient-shift {
  0% { background-position: 0% 50%, 0% 50%; }
  50% { background-position: 0% 50%, 100% 50%; }
  100% { background-position: 0% 50%, 0% 50%; }
}

@keyframes wo-hp-outline-gradient-radial {
  0%, 100% { background-size: 100% 100%, 200% 200%; }
  50% { background-size: 100% 100%, 140% 140%; }
}

.wo-hp-custom-block.wo-hp-cards-shadow .wo-hp-feed-card,
.wo-hp-feed-block.wo-hp-cards-shadow .wo-hp-feed-card {
  box-shadow: var(--wo-hp-card-shadow, 0 2px 12px rgba(0, 0, 0, 0.12));
}

.wo-hp-feed-card--see-more.wo-hp-feed-card--reel .wo-hp-feed-card-media--see-more {
  aspect-ratio: 9 / 16;
  max-height: 198px;
  width: 100%;
  height: auto;
}

.wo-hp-reels-widget {
  --wo-hp-see-more-color: var(--fb-blue, #1877f2);
}

.wo-hp-feed-card--see-more .wo-hp-feed-card-media--see-more {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--background-alt, #f0f2f5);
  color: var(--wo-hp-see-more-color, var(--fb-blue, #1877f2));
  text-align: center;
  padding: 12px;
  overflow: hidden;
}

.wo-hp-see-more-preview-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  filter: blur(10px) brightness(0.5);
  pointer-events: none;
}

.wo-hp-see-more-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.wo-hp-see-more-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--wo-hp-see-more-color, #ffffff);
}

.wo-hp-feed-card--see-more-has-preview .wo-hp-see-more-card-content {
  color: var(--wo-hp-see-more-color, #ffffff);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.wo-hp-see-more-card-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.wo-hp-see-more-card-icon {
  display: inline-flex;
  opacity: 0.92;
}

.wo-hp-feed-card-link--see-more:hover .wo-hp-see-more-preview-overlay {
  background: rgba(0, 0, 0, 0.48);
}

.wo-hp-feed-card--see-more:not(.wo-hp-feed-card--see-more-has-preview) .wo-hp-feed-card-link--see-more:hover .wo-hp-feed-card-media--see-more {
  filter: brightness(0.97);
}

html.wo-night-mode .wo-hp-feed-card--see-more:not(.wo-hp-feed-card--see-more-has-preview) .wo-hp-feed-card-media--see-more,
body.wo-night-mode .wo-hp-feed-card--see-more:not(.wo-hp-feed-card--see-more-has-preview) .wo-hp-feed-card-media--see-more {
  background: rgba(255, 255, 255, 0.06);
}

.wo-hp-feed-block-body {
  color: var(--text-primary, #050505);
  overflow: hidden;
}

.wo-hp-feed-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--wo-hp-scrollbar-thumb) transparent;
}

.wo-hp-feed-strip::-webkit-scrollbar {
  height: 5px;
}

.wo-hp-feed-strip::-webkit-scrollbar-track {
  background: transparent;
}

.wo-hp-feed-strip::-webkit-scrollbar-thumb {
  background-color: var(--wo-hp-scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.wo-hp-feed-strip:hover::-webkit-scrollbar-thumb {
  background-color: var(--wo-hp-scrollbar-thumb-hover);
}

.wo-hp-feed-strip:hover {
  scrollbar-color: var(--wo-hp-scrollbar-thumb-hover) transparent;
}

.wo-hp-feed-card {
  flex: 0 0 148px;
  width: 148px;
  max-width: 148px;
  border: 1px solid var(--fb-border, #e4e6eb);
  border-radius: var(--fb-radius, 8px);
  background: var(--card-bg, #fff);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wo-hp-feed-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  flex: 1 1 auto;
}

.wo-hp-feed-card-media {
  width: 100%;
  height: 148px;
  overflow: hidden;
  background: #e4e6eb;
}

.wo-hp-feed-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wo-hp-feed-card-media--round {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 8px;
  background: var(--card-bg, #fff);
}

.wo-hp-feed-card-media--round img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--fb-border, #e4e6eb);
}

.wo-hp-feed-card-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 10px 10px 8px;
  min-height: 56px;
}

.wo-hp-feed-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary, #050505);
  word-break: break-word;
}

.wo-hp-feed-card-sub {
  font-size: 12px;
  color: var(--text-secondary, #65676b);
  line-height: 1.3;
}

.wo-hp-feed-card-action {
  padding: 0 10px 12px;
  text-align: center;
}

.wo-hp-feed-card-action .btn,
.wo-hp-feed-card-action button {
  width: 100%;
  max-width: 100%;
  font-size: 13px !important;
  padding: 6px 8px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wo-hp-feed-card--user .wo-hp-feed-card-meta {
  min-height: 44px;
  padding-top: 0;
}

.wo-hp-image-flat-wrap {
  margin-bottom: 12px;
  border-radius: var(--fb-radius, 8px);
  overflow: hidden;
  padding: 0 !important;
}

.wo-hp-image-flat-wrap--feed {
  margin-bottom: 16px;
  padding: 0 !important;
  border: none;
  background: transparent;
  box-shadow: none;
}

.wo-hp-image-flat-wrap--feed.wo-hp-block-styled,
.wo-hp-image-flat-wrap.wo-hp-block-styled {
  background-clip: border-box;
}

.wo-hp-image-flat-wrap .wo-hp-image-block--flat {
  margin: 0;
}

.wo-hp-image-flat-wrap .wo-hp-image-block--flat .wo-hp-image-block-img {
  width: 100%;
  display: block;
  border-radius: 0;
  vertical-align: top;
}

.wo-hp-image-flat-wrap--feed .wo-hp-image-block--flat .wo-hp-image-block-img {
  max-height: none;
  object-fit: cover;
}

.wo-hp-image-block-img {
  width: 100%;
  border-radius: var(--fb-radius-sm, 6px);
  display: block;
}

.wo-hp-image-block--feed .wo-hp-image-block-img {
  max-height: 280px;
  object-fit: cover;
}

.wo-hp-image-block-caption {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--text-secondary, #65676b);
}

.wo-hp-text-block {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-primary, #050505);
}

.wo-hp-html-block iframe {
  max-width: 100%;
  border: 0;
}

.wo-hp-rss-list {
  margin: 0;
  padding: 0;
}

.wo-hp-rss-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--fb-border, #e4e6eb);
  font-size: 14px;
}

.wo-hp-rss-item:last-child {
  border-bottom: 0;
}

.wo-hp-rss-item a {
  color: var(--fb-blue, #1877f2);
  text-decoration: none;
}

.wo-hp-rss-item a:hover {
  text-decoration: underline;
}

.wo-hp-rss-item--compact {
  padding: 0;
  border-bottom: 0;
}

.wo-hp-rss-item-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--fb-border, #e4e6eb);
  text-decoration: none !important;
  color: var(--text-primary, #050505);
}

.wo-hp-rss-item:last-child .wo-hp-rss-item-link {
  border-bottom: 0;
  padding-bottom: 0;
}

.wo-hp-rss-item-link:hover .wo-hp-rss-item-title {
  color: var(--fb-blue, #1877f2);
}

.wo-hp-rss-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--fb-bg-secondary, #f0f2f5);
}

.wo-hp-rss-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wo-hp-rss-item-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wo-hp-feed-strip--rss .wo-hp-feed-card {
  flex: 0 0 168px;
  width: 168px;
  max-width: 168px;
}

.wo-hp-reels-widget {
  width: 100%;
}

.wo-hp-feed-strip--reels {
  gap: 10px;
  padding-bottom: 6px;
}

.wo-hp-feed-card--reel {
  flex: 0 0 112px;
  width: 112px;
  max-width: 112px;
  border-radius: 12px;
}

.wo-hp-feed-card--reel .wo-hp-feed-card-media {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  max-height: 198px;
  background: #111;
}

.wo-hp-feed-card--reel .wo-hp-feed-card-media img,
.wo-hp-feed-card--reel .wo-hp-feed-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wo-hp-feed-card--reel .wo-hp-reel-play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.wo-hp-feed-card--reel .wo-hp-reel-mute-icon { display: none; }
.wo-hp-feed-card--reel.is-playing .wo-hp-reel-play-icon { display: none; }
.wo-hp-feed-card--reel.is-playing .wo-hp-reel-mute-icon { display: block; }

.wo-hp-feed-card--reel .wo-hp-feed-card-meta {
  min-height: 0;
  padding: 6px 8px 8px;
}

.wo-hp-feed-card--reel .wo-hp-feed-card-title {
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wo-hp-reels-see-all {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wo-hp-see-more-color, var(--fb-blue, #1877f2));
  text-decoration: none !important;
}

.wo-hp-reels-see-all:hover {
  text-decoration: underline !important;
}

.wo-hp-feed-block .wo-hp-feed-strip--reels .wo-hp-feed-card--reel {
  flex: 0 0 120px;
  width: 120px;
  max-width: 120px;
}

.wo-hp-feed-block .wo-hp-feed-card--reel .wo-hp-feed-card-media {
  max-height: 214px;
}

.wo-hp-feed-card--rss .wo-hp-feed-card-media {
  height: 112px;
}

.wo-hp-feed-card-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e4e6eb 0%, #f0f2f5 100%);
  color: #65676b;
}

.wo-hp-feed-card-media--fallback {
  background: linear-gradient(135deg, #e4e6eb 0%, #f0f2f5 100%);
}

.wo-hp-feed-card-media--fallback::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  margin: auto;
  position: absolute;
  inset: 0;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%2365676b' stroke-width='1.5'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='M4 15l4-4 3 3 5-6 4 5'/%3E%3C/svg%3E");
}

.wo-hp-feed-card--rss .wo-hp-feed-card-meta {
  min-height: 52px;
  align-items: flex-start;
  text-align: left;
  padding: 10px 12px 12px;
}

.wo-hp-feed-card--rss .wo-hp-feed-card-title {
  -webkit-line-clamp: 3;
  text-align: left;
  font-size: 13px;
}

.wo-hp-invite-block .wo-hp-share-link {
  margin-top: 12px;
}

.wo-hp-invite-block--feed {
  max-width: 420px;
}

.wo-hp-custom-block .sidebar-group-may-know-container,
.wo-hp-custom-block .sidebar-pages-may-know-container,
.wo-hp-custom-block .sidebar-users-may-know-container {
  margin: 0;
  padding: 0 4px;
}

.wo-hp-custom-block .wow_my_groups,
.wo-hp-custom-block .home.profile-style {
  margin-bottom: 8px;
}

/* Mobile web header: logo + search icon + menu icon (compact top bar) */
.wo-mobile-menu-icon {
  display: none;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  /* Bar spans the viewport; inner track matches .content-container width */
  .navbar.navbar-default.navbar-fixed-top {
    width: 100% !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .content-container.container,
  .navbar-default .header-fixed1000,
  .navbar-default .header-fixed1200 {
    width: 97% !important;
    max-width: 97% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    float: none !important;
  }

  /* Search overlay — never participates in header row layout */
  .navbar-default #wo_home_search {
    display: none !important;
    flex: none !important;
    position: fixed !important;
    top: var(--fb-navbar-height, 48px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    z-index: 1031 !important;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
    background-color: inherit;
    box-sizing: border-box !important;
    float: none !important;
  }

  .navbar-default #wo_home_search.wo-mobile-search-open {
    display: flex !important;
  }

  .navbar-default .header-fixed1000 > .container-fluid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions";
    align-items: center !important;
    column-gap: 8px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    float: none !important;
  }

  .navbar-default .header-fixed1000 > .container-fluid::before,
  .navbar-default .header-fixed1000 > .container-fluid::after {
    display: none !important;
    content: none !important;
  }

  .navbar-default .wow_hdr_innr_left {
    grid-area: brand;
    flex: none !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
  }

  .navbar-default .wow_hdr_innr_left > .nav.navbar-nav {
    display: none !important;
  }

  .navbar-default .header-brand {
    display: flex !important;
    align-items: center;
    flex: none !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    overflow: hidden !important;
  }

  .navbar-default .header-brand img {
    display: block !important;
    max-height: 38px !important;
    max-width: 130px !important;
    width: auto !important;
    height: auto !important;
  }

  .navbar-default #head_menu_rght {
    grid-area: actions;
    flex: none !important;
    margin: 0 !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 0 !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    height: var(--fb-navbar-height, 48px) !important;
  }

  .navbar-default #head_menu_rght > li {
    flex: 0 0 auto !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .navbar-default #head_menu_rght > li.wow_new_search_bbtn,
  .navbar-default #head_menu_rght > li.wo-mobile-menu-li {
    height: var(--fb-navbar-height, 48px) !important;
  }

  .navbar-default #head_menu_rght.navbar-nav {
    float: none !important;
    margin: 0 !important;
  }

  .navbar-default #head_menu_rght .requests-container,
  .navbar-default #head_menu_rght .messages-notification-container,
  .navbar-default #head_menu_rght .notification-container {
    display: none !important;
  }

  .navbar-default #head_menu_rght .dropdown-switch-account {
    position: fixed !important;
    width: 0 !important;
    height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .wow_new_search_bbtn {
    display: flex !important;
  }

  #head_menu_rght .wo-mobile-header-btn,
  #head_menu_rght .wo-mobile-header-btn.user-menu-combination,
  #head_menu_rght .wow_new_search_bbtn .wo-mobile-header-btn,
  #head_menu_rght .wo-mobile-menu-li > a.wo-mobile-header-btn,
  #head_menu_rght .sixteen-font-size.wo-mobile-header-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    border: 0 !important;
  }

  #head_menu_rght .wo-mobile-header-btn svg,
  #head_menu_rght .wo-mobile-menu-icon svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .wo-mobile-menu-li .wo-desktop-user-avatar {
    display: none !important;
  }

  .wo-mobile-menu-li .wo-mobile-menu-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Single feed photos: show full image with letterboxing (no aggressive crop). */
.post-file.wo-single-photo-fit#fullsizeimg,
.post-file.wo-single-photo-fit #fullsizeimg {
  max-height: 520px;
  min-height: 0;
  background: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-file.wo-single-photo-fit#fullsizeimg img.image-file-contain,
.post-file.wo-single-photo-fit #fullsizeimg img.image-file-contain {
  width: 100%;
  height: auto;
  max-height: 520px;
  min-height: 0 !important;
  object-fit: contain;
  border: 0;
  background: transparent;
}

/* Collage layouts */
#fullsizeimg:has(.wo_collage_grid),
#fullsizeimg:has(.wo_collage_hero_left),
#fullsizeimg:has(.wo_collage_hero_top),
#fullsizeimg:has(.wo_collage_row),
#fullsizeimg:has(.wo_collage_five) {
  max-height: none;
  overflow: hidden;
}

#fullsizeimg .album-image { float: none !important; position: relative; overflow: hidden; }
#fullsizeimg .album-image img.image-file {
  min-height: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
  padding: 0;
  border-radius: 0;
  max-height: none !important;
}

.wo_collage_grid {
  display: grid;
  gap: 2px;
  width: 100%;
  overflow: hidden;
}
.wo_collage_grid.wo_collage-count-2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  aspect-ratio: 2 / 1;
  max-height: 612px;
}
.wo_collage_grid.wo_collage-count-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1;
  max-height: 714px;
}
.wo_collage_grid.wo_collage-count-3 .album-image:first-child { grid-row: span 2; }
.wo_collage_grid.wo_collage-count-4,
.wo_collage_grid.wo_collage-count-5,
.wo_collage_grid.wo_collage-count-6,
.wo_collage_grid.wo_collage-count-7,
.wo_collage_grid.wo_collage-count-8,
.wo_collage_grid.wo_collage-count-9,
.wo_collage_grid.wo_collage-count-10 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1;
  max-height: 714px;
}
.wo_collage_grid .album-image { width: 100% !important; height: 100% !important; min-height: 0; }

.wo_collage_row { display: flex; gap: 2px; width: 100%; height: 340px; overflow: hidden; }
.wo_collage_row .album-image { flex: 1; min-width: 0; height: 100%; }

.wo_collage_hero_top { width: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 2px; max-height: 714px; }
.wo_collage_hero_top .album-image:first-child { width: 100%; flex: 1.4; min-height: 0; }
.wo_collage_hero_top .wo_collage_hero_top_row { display: flex; gap: 2px; flex: 1; min-height: 0; }
.wo_collage_hero_top .wo_collage_hero_top_row .album-image { flex: 1; min-width: 0; height: 100%; }

.wo_collage_hero_left { display: flex; gap: 2px; width: 100%; height: 476px; max-height: 612px; overflow: hidden; }
.wo_collage_hero_left .album-image:first-child { flex: 1.45; height: 100%; min-width: 0; }
.wo_collage_hero_left .wo_collage_hero_left_col { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; height: 100%; }
.wo_collage_hero_left .wo_collage_hero_left_col .album-image { flex: 1; height: auto; min-height: 0; }
.wo_collage_hero_left.wo_collage-count-2 { height: 408px; max-height: 476px; }
.wo_collage_hero_left.wo_collage-count-2 .album-image { flex: 1; height: 100%; min-width: 0; }

.wo_collage_five {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  aspect-ratio: 1;
  max-height: 714px;
  overflow: hidden;
}
.wo_collage_five_top {
  display: flex;
  gap: 2px;
  flex: 1.2;
  min-height: 0;
}
.wo_collage_five_top .album-image { flex: 1; min-width: 0; height: 100%; }
.wo_collage_five_bottom {
  display: flex;
  gap: 2px;
  flex: 1;
  min-height: 0;
}
.wo_collage_five_bottom .album-image { flex: 1; min-width: 0; height: 100%; }
.wo_collage_five .album-image { position: relative; overflow: hidden; }

#collage-preview {
  display: none;
  margin: 8px 12px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f2f5;
}
#collage-preview.is-visible { display: block; }
#collage-preview .album-image { position: relative; overflow: hidden; }
#collage-preview .album-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#collage-preview .collage-more-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  pointer-events: none;
}

.collage-more-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  pointer-events: none;
  z-index: 2;
}
#collage-layout-picker { display: none; padding: 8px 12px 4px; gap: 8px; flex-wrap: wrap; }
#collage-layout-picker.is-visible { display: flex; }
.collage-layout-btn { border: 1px solid #ccd0d5; background: #f0f2f5; color: #050505; border-radius: 18px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.collage-layout-btn.is-active { background: #e7f3ff; border-color: #1877f2; color: #1877f2; }
#image-holder.ui-sortable .thumb-image-delete { cursor: grab; }
#productimage-holder.ui-sortable .thumb-image-old { cursor: grab; }
.wo-photo-order-hint { font-size: 12px; color: #65676b; padding: 4px 12px 8px; }
#edit-post .wo-photo-order-hint { padding: 0 10px 8px; }

/* Post action bar: reactions left, icon-only actions right */
.wo-fb-post-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  position: relative;
  z-index: 4;
  overflow: visible;
  padding: 0 4px;
}
.wo-fb-post-action-bar .pull-left,
.wo-fb-post-action-bar .pull-right {
  float: none !important;
}
.wo-fb-post-action-bar .wo-fb-post-action-bar__stats {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 132px);
  overflow: visible;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  padding-left: 2px;
}
.wo-fb-post-action-bar .wo-fb-post-action-bar__stats .like-stat {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.wo-fb-post-action-bar .wo-fb-post-action-bar__stats .like-emo {
  overflow: visible;
  padding-left: 2px;
}
.wo-fb-post-action-bar .wo-fb-post-action-bar__stats .like-emo > .how_reacted:nth-child(1) {
  margin-left: 0 !important;
}
.wo-fb-post-action-bar .wo-fb-post-comment-stat {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  color: #65676b;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  min-height: 0 !important;
  min-width: 0 !important;
}
/* Beat dark.css / style.css tile background on comment count in post stats row */
.post .post-description .post-actions .wo-fb-post-comment-stat.stat-item,
.post .post-description .wo-fb-post-action-bar__stats .wo-fb-post-comment-stat {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin-top: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
}
html.wo-night-mode .post .post-description .post-actions .wo-fb-post-comment-stat.stat-item,
body.wo-night-mode .post .post-description .post-actions .wo-fb-post-comment-stat.stat-item {
  background: transparent !important;
  box-shadow: none !important;
}
.wo-fb-post-action-bar .wo-fb-post-comment-stat.wo-fb-post-comment-stat--hidden {
  display: none !important;
}
.wo-fb-post-action-bar .wo-fb-post-comment-stat svg.wo-fb-action-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #65676b;
}
.wo-fb-post-action-bar .wo-fb-post-comment-count {
  font-size: 13px;
  font-weight: 400;
  color: #65676b;
  line-height: 1;
}
html.wo-night-mode .wo-fb-post-action-bar .wo-fb-post-comment-stat,
body.wo-night-mode .wo-fb-post-action-bar .wo-fb-post-comment-stat,
html.wo-night-mode .wo-fb-post-action-bar .wo-fb-post-comment-count,
body.wo-night-mode .wo-fb-post-action-bar .wo-fb-post-comment-count {
  color: #b0b3b8;
}
html.wo-night-mode .wo-fb-post-action-bar .wo-fb-post-comment-stat svg.wo-fb-action-icon,
body.wo-night-mode .wo-fb-post-action-bar .wo-fb-post-comment-stat svg.wo-fb-action-icon {
  color: #b0b3b8;
}
.wo-fb-post-action-bar .wo-fb-post-action-bar__stats .like-emo,
.wo-fb-post-action-bar .wo-fb-post-action-bar__stats .how_reacted,
.wo-fb-post-action-bar .wo-fb-post-action-bar__stats a {
  pointer-events: auto;
}
.wo-fb-post-action-bar .wo-fb-post-action-bar__buttons,
.wo-fb-post-action-bar #wo_post_stat_button {
  position: relative;
  z-index: 12;
  flex: 0 0 auto;
  float: none !important;
  pointer-events: auto;
}
.wo-fb-post-action-bar .wo-fb-post-action-bar__stats.post-actions {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.wo-fb-post-action-bar #wo_post_stat_button {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
  justify-content: flex-end;
  text-align: right;
  gap: 4px;
}
.wo-fb-post-action-bar #wo_post_stat_button .stat-item {
  flex: 0 0 auto;
  width: auto;
  min-width: 36px;
  min-height: 36px;
  padding: 6px 8px;
  line-height: 1 !important;
  overflow: visible !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.wo-fb-post-action-bar #wo_post_stat_button .like-btn-mobile,
.wo-fb-post-action-bar #wo_post_stat_button .stat-item .like-btn-mobile {
  display: none !important;
}
.wo-fb-post-action-bar #wo_post_stat_button [class^="status-reaction-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wo-fb-post-action-bar #wo_post_stat_button svg,
.wo-fb-post-action-bar #wo_post_stat_button img,
.wo-fb-post-action-bar #wo_post_stat_button .inline_post_emoji,
.wo-fb-post-action-bar #wo_post_stat_button .inline_post_count_emoji {
  pointer-events: none;
}
.wo-fb-post-action-bar #wo_post_stat_button .stat-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  overflow: visible;
}
.wo-fb-post-action-bar .wo-reaction-post .like-btn-post svg,
.wo-fb-post-action-bar .wo-fb-action-icon {
  width: 22px;
  height: 22px;
  display: block;
  overflow: visible;
}

/* Flat icon buttons — no tile backgrounds */
.wo-fb-post-action-bar #wo_post_stat_button .stat-item,
.wo-fb-post-action-bar #wo_post_stat_button .wo-reaction-post,
.wo-fb-post-action-bar #wo_post_stat_button .wo-fb-like-host,
.wo-fb-post-action-bar #wo_post_stat_button .btn.btn-default.stat-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 6px 8px !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  width: auto !important;
}
.wo-fb-post-action-bar #wo_post_stat_button .stat-item:hover,
.wo-fb-post-action-bar #wo_post_stat_button .stat-item:active,
.wo-fb-post-action-bar #wo_post_stat_button .stat-item:focus,
.wo-fb-post-action-bar #wo_post_stat_button .dropdown.open .stat-item {
  background: transparent !important;
  box-shadow: none !important;
}
.wo-fb-post-action-bar #wo_post_stat_button .stat-item:active,
.wo-fb-post-action-bar #wo_post_stat_button .wo-fb-like-btn:active {
  background: rgba(0, 0, 0, 0.05) !important;
  border-radius: 50%;
}
html.wo-night-mode .wo-fb-post-action-bar #wo_post_stat_button .stat-item:active,
body.wo-night-mode .wo-fb-post-action-bar #wo_post_stat_button .stat-item:active,
html.wo-night-mode .wo-fb-post-action-bar #wo_post_stat_button .wo-fb-like-btn:active,
body.wo-night-mode .wo-fb-post-action-bar #wo_post_stat_button .wo-fb-like-btn:active {
  background: rgba(255, 255, 255, 0.08) !important;
}
.wo-fb-post-action-bar .wo-reaction {
  padding: 0 !important;
  max-width: none;
}
.wo-fb-post-action-bar .wo-fb-like-host {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 !important;
  max-width: none;
  overflow: visible;
  z-index: 10040;
  pointer-events: auto;
}
.wo-fb-post-action-bar .wo-fb-like-host .wo-fb-like-btn {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  z-index: 2;
}
.wo-fb-post-action-bar .wo-reaction.wo-reaction-post {
  padding: 0 !important;
  max-width: none;
  position: relative;
  z-index: 6;
  overflow: visible;
  pointer-events: auto !important;
  isolation: isolate;
}
.wo-fb-post-action-bar .wo-reaction-post {
  max-width: none;
  padding: 0 !important;
  position: relative;
  z-index: 5;
}
.wo-fb-post-action-bar .like-btn-post {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  line-height: 1 !important;
  cursor: pointer;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  padding: 6px 8px;
  appearance: none;
  -webkit-appearance: none;
}
.wo-fb-post-action-bar button.wo-fb-like-btn:focus {
  outline: none;
  box-shadow: none;
}
.wo-fb-post-action-bar .like-btn-post .t_likes {
  display: none !important;
}

/* Filled like icon when active */
.wo-fb-post-action-bar .wo-fb-like-btn--active .wo-fb-action-icon--filled,
.wo-fb-post-action-bar .active-like-1 .wo-fb-action-icon--filled {
  color: #1877f2;
}
.wo-fb-post-action-bar [class*="status-reaction-"].active-like {
  font-size: 0;
  line-height: 0;
}
.wo-fb-post-action-bar [class*="status-reaction-"].active-like .inline_post_emoji,
.wo-fb-post-action-bar [class*="status-reaction-"].active-like svg,
.wo-fb-post-action-bar [class*="status-reaction-"].active-like img {
  font-size: initial;
  line-height: initial;
}

/* Classic horizontal reaction picker above the like button */
.wo-fb-post-action-bar .wo-reaction-post .reactions-box,
.wo-fb-post-action-bar .wo-fb-like-host .reactions-box {
  position: absolute !important;
  pointer-events: auto;
  top: -54px !important;
  bottom: auto !important;
  right: 0 !important;
  left: auto !important;
  width: max-content !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  white-space: nowrap !important;
  display: none;
  list-style: none;
  margin: 0;
  padding: 2px 4px !important;
  border-radius: 2em !important;
  background: #fff !important;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2) !important;
  z-index: 10050;
  overflow: visible !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box;
}
.wo-fb-post-action-bar .wo-fb-like-host .reactions-box.wo-reactions-visible {
  display: flex !important;
}
.wo-fb-post-action-bar .wo-reaction-post .reactions-box[style*="display: block"] {
  display: flex !important;
}
.wo-fb-post-action-bar .wo-reaction-post .reactions-box .reaction,
.wo-fb-post-action-bar .wo-fb-like-host .reactions-box .reaction {
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
  cursor: pointer;
}
.wo-fb-post-action-bar .wo-fb-like-host .reactions-box.wo-reactions-animate-in {
  animation: woFbReactionsPopIn 0.22s cubic-bezier(0.49, 0, 0.46, 1) both;
}
.wo-fb-post-action-bar .wo-fb-like-host .reactions-box.wo-reactions-animate-in .reaction {
  animation: slideUp 0.28s cubic-bezier(0.49, 0, 0.46, 1) both;
}
.wo-fb-post-action-bar .wo-fb-like-host .reactions-box.wo-reactions-animate-in .reaction:nth-child(1) { animation-delay: 0ms; }
.wo-fb-post-action-bar .wo-fb-like-host .reactions-box.wo-reactions-animate-in .reaction:nth-child(2) { animation-delay: 25ms; }
.wo-fb-post-action-bar .wo-fb-like-host .reactions-box.wo-reactions-animate-in .reaction:nth-child(3) { animation-delay: 50ms; }
.wo-fb-post-action-bar .wo-fb-like-host .reactions-box.wo-reactions-animate-in .reaction:nth-child(4) { animation-delay: 75ms; }
.wo-fb-post-action-bar .wo-fb-like-host .reactions-box.wo-reactions-animate-in .reaction:nth-child(5) { animation-delay: 100ms; }
.wo-fb-post-action-bar .wo-fb-like-host .reactions-box.wo-reactions-animate-in .reaction:nth-child(6) { animation-delay: 125ms; }
.wo-fb-post-action-bar .wo-fb-like-host .reactions-box.wo-reactions-animate-in .reaction:nth-child(7) { animation-delay: 150ms; }
@keyframes woFbReactionsPopIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 345px) {
  .wo-fb-post-action-bar .wo-reaction-post .reactions-box,
  .wo-fb-post-action-bar .wo-fb-like-host .reactions-box {
    width: max-content !important;
    top: -54px !important;
    bottom: auto !important;
    left: auto !important;
    right: 0 !important;
  }
}
html.wo-night-mode .wo-fb-post-action-bar .wo-reaction-post .reactions-box,
html.wo-night-mode .wo-fb-post-action-bar .wo-fb-like-host .reactions-box,
body.wo-night-mode .wo-fb-post-action-bar .wo-reaction-post .reactions-box,
body.wo-night-mode .wo-fb-post-action-bar .wo-fb-like-host .reactions-box {
  background: #424242 !important;
}
.wo-fb-post-action-bar {
  overflow: visible;
}
.wo-fb-post-action-bar #wo_post_stat_button {
  overflow: visible;
}
.post .post-footer:has(.wo-fb-post-action-bar) {
  overflow: visible;
}
@media (max-width: 420px) {
  .wo-fb-post-action-bar #wo_post_stat_button {
    width: auto !important;
    margin: 0 !important;
  }
}

/* Privacy badge before post timestamp */
.post-heading h6 .wo-post-privacy-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  color: #9197a3;
  line-height: 1;
  margin-right: 1px;
}
.post-heading h6 .wo-post-privacy-badge svg {
  display: block;
  width: 14px;
  height: 14px;
}
.post-heading h6 .wo-post-meta-sep {
  margin: 0 1px;
}
.post-heading h6 .wo-post-time-link {
  color: #9197a3;
  text-decoration: none;
}
.post-heading h6 .wo-post-time-link:hover,
.post-heading h6 .wo-post-time-link:focus {
  color: #9197a3;
  text-decoration: underline;
}
.post-heading h6 .wo-post-time {
  cursor: default;
}

/* Sidebar suggested friends / pages — show action button icons */
.sidebar #wo_sidebar_users .btn-default svg,
.sidebar .wo_sidebar_pages .user-follow-button button svg,
.wo-hp-custom-block #wo_sidebar_users .btn-default svg,
.wo-hp-custom-block .wo_sidebar_pages .user-follow-button button svg {
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  margin: -2px 4px 0 0 !important;
  vertical-align: middle;
  fill: currentColor;
  stroke: currentColor;
}
.sidebar #wo_sidebar_users .btn-default .button-text,
.sidebar .wo_sidebar_pages .user-follow-button button .button-text,
.wo-hp-custom-block #wo_sidebar_users .btn-default .button-text,
.wo-hp-custom-block .wo_sidebar_pages .user-follow-button button .button-text {
  vertical-align: middle;
  font-size: 11px !important;
  letter-spacing: 0;
  line-height: 1.15;
}
.sidebar #wo_sidebar_users .btn-default,
.sidebar .wo_sidebar_pages .user-follow-button button,
.wo-hp-custom-block #wo_sidebar_users .btn-default,
.wo-hp-custom-block .wo_sidebar_pages .user-follow-button button {
  font-size: 11px !important;
  padding: 2px 6px !important;
}

/* Publisher box — collapsed comment-style bubble next to avatar */
body:not(.pub-focus) .publisher-box .wo-pub-composer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 57px;
  padding: 10px 10px 10px;
}
body:not(.pub-focus) .publisher-box .wo-pub-composer-row .wo-pub-composer-avatar-link {
  flex: 0 0 41px;
  display: block;
  line-height: 0;
}
body:not(.pub-focus) .publisher-box .wo-pub-composer-row .post-avatar {
  position: static;
  flex: 0 0 41px;
  width: 41px;
  height: 41px;
  margin: 0;
}
body:not(.pub-focus) .publisher-box .wo-pub-composer-row .postText {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 41px !important;
  min-height: 41px !important;
  max-height: 41px !important;
  padding: 10px 12px !important;
  margin: 0;
  line-height: 21px;
  resize: none;
  overflow: hidden;
  background-color: #f0f2f5 !important;
  border: 1px solid #e4e6eb !important;
  border-radius: 21px !important;
  box-shadow: none !important;
  color: #65676b !important;
}
body:not(.pub-focus) .publisher-box .wo-pub-composer-row .postText::placeholder {
  color: #65676b;
  opacity: 1;
}
body:not(.pub-focus) .publisher-box .wo-pub-composer-row .add-emoticons {
  position: static;
  flex: 0 0 auto;
  top: auto;
  right: auto;
  margin: 0;
  display: none;
}
body.pub-focus .publisher-box .wo-pub-composer-row .add-emoticons {
  display: block;
}
body:not(.pub-focus) .publisher-box .wo-pub-composer-row .add-emoticons .dropdown-toggle {
  width: 32px;
  height: 32px;
  line-height: 32px;
  background: transparent;
  box-shadow: none;
}
body:not(.pub-focus) .publisher-box .sun_pub_name {
  display: none !important;
}
body.pub-focus .publisher-box .wo-pub-composer-row {
  display: block;
  min-height: 0;
  padding: 0;
}
html.wo-night-mode body:not(.pub-focus) .publisher-box .wo-pub-composer-row .postText,
body.wo-night-mode:not(.pub-focus) .publisher-box .wo-pub-composer-row .postText {
  background-color: #3a3b3c !important;
  border-color: #3a3b3c !important;
  color: #b0b3b8 !important;
}
html.wo-night-mode body:not(.pub-focus) .publisher-box .wo-pub-composer-row .postText::placeholder,
body.wo-night-mode:not(.pub-focus) .publisher-box .wo-pub-composer-row .postText::placeholder {
  color: #b0b3b8;
}

/* ── Sidebar trending card ── */
.wo-trending-card {
  margin-top: 16px;
  margin-bottom: 12px;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 12px !important;
  border: 1px solid var(--fb-border);
  background: var(--fb-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.wo-trending-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 10px;
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.1) 0%, rgba(232, 62, 140, 0.08) 55%, rgba(247, 119, 6, 0.1) 100%);
  border-bottom: 1px solid var(--fb-border);
}

.wo-trending-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1877f2 0%, #e83e8c 100%);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.35);
}

.wo-trending-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fb-text);
  line-height: 1.2;
}

.wo-trending-card__list {
  list-style: none;
  margin: 0;
  padding: 6px 8px 10px;
  counter-reset: none;
}

.wo-trending-card__item {
  margin: 0;
  padding: 0;
}

.wo-trending-card__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 10px;
  text-decoration: none !important;
  color: inherit !important;
  transition: background 0.15s ease, transform 0.15s ease;
}

.wo-trending-card__link:hover {
  background: rgba(24, 119, 242, 0.08);
  transform: translateX(2px);
}

.wo-trending-card__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--fb-text-secondary);
  background: var(--fb-bg);
  flex-shrink: 0;
}

.wo-trending-card__rank--top1 {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.wo-trending-card__rank--top2 {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.wo-trending-card__rank--top3 {
  color: #fff;
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.wo-trending-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wo-trending-card__tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--fb-text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wo-trending-card__meta {
  font-size: 12px;
  color: var(--fb-text-secondary);
  line-height: 1.2;
}

.wo-trending-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--fb-text-secondary);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.wo-trending-card__link:hover .wo-trending-card__arrow {
  opacity: 1;
  transform: translateY(0);
  background: rgba(24, 119, 242, 0.12);
  color: var(--fb-blue);
}

html.wo-night-mode .wo-trending-card__header,
body.wo-night-mode .wo-trending-card__header {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.18) 0%, rgba(232, 62, 140, 0.12) 55%, rgba(247, 119, 6, 0.14) 100%);
}

html.wo-night-mode .wo-trending-card__link:hover,
body.wo-night-mode .wo-trending-card__link:hover {
  background: rgba(255, 255, 255, 0.06);
}

html.wo-night-mode .wo-trending-card__rank:not([class*="--top"]),
body.wo-night-mode .wo-trending-card__rank:not([class*="--top"]) {
  background: #3a3b3c;
  color: #b0b3b8;
}

.left-sidebar .wo-trending-card {
  box-shadow: none;
}

.rightcol > .wo-trending-card,
.rightcol > .wo-pymk-card,
.rightcol > .wo-pages-card,
.rightcol > .wo-hp-sidebar-card {
  margin-bottom: 12px !important;
}

/* ── Sidebar people you may know card ── */
.wo-pymk-card {
  margin-top: 0;
  margin-bottom: 12px;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 12px !important;
  border: 1px solid var(--fb-border);
  background: var(--fb-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.wo-pymk-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 10px;
  background: linear-gradient(135deg, rgba(66, 183, 42, 0.1) 0%, rgba(24, 119, 242, 0.08) 55%, rgba(139, 92, 246, 0.1) 100%);
  border-bottom: 1px solid var(--fb-border);
}

.wo-pymk-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #42b72a 0%, #1877f2 100%);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(66, 183, 42, 0.3);
}

.wo-pymk-card__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fb-text);
  line-height: 1.2;
}

.wo-pymk-card__refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  color: var(--fb-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.wo-pymk-card__refresh:hover {
  background: rgba(24, 119, 242, 0.12);
  color: var(--fb-blue);
}

.wo-pymk-card__body {
  margin: 0 !important;
  padding: 6px 8px 10px;
}

.wo-pymk-card .wow_side_usrs {
  width: 100%;
  display: block;
  padding: 0;
  margin: 0;
}

.wo-pymk-card #wo_sidebar_users {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin: 0;
  border: none;
  border-radius: 10px;
  text-align: left;
  background: transparent;
  transition: background 0.15s ease;
}

.wo-pymk-card #wo_sidebar_users:hover {
  background: rgba(24, 119, 242, 0.08);
  box-shadow: none;
}

.wo-pymk-card #wo_sidebar_users .avatar {
  flex-shrink: 0;
  margin: 0;
}

.wo-pymk-card #wo_sidebar_users .avatar img {
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}

.wo-pymk-card #wo_sidebar_users .user-popover {
  flex: 1;
  min-width: 0;
}

.wo-pymk-card #wo_sidebar_users .wo_user_link_name {
  margin: 0;
  text-decoration: none !important;
}

.wo-pymk-card #wo_sidebar_users .wo_user_link_name .user-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--fb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wo-pymk-card #wo_sidebar_users .user-follow-button {
  flex-shrink: 0;
  margin-left: auto;
}

.wo-pymk-card #wo_sidebar_users .user-follow-button .button-text {
  display: none !important;
}

.wo-pymk-card #wo_sidebar_users .user-follow-button .btn,
.wo-pymk-card #wo_sidebar_users .user-follow-button button {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

.wo-pymk-card #wo_sidebar_users .user-follow-button .btn svg,
.wo-pymk-card #wo_sidebar_users .user-follow-button button svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  flex-shrink: 0;
}

html.wo-night-mode .wo-pymk-card__header,
body.wo-night-mode .wo-pymk-card__header {
  background: linear-gradient(135deg, rgba(66, 183, 42, 0.16) 0%, rgba(24, 119, 242, 0.14) 55%, rgba(139, 92, 246, 0.14) 100%);
}

html.wo-night-mode .wo-pymk-card__refresh,
body.wo-night-mode .wo-pymk-card__refresh {
  background: rgba(255, 255, 255, 0.08);
  color: #b0b3b8;
}

html.wo-night-mode .wo-pymk-card #wo_sidebar_users:hover,
body.wo-night-mode .wo-pymk-card #wo_sidebar_users:hover {
  background: rgba(255, 255, 255, 0.06);
}

.left-sidebar .wo-pymk-card {
  box-shadow: none;
}

/* ── Sidebar pages you may like card ── */
.wo-pages-card {
  margin-top: 0;
  margin-bottom: 12px;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 12px !important;
  border: 1px solid var(--fb-border);
  background: var(--fb-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.wo-pages-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(24, 119, 242, 0.08) 55%, rgba(245, 158, 11, 0.1) 100%);
  border-bottom: 1px solid var(--fb-border);
}

.wo-pages-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8b5cf6 0%, #1877f2 100%);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}

.wo-pages-card__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fb-text);
  line-height: 1.2;
}

.wo-pages-card__refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--fb-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.wo-pages-card__refresh:hover {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}

.wo-pages-card__body {
  padding: 8px 10px 10px;
}

.wo-pages-card .sidebar-pages-may-know-container .wo_sidebar_pages {
  margin-bottom: 8px;
}

.wo-pages-card .sidebar-pages-may-know-container .wo_sidebar_pages:last-child {
  margin-bottom: 0;
}

.wo-hp-sidebar-card.wo-hp-custom-block {
  list-style: none;
  padding: 0 !important;
}

.wo-hp-sidebar-card .wo-hp-custom-block-body {
  padding: 8px 10px 10px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.wo-hp-sidebar-card .wo-hp-block-title-row .wo-hp-block-title-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
}

html.wo-night-mode .wo-pages-card__header,
body.wo-night-mode .wo-pages-card__header {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(24, 119, 242, 0.12) 55%, rgba(245, 158, 11, 0.14) 100%);
}

html.wo-night-mode .wo-pages-card__refresh,
body.wo-night-mode .wo-pages-card__refresh {
  background: rgba(255, 255, 255, 0.08);
  color: #b0b3b8;
}

.left-sidebar .wo-pages-card {
  box-shadow: none;
}

/* ── Sidebar suggested groups card (homepage block) ── */
.wo-groups-card {
  margin-top: 0;
  margin-bottom: 12px;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 12px !important;
  border: 1px solid var(--fb-border);
  background: var(--fb-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.wo-groups-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(24, 119, 242, 0.08) 55%, rgba(66, 183, 42, 0.1) 100%);
  border-bottom: 1px solid var(--fb-border);
}

.wo-groups-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #1877f2 100%);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.wo-groups-card__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fb-text);
  line-height: 1.2;
}

.wo-groups-card__body {
  padding: 8px 10px 10px;
}

.rightcol > .wo-groups-card {
  margin-bottom: 12px !important;
}

/* Group sidebar — recent media grid (green header accent) */
.wo-trending-card--green .wo-trending-card__header {
  background: linear-gradient(135deg, rgba(66, 183, 42, 0.14) 0%, rgba(16, 185, 129, 0.1) 55%, rgba(34, 197, 94, 0.08) 100%);
}

.wo-trending-card--green .wo-trending-card__badge {
  background: linear-gradient(135deg, #42b72a 0%, #10b981 100%);
  box-shadow: 0 2px 8px rgba(66, 183, 42, 0.35);
}

.wo_group_profile .wo-fb-group-recent-media-card.wo-trending-card {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.wo-fb-group-recent-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 10px 10px;
}

.wo-fb-group-recent-media-item {
  display: block;
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--fb-surface-muted, #f0f2f5);
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wo-fb-group-recent-media-item:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.wo-fb-group-recent-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.wo-fb-group-recent-media-item--blur img {
  filter: blur(12px);
}

html.wo-night-mode .wo-trending-card--green .wo-trending-card__header,
body.wo-night-mode .wo-trending-card--green .wo-trending-card__header {
  background: linear-gradient(135deg, rgba(66, 183, 42, 0.2) 0%, rgba(16, 185, 129, 0.14) 55%, rgba(34, 197, 94, 0.1) 100%);
}

html.wo-night-mode .wo-fb-group-recent-media-item,
body.wo-night-mode .wo-fb-group-recent-media-item {
  background: #3a3b3c;
}

/* Lightbox sidebar — modern post actions + comment composer */
.wo_imagecombo_lbox .wow_lightbox_right {
  overflow-x: hidden;
  max-width: 100%;
}

.wo_imagecombo_lbox .comment-section-inner {
  overflow: visible;
  max-width: 100%;
}

.wo_imagecombo_lbox .comment-inner-middle {
  overflow: visible;
  max-width: 100%;
  position: relative;
  z-index: 6;
}

.wo_imagecombo_lbox .comment-section .stats,
.wo_imagecombo_lbox .comment-section .wo-fb-lightbox-action-bar .stats,
.wo_imagecombo_lbox .wo-fb-lightbox-action-bar .stats,
.lightbox-container .comment-section #wo_post_stat_button.stats,
.wo_imagecombo_lbox .comment-section #wo_post_stat_button.stats {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wo_imagecombo_lbox .wo-fb-lightbox-action-bar {
  border-bottom: none !important;
}

.wo_imagecombo_lbox .wo-fb-lightbox-action-bar {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 12px 8px;
  border: none;
  background: transparent;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  overflow: visible;
  position: relative;
  z-index: 8;
}

.wo_imagecombo_lbox .wo-fb-lightbox-action-bar .wo-fb-post-action-bar__stats {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 48px);
  overflow: hidden;
}

.wo_imagecombo_lbox .wo-fb-lightbox-action-bar .wo-fb-post-action-bar__buttons,
.wo_imagecombo_lbox .wo-fb-lightbox-action-bar #wo_post_stat_button {
  width: auto;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.wo_imagecombo_lbox .wo-fb-lightbox-action-bar #wo_post_stat_button .stat-item,
.wo_imagecombo_lbox .wo-fb-lightbox-action-bar #wo_post_stat_button .wo-fb-like-host,
.wo_imagecombo_lbox .wo-fb-lightbox-action-bar #wo_post_stat_button .wo-fb-like-btn {
  width: auto !important;
  min-width: 0;
  padding: 6px 10px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 600;
  text-decoration: none !important;
  pointer-events: auto !important;
}

.wo_imagecombo_lbox .wo-fb-lightbox-action-bar .wo-fb-like-host {
  position: relative;
  overflow: visible;
  z-index: 9;
}

.wo_imagecombo_lbox .comment-section .stats .stat-item {
  width: auto !important;
}

.wo_imagecombo_lbox .wo-fb-lightbox-action-bar .wo-fb-like-host .reactions-box {
  top: auto !important;
  left: auto !important;
  right: 0 !important;
  bottom: calc(100% + 8px) !important;
  transform: none;
  z-index: 10060 !important;
  pointer-events: auto !important;
}

.wo_imagecombo_lbox .wo-fb-lightbox-action-bar .wo-fb-like-host .reactions-box .reaction {
  pointer-events: auto !important;
  cursor: pointer;
}

.wo-lightbox-comment-compose.post-comments {
  border-top: 1px solid var(--fb-border, #e4e6eb);
  padding: 10px 12px 12px;
  height: auto !important;
  min-height: 0 !important;
  flex: 0 0 auto;
  background: var(--fb-surface, #fff);
  position: relative;
  z-index: 5;
}

.wo-lightbox-comment-combo {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  transition: background 0.2s ease;
}

.wo-lightbox-comment-combo.comment-toggle {
  background: transparent;
}

.wo-lightbox-comment-combo__main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wo-lightbox-comment-combo .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  align-self: center;
}

.wo-lightbox-comment-combo .comment-textarea {
  flex: 1;
  min-width: 0;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 120px;
  margin: 0 !important;
  padding: 4px 12px !important;
  border: none !important;
  border-radius: 18px !important;
  background: var(--fb-surface-muted, #f0f2f5) !important;
  color: var(--fb-text, #050505);
  resize: none;
  line-height: 20px;
  box-shadow: none !important;
  box-sizing: border-box;
  overflow-y: auto;
}

.wo-lightbox-comment-combo.comment-toggle .comment-textarea {
  background: var(--fb-surface-muted, #f0f2f5) !important;
}

.wo-lightbox-comment-combo .comment_combo_footer {
  display: block;
  padding: 8px 0 0 40px;
  margin: 0;
  background: transparent;
}

.wo-lightbox-comment-combo.comment-toggle .comment_combo_footer {
  display: block;
}

.wo-lightbox-comment-combo__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.wo-lightbox-comment-combo__tools > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex-wrap: wrap;
}

.wo-lightbox-comment-combo .emo-lightbox-comment-container-,
.wo-lightbox-comment-combo [class*="emo-lightbox-comment-container-"] {
  max-height: 220px;
  overflow-y: auto;
}

html.wo-night-mode .wo-lightbox-comment-compose.post-comments,
body.wo-night-mode .wo-lightbox-comment-compose.post-comments {
  background: var(--fb-surface, #242526);
  border-top-color: var(--fb-border, #3a3b3c);
}

html.wo-night-mode .wo-lightbox-comment-combo .comment-textarea,
body.wo-night-mode .wo-lightbox-comment-combo .comment-textarea {
  background: var(--fb-surface-muted, #3a3b3c) !important;
  color: var(--fb-text, #e4e6eb);
}

html.wo-night-mode .wo_imagecombo_lbox .wo-fb-lightbox-action-bar #wo_post_stat_button .stat-item,
html.wo-night-mode .wo_imagecombo_lbox .wo-fb-lightbox-action-bar #wo_post_stat_button .wo-fb-like-btn,
body.wo-night-mode .wo_imagecombo_lbox .wo-fb-lightbox-action-bar #wo_post_stat_button .stat-item,
body.wo-night-mode .wo_imagecombo_lbox .wo-fb-lightbox-action-bar #wo_post_stat_button .wo-fb-like-btn {
  background: transparent !important;
  color: var(--fb-text-muted, #b0b3b8);
}

html.wo-night-mode .wo_imagecombo_lbox .wo-fb-lightbox-action-bar .wo-fb-like-host .reactions-box,
body.wo-night-mode .wo_imagecombo_lbox .wo-fb-lightbox-action-bar .wo-fb-like-host .reactions-box {
  background: var(--fb-surface-elevated, #3a3b3c);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.wo_imagecombo_lbox .wo-lightbox-comment-combo .comment-textarea.lighbox,
.wo_imagecombo_lbox .lightbox-post-footer.wo-lightbox-comment-compose .comment-textarea,
.wo_imagecombo_lbox .lightbox-post-footer.post-comments .lighbox.comment-textarea,
.wo_imagecombo_lbox .wo-lightbox-comment-combo .comment-textarea.form-control {
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px;
}

.wo-lightbox-comment-combo:not(.comment-toggle) .comment-textarea {
  max-height: 32px !important;
  overflow: hidden;
}

/* Dark mode — flat surfaces without block outlines (revert via _backups/20260603-sticky-featured-dark-borders) */
html.wo-night-mode .post .panel,
body.wo-night-mode .post .panel,
html.wo-night-mode .wow_content,
body.wo-night-mode .wow_content,
html.wo-night-mode .wow_content.negg_padd,
body.wo-night-mode .wow_content.negg_padd,
html.wo-night-mode .wo-trending-card,
body.wo-night-mode .wo-trending-card,
html.wo-night-mode .wo-fb-profile-info-card,
body.wo-night-mode .wo-fb-profile-info-card,
html.wo-night-mode .wo-fb-group-sidebar-card,
body.wo-night-mode .wo-fb-group-sidebar-card,
html.wo-night-mode .wo-group-featured-box,
body.wo-night-mode .wo-group-featured-box,
html.wo-night-mode .wo-group-featured-card,
body.wo-night-mode .wo-group-featured-card,
html.wo-night-mode .wo-groups-card,
body.wo-night-mode .wo-groups-card,
html.wo-night-mode .wo-pages-card,
body.wo-night-mode .wo-pages-card,
html.wo-night-mode .wo-pymk-card,
body.wo-night-mode .wo-pymk-card,
html.wo-night-mode .wo-hp-sidebar-card,
body.wo-night-mode .wo-hp-sidebar-card,
html.wo-night-mode .group-post-search-wrap,
body.wo-night-mode .group-post-search-wrap,
html.wo-night-mode .wo_group_profile .wo-fb-group-card.card.hovercard,
body.wo-night-mode .wo_group_profile .wo-fb-group-card.card.hovercard,
html.wo-night-mode .fake_ad_post,
body.wo-night-mode .fake_ad_post,
html.wo-night-mode .publisher-box,
body.wo-night-mode .publisher-box {
  border: none !important;
  box-shadow: none !important;
}

html.wo-night-mode .wo-group-featured-box__head,
body.wo-night-mode .wo-group-featured-box__head,
html.wo-night-mode .wo-group-featured-box:not(.is-collapsed) .wo-group-featured-box__head,
body.wo-night-mode .wo-group-featured-box:not(.is-collapsed) .wo-group-featured-box__head,
html.wo-night-mode .wo-group-featured-card__engagement,
body.wo-night-mode .wo-group-featured-card__engagement,
html.wo-night-mode .wo-trending-card__header,
body.wo-night-mode .wo-trending-card__header,
html.wo-night-mode .wo-groups-card__header,
body.wo-night-mode .wo-groups-card__header,
html.wo-night-mode .wo-pages-card__header,
body.wo-night-mode .wo-pages-card__header {
  border-bottom: none !important;
}

/* Group page — center the full group layout in the viewport (compact chat rail on the right) */
@media (min-width: 992px) {
  /* Hide the standard full chat pane on group pages until rail mode is applied (AJAX nav) */
  body.wo-page-group .chat-all-container:not(.wo-group-chat-rail) .chat-container {
    visibility: hidden;
    pointer-events: none;
  }

  body.wo-page-group {
    --wo-group-chat-rail-width: 60px;
    --wo-group-page-rail-space: calc(var(--wo-group-chat-rail-width) + 16px);
    --wo-group-page-block-width: calc(var(--fb-group-max-width) + 20px);
  }

  body.wo-page-group .content-container.container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  body.wo-page-group .content-container.container #contnet {
    width: 100%;
    max-width: var(--wo-group-page-block-width);
    margin-left: max(12px, calc((100vw - var(--wo-group-page-block-width) - var(--wo-group-page-rail-space)) / 2));
    margin-right: auto;
    box-sizing: border-box;
  }

  body.wo-page-group .row.page-margin.wo_group_profile {
    width: 100%;
    max-width: var(--wo-group-page-block-width);
    margin-left: 0;
    margin-right: 0;
  }

  body.wo-page-group .wo_group_profile .profile-container {
    max-width: var(--wo-group-page-block-width);
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  body.wo-lang-rtl.wo-page-group .content-container.container #contnet {
    margin-left: auto;
    margin-right: max(12px, calc((100vw - var(--wo-group-page-block-width) - var(--wo-group-page-rail-space)) / 2));
  }
}

/* Group page — compact vertical chat rail (revert via _backups/20260603-group-chat-rail) */
@media (min-width: 768px) {
  body.wo-page-group .wo-group-chat-rail .chat-container,
  body.wo-page-group .wo-group-chat-rail .chat-container.wo-group-chat-rail-mode {
    --wo-group-chat-rail-width: 60px;
    --wo-group-chat-rail-avatar: 44px;
    width: var(--wo-group-chat-rail-width);
    min-width: var(--wo-group-chat-rail-width);
    max-width: var(--wo-group-chat-rail-width);
    height: auto;
    max-height: calc(100vh - var(--fb-navbar-height, 56px) - 12px);
    top: calc(var(--fb-navbar-height, 56px) + 6px);
    bottom: auto;
    right: 8px;
    padding: 8px 4px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible;
    z-index: 66;
  }

  body.wo-page-group .wo-group-chat-rail .chat-container .online-toggle,
  body.wo-page-group .wo-group-chat-rail .chat-container .wow_chat_search,
  body.wo-page-group .wo-group-chat-rail .chat-container .chat-opacity {
    display: none !important;
  }

  body.wo-page-group .wo-group-chat-rail .online-content-toggler {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-height: calc(100vh - var(--fb-navbar-height, 56px) - 120px);
    overflow-x: hidden;
    overflow-y: auto;
    flex: none;
    scrollbar-width: thin;
  }

  body.wo-page-group .wo-group-chat-rail .wo_chat_tabs {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    padding: 0;
    width: 100%;
  }

  body.wo-page-group .wo-group-chat-rail .wo_chat_tabs li {
    float: none;
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  body.wo-page-group .wo-group-chat-rail .wo_chat_tabs li a {
    width: var(--wo-group-chat-rail-avatar);
    height: var(--wo-group-chat-rail-avatar);
    min-width: var(--wo-group-chat-rail-avatar);
    padding: 0;
    margin: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fb-text-secondary, #65676b);
    background: var(--card-bg, #fff) !important;
    box-shadow: 0 0 0 1px var(--fb-border, #e4e6eb);
  }

  body.wo-page-group .wo-group-chat-rail .wo_chat_tabs li a:hover {
    background: var(--fb-surface-muted, #f0f2f5) !important;
  }

  body.wo-page-group .wo-group-chat-rail .wo_chat_tabs li.active a {
    background: var(--card-bg, #fff) !important;
    box-shadow: 0 0 0 2px var(--fb-blue, #1877f2);
    color: var(--fb-blue, #1877f2);
  }

  body.wo-page-group .wo-group-chat-rail .wo_chat_tabs li a svg {
    width: 20px;
    height: 20px;
    margin: 0;
  }

  body.wo-page-group .wo-group-chat-rail .tab-content {
    width: 100%;
  }

  body.wo-page-group .wo-group-chat-rail .online-users,
  body.wo-page-group .wo-group-chat-rail .offline-users,
  body.wo-page-group .wo-group-chat-rail .chat_groups {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  body.wo-page-group .wo-group-chat-rail .recipient-chat-user {
    position: relative;
    width: 100%;
    padding: 4px 0;
    margin: 0;
    background: transparent !important;
    border-radius: 0;
  }

  body.wo-page-group .wo-group-chat-rail .recipient-chat-user:hover {
    background: transparent !important;
  }

  body.wo-page-group .wo-group-chat-rail .recipient-chat-user .user-info {
    position: relative;
    display: block;
    width: var(--wo-group-chat-rail-avatar);
    height: var(--wo-group-chat-rail-avatar);
    margin: 0 auto;
    padding: 0;
  }

  body.wo-page-group .wo-group-chat-rail .recipient-chat-user img {
    width: var(--wo-group-chat-rail-avatar);
    min-width: var(--wo-group-chat-rail-avatar);
    height: var(--wo-group-chat-rail-avatar);
    margin: 0;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  }

  body.wo-page-group .wo-group-chat-rail .recipient-chat-user .chat-user-text {
    display: none !important;
  }

  body.wo-page-group .wo-group-chat-rail .recipient-chat-user .wow_chat_list-right {
    position: absolute;
    inset: 0;
    margin: 0;
    pointer-events: none;
    display: block;
  }

  body.wo-page-group .wo-group-chat-rail .recipient-chat-user .new-message-alert {
    position: absolute;
    top: -3px;
    right: -3px;
    margin: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    z-index: 3;
    border: 2px solid var(--card-bg, #fff);
    border-radius: 50%;
    background: #e41e3f;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.wo-page-group .wo-group-chat-rail .recipient-chat-user .new-message-alert.hidden {
    display: none !important;
  }

  body.wo-page-group .wo-group-chat-rail .recipient-chat-user .wow_chat_list-right > svg {
    display: none;
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 13px !important;
    height: 13px !important;
    margin: 0;
    z-index: 2;
    background: var(--card-bg, #fff);
    border-radius: 50%;
    box-sizing: content-box;
    padding: 1px;
  }

  body.wo-page-group .wo-group-chat-rail .recipient-chat-user .wow_chat_list-right > svg:has(path[fill="#60d465"]) {
    display: block;
  }

  body.wo-page-group .wo-group-chat-rail .recipient-chat-user .chat-loading-icon {
    position: absolute;
    inset: 0;
    width: var(--wo-group-chat-rail-avatar);
    height: var(--wo-group-chat-rail-avatar);
    right: auto;
    top: auto;
    transform: none;
    margin: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
  }

  body.wo-page-group .wo-group-chat-rail .recipient-chat-user .chat-loading-icon:empty {
    width: 0;
    height: 0;
    display: none;
  }

  body.wo-page-group .wo-group-chat-rail .clear,
  body.wo-page-group .wo-group-chat-rail .empty_state {
    display: none !important;
  }

  body.wo-page-group .chat-tab .chat_main {
    right: calc(var(--wo-group-chat-rail-width, 60px) + 24px);
  }

  body.wo-page-group .chat-tab .chat_main:nth-child(2) {
    right: calc(var(--wo-group-chat-rail-width, 60px) + 24px + 315px);
  }

  body.wo-page-group .chat-tab .chat_main:nth-child(3) {
    right: calc(var(--wo-group-chat-rail-width, 60px) + 24px + 630px);
  }
}

body.wo-lang-rtl.wo-page-group .wo-group-chat-rail .chat-container,
body.wo-lang-rtl.wo-page-group .wo-group-chat-rail .chat-container.wo-group-chat-rail-mode {
  right: auto;
  left: 8px;
}

body.wo-lang-rtl.wo-page-group .wo-group-chat-rail .recipient-chat-user .new-message-alert {
  right: auto;
  left: -3px;
}

body.wo-lang-rtl.wo-page-group .wo-group-chat-rail .recipient-chat-user .wow_chat_list-right > svg {
  right: auto;
  left: -1px;
}

html.wo-night-mode body.wo-page-group .wo-group-chat-rail .wo_chat_tabs li a,
body.wo-night-mode.wo-page-group .wo-group-chat-rail .wo_chat_tabs li a {
  background: var(--card-bg, #2a2a2a) !important;
  box-shadow: 0 0 0 1px var(--fb-border, #3d3d3d);
}

html.wo-night-mode body.wo-page-group .wo-group-chat-rail .recipient-chat-user .new-message-alert,
body.wo-night-mode.wo-page-group .wo-group-chat-rail .recipient-chat-user .new-message-alert {
  background: #e41e3f !important;
  color: #fff !important;
  border-color: var(--card-bg, #2a2a2a);
}

html.wo-night-mode body.wo-page-group .wo-group-chat-rail .recipient-chat-user .wow_chat_list-right > svg,
body.wo-night-mode.wo-page-group .wo-group-chat-rail .recipient-chat-user .wow_chat_list-right > svg {
  background: var(--card-bg, #2a2a2a);
}

/* ── Modern confirmation dialogs (delete post/comment, etc.) ── */
.modal.wo-confirm-modal .modal-dialog.wo-confirm-modal__dialog {
  width: min(420px, calc(100vw - 32px));
  margin: 16px auto;
}

.modal.wo-confirm-modal .wo-confirm-modal__card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fb-border, rgba(0, 0, 0, 0.08));
  border-radius: 20px;
  background: var(--card-bg, #fff);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.06);
  padding: 0;
  transform: scale(0.94) translateY(8px);
  opacity: 0;
  transition:
    transform 0.24s cubic-bezier(0.34, 1.45, 0.64, 1),
    opacity 0.2s ease;
}

.modal.wo-confirm-modal.in .wo-confirm-modal__card,
.modal.wo-confirm-modal.show .wo-confirm-modal__card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal.wo-confirm-modal .wo-confirm-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted, #65676b);
  opacity: 1;
  float: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal.wo-confirm-modal .wo-confirm-modal__close:hover,
.modal.wo-confirm-modal .wo-confirm-modal__close:focus {
  background: var(--fb-hover, rgba(0, 0, 0, 0.06));
  color: var(--body-color, #050505);
  outline: none;
}

.modal.wo-confirm-modal .wo-confirm-modal__body {
  padding: 36px 28px 8px;
  text-align: center;
}

.modal.wo-confirm-modal .wo-confirm-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
}

.modal.wo-confirm-modal .wo-confirm-modal__icon--danger {
  background: linear-gradient(145deg, rgba(228, 30, 63, 0.14), rgba(228, 30, 63, 0.06));
  color: #e41e3f;
  box-shadow: 0 0 0 1px rgba(228, 30, 63, 0.12);
}

.modal.wo-confirm-modal .wo-confirm-modal__icon--warning {
  background: linear-gradient(145deg, rgba(247, 185, 40, 0.18), rgba(247, 185, 40, 0.06));
  color: #d4a017;
  box-shadow: 0 0 0 1px rgba(247, 185, 40, 0.2);
}

.modal.wo-confirm-modal .wo-confirm-modal__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--body-color, #050505);
}

.modal.wo-confirm-modal .wo-confirm-modal__message {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted, #65676b);
}

.modal.wo-confirm-modal .wo-confirm-modal__actions {
  display: flex;
  gap: 10px;
  padding: 20px 24px 24px;
}

.modal.wo-confirm-modal .wo-confirm-modal__actions .btn {
  flex: 1 1 0;
  min-height: 44px;
  margin: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 16px;
  box-shadow: none;
}

.modal.wo-confirm-modal .wo-confirm-modal__cancel {
  border: 1px solid var(--fb-border, #ccd0d5) !important;
  background: var(--card-bg, #fff) !important;
  color: var(--body-color, #050505) !important;
}

.modal.wo-confirm-modal .wo-confirm-modal__cancel:hover,
.modal.wo-confirm-modal .wo-confirm-modal__cancel:focus {
  background: var(--fb-hover, #f0f2f5) !important;
}

.modal.wo-confirm-modal .wo-confirm-modal__confirm--danger {
  border: 0 !important;
  background: linear-gradient(180deg, #e41e3f 0%, #d4183a 100%) !important;
  color: #fff !important;
}

.modal.wo-confirm-modal .wo-confirm-modal__confirm--danger:hover,
.modal.wo-confirm-modal .wo-confirm-modal__confirm--danger:focus {
  background: linear-gradient(180deg, #d4183a 0%, #c01434 100%) !important;
  color: #fff !important;
}

.modal.wo-confirm-modal .wo-confirm-modal__confirm--primary {
  border: 0 !important;
  background: var(--main, #1877f2) !important;
  color: #fff !important;
}

.modal.wo-confirm-modal .wo-confirm-modal__loader {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  align-items: center;
  justify-content: center;
  margin: 0;
  float: none;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.modal.wo-confirm-modal .wo-confirm-modal__loader.ball-pulse {
  line-height: 0;
}

.modal.wo-confirm-modal .wo-confirm-modal__loader.ball-pulse > div {
  background-color: #e41e3f;
}

body > .modal.wo-confirm-modal.in + .modal-backdrop,
body > .modal.wo-confirm-modal.show + .modal-backdrop,
.modal.wo-confirm-modal.in + .modal-backdrop,
.modal.wo-confirm-modal.show + .modal-backdrop {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.42) !important;
  opacity: 1 !important;
}

html.wo-night-mode .modal.wo-confirm-modal .wo-confirm-modal__card,
body.wo-night-mode .modal.wo-confirm-modal .wo-confirm-modal__card {
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px var(--fb-border, #3d3d3d);
}

html.wo-night-mode .modal.wo-confirm-modal .wo-confirm-modal__loader,
body.wo-night-mode .modal.wo-confirm-modal .wo-confirm-modal__loader {
  background: rgba(36, 37, 38, 0.88);
}

.modal.wo-confirm-modal .wo-confirm-modal__loader.ball-pulse[style*="display: block"] {
  display: flex !important;
}

body.wo-lang-rtl .modal.wo-confirm-modal .wo-confirm-modal__close {
  right: auto;
  left: 14px;
}

/* AJAX page transition loading skeleton */
.wo-ajax-page-load {
  padding: 8px 0 24px;
}

.wo-ajax-page-load__inner {
  max-width: 680px;
  margin: 0 auto;
}

.wo-ajax-page-load .wo_loading_post {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
