/* ==========================================================
   BuddyBoss Sharing - Frontend Styles
   ========================================================== */
/* ==================================================
   BuddyBoss Share Button
   ================================================== */

/* ======================================================
   BuddyBoss Share
====================================================== */
/* ==========================================
   Dropdown Wrapper
========================================== */


.bbs-share-options-main, .bbs-share-options-footer {
    width: 100%;
    float: left;
    clear: both;
}

.bbs-share-options-main h5 {
    width: 100%;
    text-align: left;
    padding: 0 !important;
    margin: 0 !important;
    color: #cd0e15;
    font-weight: 600;
}

.bbs-share-options-grid{

    display:flex;

    gap:18px;

    flex-wrap:wrap;

    padding:0px 0;

}

.bbs-share-item{

    display:flex;
    text-align: center;
    flex-direction:column;

    align-items:center;

    text-decoration:none;

    color:#444;

    width:75px;

}

.bbs-share-twitter{
    display: flex !important;
    justify-content: center;
}

.bbs-share-item i{

    width:44px;

    height:44px;

    border-radius:50%;

    background:#f2f3f5;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:22px;

    margin-bottom:8px;

    transition:.25s;

}

.bbs-share-item:hover i{

    background:#1877f2;

    color:#fff;

    transform:scale(1.05);

}

.bbs-share-item span{

    font-size:13px;

    text-align:center;

    line-height:18px;

}








/**************************/
.bbs-copy-url{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border:1px solid #d9d9d9;
    border-radius:6px;
    background:#fff;
    color:#666;
    font-size:14px;
    font-weight:500;
    text-decoration:none;
    cursor:pointer;
    transition:.2s;
    line-height: 2 !important;
}
#bbs-copy-url i {
    position: relative;
    top: 5px;
}
.bbs-copy-url:hover{
    background:#f5f5f5;
    border-color:#0d6efd;
    color:#0d6efd;
}

.bbs-copy-url i{
    font-size:14px;
}




.bbs-share-dropdown{
    position:relative;
    display:inline-flex;
}

.bbs-share-modal__privacy{
    display:flex;
    align-items:center;
    gap:8px;
}

.bbs-share-modal__privacy-select{
    border:none;
    background:transparent;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    min-width:130px;
    padding:0;
    box-shadow:none;
}

.bbs-share-modal__privacy-select:focus{
    outline:none;
    box-shadow:none;
}

button.bbs-share-inline__item.bbs-internal-share:hover i,
button.bbs-share-inline__item.bbs-internal-share:hover span {
    color: #cd0e15 !important;
}

.bbs-share-inline__items button.bbs-share-inline__item.bbs-internal-share span.bbs-share-inline__label{
    color: #7f868f;
    position: relative;
    top: -1px;
}

.bbs-share-inline__items button.bbs-share-inline__item.bbs-internal-share span.bbs-share-inline__icon i{
    color: #1c4a8d;
}

.bbs-share-inline__items button.bbs-share-inline__item.bbs-internal-share,
.bbs-share-inline__items button.bbs-share-inline__item.bbs-internal-share:hover,
.bbs-share-inline__items button.bbs-share-inline__item.bbs-internal-share-login,
.bbs-share-inline__items button.bbs-share-inline__item.bbs-internal-share-login:hover {
    background: transparent !important;
    border: 0 !important;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    font-weight: normal !important;
    font-size: 13px !important;
    box-shadow: none !important;
    position: relative;
    top: -2px;
}

/* ==========================================
   Trigger Button
========================================== */

.bbs-share__trigger,
.bbs-share-dropdown__trigger{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;

    min-height:36px;
    padding:8px 14px !important;

    text-decoration:none !important;
}

