/*--------------------------------------------------------------
>>> BUDDYPRESS ACTIVITY SHARE - CLEAN & SIMPLE COLOR SCHEME
>>> Minimal, Theme-Compatible Design
--------------------------------------------------------------*/

/* ===================================================================
   SIMPLIFIED CSS CUSTOM PROPERTIES
   =================================================================== */

:root {
    /* Base colors - minimal palette */
    --bp-share-white: #ffffff;
    --bp-share-black: #000000;
    --bp-share-gray-50: #f9fafb;
    --bp-share-gray-100: #f3f4f6;
    --bp-share-gray-200: #e5e7eb;
    --bp-share-gray-300: #d1d5db;
    --bp-share-gray-400: #9ca3af;
    --bp-share-gray-500: #6b7280;
    --bp-share-gray-600: #4b5563;
    --bp-share-gray-700: #374151;
    --bp-share-gray-800: #1f2937;
    --bp-share-gray-900: #111827;
    
    /* Primary brand color */
    --bp-share-primary: #2563eb;
    --bp-share-primary-hover: #1d4ed8;
    
    /* Status colors */
    --bp-share-success: #059669;
    --bp-share-danger: #dc2626;
    
    /* Light theme (default) */
    --bp-share-bg: var(--bp-share-white);
    --bp-share-bg-secondary: var(--bp-share-gray-50);
    --bp-share-text: var(--bp-share-gray-900);
    --bp-share-text-muted: var(--bp-share-gray-600);
    --bp-share-text-light: var(--bp-share-gray-400);
    --bp-share-border: var(--bp-share-gray-200);
    --bp-share-border-light: var(--bp-share-gray-100);
    --bp-share-border-focus: var(--bp-share-primary);
    --bp-share-shadow: rgba(0, 0, 0, 0.1);
    --bp-share-shadow-lg: rgba(0, 0, 0, 0.15);
    --bp-share-overlay: rgba(255, 255, 255, 0.95);
    
    /* Spacing and sizing */
    --bp-share-radius: 6px;
    --bp-share-radius-lg: 8px;
    --bp-share-spacing: 1rem;
    --bp-share-spacing-sm: 0.5rem;
    --bp-share-spacing-lg: 1.0rem;
    --bp-share-transition: all 0.2s ease;
}

/* Dark theme support - only apply when explicitly requested */
.activity-share-modal[data-theme="dark"],
.activity-share-modal.dark-mode,
.activity-share-modal.dark-theme,
.activity-share-modal.dark,
body[data-theme="dark"] .activity-share-modal,
body.dark-mode .activity-share-modal,
body.dark-theme .activity-share-modal,
body.dark .activity-share-modal {
    --bp-share-bg: var(--bp-share-gray-900);
    --bp-share-bg-secondary: var(--bp-share-gray-800);
    --bp-share-text: var(--bp-share-gray-100);
    --bp-share-text-muted: var(--bp-share-gray-400);
    --bp-share-text-light: var(--bp-share-gray-500);
    --bp-share-border: var(--bp-share-gray-700);
    --bp-share-border-light: var(--bp-share-gray-800);
    --bp-share-shadow: rgba(0, 0, 0, 0.3);
    --bp-share-overlay: rgba(0, 0, 0, 0.8);
}

/* ===================================================================
   BASE MODAL STYLING
   =================================================================== */

.activity-share-modal {
    z-index: 1050;
    color-scheme: light dark;
}

.activity-share-modal .modal-dialog {
    max-width: 600px;
    margin: 20px auto;
    position: relative;
}

.activity-share-modal .modal-content {
    border-radius: var(--bp-share-radius-lg);
    box-shadow: 0 10px 40px var(--bp-share-shadow-lg);
    border: 1px solid var(--bp-share-border);
    background-color: var(--bp-share-bg);
    color: var(--bp-share-text);
    width: 100%;
    font-family: inherit;
}

/* ===================================================================
   MODAL SECTIONS
   =================================================================== */

.activity-share-modal .modal-header,
.activity-share-modal .modal-footer {
    background-color: var(--bp-share-bg);
    border-color: var(--bp-share-border);
    padding: var(--bp-share-spacing) var(--bp-share-spacing-lg);
    color: var(--bp-share-text);
    font-family: inherit;
}

