#bbsbc-member-matching-section {
    background: linear-gradient(to right, #390BD9 20%, #A46CFF 100%);
    background: -webkit-gradient(linear, left top, right top, from(#390BD9), to(#A46CFF));
    margin: 0 -16px;
    padding: 10px 0 15px;
    transition: max-height 0.5s ease;
}

#bbsbc-member-matching-section .title {
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    padding-top: 20px;
    margin: 0px;
    font-size: 28px;
}

#bbsbc-member-matching-section .desc {
    color: #ffffff;
    font-size: 16px;
    text-align: center;
    padding: 4px 0 10px;
    margin-bottom: 5px;
}

.bbsbc-member-matching-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    color: #ffffff;
}

.bbsbc-member-matching-wrapper #members-list {
	margin-bottom: 0 !important;
}

#bbsbc-member-matching-section .loader {
    color: #ffffff;
    text-align: center;
}

#bbsbc-member-matching-section #members-list.grid {
    justify-content: center;
}

#bbsbc-member-matching-section .members-list>li {
    min-width: 275px;
}

#bbsbc-member-matching-section .list-wrap-inner {
    display: flex;
    flex-direction: column;
}

#bbsbc-member-matching-section .list-wrap-inner .item-avatar {
    margin-right: 0;
    margin-bottom: 0;
}

#bbsbc-member-matching-section .list-wrap-inner .item-avatar {
    margin-right: 0;
    margin-bottom: 0;
}

#bbsbc-member-matching-section .list-wrap-inner .item-block * {
    text-align: center;
    margin: 4px 0;
}

#bbsbc-member-matching-section .bp-list li .follow-container {
    margin-bottom: 15px;
}

.sb-member-matching-actions {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.sb-member-matching-actions .load_more_matches {
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    border: 2px solid rgb(255, 255, 255);
    padding: 8px 40px;
    background-color: transparent;
    border-radius: 0px;
    margin: 15px auto 0px;
    transition: all 0.5s ease 0s;
}

#bbsbc-member-matching-section .dashicons-update {
    vertical-align: middle;
}

.sb-member-matching-actions .hide_matches {
    color: #ffffff;
    display: table;
    font-size: 11px;
    padding: 7px 0px 0px;
    text-align: center;
    margin: 0px auto;
}

.sb-member-matching-actions .hide_matches:hover {
    text-decoration: underline;
}

#bbsbc-member-matching-wrapper .members-list>li .bb_more_options.member-dropdown {
    position: absolute;
    right: 15px;
    top: 5px;
}

.buddyboss-theme #bbsbc-member-matching-wrapper .footer-button-wrap {
    background-color: var(--bb-body-background-color);
    border-top: 1px solid var(--bb-content-border-color);
    border-radius: 0 0 var(--bb-block-radius) var(--bb-block-radius);
    margin: 0 -20px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: absolute;
    width: 100%;
    bottom: 0;
    opacity: 0.7;
}

.buddyboss-theme #bbsbc-member-matching-wrapper .footer-button-wrap>.generic-button {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: 35px;
    padding: 10px 15px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.buddyboss-theme #bbsbc-member-matching-wrapper .only-grid-view.button-wrap.member-button-wrap.footer-button-wrap>.generic-button {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: 35px;
    padding: 10px 15px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.buddyboss-theme #bbsbc-member-matching-wrapper .only-grid-view.button-wrap.member-button-wrap.footer-button-wrap a,
.buddyboss-theme #bbsbc-member-matching-wrapper .only-grid-view.button-wrap.member-button-wrap.footer-button-wrap button {
    border: 0;
    background: 0;
    padding: 0;
}

.buddyboss-theme #bbsbc-member-matching-wrapper .button-wrap.member-button-wrap .generic-button:not(.follow-button) a,
#buddypress .button-wrap.member-button-wrap .generic-button:not(.follow-button) button {
    background: 0 0;
    color: #939597;
    padding: 0;
    margin: 0;
    line-height: 1;
    min-height: 1px;
    border: 0;
}

.buddyboss-theme #bbsbc-member-matching-wrapper .button-wrap.member-button-wrap.footer-button-wrap>.generic-button>* {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: transparent !important;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 24px;
    margin: 0;
    min-width: auto;
    pointer-events: none;
    width: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.buddyboss-theme #bbsbc-member-matching-wrapper .button-wrap.member-button-wrap .generic-button:not(.follow-button) a,
#buddypress .button-wrap.member-button-wrap .generic-button:not(.follow-button) button {
    background: 0 0;
    color: #939597;
    padding: 0;
    margin: 0;
    line-height: 1;
    min-height: 1px;
    border: 0;
}

.buddyboss-theme #bbsbc-member-matching-wrapper .button-wrap.member-button-wrap.footer-button-wrap>.generic-button>*>i {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-style: normal;
    line-height: 1;
    pointer-events: auto;
    font-weight: 400;
}

.buddyboss-theme #bbsbc-member-matching-wrapper .button-wrap.member-button-wrap.footer-button-wrap>.generic-button>*>i {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-style: normal;
    line-height: 1;
    pointer-events: auto;
    font-weight: 400;
}

.buddyboss-theme #bbsbc-member-matching-wrapper .button-wrap.member-button-wrap.footer-button-wrap>.generic-button>.not_friends>i:before {
    content: "\ef60";
}

.buddyboss-theme #bbsbc-member-matching-wrapper .button-wrap.member-button-wrap.footer-button-wrap>.generic-button>*>i:before {
    color: var(--bb-body-text-color);
    font-family: bb-icons;
    font-size: 24px;
}