.bbs-share__counter{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.bbs-share-count{
    display:flex !important;
    align-items:center;
    justify-content:center;

    width:20px;
    height:20px;

    border-radius:50%;
    background:#e4e7eb;

    font-size:11px;
    font-weight:600;

    line-height:1;
}

.bbs-share__trigger,
.bbs-share-dropdown__trigger{

    box-shadow:none !important;

    float:none !important;
    width:auto !important;

    white-space:nowrap !important;
}


.bbs-share-dropdown__icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:18px;
    height:18px;
}

.bbs-share-dropdown__menu a{
    line-height: 28px !important;
}

.bbs-share-dropdown__menu a img {
    width: 18px !important;
    height: 18px !important;
}

.bbs-share-dropdown__icon svg{
    display:block;
    width:13px;
    height:13px;
}

.bbs-share-dropdown__trigger .bbs-share-dropdown__label{
    position: relative;
    right: 5px;
}
/* ==========================================
   Dropdown Menu
========================================== */

.bbs-share-dropdown__menu{
    position:absolute;
    top:calc(100% + 10px);
    left:0;
    width:240px;
    background:#fff;
    border:1px solid #ebeef2;
    border-radius:14px;
    box-shadow:
        0 10px 30px rgba(0,0,0,.08),
        0 2px 8px rgba(0,0,0,.05);
    display:none;
    z-index:99999;
    padding:8px;
}

button.bbs-share-dropdown__trigger {
    background: transparent !important;
    color: inherit !important;
    font-size: 13px !important;
    border: 0px !important;
    font-weight: normal !important;
}

/* open state */

.bbs-share-dropdown--active
.bbs-share-dropdown__menu{
    display:block;
}

/* ==========================================
   Menu Item
========================================== */

.bbs-share-dropdown__item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    border-radius:10px;
    text-decoration:none;
    color:#333;
    font-size:14px;
    font-weight:500;
    transition:.2s;
}

.bbs-share-dropdown__item:hover{
    background:#f6f8fa;
    color:#111;
}

.bbs-share-dropdown__item-icon{
    width:24px;
    text-align:center;
    font-size:18px;
    flex-shrink:0;
}

.bbs-share-dropdown__item-label{
    flex:1;
}

/* ==========================================
   Mobile
========================================== */

@media(max-width:768px){

    .bbs-share-dropdown__menu{
        width:220px;
    }

}
.bbs-share{
    display:flex;
    align-items:center;
}

.bbs-share__trigger{
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 14px;
    border-radius:999px;
    border:1px solid #e7eaee;
    text-decoration:none;
    color:#1d2327;
    font-size:13px;
    font-weight:normal;
    line-height:1;
    transition:all .25s ease;
}


.bbs-share__icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:18px;
    height:18px;
    flex-shrink:0;
}

.bbs-share__icon svg{
    width:16px;
    height:16px;
    display:block;
}

.bbs-share__label{
    white-space:nowrap;
}

.bbs-share__counter{
    display:flex;
    align-items:center;
}

/* ======================================================
   Counter
====================================================== */

.bbs-share-count{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:22px;
    height:22px;
    padding:0 7px;
    border-radius:999px;
    background:#2271b1;
    color:#fff;
    font-size:11px;
    font-weight:700;
    line-height:1;
    position: absolute;
    bottom: 19px;
}

/* ======================================================
   Dark Hover
====================================================== */

.buddypress-wrap .bbs-share__trigger:hover,
.activity-list .bbs-share__trigger:hover{
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    transform:translateY(-1px);
}

/* ======================================================
   Mobile
====================================================== */

@media (max-width:768px){

    .bbs-share__trigger{
        padding:7px 12px;
        gap:8px;
        font-size:13px;
    }

    .bbs-share-count{
        min-width:20px;
        height:20px;
        font-size:10px;
    }
}

.bbs-share-wrapper{
    display:inline-flex;
    align-items:center;
    margin-left:10px;
}

.bbs-share-icon img {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
}

.bbs-share-dropdown-menu img {
    width: 19px !important;
    height: 19px !important;
}