.activity-share-modal .modal-header {
    border-bottom: 1px solid var(--bp-share-border);
    border-radius: var(--bp-share-radius-lg) var(--bp-share-radius-lg) 0 0;
    position: relative;
    padding-bottom: var(--bp-share-spacing);
}

.activity-share-modal .modal-footer {
    border-top: 1px solid var(--bp-share-border);
    border-radius: 0 0 var(--bp-share-radius-lg) var(--bp-share-radius-lg);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.activity-share-modal .modal-body {
    background-color: var(--bp-share-bg);
    color: var(--bp-share-text);
}

.activity-share-modal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bp-share-text);
    margin: 0;
    font-family: inherit;
}

/* ===================================================================
   CLOSE BUTTON
   =================================================================== */

.activity-share-modal .close,
.activity-share-modal .activity-share-modal-close {
    width: 32px;
    height: 32px;
    margin: 0;
    border: 1px solid var(--bp-share-border);
    background-color: var(--bp-share-bg);
    color: var(--bp-share-text);
    border-radius: var(--bp-share-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--bp-share-transition);
    font-size: 16px;
    opacity: 1;
    z-index: 10;
    font-family: inherit;
}

.activity-share-modal .close:hover,
.activity-share-modal .activity-share-modal-close:hover {
    border-color: var(--bp-share-danger);
    color: var(--bp-share-danger);
    background-color: var(--bp-share-bg-secondary);
    transform: scale(1.05);
}

/* ===================================================================
   USER INFO & FORM SECTIONS
   =================================================================== */

.quick-post-header-filters-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--bp-share-spacing);
    padding: var(--bp-share-spacing-lg);
    border-bottom: 1px solid var(--bp-share-border);
    background-color: var(--bp-share-bg);
}

.bp-activity-share-avatar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    font-weight: 600;
    position: relative;
    color: var(--bp-share-text);
    font-family: inherit;
}

.bp-activity-share-avatar img {
    border-radius: 50%;
    border: 2px solid var(--bp-share-border);
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.bp-activity-share-avatar .user-name {
    font-weight: 600;
    color: var(--bp-share-text);
    font-size: 16px;
    font-family: inherit;
}

.bp-activity-share-avatar .user-status-text {
    display: block;
    color: var(--bp-share-text-muted);
    font-size: 12px;
    margin-top: 2px;
    font-weight: normal;
    font-family: inherit;
}

/* ===================================================================
   FORM CONTROLS
   =================================================================== */

.bp-activity-share-filter {
    min-width: 220px;
    flex-shrink: 0;
}

.bp-activity-share-filter .form-item {
    margin: 0;
    position: relative;
}

.bp-activity-share-filter label,
.activity-share-modal label[for=post-in] {
    display: block;
    font-weight: 600;
    color: var(--bp-share-text-muted);
    font-size: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 8px;
    background-color: var(--bp-share-bg);
    position: absolute;
    top: -8px;
    left: 10px;
    z-index: 10;
    line-height: 1;
    pointer-events: none;
    font-family: inherit;
}

.bp-activity-share-filter select,
.bp-activity-share-filter #post-in,
.activity-share-modal .form-textarea textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--bp-share-border);
    border-radius: var(--bp-share-radius);
    background-color: var(--bp-share-bg);
    color: var(--bp-share-text);
    font-size: 14px;
    font-family: inherit;
    transition: var(--bp-share-transition);
}

.bp-activity-share-filter select,
.bp-activity-share-filter #post-in {
    height: 44px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.activity-share-modal .form-textarea textarea {
    min-height: 100px;
    padding: 12px 15px;
    line-height: 1.5;
    resize: vertical;
}

.bp-activity-share-filter select:focus,
.bp-activity-share-filter #post-in:focus,
.activity-share-modal .form-textarea textarea:focus {
    border-color: var(--bp-share-border-focus);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    outline: none;
}

.activity-share-modal .form-textarea textarea::placeholder {
    color: var(--bp-share-text-light);
    font-style: italic;
    font-family: inherit;
}

/* ===================================================================
   SELECT2 DROPDOWN INTEGRATION
   =================================================================== */

.activity-share-modal .select2-container {
    width: 100% !important;
    font-family: inherit !important;
}

.activity-share-modal .select2-container.select2-container--default span.select2-selection {
    padding: 0;
}

.activity-share-modal .select2-selection {
    border: 1px solid var(--bp-share-border) !important;
    border-radius: var(--bp-share-radius) !important;
    height: 44px !important;
    background-color: var(--bp-share-bg) !important;
    color: var(--bp-share-text) !important;
}