.buddyboss-theme #bbsbc-member-matching-wrapper .button-wrap.member-button-wrap.footer-button-wrap>.generic-button>.send-message>i:before {
    content: "\ee62";
}

.buddyboss-theme #bbsbc-member-matching-wrapper .button-wrap.member-button-wrap.footer-button-wrap>.generic-button>*>i:before {
    color: var(--bb-body-text-color);
    font-family: bb-icons;
    font-size: 24px;
}

.buddyboss-theme #bbsbc-member-matching-wrapper .button-wrap.member-button-wrap.footer-button-wrap .generic-button {
    border-right: 1px solid var(--bb-content-border-color);
}

.buddyboss-theme #bbsbc-member-matching-wrapper .button-wrap.member-button-wrap.footer-button-wrap>.generic-button>:after,
.buddyboss-theme #bbsbc-member-matching-wrapper .button-wrap.member-button-wrap.footer-button-wrap>.generic-button>:before {
    -webkit-transition: none;
    transition: none;
}


.buddyboss-theme #bbsbc-member-matching-wrapper .button-wrap.member-button-wrap.footer-button-wrap>.generic-button>.pending_friend>i:before {
    content: "\ef57";
    font-weight: 300;
}

.buddyboss-theme #bbsbc-member-matching-wrapper .button-wrap.member-button-wrap.footer-button-wrap>.generic-button>*>i:before {
    color: var(--bb-body-text-color);
    font-family: bb-icons;
    font-size: 24px;
}

.buddyboss-theme #bbsbc-member-matching-wrapper .button-wrap.member-button-wrap.footer-button-wrap .generic-button:last-child {
    border: 0;
}

/* Define the spinning animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.sbc-spin {
    animation: spin infinite 2s linear;
}

#bbsbc-member-matching-wrapper .only-grid-view.button-wrap.member-button-wrap.footer-button-wrap,
#bbsbc-member-matching-wrapper .only-grid-view.button-wrap.member-button-wrap.footer-button-wrap>.friendship-button {
    background-color: var(--bb-header-background);
    border-radius: var(--bb-block-radius);
}

.buddyboss-theme #bbsbc-member-matching-wrapper .button-wrap.member-button-wrap.footer-button-wrap>.generic-button>.awaiting_response_friend>i:before {
    content: "\ef57";
    font-weight: 300;
}

.buddyboss-theme #bbsbc-member-matching-wrapper .button-wrap.member-button-wrap.footer-button-wrap>.generic-button>*>i:before {
    color: var(--bb-body-text-color);
    font-family: bb-icons;
    font-size: 24px;
}

#bbsbc-member-matching-section .list-wrap-inner .item-block .bbsbc-match-score {
    background-color: var(--bb-success-color);
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
}

.bbsbc-match-score-wrapper {
    position: relative;
}

.bbsbc-match-score-wrapper .canvas {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 10px auto auto;
}

.bbsbc-match-score-wrapper .canvas svg {
    width: 100px;
    height: 100px;
}

.bbsbc-match-score-wrapper .canvas .progress-bg {
    fill: none;
    stroke-width: 8px;
    stroke: #e6dfff;
}

.bbsbc-match-score-wrapper .canvas .progress {
    fill: none;
    stroke-width: 8px;
    stroke: #481ddc;
    stroke-linecap: round;
    stroke-dasharray: var(--start-offset, 326.56);
    stroke-dashoffset: var(--end-offset, 0);
}

.bbsbc-match-score-wrapper .canvas .text {
    position: absolute;
    width: 100%;
    top: 30px;
    font-size: 20px;
    text-align: center;
    font-weight: 400;
    line-height: 20px;
}

.bbsbc-match-score-wrapper .canvas-tip {
    background-color: #481ddc;
    color: #ffffff;
    text-align: center;
    border-radius: 5px;
    font-size: 12px;
    line-height: 17px;
    width: 200px;
    padding: 10px 10px;
    left: -40px;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    position: absolute;
    z-index: 1;
}

.bbsbc-match-score-wrapper .canvas-tip-text::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 45%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #481ddc transparent;
}

.bbsbc-match-score-wrapper:hover .canvas-tip {
    opacity: 1;
}

/* Fix the button width */
.bbsbc-member-matching-wrapper .friends-mutual-list li .item .primary-action .generic-button, 
.bbsbc-member-matching-wrapper .members-list li .item .primary-action .generic-button {
    width: 100%;
}

/* Improve "Disability" profile field options in columns */

.buddyboss-theme.registration .field_11.field_type_checkbox .input-options.checkbox-options, 
.my-profile.profile-edit .field_11.field_type_checkbox .input-options.checkbox-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
}

.buddyboss-theme.registration .field_11.field_type_checkbox .bp-checkbox-wrap,
.my-profile.profile-edit .field_11.field_type_checkbox .bp-checkbox-wrap {
    flex: 1 1 calc(50% - 16px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .buddyboss-theme.registration .field_11.field_type_checkbox .bp-checkbox-wrap,
    .my-profile.profile-edit .field_11.field_type_checkbox .bp-checkbox-wrap {
        flex: 1 1 100%;
    }
}

/**
 * Message notices for sender
 */
.bb-recipient-membership-status-notice {
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: var(--bb-block-radius-inner);
    display: flex;
    align-items: center;
    background: #fdd2d9;
    border: 1px solid var(--bb-content-border-color);
    font-size: 14px;
    color: var(--bb-body-text-color);
    line-height: 1.5;
}

/* Hide the media privacy level selector on own profile and photo tab. */
body.my-media #bp-media-uploader .bb-dropdown-wrap,
body.my-account.photos #bp-media-uploader .bb-dropdown-wrap {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    display: none;
}