span.bbs-share-text {
    position: absolute;
    top: 1px;
}
.bbs-share-button,
.bbs-share-dropdown-toggle{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:50px;
    background:#f5f7fa;
    border:1px solid #e5e7eb;
    text-decoration:none;
    color:#1d2327;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:all .25s ease;
}

.bbs-share-button:hover,
.bbs-share-dropdown-toggle:hover{
    background:#edf2f7;
    transform:translateY(-1px);
}

.bbs-share-count{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:22px;
    height:22px;
    padding:0 6px;
    border-radius:50px;
    background:#2271b1;
    color:#fff;
    font-size:11px;
    font-weight:700;
}

/* ==================================================
   Dropdown
   ================================================== */

.bbs-share-dropdown-wrapper{
    position:relative;
    display:inline-block;
}

.bbs-share-dropdown-menu{
    position:absolute;
    top:calc(100% + 10px);
    left:0;
    width:240px;
    background:#fff;
    border-radius:12px;
    box-shadow:
        0 10px 30px rgba(0,0,0,.08),
        0 2px 10px rgba(0,0,0,.05);
    display:none;
    z-index:99999;
    padding:10px;
    border:1px solid #ececec;
}

.bbs-share-dropdown-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    border-radius:10px;
    text-decoration:none;
    color:#333;
    font-size:14px;
    font-weight:500;
    transition:.2s;
}

.bbs-share-dropdown-item:hover{
    background:#f6f8fa;
}

.bbs-platform-icon{
    font-size:18px;
    width:26px;
    text-align:center;
}

/* ==================================================
   Popup
   ================================================== */

.bbs-share-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(3px);
}

.bbs-share-popup{
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:420px;
    max-width:95%;
    background:#fff;
    border-radius:18px;
    padding:25px;
    box-shadow:0 25px 60px rgba(0,0,0,.2);
    z-index:999999;
}

.bbs-share-popup h3{
    margin:0 0 20px;
    font-size:22px;
    font-weight:700;
    text-align:center;
}

.bbs-close-share{
    position:absolute;
    top:15px;
    right:15px;
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    background:#f4f4f4;
    cursor:pointer;
    font-size:20px;
}

.bbs-share-options{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.bbs-social-share,
.bbs-copy-link,
.bbs-native-share{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:14px;
    border-radius:12px;
    border:1px solid #e5e7eb;
    text-decoration:none;
    color:#111;
    font-weight:600;
    background:#fff;
    transition:.2s;
}

.bbs-social-share:hover,
.bbs-copy-link:hover,
.bbs-native-share:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

/* ==================================================
   Mobile
   ================================================== */

@media(max-width:768px){

    .bbs-share-popup{
        width:95%;
        padding:20px;
    }

    .bbs-share-options{
        grid-template-columns:1fr;
    }

    .bbs-share-dropdown-menu{
        width:220px;
    }
}

.bbs-share-wrapper {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.bbs-share-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    transition: all .2s ease;
}

.bbs-share-button:hover {
    opacity: .8;
}

.bbs-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.bbs-share-text {
    line-height: 1;
}

.bbs-share-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    background: #e7edf4;
}

/* ==========================================================
   Modal
   ========================================================== */

#bbs-share-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;

}

.bbs-share-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.bbs-share-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    max-width: calc(100% - 30px);
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 15px 40px rgba(0,0,0,.2);
}

.bbs-share-popup h3 {
    margin: 0 0 20px;
    padding: 0;
    font-size: 20px;
    line-height: 1.3;
}

.bbs-close-share {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    background: #f4f4f4;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    padding: 0;
}

.bbs-close-share:hover {
    opacity: .7;
}

/* ==========================================================
   Share Grid
   ========================================================== */

.bbs-share-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}

.bbs-social-share,
.bbs-copy-link,
.bbs-native-share {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    background: #fff;
    transition: all .2s ease;
}