.activity-share-modal .select2-selection__rendered {
    padding: 10px 12px !important;
    line-height: 22px !important;
    color: var(--bp-share-text) !important;
    font-family: inherit !important;
}

.activity-share-modal .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.activity-share-modal .select2-dropdown {
    border: 1px solid var(--bp-share-border) !important;
    border-radius: var(--bp-share-radius) !important;
    box-shadow: 0 4px 12px var(--bp-share-shadow) !important;
    background-color: var(--bp-share-bg) !important;
    color: var(--bp-share-text) !important;
    font-family: inherit !important;
}

.activity-share-modal .select2-results__option {
    color: var(--bp-share-text) !important;
    font-family: inherit !important;
}

.activity-share-modal .select2-results__option--highlighted {
    background-color: var(--bp-share-bg-secondary) !important;
    color: var(--bp-share-text) !important;
}

/* ===================================================================
   FORM LAYOUT
   =================================================================== */

.activity-share-modal .form {
    width: 100%;
    padding: 0;
}

.activity-share-modal .form-textarea {
    margin-bottom: var(--bp-share-spacing-lg);
}

/* ===================================================================
   ACTIVITY PREVIEW
   =================================================================== */

#bp-activity-share-widget-box-status-header {
    background-color: var(--bp-share-bg);
    border-top: 1px solid var(--bp-share-border);
    border-radius: 0;
    color: var(--bp-share-text);
    font-family: inherit;
}

#bp-activity-share-widget-box-status-header .activity-content {
    padding: var(--bp-share-spacing);
}

#bp-activity-share-widget-box-status-header .activity-header p,
#bp-activity-share-widget-box-status-header .activity-inner p {
    color: var(--bp-share-text);
    font-family: inherit;
    margin: 0.5rem 0 0 0;
    font-size: 15px;
    line-height: 1.4;
}

#bp-activity-share-widget-box-status-header .activity-header p {
    margin: 0;
    font-size: 14px;
    color: var(--bp-share-text-muted);
}

/* ===================================================================
   BUTTONS
   =================================================================== */

.bp-activity-share-post-footer-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.bp-activity-share-close,
.bp-activity-share-activity {
    padding: 10px 24px !important;
    border-radius: var(--bp-share-radius) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: 1px solid !important;
    cursor: pointer !important;
    transition: var(--bp-share-transition) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    min-width: 100px !important;
    height: 40px !important;
    font-family: inherit !important;
}

/* Secondary Button (Close/Cancel) */
.bp-activity-share-close {
    background-color: transparent !important;
    border-color: var(--bp-share-border) !important;
    color: var(--bp-share-text) !important;
}

.bp-activity-share-close:hover {
    background-color: var(--bp-share-bg-secondary) !important;
    border-color: var(--bp-share-danger) !important;
    color: var(--bp-share-danger) !important;
    transform: translateY(-1px);
}

/* Primary Button (Post) */
.bp-activity-share-activity {
    background-color: var(--bp-share-primary) !important;
    border-color: var(--bp-share-primary) !important;
    color: var(--bp-share-white) !important;
}

.bp-activity-share-activity:hover {
    background-color: var(--bp-share-primary-hover) !important;
    border-color: var(--bp-share-primary-hover) !important;
    color: var(--bp-share-white) !important;
    transform: translateY(-1px);
}

.bp-activity-share-activity:disabled {
    background-color: var(--bp-share-gray-300) !important;
    border-color: var(--bp-share-gray-300) !important;
    color: var(--bp-share-gray-500) !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ===================================================================
   LOADING & STATUS INDICATORS
   =================================================================== */

.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--bp-share-white);
    animation: bp-share-spin 0.8s ease-in-out infinite;
    margin-left: 8px;
}

.bp-activity-share-activity .loading-spinner {
    display: none;
}

.bp-activity-share-activity.loading .loading-spinner {
    display: inline-block;
}

.bp-activity-share-activity.loading .button-text {
    margin-right: 8px;
}

@keyframes bp-share-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bp-share-loading {
    text-align: center;
    padding: 2rem;
    color: var(--bp-share-text-muted);
    font-family: inherit;
}

.bp-share-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--bp-share-border);
    border-top-color: var(--bp-share-primary);
    border-radius: 50%;
    animation: bp-share-spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* ===================================================================
   MESSAGES & NOTIFICATIONS
   =================================================================== */

