/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Global
# Activity Page
# Reaction Popup
# Single Post
    # Layout 1
# Sidebar Widgets
# bbPress Support
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Colour tokens
Each one follows the active theme, in this order: BuddyX / BuddyX Pro
(--bx-color-*), then Reign (--reign-*), then the theme.json palette
(--wp--preset--color--*), then a neutral literal. The theme tokens already
switch with the site's light/dark mode, so reactions match the page.
--------------------------------------------------------------*/
:root {
    --bpr-surface: var(--bx-color-bg-elevated, var(--reign-site-sections-bg-color, var(--wp--preset--color--base, #fff)));
    --bpr-surface-muted: var(--bx-color-bg-muted, var(--reign-site-secondary-bg-color, color-mix(in srgb, var(--bpr-fg) 5%, var(--bpr-surface))));
    --bpr-fg: var(--bx-color-fg, var(--reign-site-body-text-color, var(--wp--preset--color--contrast, #111827)));
    /* Any other theme: a faint line mixed from its own text and surface colours, so dark palettes get a dark line. */
    --bpr-border: var(--bx-color-border, var(--reign-site-border-color, color-mix(in srgb, var(--bpr-fg) 14%, var(--bpr-surface))));
    /* Fills and highlights use the button colour: link colours go near-white in dark mode. */
    --bpr-accent: var(--bx-color-button-bg, var(--reign-site-button-bg-color, var(--wp--preset--color--primary, #3b82f6)));
    --bpr-on-accent: var(--bx-color-button-fg, var(--reign-site-button-text-color, #fff));
    --bpr-danger: var(--bx-color-error, var(--reign-color-error, #d63638));
    --bpr-shadow: rgba(94, 92, 154, 0.12);
    --bpr-shadow-strong: rgba(0, 0, 0, 0.15);
    /* Derived: re-declared in the dark block so they follow its values. */
    --bpr-fg-muted: color-mix(in srgb, var(--bpr-fg) 85%, var(--bpr-surface));
    --bpr-tint: color-mix(in srgb, var(--bpr-fg) 5%, transparent);
    --bpr-track: color-mix(in srgb, var(--bpr-fg) 12%, var(--bpr-surface));
    --bpr-scrollbar: color-mix(in srgb, var(--bpr-fg) 25%, transparent);
    /* Count badges invert the surface so they read on any background. */
    --bpr-tooltip-bg: var(--bpr-fg);
    --bpr-tooltip-fg: var(--bpr-surface);
    --bpr-scrim: rgba(21, 21, 31, 0.96);
}

/*
 * Dark mode: the site owner's explicit toggle only, never prefers-color-scheme.
 * Only the last-resort literals change. Other themes need no block here:
 * the light tokens already follow their theme.json base/contrast palette,
 * including dark style variations.
 */
[data-bx-mode="dark"],
.buddyx-dark-theme {
    --bpr-surface: var(--bx-color-bg-elevated, var(--reign-site-sections-bg-color, #1e1e1e));
    --bpr-surface-muted: var(--bx-color-bg-muted, var(--reign-site-secondary-bg-color, #262626));
    --bpr-fg: var(--bx-color-fg, var(--reign-site-body-text-color, #f5f5f5));
    --bpr-border: var(--bx-color-border, var(--reign-site-border-color, #3d3d3d));
    --bpr-accent: var(--bx-color-button-bg, var(--reign-site-button-bg-color, #72aee6));
    --bpr-on-accent: var(--bx-color-button-fg, var(--reign-site-button-text-color, #1e1e1e));
    --bpr-danger: var(--bx-color-error, var(--reign-color-error, #f86368));
    --bpr-shadow: rgba(0, 0, 0, 0.5);
    --bpr-shadow-strong: rgba(0, 0, 0, 0.6);
    /* Derived: re-declared in the dark block so they follow its values. */
    --bpr-fg-muted: color-mix(in srgb, var(--bpr-fg) 85%, var(--bpr-surface));
    --bpr-tint: color-mix(in srgb, var(--bpr-fg) 5%, transparent);
    --bpr-track: color-mix(in srgb, var(--bpr-fg) 12%, var(--bpr-surface));
    --bpr-scrollbar: color-mix(in srgb, var(--bpr-fg) 25%, transparent);
    /* Count badges invert the surface so they read on any background. */
    --bpr-tooltip-bg: var(--bpr-fg);
    --bpr-tooltip-fg: var(--bpr-surface);
    --bpr-scrim: rgba(21, 21, 31, 0.96);
}


/*--------------------------------------------------------------
# Global
--------------------------------------------------------------*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

.ellipsis {
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
    overflow: hidden;
}


/*--------------------------------------------------------------
# Activity Page
--------------------------------------------------------------*/

.bp-activity-react-button-wrapper {
    position: relative;
}

/* Hide text when an emoji reaction is selected */
.bp-activity-react-button .emoji-pick ~ .bp-react-button-text,
.bp-activity-react-button .emoji-pick ~ .bp-activity-react-button-text {
    display: none !important;
}


#buddypress .generic-button .bp-activity-react-button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.bp-activity-reactions {
    position: absolute;
    z-index: 99;
    bottom: 54px;
    left: 0;
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translate(0px, 20px);
    -ms-transform: translate(0px, 20px);
    transform: translate(0px, 20px);
    -webkit-transition: -webkit-transform 0.3s ease-in-out 0s, opacity 0.3s ease-in-out 0s, visibility 0.3s ease-in-out 0s;
    transition: transform 0.3s ease-in-out 0s, opacity 0.3s ease-in-out 0s, visibility 0.3s ease-in-out 0s;
}

.bp-activity-react-button-wrapper:hover .bp-activity-reactions,
.bp-activity-react-button-wrapper:focus-within .bp-activity-reactions {
    opacity: 1;
    visibility: visible;
}

/* Escape, or a pick, closes the picker until the pointer or focus leaves. */
.bp-activity-react-button-wrapper.bpr-picker-closed .bp-activity-reactions {
    opacity: 0;
    visibility: hidden;
}

.bp-activity-react-button:focus-visible,
.reaction-options .emoji-pick:focus-visible,
.wbreacted-emoji-container:focus-visible,
.total-reaction-counts:focus-visible,
.reaction-popup-close-button:focus-visible,
.reaction-box-option:focus-visible {
    outline: 2px solid var(--bpr-accent);
    outline-offset: 2px;
}

.reaction-options .emoji-pick:focus-visible {
    border-radius: 50%;
}

.emoji-picker {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 54px;
    padding: 0 10px;
    border-radius: 100px !important;
    background-color: var(--bpr-surface);
    color: var(--bpr-fg);
    /* The 1px ring gives the picker an edge on dark cards, where the shadow vanishes. */
    box-shadow: 0 0 0 1px var(--bpr-border), var(--bpr-shadow) 0px 0px 40px 0px;
}

.emoji-picker .emoji-pick {
    cursor: pointer;
}

.emoji-picker .emoji-pick:hover {
    -webkit-transform: scale(1.15) translate(0, -4px) translateZ(0);
    transform: scale(1.15) translate(0, -4px) translateZ(0);
    -webkit-transition: -webkit-transform 200ms;
    transition: transform 200ms;
}

.emoji-picker .emoji-pick .emoji-lottie-holder {
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
}

.emoji-picker .emoji-pick .emoji-svg-holder {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 38px;
    height: 38px;
    margin: 6px;
    padding: 0;
}

@media screen and (max-width: 543px) {
    .emoji-picker {
        height: 34px;
        padding: 0 8px;
    }

    .emoji-picker .emoji-pick .emoji-lottie-holder {
        width: 33px;
        height: 33px;
    }

    .emoji-picker .emoji-pick .emoji-svg-holder {
        width: 25px;
        height: 25px;
        margin: 4px;
    }
}

.icon-thumbs-up i {
    font-size: 18px;
    margin-right: 5px;
}

.icon-thumbs-up i::before {
    margin-left: 0;
    margin-right: 0;
}

.bp-post-react-icon img {
    width: 24px !important;
    margin-right: 5px;
}

.bp-post-react-icon .emoji-lottie-holder {
    width: 33px;
    height: 33px;
}

.bp-post-react-icon .emoji-svg-holder {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 24px;
    height: 24px;
    margin: 5px;
    padding: 0;
}

.content-actions {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: justify;
    -webkit-box-pack: justify;
    justify-content: space-between;
    -ms-flex-align: center;
    -webkit-box-align: center;
    align-items: center;
    height: 52px;
    position: relative;
}

.content-actions .wbreacted-waiting {
    position: absolute;
    top: 0;
    background: var(--bpr-surface);
}

.content-actions .content-action {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.meta-line {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-align: center;
    -webkit-box-align: center;
    align-items: center;
}

.meta-line .meta-line-text {
    font-size: 0.75rem;
    font-weight: 700;
}

.meta-line .meta-line-text.meta-line-text-trigger {
    cursor: pointer;
}

.meta-line .meta-line-list+.meta-line-text {
    margin-left: 10px;
}

.reaction-item-list {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: end;
    -webkit-box-pack: end;
    justify-content: flex-end;
    -ms-flex-direction: row-reverse;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    flex-direction: row-reverse;
}

.reaction-item-list .reaction-item-wrap {
    margin-left: -6px;
}

/* The list runs row-reverse, so "+N" needs the first flex slot to sit after the icons. */
.reaction-item-list .more-reactions {
    order: -1;
    margin-inline-start: 4px;
}

/* "+5" / "+12" must stay on one line: grow the 24px circle into a pill. */
.reaction-item-list .more-reactions .reaction-item {
    width: auto;
    min-width: 24px;
    padding-inline: 4px;
    white-space: nowrap;
    font-size: 12px;
    box-sizing: border-box;
}

.reaction-item-list .reaction-item {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: center;
    -webkit-box-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    -webkit-box-align: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50% !important;
    background-color: var(--bpr-tint);
    margin-left: -6px;
}

.reaction-item-list .reaction-item-wrap:last-child,
.reaction-item-list .reaction-item:last-child {
    margin-left: 0;
}

.reaction-image {
    width: 20px;
    height: 20px;
}

.reaction-item-list .reaction-item>.reaction-image {
    cursor: pointer;
}

.simple-dropdown {
    width: 140px;
    padding: 12px 16px 16px;
    border-radius: 12px !important;
    background-color: var(--bpr-surface);
    color: var(--bpr-fg);
    box-shadow: var(--bpr-shadow) 0px 0px 40px 0px;
}

.reaction-list-dropdown {
    position: absolute;
    z-index: 9999;
    bottom: 38px;
    left: 0;
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translate(0px, 20px);
    -ms-transform: translate(0px, 20px);
    transform: translate(0px, 20px);
    -webkit-transition: -webkit-transform 0.3s ease-in-out 0s, opacity 0.3s ease-in-out 0s, visibility 0.3s ease-in-out 0s;
    transition: transform 0.3s ease-in-out 0s, opacity 0.3s ease-in-out 0s, visibility 0.3s ease-in-out 0s;
}

.reaction-item:hover .reaction-list-dropdown {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translate(0px, 0px);
    -ms-transform: translate(0px, 0px);
    transform: translate(0px, 0px);
}

.simple-dropdown .simple-dropdown-text {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-align: center;
    -webkit-box-align: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
}

.reaction-item-list .reaction-item .simple-dropdown .simple-dropdown-text:first-child {
    margin-bottom: 10px;
}

.simple-dropdown-text .reaction {
    width: 20px;
    height: 20px;
    margin: 0 2px;
    position: relative;
    top: -2px;
}

.simple-dropdown-text .reaction:first-child {
    margin-left: 0;
}

.simple-dropdown .simple-dropdown-text .reaction {
    margin-right: 4px;
}

.simple-dropdown .simple-dropdown-text .bold {
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
    overflow: hidden
}

.simple-dropdown .simple-dropdown-text+.simple-dropdown-text {
    margin-top: 4px;
}

.simple-dropdown ul.reacted-users {
    margin: 0;
    padding: 0;
    list-style: none;
}

.simple-dropdown ul.reacted-users li {
    margin: 0 0 5px;
    padding: 0;
}

.simple-dropdown ul.reacted-users li:last-child {
    margin: 0;
}


/* Comments Reaction */

.activity-comments .generic-button {
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
}

.bp-react-activity-comment {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    float: left;
    margin-right: 4px;
}

.bp-react-activity-comment .emoji-picker {
    height: 34px;
    padding: 0 8px;
}

.bp-react-activity-comment .emoji-picker .emoji-pick .emoji-lottie-holder {
    width: 33px;
    height: 33px;
}

.bp-react-activity-comment .emoji-picker .emoji-pick .emoji-svg-holder {
    width: 25px;
    height: 25px;
    margin: 4px;
}

.bp-react-activity-comment .content-actions {
    height: auto;
    margin-right: 20px;
}


.bp-nouveau .buddypress-wrap .activity-comments ul.reacted-users {
    margin-top: 0;
}

/* Activity Media Popup */
.bb-media-model-container .emoji-picker {
    height: auto;
}
@media screen and (max-width: 359px) {
    .bb-media-model-container .emoji-picker {
        -ms-flex-flow: row wrap;
        flex-flow: row wrap;
        width: 250px;
    }
}

.bb-media-model-container .generic-button.bp-activity-react-button-wrapper {
    order: 1 !important;
}

.bb-media-model-container .emoji-picker .emoji-pick .emoji-lottie-holder {
    width: 33px;
    height: 33px;
}

/*--------------------------------------------------------------
# Reaction Popup
--------------------------------------------------------------*/

@-webkit-keyframes slideDown {
    0% {
        opacity: 0;
        -webkit-transform: translate(0, -20px);
        transform: translate(0, -20px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        -webkit-transform: translate(0, -20px);
        transform: translate(0, -20px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }
}

.bp-reactions-overlay {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: center;
    -webkit-box-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    -webkit-box-align: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: var(--bpr-scrim);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    overflow: hidden auto;
}


/* .bp-reaction-popup.bp-reaction-popup-users {
    display: block;
} */

.bp-reaction-pop-container {
    width: 90%;
    max-width: 900px;
    position: relative;
}

.animate-slide-down {
    opacity: 0;
    -webkit-transform: translate(0, -20px);
    -ms-transform: translate(0, -20px);
    transform: translate(0, -20px);
    -webkit-animation: slideDown .4s ease-in-out forwards;
    animation: slideDown .4s ease-in-out forwards;
    -webkit-transition: opacity .4s ease-in-out, -webkit-transform .4s ease-in-out;
    transition: opacity .4s ease-in-out, -webkit-transform .4s ease-in-out;
    transition: transform .4s ease-in-out, opacity .4s ease-in-out;
    -webkit-transition: -webkit-transform .4s ease-in-out, opacity .4s ease-in-out, -webkit-transform .4s ease-in-out;
    transition: transform .4s ease-in-out, opacity .4s ease-in-out, -webkit-transform .4s ease-in-out;
}

.bp-reaction-pop-container {
    max-width: 484px;
    margin: auto;
    margin-top: 60px;
    margin-bottom: 60px;
}

.reaction-box {
    border-radius: 12px !important;
    background-color: var(--bpr-surface);
    color: var(--bpr-fg);
    box-shadow: var(--bpr-shadow) 0px 0px 40px 0px;
}

.reaction-popup-close-button {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: center;
    -webkit-box-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    -webkit-box-align: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: var(--bpr-danger);
    color: var(--bpr-surface);
    cursor: pointer;
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 2;
    -webkit-transition: background-color .2s ease-in-out;
    transition: background-color .2s ease-in-out;
}

.reaction-box .reaction-box-options {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    height: 52px;
    padding: 0 28px;
    border-bottom: 1px solid var(--bpr-border);
}

.reaction-box .reaction-box-options ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-align: center;
    -webkit-box-align: center;
    align-items: center;
    margin-right: 12px;
    cursor: pointer;
}

.reaction-box .reaction-box-options ul .reaction-box-option {
    font-size: 0.75rem;
    font-weight: 700;
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-align: center;
    -webkit-box-align: center;
    align-items: center;
    margin-right: 12px;
    border-bottom: 4px solid transparent;
    cursor: pointer;
    height: 100%;
}

.reaction-box .reaction-box-options ul .reaction-box-option.active {
    border-bottom-color: var(--bpr-fg);
}

.reaction-box .reaction-box-options ul .reaction-box-option p {
    margin: 0;
    padding: 0;
}

.reaction-box .reaction-box-options ul .reaction-box-option img {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    position: relative;
    top: -1px;
}

.reaction-box .reaction-box-content .reaction-box-item {
    height: 406px;
    padding: 32px 28px;
    overflow-y: auto;
}

.reaction-box .user-status {
    min-height: 44px;
    padding: 2px 0 0 60px;
    position: relative;
}

.reaction-box .user-status-list .user-status {
    margin-bottom: 22px;
}

.reaction-box .user-status.request-small {
    padding-right: 48px;
}

.reaction-box .user-avatar-circle img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--bpr-surface);
    position: relative;
}

.reaction-box .user-status .user-status-avatar {
    position: absolute;
    top: 0;
    left: 0;
}

.reaction-box .user-avatar-circle.no-border.no-stats.small {
    width: 44px;
    height: 44px;
}

.reaction-box .user-status.request .user-status-title,
.reaction-box .user-status.request-small .user-status-title {
    margin-top: 2px;
    line-height: 1.1428571429em;
}

.reaction-box .user-status .user-status-title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4285714286em;
    word-break: break-word;
}

.reaction-box .user-status .action-request-list {
    position: absolute;
    top: 2px;
    right: 0;
}

.reaction-box .action-request-list {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
}

.reaction-box .user-status .user-status-reaction-image {
    width: 20px;
    height: auto;
}


/*--------------------------------------------------------------
## Layout 1 (Single Post)
--------------------------------------------------------------*/

.post-footer-content-actiions {
    margin: 1rem 0 0;
}

.bp-reactions-layout-1 {
    background: var(--bpr-surface);
    padding: 30px;
    border: 1px solid var(--bpr-border);
    border-radius: 4px;
}

.bp-reactions-layout-1 .emoji-picker {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    /* Wrap instead of spilling out of narrow columns such as a sidebar widget.
       Auto height + row gap leave room for each row's count badge; 27px is a
       pill on one row and a rounded panel when the row wraps. */
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    height: auto;
    min-height: 54px;
    row-gap: 18px;
    padding-block: 16px 6px;
    border-radius: 27px !important;
}

.bp-reactions-layout-1 .bp-reactions-container {
    max-width: 100%;
    min-width: 0;
}

.bp-reactions-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    clear: both;
    padding-top: 30px;
    padding-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.bp-reactions-wrap.bp-reactions-left {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

.bp-reactions-wrap.bp-reactions-center {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.bp-reactions-wrap.bp-reactions-right {
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.bp-reactions-center .bp-reactions-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    -ms-flex-align: center;
    -webkit-box-align: center;
    align-items: center;
}

.bp-reaction-call-to-action {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: var(--bpr-fg);
    line-height: 1.2;
    max-width: 100%;
    margin-bottom: 35px;
    text-decoration: none;
}

.bp-reactions-layout-1 .emoji-pick {
    cursor: pointer;
    position: relative;
    padding: 0;
}

.bp-reactions-layout-1 .emoji-pick:hover,
.bp-reactions-layout-1 .emoji-pick.active {
    -webkit-transform: scale(1.15) translate(0, -4px) translateZ(0);
    transform: scale(1.15) translate(0, -4px) translateZ(0);
    -webkit-transition: -webkit-transform 200ms;
    transition: transform 200ms;
}

.bp-emoji-arrow-badge {
    text-align: center;
    min-width: 27px;
    height: 16px;
    background-color: var(--bpr-tooltip-bg);
    position: absolute;
    border-radius: 3px;
    color: var(--bpr-tooltip-fg);
    font-size: 12px;
    line-height: 13px;
    font-weight: 300;
    padding: 2px 4px;
    z-index: 2;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    white-space: nowrap;
}

.bp-reactions-layout-1 .bp-emoji-arrow-badge {
    top: -20px;
}

.bp-reactions-layout-1 .emoji-pick.active .bp-emoji-arrow-badge {
    top: -16px;
}

.bp-reactions-layout-1 .emoji-pick .emoji-lottie-holder {
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
}

.bp-reactions-layout-1 .emoji-pick .emoji-svg-holder {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 38px;
    height: 38px;
    margin: 6px;
    padding: 0;
}

.bp-reactions-layout-1 .emoji-pick.active .emoji-svg-holder,
.bp-reactions-layout-1 .emoji-pick:hover .emoji-svg-holder {
    width: 38px;
    height: 38px;
    margin: 6px;
}

@media screen and (max-width: 543px) {
    .bp-reactions-layout-1 .emoji-pick .emoji-lottie-holder {
        width: 33px;
        height: 33px;
    }

    .bp-reactions-layout-1 .emoji-pick .emoji-svg-holder {
        width: 25px;
        height: 25px;
        margin: 4px;
    }
    
    .bp-reactions-layout-1 .emoji-pick.active .emoji-svg-holder,
    .bp-reactions-layout-1 .emoji-pick:hover .emoji-svg-holder {
        width: 25px;
        height: 25px;
        margin: 4px;
    }
}


/*--------------------------------------------------------------
# Sidebar Widgets
--------------------------------------------------------------*/

.widget_bp_reactions_list_widget .wp-reactions-lists-container {
    margin: -10px !important;
}

.widget_bp_reactions_list_widget ul.wp-reactions-lists {
    margin: 0 !important;
    padding: 1px 2px !important;
    list-style: none;
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: center;
    -webkit-box-pack: center;
    justify-content: center;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
}

.widget_bp_reactions_list_widget ul.wp-reactions-lists li {
    width: -webkit-calc(50% - 20px);
    width: calc(50% - 20px);
    margin: 10px;
    padding: 10px;
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-direction: column;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    -ms-flex-align: center;
    -webkit-box-align: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 1px 1px var(--bpr-border);
}

.widget_bp_reactions_list_widget ul.wp-reactions-lists li .reaction-image {
    width: 40px;
    height: 40px;
}

.widget_bp_reactions_list_widget ul.wp-reactions-lists li span.count {
    margin-top: 10px;
    font-size: 1.375rem;
    font-weight: 700;
}

.widget_bp_reactions_list_widget ul.wp-reactions-lists li span.wp-emoji-name {
    margin-top: 8px;
    color: var(--bpr-fg-muted);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: none;
}

/*--------------------------------------------------------------
# bbPress Support
--------------------------------------------------------------*/
.bbp-reply-footer .bbp-meta .bp-activity-react-button-wrapper,
#bbpress-forums ul.bbp-lead-topic .bbp-body .bbp-topic-footer .bbp-meta .bp-activity-react-button-wrapper {
    display: inline-block;
    margin-right: 15px;
    vertical-align: middle;
}

.bbp-reply-footer .bbp-meta .bp-activity-react-btn a.bp-activity-react-button,
#bbpress-forums ul.bbp-lead-topic .bbp-body .bbp-topic-footer .bbp-meta .bp-activity-react-btn a.bp-activity-react-button {
    background: 0 0 !important;
    border-radius: 25px;
    padding: 0;
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-animation: none !important;
    animation: none !important;
    cursor: pointer;
}

.bbp-reply-footer .bbp-meta .bp-post-react-icon,
#bbpress-forums ul.bbp-lead-topic .bbp-body .bbp-topic-footer .bbp-meta .bp-post-react-icon {
    line-height: normal;
}

.bbp-topic-content .simple-dropdown ul.reacted-users,
.bbp-reply-content .simple-dropdown ul.reacted-users {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.bbp-topic-content .simple-dropdown ul.reacted-users li,
.bbp-reply-content .simple-dropdown ul.reacted-users li {
    list-style: none !important;
}

@media screen and (max-width: 400px) {
    .bbp-reply-footer .bbp-meta .bp-activity-react-button-wrapper .bp-activity-reactions,
    #bbpress-forums ul.bbp-lead-topic .bbp-body .bbp-topic-footer .bbp-meta .bp-activity-react-button-wrapper .bp-activity-reactions {
        left: -60px;
    }
}

/* Update spacing of emojis (201-204) */
.emoji-pick[title*="Mask"] .emoji-lottie-holder,
.emoji-pick[title*="Pinching"] .emoji-lottie-holder,
.emoji-pick[title*="Brain"] .emoji-lottie-holder,
.emoji-pick[title*="Notes"] .emoji-lottie-holder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-pick[title*="Mask"] svg,
.emoji-pick[title*="Pinching"] svg,
.emoji-pick[title*="Brain"] svg,
.emoji-pick[title*="Notes"] svg {
    width: 36px !important;
    height: 36px !important;
}

/* Guests see counts and the hover list; who-reacted opens for members only. */
body:not(.logged-in) .wbreacted-emoji-container,
body:not(.logged-in) .reaction-item-list .reaction-item > .reaction-image,
body:not(.logged-in) .meta-line .meta-line-text.meta-line-text-trigger {
	cursor: default;
}

/*
 * BuddyPress Nouveau clips activity comments (overflow: hidden, to contain its
 * floated avatars), which cut the emoji picker off on narrow screens.
 * flow-root contains the floats the same way without clipping.
 */
body .buddypress-wrap .activity-comments {
    display: flow-root;
    overflow: visible;
}