.bbs-social-share:hover,
.bbs-copy-link:hover,
.bbs-native-share:hover {
    transform: translateY(-1px);
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* ==========================================================
   Platform Buttons
   ========================================================== */

.bbs-social-share[data-platform="facebook"] {
    color: #1877f2;
}

.bbs-social-share[data-platform="linkedin"] {
    color: #0a66c2;
}

.bbs-social-share[data-platform="twitter"] {
    color: #000;
}

.bbs-social-share[data-platform="whatsapp"] {
    color: #25d366;
}

.bbs-social-share[data-platform="telegram"] {
    color: #229ed9;
}

/* ==========================================================
   BuddyBoss Activity Layout
   ========================================================== */

.activity-list .bbs-share-wrapper,
.bb-activity-list .bbs-share-wrapper {
    vertical-align: middle;
}

.activity-list .bbs-share-button,
.bb-activity-list .bbs-share-button {
    padding: 4px 8px;
    border-radius: 6px;
}

.activity-list .bbs-share-button:hover,
.bb-activity-list .bbs-share-button:hover {
    background: rgba(0,0,0,.05);
}

/* ==========================================================
   Copy Success State
   ========================================================== */

.bbs-copy-link.copied {
    font-weight: 700;
}

/* ==========================================================
   Loading State
   ========================================================== */

.bbs-loading {
    pointer-events: none;
    opacity: .6;
}

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 767px) {

    .bbs-share-popup {
        width: calc(100% - 20px);
        padding: 20px;
    }

    .bbs-share-options {
        grid-template-columns: 1fr;
    }

    .bbs-social-share,
    .bbs-copy-link,
    .bbs-native-share {
        min-height: 50px;
    }

    .bbs-share-button {
        font-size: 13px;
    }
}

.bbs-share-dropdown-wrapper{
    position:relative;
    display:inline-block;
}

.bbs-share-dropdown-toggle{
    cursor:pointer;
    border:0;
    background:none;
    padding:0;
    font:inherit;
}

.bbs-share-dropdown-menu{
    position:absolute;
    top:100%;
    left:0;
    min-width:220px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
    display:none;
    z-index:999;
    padding:8px 0;
}

.bbs-share-dropdown-wrapper:hover .bbs-share-dropdown-menu{
    display:block;
}

.bbs-share-dropdown-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 15px;
    text-decoration:none;
    color:#333;
}

.bbs-share-dropdown-item:hover{
    background:#f6f7f7;
}

.bbs-platform-icon{
    width:20px;
    text-align:center;
}
/* ==========================================================
   Dark Mode Support
   ========================================================== */

body.dark-mode .bbs-share-popup,
.bb-theme-dark .bbs-share-popup,
.buddyboss-theme.dark .bbs-share-popup {
    background: #1f2937;
    color: #fff;
}

body.dark-mode .bbs-social-share,
body.dark-mode .bbs-copy-link,
.bb-theme-dark .bbs-social-share,
.bb-theme-dark .bbs-copy-link {
    background: #374151;
    border-color: #4b5563;
    color: #fff;
}

body.dark-mode .bbs-share-count,
.bb-theme-dark .bbs-share-count {
    background: #374151;
    color: #fff;
}








/* ==================================================
   Overlay
================================================== */

button.bbs-share-modal__close {
    background: #999999 !important;
    border-color: #999999 !important;
    padding: 0px 4px 0px 6px !important;
    width: 30px !important;
    height: 30px !important;
    text-align: center;
    font-size: 24px !important;
}

#bbs-share-modal{
    position:fixed;
    inset:0;
    z-index:99999999999;

    background:rgba(0,0,0,.55);

    display:none;
    align-items:center;
    justify-content:center;

    backdrop-filter:blur(2px);

}

/* ==================================================
   Popup
================================================== */

.bbs-share-modal__content{
    width: 580px;
    max-width: 95vw;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    position: relative;
    margin: 5% auto 0 auto;
}