.bp_activity_share_modal_error_message {
    color: var(--bp-share-danger) !important;
    font-size: 12px !important;
    margin-top: 4px !important;
    display: block !important;
    font-weight: 500 !important;
    font-family: inherit !important;
}

.bp-share-error-message {
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--bp-share-danger);
    padding: 12px;
    border-radius: var(--bp-share-radius);
    border: 1px solid rgba(220, 38, 38, 0.2);
    margin-bottom: var(--bp-share-spacing);
    font-size: 14px;
    font-family: inherit;
}

.bp-share-success-message {
    background-color: rgba(5, 150, 105, 0.1);
    color: var(--bp-share-success);
    padding: 12px;
    border-radius: var(--bp-share-radius);
    border: 1px solid rgba(5, 150, 105, 0.2);
    margin-bottom: var(--bp-share-spacing);
    font-size: 14px;
    font-family: inherit;
}

/* ===================================================================
   ACCESSIBILITY & SCREEN READERS
   =================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: var(--bp-share-bg);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px var(--bp-share-shadow);
    clip: auto !important;
    color: var(--bp-share-primary);
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.activity-share-modal .close:focus,
.activity-share-modal .activity-share-modal-close:focus,
.bp-activity-share-close:focus,
.bp-activity-share-activity:focus,
.bp-activity-share-filter select:focus,
.activity-share-modal .form-textarea textarea:focus {
    outline: 2px solid var(--bp-share-primary);
    outline-offset: 2px;
}

.activity-share-modal [aria-hidden="true"] {
    display: none;
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

@media (max-width: 768px) {
    .activity-share-modal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .quick-post-header-filters-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--bp-share-spacing);
        padding: var(--bp-share-spacing);
    }
    
    .bp-activity-share-avatar {
        width: 100%;
        justify-content: center;
    }
    
    .bp-activity-share-filter {
        min-width: auto;
        width: 100%;
    }
    
    .bp-activity-share-post-footer-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .bp-activity-share-close,
    .bp-activity-share-activity {
        width: 100% !important;
        text-align: center;
    }
    
    .activity-share-modal .form {
        padding: 0;
    }
    
    #bp-activity-share-widget-box-status-header {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .activity-share-modal .modal-dialog {
        margin: 5px;
        max-width: calc(100% - 10px);
    }
    
    .activity-share-modal .modal-header,
    .activity-share-modal .modal-footer {
        padding: var(--bp-share-spacing);
    }
    
    .quick-post-header-filters-wrap {
        padding: var(--bp-share-spacing) var(--bp-share-spacing) var(--bp-share-spacing-sm);
    }
    
    .bp-activity-share-avatar img {
        width: 35px;
        height: 35px;
    }
}

/* ===================================================================
   WORDPRESS ADMIN BAR COMPATIBILITY
   =================================================================== */

body.admin-bar .activity-share-modal .modal-dialog {
    margin-top: 52px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .activity-share-modal .modal-dialog {
        margin-top: 46px;
    }
}

/* ===================================================================
   SHARE DROPDOWN FUNCTIONALITY
   =================================================================== */

.generic-button.bp-activity-share-dropdown-toggle {
    position: relative;
    display: inline-block;
}

.bp-activity-share-dropdown-menu {
    position: absolute;
    right: 0;
    top: 35px;
    text-align: left;
    width: 250px;
    padding: 4px 0;
    border: 1px solid var(--bp-share-border);
    border-radius: var(--bp-share-radius-lg);
    background-color: var(--bp-share-bg);
    box-shadow: 0 0.4rem 1.2rem var(--bp-share-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity 0.3s, transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: 999;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.bp-activity-share-dropdown-toggle.selected .bp-activity-share-dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.bp-activity-share-dropdown-menu.position-top {
    bottom: 38px;
    top: auto;
}

/* Share Options Container */
.bp-activity-share-dropdown-menu .bp-activity-share-btn,
.bp-activity-share-dropdown-menu .bp-share-wrapper {
    width: 100%;
    padding: 6px 15px;
    margin: 0;
    border: none;
    background: transparent;
    transition: background-color 0.2s ease;
    min-height: 32px;
    display: flex;
    align-items: center;
}

.bp-activity-share-dropdown-menu .bp-activity-share-btn:hover,
.bp-activity-share-dropdown-menu .bp-share-wrapper:hover {
    background-color: var(--bp-share-bg-secondary);
    border-radius: 4px;
}

/* Button and Link Elements */
.bp-activity-share-dropdown-menu .bp-activity-share-btn .button,
.bp-activity-share-dropdown-menu .bp-share-wrapper .button {
    justify-content: flex-start;
    min-height: auto;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    color: var(--bp-share-text);
    line-height: 1.4;
    gap: 8px !important;
}

.bp-activity-share-dropdown-menu .bp-activity-share-btn a,
.bp-activity-share-dropdown-menu .bp-share-wrapper a {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--bp-share-text);
    text-decoration: none;
    padding: 0;
    line-height: 1.4;
    gap: 8px;
}

/* Text Labels */
.bp-activity-share-dropdown-menu .bp-activity-share-btn span.bp-share-text,
.bp-activity-share-dropdown-menu .bp-share-wrapper span.bp-share-label {
    display: inline-block;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--bp-share-text);
    line-height: 1.4;
    vertical-align: middle;
    text-align: left;
    width: auto;
    flex: 1;
}

