/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
.bpsp-pinned-post-tag {
    position: absolute;
    top: 0;
    display: none;
    width: 120px;
    height: 120px;
    overflow: hidden;
    right: 0;
}

[dir='rtl'] .bpsp-pinned-post-tag {
    left: 0;
    right: auto;
}

span.bpsp-txt-title {
    display: none !important;
}

.bpsp-pinned-post-tag>span {
    position: absolute;
    top: 20px;
    right: -25px;
    transform: rotate(40deg);
    width: 130px;
    padding: 5px;
    line-height: 1;
    color: #fff;
    font-size: 12px;
    background: #00b0ff;
    text-align: center;
}

[dir='rtl'] .bpsp-pinned-post-tag>span {
    left: -25px;
    right: auto;
    transform: rotate(-40deg);
}

.bpsp-pinned-post-tag>span .fa {
    margin-right: 4px;
}

[dir='rtl'] .bpsp-pinned-post-tag>span .fa {
    margin-right: 0;
    margin-left: 4px;
}

.bpsp-pinned-post .bpsp-pinned-post-tag {
    display: block;
}

.buddypress-sticky-post li.bpsp-pinned-post .activity-header,
.buddypress-sticky-post #buddypress li.bpsp-pinned-post .activity-header {
    margin-right: 70px;
}

.activity-list .activity-item .bp-generic-meta.action div.generic-button .fa,
.bp-nouveau .activity-list .activity-item .activity-meta.action div.generic-button .fa {
    min-width: 20px;
}

/* Loader */
.bpsp-pin-tool.loading .fa:before {
    content: "\f110"!important;
}

.bpsp-pin-tool.loading .fa-flip-vertical {
    transform: none;
}

.bpsp-pin-tool.loading .fa {
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotateZ(0);
    }
    100% {
        transform: rotateZ(360deg);
    }
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotateZ(0); }
    100% {
        -webkit-transform: rotateZ(360deg);
    }
}

/* reign theme fixes */
.bp-legacy.theme-reign-theme .bpsp-pin-tool {
    padding: 5px !important;
}

/* Boss theme fixes */
#buddypress #activity-stream li {
    position: relative;
}

#right-panel .activity-meta .generic-button {
    display: inline;
}

#right-panel .bpsp-pinned-post .activity-content {
    padding-right: 100px;
}

#right-panel .bpsp-pin-tool.loading .fa {
    display: none;
}

/* Buddyboss theme fixes */
.buddyboss-theme .bpsp-unpin-post:before,
.buddyboss-theme .bpsp-unpin-post:after {
    display: none;
}

.buddyboss-theme #buddypress .activity-list .action.bp-generic-meta .button.bpsp-pin-tool i {
    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
}

.buddyboss-theme #buddypress .activity-list .action.bp-generic-meta .button.bpsp-pin-tool .bpsp-txt-title{
    margin-top: -5px;
}

.buddyboss-theme #buddypress .activity-list .action.bp-generic-meta .button.bpsp-pin-tool:after,
.buddyboss-theme #buddypress .activity-list .action.bp-generic-meta .button.bpsp-pin-tool:before{
    display: none;
}

/* kleo theme fixes */
body.kleo .bpsp-pin-tool .fa,
body.kleo .bpsp-pin-tool .bpsp-txt-title{
    display: none;
}

/* OneCommunity theme fixes */
body.onecommunity .activity-list .activity-item .activity-meta.action .button.bpsp-pin-tool .fa {
    display: none;
}

/* rehub theme fixes */
body.rehub-theme #buddypress div.activity-meta a.bpsp-pin-tool:hover span {
    background: none;
}

body.rehub-theme #buddypress div.activity-meta a.bpsp-pin-tool .fa {
    display: none;
}

/* eduma theme fixes */
body.eduma #buddypress div.activity-meta a.bpsp-pin-tool .fa {
    display: none;
}