/* ==================================================
   Header
================================================== */

.bbs-share-modal__header{
    position:relative;

    padding:18px 20px;

    text-align:center;

    border-bottom:1px solid #e4e6eb;
}

.bbs-share-modal__title{
    margin:0 !important;

    font-size:24px;
    font-weight:700;

    color:#050505;
}

.bbs-share-modal__close{
    position:absolute;

    right:15px;
    top:12px;

    width:40px;
    height:40px;

    border:none;
    border-radius:50%;

    background:#e4e6eb;

    font-size:22px;
    line-height:1;

    cursor:pointer;
}

/* ==================================================
   Body
================================================== */

.bbs-share-modal__body{
    padding:18px 20px;
}

/* ==================================================
   Notice
================================================== */

.bbs-share-modal__notice{
    background:#f0f2f5;

    padding:12px 14px;

    border-radius:10px;

    font-size:14px;
    color:#65676b;

    margin-bottom:16px;
}

/* ==================================================
   User Row
================================================== */

.bbs-share-modal__user{
    display:flex;
    align-items:flex-start;
    gap:12px;

    margin-bottom:15px;
}

.bbs-share-modal__avatar{
    width:48px;
    height:48px;

    border-radius:50%;

    background:#d8dadf;

    overflow:hidden;
    flex-shrink:0;
}

.bbs-share-modal__avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.bbs-share-modal__userinfo{
    flex:1;
}
span.bbs-share-modal__privacy-icon i {
    font-size: 14px;
}
.bbs-share-modal__name{
    font-size: 16px;
    font-weight: normal;
    color: #050505;
    margin-bottom: 6px;
    font-family: inherit !important;
}

span.bbs-share-modal__privacy-icon {
    margin-right: 5px;
    position: relative;
    top: 2px;
    font-size: 8px;
}

.bbs-share-modal__privacy #bbsshare_privacy {
    height: 28px;
    font-size: 11px;
    width: 136px;
}

.ptt-toast {
    top: 99px !important;
    line-height: 1.1 !important;
    box-shadow: none !important;
}



.bbs-share-modal__privacy{
    display:inline-flex;
    align-items:center;
    padding:5px 0px;
    border-radius:6px;
    font-size:11px;
    font-weight:600;
    color:#FFFFFF;
    position: relative;
    top: -10px;
}

/* ==================================================
   Textarea
================================================== */

#bbs-share-message{
    width: 100%;
    min-height: 120px;
    border: none;
    outline: none;
    resize: none;
    font-size: 12px;
    line-height: 1.4;
    color: #050505;
    padding: 5px 0;
    background: transparent;
    font-family: inherit !important;
}

#bbs-share-message::placeholder{
    color:#65676b;
}

/* ==================================================
   Preview Card
================================================== */

#bbs-share-preview{
    margin-top:15px;

    border:1px solid #e4e6eb;
    border-radius:10px;

    padding:15px;

    background:#fff;
}

/* ==================================================
   Footer
================================================== */

.bbs-share-modal__footer{
    padding: 16px 20px;
    border-top: 1px solid #e4e6eb;
    display: inline-block;
    justify-content: flex-end;
    width: 100%;
    float: left;
    text-align: right;

}

#bbs-share-submit{
    height:38px;

    padding:0 28px;

    border:none;
    border-radius:6px;

    background:#1877f2;
    color:#fff;

    font-size:15px;
    font-weight:600;

    cursor:pointer;
}

#bbs-share-submit:hover{
    background:#166fe5;
}

#bbs-share-submit:disabled{
    opacity:.5;
    cursor:not-allowed;
}

/* ==================================================
   Mobile
================================================== */

@media(max-width:768px){

    .bbs-share-modal__content{
        width:95%;
    }

    #bbs-share-message{
        font-size:18px;
        min-height:100px;
    }
}




@media(max-width:991px){
    .register-section-logo a {
        display: block;
    }
}