/* Icon Containers */
.bp-activity-share-dropdown-menu .bp-activity-share-btn span.bp-activity-reshare-icon,
.bp-activity-share-dropdown-menu .bp-share-wrapper i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--bp-share-text);
    flex-shrink: 0;
    vertical-align: middle;
    margin: 0;
}

.bp-activity-share-dropdown-menu .bp-activity-share-btn span.bp-activity-reshare-icon i {
    font-size: 14px;
    margin: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Share Button Main Toggle */
.bp-activity-share-dropdown-toggle a.dropdown-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--bp-share-radius);
    background: transparent;
    border: 1px solid var(--bp-share-border);
    color: var(--bp-share-text);
    text-decoration: none;
    transition: var(--bp-share-transition);
}

.bp-activity-share-dropdown-toggle a.dropdown-toggle:hover {
    background-color: var(--bp-share-bg-secondary);
    border-color: var(--bp-share-border-focus);
}

/* Share Count */
.reshare-count.bp-activity-reshare-count {
    margin-left: 5px;
    font-size: 90%;
    font-weight: normal;
    color: var(--bp-share-text-muted);
}

/* Copy Link Tooltip */
.bp-activity-share-dropdown-toggle .bp-activity-share-dropdown-menu .bp-share-wrapper {
    position: relative;
}

.bp-activity-share-dropdown-toggle .bp-activity-share-dropdown-menu .bp-share-wrapper span.tooltiptext {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 100px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bp-share-text);
    color: var(--bp-share-bg);
    border-radius: 4px;
    line-height: 1.3;
    padding: 7px 15px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    transition: all 0.18s ease-out 0.18s;
    opacity: 0;
}

.bp-activity-share-dropdown-toggle .bp-activity-share-dropdown-menu .bp-share-wrapper span.tooltiptext:not(.tooltip-hide) {
    opacity: 1;
}

.bp-activity-share-dropdown-toggle .bp-activity-share-dropdown-menu .bp-share-wrapper span.tooltiptext::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--bp-share-text);
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
    border-radius: 2px;
}

.tooltip-hide {
    display: none !important;
}

/* Mobile Responsive Dropdown */
@media screen and (max-width: 750px) {
    .bp-activity-share-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        margin: auto;
        width: 100%;
        border: 0;
        box-shadow: 0px -4px 30px 1px var(--bp-share-overlay);
        z-index: 9999;
        border-radius: var(--bp-share-radius-lg) var(--bp-share-radius-lg) 0 0;
        max-height: 80vh;
        overflow-y: auto;
    }

    .bp-share-activity-share-to-wrapper {
        display: flex;
        padding: 15px;
        overflow-x: auto;
        border-top: 1px solid var(--bp-share-border);
        gap: 10px;
    }

    .bp-activity-share-dropdown-toggle .bp-activity-share-dropdown-menu .bp-share-activity-share-to-wrapper .bp-share-wrapper {
        width: auto;
        min-width: 80px;
        flex-shrink: 0;
        text-align: center;
    }

    .bp-activity-share-dropdown-toggle .bp-activity-share-dropdown-menu .bp-share-activity-share-to-wrapper .bp-share-wrapper .button {
        flex-direction: column;
        padding: 10px !important;
    }

    .bp-activity-share-dropdown-toggle .bp-activity-share-dropdown-menu .bp-share-activity-share-to-wrapper .bp-share-wrapper span.bp-share-label {
        margin-left: 0 !important;
        margin-top: 5px;
        font-size: 12px;
        display: block;
        width: 100%;
        text-align: center;
    }

    .bp-nouveau #buddypress .activity-list div.activity-meta .bp-share-wrapper a,
    .bp-nouveau #buddypress .activity-list div.groups-meta .bp-share-wrapper a {
        flex-flow: nowrap;
    }

    .bp-nouveau #buddypress .activity-list div.activity-meta .bp-share-activity-share-to-wrapper .bp-share-wrapper a,
    .bp-nouveau #buddypress .activity-list div.groups-meta .bp-share-activity-share-to-wrapper .bp-share-wrapper a {
        flex-flow: wrap;
        flex-direction: column;
    }

    #buddypress .activity-list .activity-share-dropdown-menu-container.circle .bp-share-activity-share-to-wrapper .bp-share-wrapper a i[class*=" fa-"],
    #buddypress .activity-list .activity-share-dropdown-menu-container.rec .bp-share-activity-share-to-wrapper .bp-share-wrapper a i[class*=" fa-"],
    #buddypress .activity-list .activity-share-dropdown-menu-container.blackwhite .bp-share-activity-share-to-wrapper .bp-share-wrapper a i[class*=" fa-"],
    #buddypress .activity-list .activity-share-dropdown-menu-container.baricon .bp-share-activity-share-to-wrapper .bp-share-wrapper a i[class*=" fa-"],
    .bp-activity-share-dropdown-toggle .bp-activity-share-dropdown-menu .bp-share-activity-share-to-wrapper .bp-share-wrapper i[class*=" fa-"] {
        margin: 0 auto;
        padding: 0;
        font-size: 20px;
        min-width: 50px;
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, .05);
        border-radius: 100px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .bp-activity-share-dropdown-toggle .bp-activity-share-dropdown-menu .bp-share-wrapper span.tooltiptext {
        top: -8px;
    }
}

@media screen and (max-width: 300px) {
    .bp-activity-share-dropdown-menu {
        right: -20px;
    }
}

/* Popup Overlay */
/* .bp-share-service-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bp-share-overlay);
    z-index: 99;
    display: none;
}

body.bp-share-popup-active .bp-share-service-popup-overlay {
    display: block;
}

body.bp-share-popup-active {
    overflow: hidden;
} */

/* ===================================================================
   SOCIAL SHARING BUTTONS IN DROPDOWN
   =================================================================== */

/* .bp-share-activity-share-to-wrapper {
    margin-top: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--bp-share-border);
    border-radius: 0 !important;
} */

.bp-share-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 15px;
    margin: 0;
    transition: background-color 0.2s ease;
}

.bp-share-wrapper:hover {
    background-color: var(--bp-share-bg-secondary);
}

.bp-share-wrapper .button {
    display: flex !important;
    align-items: center;
    width: 100%;
    text-align: left;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: var(--bp-share-text) !important;
    text-decoration: none;
}

.bp-share-wrapper .bp-share-label {
    margin-left: 10px;
    font-weight: 500;
    color: var(--bp-share-text);
}

/* Icon styling for social platforms */
.bp-share-wrapper i,
.bp-activity-share-btn i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--bp-share-text);
}

/* ===================================================================
   ICONS STYLES
   =================================================================== */

/*--------------------------------------------------------------
## Circle/Rec Style
--------------------------------------------------------------*/
.service-buttons .bp-copy-wrapper {
    position: relative;
}

.service-buttons .bp-copy-wrapper span.tooltiptext {
    position: absolute;
    top: -30px;
    left: -18px;
    right: 0;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.circle a i.as-icon,
#buddypress .activity-list .activity-share-dropdown-menu-container.circle a i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.rec a i[class*=" fa-"] {
    width: 25px;
    min-width: 25px;
    height: 25px;
    font-size: 13px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-decoration: none !important;
    -webkit-transition: all .3s;
    transition: all .3s;
    border: 0;
    border-radius: 100px !important;
}


#buddypress .activity-list .activity-share-dropdown-menu-container #bp_x_share,
#buddypress .activity-list .activity-share-dropdown-menu-container #bp_telegram_share,
#buddypress .activity-list .activity-share-dropdown-menu-container #bp_bluesky_share {
    min-width: auto;
}

#buddypress .activity-list .activity-share-dropdown-menu-container #bp_x_share i::before {
    content: "";
    background-image: url("../images/twitter-x-line.svg");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    width: 20px;
    height: 20px;
}

#buddypress .activity-list .activity-share-dropdown-menu-container #bp_telegram_share i::before {
    content: "";
    background-image: url("../images/telegram-fill.svg");
    background-size: 17px;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    width: 20px;
    height: 20px;
}

#buddypress .activity-list .activity-share-dropdown-menu-container #bp_bluesky_share i::before {
    content: "";
    background-image: url("../images/bluesky-fill.svg");
    background-size: 17px;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    width: 20px;
    height: 20px;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.circle #bp_x_share i::before,
#buddypress .activity-list .activity-share-dropdown-menu-container.rec #bp_x_share i::before,
#buddypress .activity-list .activity-share-dropdown-menu-container.circle #bp_telegram_share i::before,
#buddypress .activity-list .activity-share-dropdown-menu-container.rec #bp_telegram_share i::before,
#buddypress .activity-list .activity-share-dropdown-menu-container.circle #bp_bluesky_share i::before,
#buddypress .activity-list .activity-share-dropdown-menu-container.rec #bp_bluesky_share i::before {
    -webkit-filter: invert(1);
    filter: invert(1);
}

#buddypress .activity-list .activity-share-dropdown-menu-container.rec a i[class*=" fa-"] {
    border-radius: 0 !important;
}

/*--------------------------------------------------------------
## Black/White Style
--------------------------------------------------------------*/
#buddypress .activity-list .activity-share-dropdown-menu-container.blackwhite a i[class*=" fa-"] {
    width: 25px;
    height: 25px;
    font-size: 14px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-decoration: none !important;
    -webkit-transition: all .3s;
    transition: all .3s;
    border-radius: 100px !important;

    background: transparent !important;
    color: #000 !important;
    border: 1px solid #000 !important;
}

/*--------------------------------------------------------------
## Baricon Style
--------------------------------------------------------------*/
#buddypress .activity-list .activity-share-dropdown-menu-container.baricon a i[class*=" fa-"] {
    width: 25px;
    height: 25px;
    font-size: 14px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-decoration: none !important;
    -webkit-transition: all .3s;
    transition: all .3s;
    border-radius: 0 !important;
    border-top: 3px solid currentColor;
}

/* Styles */
#buddypress .activity-list .activity-share-dropdown-menu-container.baricon .bp-activity-reshare-icon i[class*=" fa-"] {
    color: #696f75 !important;
    border-color: #696f75 !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_facebook_share i[class*=" fa-"] {
    color: #3B5998 !important;
    border-color: #3B5998 !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_x_share i[class*=" fa-"] {
    color: #1DA1F2 !important;
    border-color: #1DA1F2 !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_email_share i[class*=" fa-"] {
    color: #AD0000 !important;
    border-color: #AD0000 !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_whatsapp_share i[class*=" fa-"] {
    color: #46bd00 !important;
    border-color: #46bd00 !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_linkedin_share i[class*=" fa-"] {
    color: #007BB6 !important;
    border-color: #007BB6 !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_pinterest_share i[class*=" fa-"] {
    color: #BD081C !important;
    border-color: #BD081C !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_reddit_share i[class*=" fa-"] {
    color: #FF4501 !important;
    border-color: #FF4501 !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_wordpress_share i[class*=" fa-"] {
    color: #21759B !important;
    border-color: #21759B !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_pocket_share i[class*=" fa-"] {
    color: #EF3E56 !important;
    border-color: #EF3E56 !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_telegram_share i[class*=" fa-"] {
    color: #0088cc !important;
    border-color: #0088cc !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_bluesky_share i[class*=" fa-"] {
    color: #1185fe !important;
    border-color: #1185fe !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.baricon .bp-copy i[class*=" fa-"] {
    color: #696f75 !important;
    border-color: #696f75 !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.circle .bp-activity-reshare-icon .as-icon,
#buddypress .activity-list .activity-share-dropdown-menu-container.circle .bp-activity-reshare-icon i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.rec .bp-activity-reshare-icon i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.blackwhite a:hover .bp-activity-reshare-icon i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.baricon a:hover .bp-activity-reshare-icon i[class*=" fa-"] {
    background: #696f75 !important;
    color: #fff !important;
    border-color: #696f75 !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.circle #bp_facebook_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.rec #bp_facebook_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.blackwhite #bp_facebook_share:hover i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_facebook_share:hover i[class*=" fa-"] {
    background: #3B5998 !important;
    color: #fff !important;
    border-color: #3B5998 !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.circle #bp_x_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.rec #bp_x_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.blackwhite #bp_x_share:hover i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_x_share:hover i[class*=" fa-"] {
    background: #1DA1F2 !important;
    color: #fff !important;
    border-color: #1DA1F2 !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.circle #bp_email_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.rec #bp_email_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.blackwhite #bp_email_share:hover i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_email_share:hover i[class*=" fa-"] {
    background: #AD0000 !important;
    color: #fff !important;
    border-color: #AD0000 !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.circle #bp_whatsapp_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.rec #bp_whatsapp_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.blackwhite #bp_whatsapp_share:hover i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_whatsapp_share:hover i[class*=" fa-"] {
    background: #46bd00 !important;
    color: #fff !important;
    border-color: #46bd00 !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.circle #bp_linkedin_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.rec #bp_linkedin_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.blackwhite #bp_linkedin_share:hover i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_linkedin_share:hover i[class*=" fa-"] {
    background: #007BB6 !important;
    color: #fff !important;
    border-color: #007BB6 !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.circle #bp_pinterest_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.rec #bp_pinterest_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.blackwhite #bp_pinterest_share:hover i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_pinterest_share:hover i[class*=" fa-"] {
    background: #BD081C !important;
    color: #fff !important;
    border-color: #BD081C !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.circle #bp_reddit_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.rec #bp_reddit_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.blackwhite #bp_reddit_share:hover i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_reddit_share:hover i[class*=" fa-"] {
    background: #FF4501 !important;
    color: #fff !important;
    border-color: #FF4501 !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.circle #bp_wordpress_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.rec #bp_wordpress_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.blackwhite #bp_wordpress_share:hover i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_wordpress_share:hover i[class*=" fa-"] {
    background: #21759B !important;
    color: #fff !important;
    border-color: #21759B !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.circle #bp_pocket_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.rec #bp_pocket_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.blackwhite #bp_pocket_share:hover i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_pocket_share:hover i[class*=" fa-"] {
    background: #EF3E56 !important;
    color: #fff !important;
    border-color: #EF3E56 !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.circle #bp_telegram_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.rec #bp_telegram_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.blackwhite #bp_telegram_share:hover i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_telegram_share:hover i[class*=" fa-"] {
    background: #0088cc !important;
    color: #fff !important;
    border-color: #0088cc !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.circle #bp_bluesky_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.rec #bp_bluesky_share i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.blackwhite #bp_bluesky_share:hover i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.baricon #bp_bluesky_share:hover i[class*=" fa-"] {
    background: #1185fe !important;
    color: #fff !important;
    border-color: #1185fe !important;
}

#buddypress .activity-list .activity-share-dropdown-menu-container.circle .bp-copy i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.rec .bp-copy i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.blackwhite .bp-copy:hover i[class*=" fa-"],
#buddypress .activity-list .activity-share-dropdown-menu-container.baricon .bp-copy:hover i[class*=" fa-"] {
    background: #696f75 !important;
    color: #fff !important;
    border-color: #696f75 !important;
}

/* ===================================================================
   THEME INTEGRATION & OVERRIDE PROTECTION
   =================================================================== */

.activity-share-modal .button,
.activity-share-modal button,
.activity-share-modal select,
.activity-share-modal textarea {
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.activity-share-modal {
    z-index: 1050;
}

.activity-share-modal .modal-backdrop {
    z-index: 1040;
}

body.modal-open .activity-share-modal {
    padding-right: 0;
    overflow-y: auto;
}

.activity-share-modal .modal-content * {
    box-sizing: border-box;
}

/* BuddyX */
#buddypress .activity-list .activity-item .bp-activity-share-dropdown-menu .bp-activity-share-btn .button,
#buddypress .activity-list .activity-item .bp-activity-share-dropdown-menu .bp-share-wrapper .button {
    background: transparent !important;
    width: 100%;
    padding: 0 !important;
    border: none !important;
    text-align: left !important;
}

/* Reign */
.site-header .dropdown-toggle::after {
    content: none;
}

.wb-reign-theme #bp-activity-share-widget-box-status-header .activity-content {
    padding: 0;
}