/*!
 * Edi - BuddyPress skin
 * Coerente con i token visivi del tema Edilacordata.
 */


body.buddypress #buddypress.buddypress-wrap #friends-personal-li span.count {

    display: none!important;

}

body #whats-new-avatar {

    display: none!important;

}

body #whats-new-content {

    width: 100%!important;

}

#whats-new-form {

    padding: 10px!important;

}

body #member-primary-nav {

    display: flex!important;

}

body.buddypress #buddypress,
body.buddypress .buddypress-wrap {
    --edi-bp-radius: 20px;
    --edi-bp-pill-radius: var(--standard-border-radius, 60px);
    --edi-bp-border: var(--site-border-color, #d3e4e6);
    --edi-bp-bg: var(--site-bg-color, #ffffff);
    --edi-bp-muted-bg: var(--grey1, #f6f5ee);
    --edi-bp-text: var(--site-text-color, #333333);
    --edi-bp-muted-text: var(--grey4, #7b7a6f);
    --edi-bp-shadow: var(--site-box-shadows, 0 0 18px 0 rgba(0, 0, 0, 0.1));
    --edi-bp-primary: var(--primary-button-bg-color, #429382);
    --edi-bp-primary-fg: var(--primary-button-fg-color, #ffffff);
    --edi-bp-secondary: var(--secondary-button-bg-color, #a2c748);
}

body.buddypress #buddypress,
body.buddypress #buddypress button,
body.buddypress #buddypress input,
body.buddypress #buddypress select,
body.buddypress #buddypress textarea {
    font-family: var(--primary-font-family, inherit);
}

body.buddypress #buddypress {
    color: var(--edi-bp-text);
}

body.buddypress #buddypress a {
    color: var(--edi-bp-text);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

body.buddypress #buddypress a:hover,
body.buddypress #buddypress a:focus {
    color: var(--edi-bp-primary);
}

body.buddypress #cover-image-container {
    margin-bottom: 24px;
}

body.buddypress #buddypress #header-cover-image {
    min-height: 230px;
    border-radius: var(--edi-bp-radius);
    box-shadow: var(--edi-bp-shadow);
    /*background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 20%, rgba(0, 0, 0, 0.48) 100%), url("/wp-content/themes/edilacordata/assets/img/user-default-cover.jpg") center center / cover no-repeat;*/
    background-repeat: no-repeat;
    background-size: cover;
}

body.buddypress #item-header-cover-image {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    padding: 20px;
}

body.buddypress #item-header-cover-image #item-header-avatar {
    padding: 0;
}

body.buddypress #buddypress #item-header-cover-image #item-header-avatar img.avatar,
body.buddypress .single-headers #item-header-avatar a img {
    width: 124px;
    height: 124px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

body.buddypress .single-headers div#item-header-content {
    flex: 1;
    min-width: 260px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--edi-bp-border);
    border-radius: var(--edi-bp-radius);
    backdrop-filter: blur(2px);
}

body.buddypress.bp-user .buddypress-wrap .users-header h2.user-nicename {
    margin: 0 0 8px;
    font-size: 2.2rem;
    line-height: 1.2;
}

body.buddypress .single-headers .item-meta {
    color: var(--edi-bp-muted-text);
}

body.buddypress.bp-user .buddypress-wrap .member-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.buddypress.bp-user .buddypress-wrap .member-header-actions > div > a,
body.buddypress.bp-user .buddypress-wrap .member-header-actions > div > button,
body.buddypress.bp-user .buddypress-wrap .member-header-actions > li > a,
body.buddypress.bp-user .buddypress-wrap .member-header-actions > li > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--edi-bp-primary);
    border-radius: var(--edi-bp-pill-radius);
    background: var(--edi-bp-primary);
    color: var(--edi-bp-primary-fg);
    padding: 8px 16px;
    min-height: 40px;
}

body.buddypress.bp-user .buddypress-wrap .member-header-actions > div > a:hover,
body.buddypress.bp-user .buddypress-wrap .member-header-actions > div > button:hover,
body.buddypress.bp-user .buddypress-wrap .member-header-actions > li > a:hover,
body.buddypress.bp-user .buddypress-wrap .member-header-actions > li > button:hover {
    background: #367a6d;
    border-color: #367a6d;
    color: var(--edi-bp-primary-fg);
}

body.buddypress #buddypress.bp-dir-hori-nav:not(.bp-vertical-navs) nav:not(.tabbed-links),
body.buddypress #buddypress.bp-dir-hori-nav nav:not(.tabbed-links),
body.buddypress #buddypress nav.main-navs,
body.buddypress #buddypress nav.bp-navs#object-nav,
body.buddypress #buddypress nav.bp-navs#subnav {
    border: 0;
    box-shadow: none;
    background: transparent;
}

@media screen and (min-width: 46.8em) {
    body.buddypress #buddypress.bp-dir-hori-nav:not(.bp-vertical-navs) nav:not(.tabbed-links),
    body.buddypress #buddypress.bp-dir-hori-nav nav:not(.tabbed-links) {
        border-top: 0 !important;
        border-bottom: 0 !important;
        box-shadow: none !important;
    }
}

body.buddypress #buddypress .bp-navs {
    margin: 0 0 16px;
    overflow: visible;
    background: transparent;
    border: 0;
}

body.buddypress #buddypress .bp-navs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.buddypress #buddypress .bp-navs li {
    float: none;
    margin: 0;
    background: transparent;
}

body.buddypress #buddypress .bp-navs ul li a,
body.buddypress #buddypress .bp-navs ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    border: 1px solid var(--edi-bp-border);
    border-radius: var(--edi-bp-pill-radius);
    background: #ffffff;
    color: var(--edi-bp-text);
    line-height: 1.2;
    padding: 10px 16px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.buddypress #buddypress .bp-navs li .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    border-radius: 999px;
    vertical-align: middle;
    flex: 0 0 auto;
    background: var(--edi-bp-muted-bg);
    border: 1px solid var(--edi-bp-border);
    color: var(--edi-bp-text);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.buddypress #buddypress .bp-navs li:not(.current):not(.selected) a:hover,
body.buddypress #buddypress .bp-navs li:not(.current):not(.selected) a:focus,
body.buddypress #buddypress .bp-navs li:not(.current):not(.selected) a:focus-visible {
    background: #ffffff;
    border-color: var(--edi-bp-primary);
    color: var(--edi-bp-primary);
    box-shadow: 0 4px 12px rgba(66, 147, 130, 0.15);
    transform: translateY(-1px);
}

body.buddypress #buddypress .bp-navs li:not(.current):not(.selected) a:hover .count,
body.buddypress #buddypress .bp-navs li:not(.current):not(.selected) a:focus .count,
body.buddypress #buddypress .bp-navs li:not(.current):not(.selected) a:focus-visible .count {
    border-color: var(--edi-bp-primary);
    color: var(--edi-bp-primary);
}

body.buddypress #buddypress .bp-navs li.current a,
body.buddypress #buddypress .bp-navs li.current a:hover,
body.buddypress #buddypress .bp-navs li.current a:focus,
body.buddypress #buddypress .bp-navs li.current a:focus-visible,
body.buddypress #buddypress .bp-navs li.selected a,
body.buddypress #buddypress .bp-navs li.selected a:hover,
body.buddypress #buddypress .bp-navs li.selected a:focus,
body.buddypress #buddypress .bp-navs li.selected a:focus-visible {
    background: var(--edi-bp-primary);
    border-color: var(--edi-bp-primary);
    color: var(--edi-bp-primary-fg);
    box-shadow: 0 6px 14px rgba(66, 147, 130, 0.22);
    transform: none;
}

body.buddypress #buddypress .bp-navs li.current a .count,
body.buddypress #buddypress .bp-navs li.selected a .count {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

body.buddypress #buddypress .bp-navs ul li.last select {
    height: 40px;
    border: 1px solid var(--edi-bp-border);
    border-radius: var(--edi-bp-pill-radius);
    background: #ffffff;
    color: var(--edi-bp-text);
    padding: 0 14px;
}

/* Submenu piu compatto del menu principale */
body.buddypress #buddypress nav#subnav.bp-subnavs ul {
    gap: 6px;
}

body.buddypress #buddypress nav#subnav.bp-subnavs ul li a,
body.buddypress #buddypress nav#subnav.bp-subnavs ul li span {
    min-height: 25px;
    padding: 7px 12px;
    font-size: 14px;
    line-height: 1.1;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

body .activity-list .activity-item .activity-meta.action .button span {

    color: white!important;

}

body.buddypress #buddypress nav#subnav.bp-subnavs li .count {
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    padding: 0 4px;
}

body.buddypress .buddypress-wrap .subnav-filters {
    margin: 14px 0 16px;
    padding: 6px 12px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--edi-bp-border);
    border-radius: var(--edi-bp-radius);
    background: var(--edi-bp-muted-bg);
}

body.buddypress .buddypress-wrap .subnav-filters .subnav-search,
body.buddypress .buddypress-wrap .subnav-filters .component-filters,
body.buddypress .buddypress-wrap .subnav-filters .component-filters .last.filter {
    margin: 0;
    float: none;
    display: flex;
    align-items: center;
}

body .bp-messages-wrap .bp-messages-side-threads .threads-list .thread .pic {

    width: 35px!important;

}

    body.buddypress .buddypress-wrap .subnav-filters .component-filters,
body.buddypress .buddypress-wrap .subnav-filters #comp-filters {
    margin-left: auto;
    justify-content: flex-end;
}

body.buddypress .buddypress-wrap .subnav-filters .bp-search form {
    display: flex;
    gap: 8px;
}

body.registration .bottom_header.container,
body.registration .hero-blocks,
body.activation .hero-blocks,
body.activation .bottom_header
{

    display: none;

}

#activate-page {

    text-align: center;

}

body.buddypress #buddypress #activate-page p a,
body.activation #buddypress #activate-page p a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 20px;
    border: 1px solid var(--edi-bp-primary);
    border-radius: var(--edi-bp-pill-radius);
    background: var(--edi-bp-primary);
    color: var(--edi-bp-primary-fg);
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(66, 147, 130, 0.2);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.activation #buddypress #activate-page p a {

    margin-top: 50px;

}

body.buddypress #buddypress #activate-page p a:hover,
body.buddypress #buddypress #activate-page p a:focus,
body.activation #buddypress #activate-page p a:hover,
body.activation #buddypress #activate-page p a:focus {
    background: #367a6d;
    border-color: #367a6d;
    color: var(--edi-bp-primary-fg);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(54, 122, 109, 0.24);
}

#signup-form .submit {

    margin-top: 50px!important;
    margin-bottom: 100px!important;
    text-align: center;

}

body.buddypress .buddypress-wrap .subnav-filters input[type="search"],
body.buddypress .buddypress-wrap .subnav-filters select {
    height: 38px;
    border: 1px solid var(--edi-bp-border);
    border-radius: var(--edi-bp-pill-radius);
    background: #ffffff;
    color: var(--edi-bp-text);
    padding: 0 14px;
}

body.buddypress .buddypress-wrap .subnav-filters .select-wrap span.select-arrow {
    right: 14px;
}

body.buddypress .buddypress-wrap .subnav-filters button.nouveau-search-submit,
body.buddypress .buddypress-wrap .subnav-filters #user_messages_search_submit {
    min-height: 38px;
    border-radius: var(--edi-bp-pill-radius);
    border: 1px solid var(--edi-bp-primary);
    background: var(--edi-bp-primary);
    color: var(--edi-bp-primary-fg);
    padding: 0 16px;
}

/* Select "Mostra" (activity filter) */
body.buddypress #buddypress #activity-filter-select .select-wrap,
body.buddypress #buddypress #activity-filter-select .select-wrap:hover,
body.buddypress #buddypress #activity-filter-select .select-wrap:focus-within {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 100%;
    border: 0;
    box-shadow: none;
    background: transparent;
}

body.buddypress #buddypress #activity-filter-by,
body.buddypress #buddypress #activity-filter-by:focus,
body.buddypress #buddypress #activity-filter-by:active {
    -webkit-appearance: none;
    appearance: none;
    margin-right: 0;
    text-indent: 0;
    width: -moz-fit-content;
    width: fit-content;
    min-width: 11ch;
    max-width: 100%;
    height: 38px;
    padding: 0 34px;
    border: 1px solid var(--edi-bp-border);
    border-radius: var(--edi-bp-pill-radius);
    background: #ffffff;
    color: var(--edi-bp-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-align-last: center;
    -moz-text-align-last: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    outline: 0;
    cursor: pointer;
}

body.buddypress #buddypress #activity-filter-by:hover {
    border-color: var(--edi-bp-primary);
}

body.buddypress #buddypress #activity-filter-by:focus,
body.buddypress #buddypress #activity-filter-by:focus-visible {
    border-color: var(--edi-bp-primary);
    box-shadow: 0 0 0 3px rgba(66, 147, 130, 0.15);
}

body.buddypress #buddypress #activity-filter-select .select-wrap .select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    pointer-events: none;
}

body.buddypress #buddypress #activity-filter-select .select-wrap .select-arrow:before {
    content: "\25BE";
    color: var(--edi-bp-muted-text);
    font-size: 11px;
    line-height: 1;
}

body.buddypress #buddypress #activity-filter-select .select-wrap:hover .select-arrow:before,
body.buddypress #buddypress #activity-filter-select .select-wrap:focus-within .select-arrow:before {
    color: var(--edi-bp-primary);
}

/* Dashboard command button */
body.buddypress #buddypress .dasboard-commands {
    margin: 18px 0 12px;
}

body.buddypress #buddypress .dasboard-commands form {
    margin: 0;
}

body.buddypress #buddypress #dashboard-new-listing_offer,
body.buddypress #buddypress #dashboard-new-listing_request {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--edi-bp-primary);
    border-radius: var(--edi-bp-pill-radius);
    background: linear-gradient(180deg, #4da996 0%, var(--edi-bp-primary) 100%);
    color: var(--edi-bp-primary-fg);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(66, 147, 130, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

body.buddypress #buddypress #dashboard-new-listing_offer:hover,
body.buddypress #buddypress #dashboard-new-listing_request:hover {
    border-color: #367a6d;
    background: #367a6d;
    color: var(--edi-bp-primary-fg);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(54, 122, 109, 0.26);
}

body.buddypress #buddypress #dashboard-new-listing_offer:focus,
body.buddypress #buddypress #dashboard-new-listing_offer:focus-visible,
body.buddypress #buddypress #dashboard-new-listing_request:focus,
body.buddypress #buddypress #dashboard-new-listing_request:focus-visible {
    outline: 0;
    border-color: #367a6d;
    box-shadow: 0 0 0 3px rgba(66, 147, 130, 0.2), 0 8px 18px rgba(66, 147, 130, 0.22);
}

body.buddypress #buddypress #dashboard-new-listing_offer:active,
body.buddypress #buddypress #dashboard-new-listing_request:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(54, 122, 109, 0.2);
}

/* Dashboard DataTables (offerte / richieste) */
body.buddypress #buddypress .dashboard-annunci-list-container {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--edi-bp-border);
    border-radius: var(--edi-bp-radius);
    background: #ffffff;
    box-shadow: var(--edi-bp-shadow);
    overflow: hidden;
}

body.buddypress #buddypress .dashboard-annunci-list-container .dt-container,
body.buddypress #buddypress .dashboard-annunci-list-container .dataTables_wrapper {
    width: 100%;
}

body.buddypress #buddypress .dashboard-annunci-list-container .dt-layout-row {
    margin: 0 0 12px;
}

body.buddypress #buddypress .dashboard-annunci-list-container .dt-layout-row.dt-layout-table {
    margin-bottom: 10px;
}

body.buddypress #buddypress .dashboard-annunci-list-container .dt-search input,
body.buddypress #buddypress .dashboard-annunci-list-container .dt-length .dt-input,
body.buddypress #buddypress .dashboard-annunci-list-container .dataTables_filter input,
body.buddypress #buddypress .dashboard-annunci-list-container .dataTables_length select {
    height: 38px;
    border: 1px solid var(--edi-bp-border);
    border-radius: var(--edi-bp-pill-radius);
    background: #ffffff;
    color: var(--edi-bp-text);
    padding: 0 12px;
}

body.buddypress #buddypress .dashboard-annunci-list-container .dt-search input:focus,
body.buddypress #buddypress .dashboard-annunci-list-container .dt-length .dt-input:focus,
body.buddypress #buddypress .dashboard-annunci-list-container .dataTables_filter input:focus,
body.buddypress #buddypress .dashboard-annunci-list-container .dataTables_length select:focus {
    border-color: var(--edi-bp-primary);
    box-shadow: 0 0 0 3px rgba(66, 147, 130, 0.14);
    outline: 0;
}

body.buddypress #buddypress .dashboard-annunci-list-container .dt-search input {
    min-width: 220px;
}

body.buddypress #buddypress .dashboard-annunci-list-container table.dataTable,
body.buddypress #buddypress .dashboard-annunci-list-container table.dashboard-annunci-list,
body.buddypress #buddypress .dashboard-annunci-list-container table.dashboard-requests-list {
    width: 100% !important;
    margin: 0;
    border: 1px solid var(--edi-bp-border);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

body.buddypress #buddypress .dashboard-annunci-list-container table.dataTable > thead > tr > th,
body.buddypress #buddypress .dashboard-annunci-list-container table.dataTable > thead > tr > td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--edi-bp-border);
    background: var(--edi-bp-muted-bg);
    color: var(--edi-bp-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

body.buddypress #buddypress .dashboard-annunci-list-container table.dataTable > tbody > tr > th,
body.buddypress #buddypress .dashboard-annunci-list-container table.dataTable > tbody > tr > td {
    padding: 11px 12px;
    border-top: 1px solid var(--edi-bp-border);
    vertical-align: middle;
}

body.buddypress #buddypress .dashboard-annunci-list-container table.dataTable > tbody > tr:first-child > * {
    border-top: 0;
}

body.buddypress #buddypress .dashboard-annunci-list-container table.dataTable.display > tbody > tr:nth-child(odd) > * {
    box-shadow: inset 0 0 0 9999px rgba(246, 245, 238, 0.35);
}

body.buddypress #buddypress .dashboard-annunci-list-container table.dataTable.display > tbody > tr:hover > * {
    box-shadow: inset 0 0 0 9999px rgba(66, 147, 130, 0.08) !important;
}

body.buddypress #buddypress .dashboard-annunci-list-container table.dataTable > thead > tr > th:first-child,
body.buddypress #buddypress .dashboard-annunci-list-container table.dataTable > tbody > tr > td:first-child {
    width: 44px;
    text-align: center;
}

body.buddypress #buddypress .dashboard-annunci-list-container table.dataTable input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid var(--edi-bp-border);
    border-radius: 4px;
    accent-color: var(--edi-bp-primary);
}

body.buddypress #buddypress .dashboard-annunci-list-container table.dataTable td:nth-child(2) a:not(.elc-action-button) {
    font-weight: 600;
    color: var(--edi-bp-text);
}

body.buddypress #buddypress .dashboard-annunci-list-container table.dataTable td:nth-child(2) a:not(.elc-action-button):hover {
    color: var(--edi-bp-primary);
}

body.buddypress #buddypress .dashboard-annunci-list-container table.dataTable td:last-child {
    white-space: nowrap;
}

body.buddypress #buddypress .dashboard-annunci-list-container .elc-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--edi-bp-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--edi-bp-text);
    margin-right: 6px;
}

body.buddypress #buddypress .dashboard-annunci-list-container .elc-action-button:last-child {
    margin-right: 0;
}

body.buddypress #buddypress .dashboard-annunci-list-container .elc-action-button svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

body.buddypress #buddypress .dashboard-annunci-list-container .elc-action-button.elc-edit-listing {
    border-color: rgba(66, 147, 130, 0.35);
    color: var(--edi-bp-primary);
}

body.buddypress #buddypress .dashboard-annunci-list-container .elc-action-button.elc-view-listing {
    border-color: rgba(162, 199, 72, 0.45);
    color: #6a8a20;
}

body.buddypress #buddypress .dashboard-annunci-list-container .elc-action-button.elc-delete-listing {
    border-color: rgba(230, 35, 54, 0.35);
    color: #e62336;
}

body.buddypress #buddypress .dashboard-annunci-list-container .elc-action-button:hover,
body.buddypress #buddypress .dashboard-annunci-list-container .elc-action-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

body.buddypress #buddypress .dashboard-annunci-list-container .dt-info,
body.buddypress #buddypress .dashboard-annunci-list-container .dataTables_info {
    color: var(--edi-bp-muted-text);
    font-size: 13px;
}

body.buddypress #buddypress .dashboard-annunci-list-container .dt-paging .dt-paging-button,
body.buddypress #buddypress .dashboard-annunci-list-container .dataTables_paginate .paginate_button {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--edi-bp-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--edi-bp-text) !important;
}

body.buddypress #buddypress .dashboard-annunci-list-container .dt-paging .dt-paging-button:hover,
body.buddypress #buddypress .dashboard-annunci-list-container .dataTables_paginate .paginate_button:hover {
    border-color: var(--edi-bp-primary);
    background: var(--edi-bp-primary);
    color: #ffffff !important;
}

body.buddypress #buddypress .dashboard-annunci-list-container .dt-paging .dt-paging-button.current,
body.buddypress #buddypress .dashboard-annunci-list-container .dt-paging .dt-paging-button.current:hover,
body.buddypress #buddypress .dashboard-annunci-list-container .dataTables_paginate .paginate_button.current,
body.buddypress #buddypress .dashboard-annunci-list-container .dataTables_paginate .paginate_button.current:hover {
    border-color: var(--edi-bp-primary);
    background: var(--edi-bp-primary);
    color: #ffffff !important;
}

body.buddypress #buddypress .dashboard-annunci-list-container .dt-paging .dt-paging-button.disabled,
body.buddypress #buddypress .dashboard-annunci-list-container .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    box-shadow: none;
}

body.buddypress #buddypress .dashboard-annunci-list-container div.dt-processing {
    border: 1px solid var(--edi-bp-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--edi-bp-shadow);
}

body.buddypress #buddypress .dashboard-annunci-list-container div.dt-processing > div:last-child > div {
    background: var(--edi-bp-primary);
}

body.buddypress #buddypress .dashboard-annunci-list-container table.dataTable > tbody > tr.child {
    padding: 8px 12px;
}

body.buddypress #buddypress .dashboard-annunci-list-container table.dataTable > tbody > tr.child ul.dtr-details > li {
    border-bottom: 1px solid var(--edi-bp-border);
}

body.buddypress #buddypress .dashboard-annunci-list-container table.dataTable > tbody > tr.child span.dtr-title {
    color: var(--edi-bp-muted-text);
    min-width: 95px;
}

@media screen and (max-width: 767px) {
    body.buddypress #buddypress .dashboard-annunci-list-container {
        padding: 12px;
    }

    body.buddypress #buddypress .dashboard-annunci-list-container .dt-layout-row {
        margin-bottom: 8px;
    }

    body.buddypress #buddypress .dashboard-annunci-list-container .dt-search input {
        min-width: 0;
        width: 100%;
    }

    body.buddypress #buddypress .dashboard-annunci-list-container .dt-layout-row .dt-layout-cell {
        text-align: left !important;
    }

    body.buddypress #buddypress .dashboard-annunci-list-container .elc-action-button {
        width: 32px;
        height: 32px;
    }
}

/* Better Messages */
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized {
    --edi-bm-border: var(--site-border-color, #d3e4e6);
    --edi-bm-bg: var(--site-bg-color, #ffffff);
    --edi-bm-soft-bg: var(--grey1, #f6f5ee);
    --edi-bm-text: var(--site-text-color, #333333);
    --edi-bm-muted: var(--grey4, #7b7a6f);
    --edi-bm-accent: var(--primary-button-bg-color, #429382);
    --edi-bm-accent-weak: rgba(66, 147, 130, 0.08);
    margin-top: 18px;
    border: 1px solid var(--edi-bm-border);
    border-radius: 20px;
    background: var(--edi-bm-bg);
    box-shadow: var(--site-box-shadows, 0 0 18px 0 rgba(0, 0, 0, 0.1));
    overflow: hidden;
    color: var(--edi-bm-text);
    font-family: var(--primary-font-family, inherit);
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized a {
    color: var(--edi-bm-text);
    text-decoration: var(--link-text-decoration, none);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized a:hover {
    color: var(--edi-bm-accent);
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-header,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-top-bar,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .messages-header,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bp-messages-header {
    min-height: 56px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--edi-bm-border);
    background: var(--edi-bm-soft-bg);
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-side,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-threads,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .messages-side,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bp-messages-side,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bp-messages-threads-wrapper {
    border-right: 1px solid var(--edi-bm-border);
    background: var(--edi-bm-bg);
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-tabs a,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .messages-tabs a,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bp-messages-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--edi-bm-border);
    border-radius: var(--standard-border-radius, 60px);
    background: #ffffff;
    color: var(--edi-bm-text);
    font-size: 14px;
    line-height: 1.1;
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-tabs .active a,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .messages-tabs .active a,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bp-messages-tabs .active a {
    border-color: var(--edi-bm-accent);
    background: var(--edi-bm-accent);
    color: #ffffff;
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-thread-list,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .messages-list,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .threads-list {
    margin: 0;
    padding: 0;
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-thread,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-thread-list li,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .messages-list li,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .threads-list li,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .thread {
    border-bottom: 1px solid var(--edi-bm-border);
    background: #ffffff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-thread:hover,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-thread-list li:hover,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .messages-list li:hover,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .threads-list li:hover,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .thread:hover {
    background: var(--edi-bm-soft-bg);
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-thread.active,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-thread.current,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-thread.selected,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .messages-list li.current,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .threads-list li.current,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .thread.current,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .thread.active,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .thread.selected {
    background: var(--edi-bm-accent-weak);
    box-shadow: inset 3px 0 0 0 var(--edi-bm-accent);
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-thread-title,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .thread-title,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .messages-list .subject {
    color: var(--edi-bm-text);
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-last-message,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-preview,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .thread-excerpt,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .messages-list .excerpt {
    color: var(--edi-bm-muted);
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-avatar img,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .thread-avatar img,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .messages-avatar img {
    border-radius: 50%;
    object-fit: cover;
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-chat,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-message-pane,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .messages-content,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bp-messages-chat-wrap,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bp-messages-chat {
    background: var(--edi-bm-bg);
}

/* Better Messages icons color override */
body.buddypress #buddypress .bp-messages-wrap svg {
    color: var(--primary-button-bg-color) !important;
    fill: var(--primary-button-bg-color) !important;
    stroke: var(--primary-button-bg-color) !important;
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-message-content,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .message-content,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .message-text,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-message-text {
    border: 1px solid var(--edi-bm-border);
    border-radius: 16px;
    background: #ffffff;
    padding: 10px 12px;
    color: var(--edi-bm-text);
    margin-bottom: 12px;
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-message-self .bm-message-content,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-message-out .bm-message-content,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-message-self .message-content,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-message-out .message-content,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .message.self .message-content,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .message.mine .message-content {
    border-color: rgba(66, 147, 130, 0.3);
    background: var(--edi-bm-accent-weak);
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-composer,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-reply,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .messages-footer,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bp-messages-footer {
    border-top: 1px solid var(--edi-bm-border);
    background: var(--edi-bm-soft-bg);
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized textarea,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized input[type="text"],
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized input[type="search"] {
    min-height: 44px;
    border: 1px solid var(--edi-bm-border);
    border-radius: var(--standard-border-radius, 60px);
    background: #ffffff;
    color: var(--edi-bm-text);
    padding: 0 16px;
    font-size: 16px;
    font-family: var(--primary-font-family, inherit);
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized textarea:focus,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized input[type="text"]:focus,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized input[type="search"]:focus {
    border-color: var(--edi-bm-accent);
    box-shadow: 0 0 0 3px rgba(66, 147, 130, 0.14);
    outline: 0;
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized textarea {
    min-height: 52px;
    height: auto;
    border-radius: 20px;
    padding: 12px 16px;
    line-height: 1.4;
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized button,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized [type="button"],
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized [type="submit"],
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 18px;
    border: 1px solid var(--edi-bm-accent);
    border-radius: var(--standard-border-radius, 60px);
    background: var(--edi-bm-accent);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    font-family: var(--primary-font-family, inherit);
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized button:hover,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized [type="button"]:hover,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized [type="submit"]:hover,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized a.button:hover {
    border-color: #367a6d;
    background: #367a6d;
}

/* Better Messages send action: ensure click lands on .bm-send-message wrapper */
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-reply .bm-send-message {
    pointer-events: auto;
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-reply .bm-send-message svg {
    pointer-events: none;
}

body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bp-better-messages-unread,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-unread,
body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-unread-count {
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    border: 1px solid #e62336;
    background: #e62336;
}

@media screen and (max-width: 767px) {
    body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized {
        border-radius: 14px;
    }

    body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-side,
    body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-threads,
    body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .messages-side {
        border-right: 0;
        border-bottom: 1px solid var(--edi-bm-border);
    }

    body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-header,
    body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-top-bar,
    body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .messages-header,
    body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bp-messages-header {
        padding: 8px 10px;
    }

    body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized textarea,
    body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized input[type="text"],
    body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized input[type="search"] {
        font-size: 15px;
    }
}

/* Better Messages - override su markup reale */
#item-body .bp-messages-wrap-main.bm-initialized,
.bp-messages-wrap-main.bm-initialized {
    border: 1px solid var(--site-border-color, #d3e4e6) !important;
    border-radius: 20px !important;
    background: var(--site-bg-color, #ffffff) !important;
    box-shadow: var(--site-box-shadows, 0 0 18px 0 rgba(0, 0, 0, 0.1)) !important;
    overflow: hidden !important;
}

#item-body .bp-messages-wrap-main.bm-initialized .bp-messages-wrap,
.bp-messages-wrap-main.bm-initialized .bp-messages-wrap {
    background: var(--site-bg-color, #ffffff) !important;
}

#item-body .bp-messages-wrap-main.bm-initialized .bp-messages-side-threads,
.bp-messages-wrap-main.bm-initialized .bp-messages-side-threads {
    border-right: 1px solid var(--site-border-color, #d3e4e6) !important;
    background: #ffffff !important;
}

#item-body .bp-messages-wrap-main.bm-initialized .chat-header,
.bp-messages-wrap-main.bm-initialized .chat-header {
    min-height: 56px !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid var(--site-border-color, #d3e4e6) !important;
    background: var(--grey1, #f6f5ee) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

#item-body .bp-messages-wrap-main.bm-initialized .chat-header a.new-message,
.bp-messages-wrap-main.bm-initialized .chat-header a.new-message {
    width: 36px;
    height: 36px;
    border: 1px solid var(--site-border-color, #d3e4e6);
    border-radius: 999px;
    background: #ffffff;
    color: var(--site-text-color, #333333);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#item-body .bp-messages-wrap-main.bm-initialized .chat-header a.new-message:hover,
.bp-messages-wrap-main.bm-initialized .chat-header a.new-message:hover {
    border-color: var(--primary-button-bg-color, #429382);
    color: var(--primary-button-bg-color, #429382);
}

#item-body .bp-messages-wrap-main.bm-initialized .bpbm-search form input,
.bp-messages-wrap-main.bm-initialized .bpbm-search form input {
    height: 38px !important;
    border: 1px solid var(--site-border-color, #d3e4e6) !important;
    border-radius: 60px !important;
    background: #ffffff !important;
    padding: 0 14px !important;
    color: var(--site-text-color, #333333) !important;
    font-family: var(--primary-font-family, inherit) !important;
    font-size: 14px !important;
}

#item-body .bp-messages-wrap-main.bm-initialized .bpbm-search form input:focus,
.bp-messages-wrap-main.bm-initialized .bpbm-search form input:focus {
    border-color: var(--primary-button-bg-color, #429382) !important;
    box-shadow: 0 0 0 3px rgba(66, 147, 130, 0.14) !important;
    outline: 0 !important;
}

#item-body .bp-messages-wrap-main.bm-initialized .threads-list .thread,
.bp-messages-wrap-main.bm-initialized .threads-list .thread {
    padding: 10px 10px 10px 12px !important;
    border-bottom: 1px solid var(--site-border-color, #d3e4e6) !important;
    background: #ffffff !important;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#item-body .bp-messages-wrap-main.bm-initialized .threads-list .thread:hover,
.bp-messages-wrap-main.bm-initialized .threads-list .thread:hover {
    background: var(--grey1, #f6f5ee) !important;
}

#item-body .bp-messages-wrap-main.bm-initialized .threads-list .thread.active,
#item-body .bp-messages-wrap-main.bm-initialized .threads-list .thread.current,
#item-body .bp-messages-wrap-main.bm-initialized .threads-list .thread.selected,
.bp-messages-wrap-main.bm-initialized .threads-list .thread.active,
.bp-messages-wrap-main.bm-initialized .threads-list .thread.current,
.bp-messages-wrap-main.bm-initialized .threads-list .thread.selected {
    background: rgba(66, 147, 130, 0.08) !important;
    box-shadow: inset 3px 0 0 0 var(--primary-button-bg-color, #429382);
}

#item-body .bp-messages-wrap-main.bm-initialized .threads-list .thread .pic img,
.bp-messages-wrap-main.bm-initialized .threads-list .thread .pic img {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Avatar tondi in tutta la chat Better Messages */
#item-body .bp-messages-wrap-main.bm-initialized .bbpm-avatar,
#item-body .bp-messages-wrap-main.bm-initialized .avatar.bbpm-avatar,
#item-body .bp-messages-wrap-main.bm-initialized .bpbm-user-me-avatar,
.bp-messages-wrap-main.bm-initialized .bbpm-avatar,
.bp-messages-wrap-main.bm-initialized .avatar.bbpm-avatar,
.bp-messages-wrap-main.bm-initialized .bpbm-user-me-avatar {
    border-radius: 999px !important;
    overflow: hidden !important;
}

#item-body .bp-messages-wrap-main.bm-initialized img.avatar,
#item-body .bp-messages-wrap-main.bm-initialized .bbpm-avatar img,
#item-body .bp-messages-wrap-main.bm-initialized .bpbm-user-me-avatar img,
.bp-messages-wrap-main.bm-initialized img.avatar,
.bp-messages-wrap-main.bm-initialized .bbpm-avatar img,
.bp-messages-wrap-main.bm-initialized .bpbm-user-me-avatar img {
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    object-fit: cover !important;
    display: block;
}

#item-body .bp-messages-wrap-main.bm-initialized .threads-list .thread .bm-info h4,
.bp-messages-wrap-main.bm-initialized .threads-list .thread .bm-info h4 {
    color: var(--site-text-color, #333333);
}

#item-body .bp-messages-wrap-main.bm-initialized .threads-list .thread .bm-info h4.name,
.bp-messages-wrap-main.bm-initialized .threads-list .thread .bm-info h4.name {
    font-weight: 600;
}

#item-body .bp-messages-wrap-main.bm-initialized .threads-list .thread .last-message .bm-last-message-content,
.bp-messages-wrap-main.bm-initialized .threads-list .thread .last-message .bm-last-message-content,
#item-body .bp-messages-wrap-main.bm-initialized .threads-list .thread .time .time-wrapper,
.bp-messages-wrap-main.bm-initialized .threads-list .thread .time .time-wrapper {
    color: var(--grey4, #7b7a6f);
    font-size: 13px;
}

#item-body .bp-messages-wrap-main.bm-initialized .threads-list .thread .actions .bm-more-actions,
.bp-messages-wrap-main.bm-initialized .threads-list .thread .actions .bm-more-actions {
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--grey4, #7b7a6f);
}

#item-body .bp-messages-wrap-main.bm-initialized .threads-list .thread .actions .bm-more-actions:hover,
.bp-messages-wrap-main.bm-initialized .threads-list .thread .actions .bm-more-actions:hover {
    border-color: var(--site-border-color, #d3e4e6);
    color: var(--primary-button-bg-color, #429382);
    background: #ffffff;
}

#item-body .bp-messages-wrap-main.bm-initialized .chat-footer,
.bp-messages-wrap-main.bm-initialized .chat-footer {
    min-height: 56px;
    padding: 10px 12px;
    border-top: 1px solid var(--site-border-color, #d3e4e6);
    background: var(--grey1, #f6f5ee);
}

@media (min-width: 1024px) {
    #item-body .bp-messages-wrap-main.bm-initialized .chat-footer,
    .bp-messages-wrap-main.bm-initialized .chat-footer {
        min-height: 44px;
        padding: 0;
    }

    body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-reply .bm-editor {
        flex: 1 1 auto;
        min-width: 0;
    }

    body.buddypress #buddypress .bp-messages-wrap-main.bm-initialized .bm-reply .bm-send-message {
        flex: 0 0 60px;
        z-index: 30;
        pointer-events: auto;
    }
}

#item-body .bp-messages-wrap-main.bm-initialized .chat-footer .settings,
.bp-messages-wrap-main.bm-initialized .chat-footer .settings {
    width: 34px;
    height: 34px;
    border: 1px solid var(--site-border-color, #d3e4e6);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--site-text-color, #333333);
}

#item-body .bp-messages-wrap-main.bm-initialized .chat-footer .settings:hover,
.bp-messages-wrap-main.bm-initialized .chat-footer .settings:hover {
    border-color: var(--primary-button-bg-color, #429382);
    color: var(--primary-button-bg-color, #429382);
}

#item-body .bp-messages-wrap-main.bm-initialized .bp-messages-column,
.bp-messages-wrap-main.bm-initialized .bp-messages-column {
    background: #ffffff !important;
}

#item-body .bp-messages-wrap-main.bm-initialized .bp-messages-column .thread-not-selected.empty .empty,
.bp-messages-wrap-main.bm-initialized .bp-messages-column .thread-not-selected.empty .empty {
    padding: 26px 20px;
    color: var(--grey4, #7b7a6f);
}

#item-body .bp-messages-wrap-main.bm-initialized .bp-messages-column .thread-not-selected.empty .empty a,
.bp-messages-wrap-main.bm-initialized .bp-messages-column .thread-not-selected.empty .empty a {
    color: var(--primary-button-bg-color, #429382);
    font-weight: 600;
}

#item-body .bp-messages-wrap-main.bm-initialized .os-scrollbar-track,
.bp-messages-wrap-main.bm-initialized .os-scrollbar-track {
    background: transparent !important;
}

#item-body .bp-messages-wrap-main.bm-initialized .os-scrollbar-handle,
.bp-messages-wrap-main.bm-initialized .os-scrollbar-handle {
    background: rgba(123, 122, 111, 0.35) !important;
    border-radius: 999px !important;
}

@media screen and (max-width: 767px) {
    #item-body .bp-messages-wrap-main.bm-initialized .bp-messages-side-threads,
    .bp-messages-wrap-main.bm-initialized .bp-messages-side-threads {
        border-right: 0 !important;
        border-bottom: 1px solid var(--site-border-color, #d3e4e6) !important;
    }

    #item-body .bp-messages-wrap-main.bm-initialized .chat-header,
    .bp-messages-wrap-main.bm-initialized .chat-header {
        padding: 8px 10px !important;
    }
}

body.buddypress .activity-update-form {
    border: 1px solid var(--edi-bp-border);
    border-radius: var(--edi-bp-radius);
    background: var(--edi-bp-bg);
    box-shadow: var(--edi-bp-shadow);
    margin: 0 0 18px;
    padding: 16px;
}

body.buddypress .activity-update-form #whats-new-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

body.buddypress .activity-update-form #whats-new-content {
    padding-bottom: 10px;
}

body.buddypress .activity-update-form #whats-new-textarea textarea {
    min-height: 90px;
    border: 1px solid var(--edi-bp-border);
    border-radius: 16px;
    padding: 12px 14px;
    background: #ffffff;
}

body.buddypress .activity-update-form #whats-new-buttons {
    margin: 0 0 12px 55px;
}

body.buddypress .activity-update-form #whats-new-buttons > li button {
    border: 1px solid var(--edi-bp-border);
    border-radius: var(--edi-bp-pill-radius);
    background: #ffffff;
    color: var(--edi-bp-text);
    padding: 6px 12px;
}

body.buddypress .activity-update-form #whats-new-submit {
    margin: 6px 0 0 55px;
}

body.buddypress .activity-update-form #whats-new-submit input {
    width: auto;
    min-width: 170px;
    border: 1px solid var(--edi-bp-primary);
    border-radius: var(--edi-bp-pill-radius);
    background: var(--edi-bp-primary);
    color: var(--edi-bp-primary-fg);
    padding: 10px 18px;
}

body.buddypress .activity-list.bp-list {
    margin: 0 0 18px;
    padding: 0;
    background: transparent;
    border: 0;
}

body.buddypress .activity-list .activity-item {
    margin: 0 0 14px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--edi-bp-border);
    border-radius: var(--edi-bp-radius);
    box-shadow: var(--edi-bp-shadow);
}

body.buddypress .activity-list .activity-item div.item-avatar img {
    width: 64px;
    height: 64px;
    max-width: none;
    border-radius: 50%;
    object-fit: cover;
}

body.buddypress .activity-list .activity-item .activity-content .activity-header {
    margin-bottom: 8px;
    color: var(--edi-bp-muted-text);
}

body.buddypress .activity-list .activity-item .activity-content .activity-inner,
body.buddypress .activity-list .activity-item .activity-content blockquote {
    margin: 10px 0;
    background: var(--edi-bp-muted-bg);
    border: 1px solid var(--edi-bp-border);
    border-radius: 14px;
    padding: 12px 14px;
}

body.buddypress .activity-list .activity-item .activity-meta.action {
    border: 0;
    background: transparent;
    padding: 0;
}

body.buddypress .activity-list .activity-item .activity-meta.action .button,
body.buddypress .activity-list .activity-item .activity-meta.action a {
    border: 1px solid var(--edi-bp-border);
    border-radius: var(--edi-bp-pill-radius);
    background: #ffffff;
    color: var(--edi-bp-text);
    padding: 7px 12px;
}

body.buddypress .activity-list .activity-item .activity-meta.action .button:hover,
body.buddypress .activity-list .activity-item .activity-meta.action a:hover {
    border-color: var(--edi-bp-primary);
    color: var(--edi-bp-primary);
}

body.buddypress .buddypress-wrap .activity-comments {
    margin: 14px 0 0;
    padding: 10px 12px;
    border: 1px solid var(--edi-bp-border);
    border-radius: 14px;
    background: var(--edi-bp-muted-bg);
}

body.buddypress .buddypress-wrap .activity-comments ul {
    margin-top: 0;
}

body.buddypress .buddypress-wrap .activity-comments ul li {
    border-top: 1px solid var(--edi-bp-border);
    padding-top: 12px;
}

body.buddypress .buddypress-wrap .activity-comments ul li:first-child {
    border-top: 0;
}

body.buddypress .buddypress-wrap .activity-comments div.acomment-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

body.buddypress .buddypress-wrap .activity-comments .acomment-content {
    margin: 8px 0 0 42px;
    padding: 10px 12px;
    border: 1px solid var(--edi-bp-border);
    border-radius: 12px;
    border-left: 1px solid var(--edi-bp-border);
    background: #ffffff;
}

body.buddypress .buddypress-wrap .activity-list .load-more,
body.buddypress .buddypress-wrap .activity-list .load-newest {
    border: 1px solid var(--edi-bp-border);
    border-radius: var(--edi-bp-pill-radius);
    background: #ffffff;
}

body.buddypress .buddypress-wrap .activity-list .load-more a,
body.buddypress .buddypress-wrap .activity-list .load-newest a {
    color: var(--edi-bp-text);
    padding: 10px 16px;
}

body.buddypress .buddypress-wrap .activity-list .load-more:hover,
body.buddypress .buddypress-wrap .activity-list .load-newest:hover {
    border-color: var(--edi-bp-primary);
}

body.buddypress .buddypress-wrap .bp-pagination {
    margin: 6px 0 20px;
    color: var(--edi-bp-muted-text);
}

body.buddypress .buddypress-wrap .bp-pagination .bp-pagination-links a,
body.buddypress .buddypress-wrap .bp-pagination .bp-pagination-links span {
    display: inline-block;
    border: 1px solid var(--edi-bp-border);
    border-radius: 999px;
    padding: 4px 10px;
    margin-left: 4px;
    background: #ffffff;
    color: var(--edi-bp-text);
}

body.buddypress .buddypress-wrap .bp-pagination .bp-pagination-links .current {
    border-color: var(--edi-bp-primary);
    background: var(--edi-bp-primary);
    color: var(--edi-bp-primary-fg);
}

body.buddypress .buddypress-wrap .bp-feedback {
    border-radius: 14px;
    border: 1px solid var(--edi-bp-border);
    box-shadow: none;
}

body.buddypress .buddypress-wrap .bp-feedback.success,
body.buddypress .buddypress-wrap .bp-feedback.updated {
    border-color: rgba(77, 144, 62, 0.35);
    background: rgba(77, 144, 62, 0.12);
}

body.buddypress .buddypress-wrap .bp-feedback.error,
body.buddypress .buddypress-wrap .bp-feedback.warning {
    border-color: rgba(230, 35, 54, 0.3);
    background: rgba(230, 35, 54, 0.08);
}

body.buddypress .buddypress-wrap .bp-feedback.info,
body.buddypress .buddypress-wrap .bp-feedback.help {
    border-color: rgba(66, 147, 130, 0.32);
    background: rgba(66, 147, 130, 0.1);
}

/* Integrazione specifica per: <div class="bp-feedback bp-messages info"> */
body.buddypress .buddypress-wrap .bp-feedback.bp-messages.info,
body.buddypress .buddypress-wrap .bp-feedback.bp-messages.help {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    color: var(--edi-bp-text);
}

body.buddypress .buddypress-wrap .bp-feedback.bp-messages.info .bp-icon,
body.buddypress .buddypress-wrap .bp-feedback.bp-messages.help .bp-icon {
    margin-right: 0;
    min-width: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    background: var(--edi-bp-primary);
    color: #ffffff;
}

body.buddypress .buddypress-wrap .bp-feedback.bp-messages.info p,
body.buddypress .buddypress-wrap .bp-feedback.bp-messages.help p {
    margin: 0;
    padding: 10px 12px;
    line-height: 1.4;
    color: var(--edi-bp-text);
}

body.buddypress .buddypress-wrap .bp-feedback.bp-messages.info a:not(.button),
body.buddypress .buddypress-wrap .bp-feedback.bp-messages.help a:not(.button) {
    color: var(--edi-bp-primary);
    font-weight: 600;
}

body.buddypress #buddypress input[type="text"],
body.buddypress #buddypress input[type="email"],
body.buddypress #buddypress input[type="url"],
body.buddypress #buddypress input[type="password"],
body.buddypress #buddypress input[type="number"],
body.buddypress #buddypress input[type="search"],
body.buddypress #buddypress textarea,
body.buddypress #buddypress select {
    border: 1px solid var(--edi-bp-border);
    border-radius: 16px;
    background: #ffffff;
    color: var(--edi-bp-text);
    padding: 0 12px;
}

body.buddypress #buddypress input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--site-border-color, #d3e4e6);
    border-radius: 50%;
    background: #ffffff;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.buddypress #buddypress input[type="radio"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-button-bg-color, #429382);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.15s ease-in-out;
}

body.buddypress #buddypress input[type="radio"]:checked {
    border-color: var(--primary-button-bg-color, #429382);
}

body.buddypress #buddypress input[type="radio"]:checked::after {
    transform: translate(-50%, -50%) scale(1);
}

body.buddypress #buddypress input[type="radio"]:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(66, 147, 130, 0.2);
}

body.buddypress #buddypress input[type="submit"],
body.buddypress #buddypress input[type="button"],
body.buddypress #buddypress button,
body.buddypress #buddypress a.button {
    border-radius: var(--edi-bp-pill-radius);
    border: 1px solid var(--edi-bp-primary);
    background: var(--edi-bp-primary);
    color: var(--edi-bp-primary-fg);
    padding: 9px 16px;
}

body.buddypress #buddypress input[type="submit"]:hover,
body.buddypress #buddypress input[type="button"]:hover,
body.buddypress #buddypress button:hover,
body.buddypress #buddypress a.button:hover {
    background: #367a6d;
    border-color: #367a6d;
    color: var(--edi-bp-primary-fg);
}

body.buddypress #buddypress .generic-button a.friendship-button.remove,
body.buddypress #buddypress .generic-button a.unfollow,
body.buddypress #buddypress .generic-button a.leave-group {
    border-color: #d9a739;
    background: #d9a739;
}

body.buddypress #buddypress .generic-button a.friendship-button.remove:hover,
body.buddypress #buddypress .generic-button a.unfollow:hover,
body.buddypress #buddypress .generic-button a.leave-group:hover {
    border-color: #b78b2f;
    background: #b78b2f;
}

body .buddypress-wrap .bp-feedback.success .bp-icon,
body .buddypress-wrap .bp-feedback.updated .bp-icon {

    background-color: var(--edi-bp-primary)!important;

}

body .buddypress-wrap .bp-feedback.info .bp-icon {

    background-color: var(--edi-bp-primary)!important;

}

body .acomment-content .ac-input.bp-suggestions {

    max-width: 95%;
    border: 1px solid var(--edi-bp-border)!important;

}

.acomment-content {

    border: 1px solid var(--edi-bp-border)!important;

}

/* Register form */
body.buddypress #buddypress #register-page #signup-form {
    margin-top: 18px;
}

body.buddypress #buddypress #register-page #signup-form .layout-wrap {
    gap: 16px;
}

body.buddypress #buddypress #register-page #signup-form .register-section {
    border: 1px solid var(--edi-bp-border);
    border-radius: var(--edi-bp-radius);
    background: #ffffff;
    box-shadow: var(--edi-bp-shadow);
    padding: 16px;
}

body.buddypress #buddypress #register-page #signup-form .register-section h2.bp-heading,
body.buddypress #buddypress #register-page #signup-form .register-section h2 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.2;
}

body.buddypress #buddypress #register-page #signup-form label,
body.buddypress #buddypress #register-page #signup-form legend,
body.buddypress #buddypress #register-page #signup-form span.label {
    margin: 12px 0 6px;
    color: var(--edi-bp-text);
    font-weight: 400;
}

body.buddypress #buddypress #register-page #signup-form .editfield {
    margin: 0 0 12px;
}

body.buddypress #buddypress #register-page #signup-form .editfield fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

body.buddypress #buddypress #register-page #signup-form .field-visibility-settings,
body.buddypress #buddypress #register-page #signup-form .field-visibility-settings-notoggle {
    margin-top: 8px;
    border: 1px solid var(--edi-bp-border);
    border-radius: 12px;
    background: var(--edi-bp-muted-bg);
    padding: 8px 10px;
}

body.buddypress #buddypress #register-page #signup-form .field-visibility-settings label,
body.buddypress #buddypress #register-page #signup-form .field-visibility-settings-notoggle label,
body.buddypress #buddypress #register-page #signup-form .radio label,
body.buddypress #buddypress #register-page #signup-form .checkbox label {
    font-weight: 400;
    margin: 4px 0;
}

body.buddypress #buddypress #register-page #signup-form p.description,
body.buddypress #buddypress #register-page #signup-form p.field-visibility-settings-toggle {
    color: var(--edi-bp-muted-text);
    margin: 6px 0 0;
    font-size: 13px;
}

body.buddypress #buddypress #register-page #signup-form .wp-pwd {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.buddypress #buddypress #register-page #signup-form .wp-pwd button {
    min-height: 38px;
    padding: 0 12px;
}

body.buddypress #buddypress #register-page #signup-form #pass-strength-result {
    margin: 8px 0 0;
    border-radius: 12px;
    border: 1px solid var(--edi-bp-border);
    background: #ffffff;
    color: var(--edi-bp-text);
    padding: 8px 10px;
    text-align: left;
}

body.buddypress #buddypress #register-page #signup-form #pass-strength-result.short,
body.buddypress #buddypress #register-page #signup-form #pass-strength-result.bad {
    border-color: rgba(230, 35, 54, 0.35);
    background: rgba(230, 35, 54, 0.08);
}

body.buddypress #buddypress #register-page #signup-form #pass-strength-result.good {
    border-color: rgba(217, 167, 57, 0.35);
    background: rgba(217, 167, 57, 0.1);
}

body.buddypress #buddypress #register-page #signup-form #pass-strength-result.strong {
    border-color: rgba(77, 144, 62, 0.35);
    background: rgba(77, 144, 62, 0.12);
}

body.buddypress #buddypress #register-page #signup-form #pass-strength-result.show {
    display: block;
}

body.buddypress #buddypress #register-page #signup-form .submit,
body.buddypress #buddypress #register-page #signup-form p.submit {
    margin-top: 14px;
    padding-top: 0;
}

body.buddypress #buddypress #register-page #signup-form .submit input[type="submit"],
body.buddypress #buddypress #register-page #signup-form p.submit input[type="submit"],
body.buddypress #buddypress #register-page #signup-form #submit {
    min-height: 42px;
    min-width: 220px;
    padding: 10px 18px;
}

body.buddypress #buddypress #register-page #signup-form #submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Choices select (solo registrazione) */
body.buddypress #buddypress #register-page #signup-form .choices {
    width: 100%;
    margin: 6px 0 0;
}

body.buddypress #buddypress #register-page #signup-form .choices__inner {
    min-height: 44px;
    border: 1px solid var(--edi-bp-border);
    border-radius: 16px;
    background: #ffffff;
    color: var(--edi-bp-text);
    padding: 0 40px 0 12px;
    display: flex;
    align-items: center;
    box-shadow: none;
}

body.buddypress #buddypress #register-page #signup-form .choices__list--single {
    padding: 0;
    line-height: 1.25;
}

body.buddypress #buddypress #register-page #signup-form .choices__item--single,
body.buddypress #buddypress #register-page #signup-form .choices__placeholder {
    color: var(--edi-bp-text);
}

body.buddypress #buddypress #register-page #signup-form .choices__placeholder {
    opacity: 1;
    color: var(--edi-bp-muted-text);
}

body.buddypress #buddypress #register-page #signup-form .choices[data-type*="select-one"]:after {
    border-color: var(--edi-bp-muted-text) transparent transparent;
    right: 14px;
    margin-top: -2px;
}

body.buddypress #buddypress #register-page #signup-form .choices.is-open .choices__inner,
body.buddypress #buddypress #register-page #signup-form .choices:focus-within .choices__inner {
    border-color: var(--edi-bp-primary);
    box-shadow: 0 0 0 3px rgba(66, 147, 130, 0.14);
}

body.buddypress #buddypress #register-page #signup-form .choices[data-type*="select-one"].is-open:after {
    border-color: transparent transparent var(--edi-bp-primary);
    margin-top: -6px;
}

body.buddypress #buddypress #register-page #signup-form .choices__list--dropdown {
    margin-top: 8px;
    border: 1px solid var(--edi-bp-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--edi-bp-shadow);
    overflow: hidden;
}

body.buddypress #buddypress #register-page #signup-form .choices__list--dropdown .choices__input {
    border: 0;
    border-bottom: 1px solid var(--edi-bp-border);
    background: var(--edi-bp-muted-bg);
    color: var(--edi-bp-text);
    min-height: 38px;
    padding: 8px 10px;
}

body.buddypress #buddypress #register-page #signup-form .choices__list--dropdown .choices__item--choice {
    padding: 9px 12px;
    color: var(--edi-bp-text);
}

body.buddypress #buddypress #register-page #signup-form .choices__list--dropdown .choices__item--choice.is-highlighted {
    background: var(--edi-bp-muted-bg);
    color: var(--edi-bp-primary);
}

body.buddypress #buddypress #register-page #signup-form .choices__list--dropdown .choices__item--choice.is-selected {
    background: rgba(66, 147, 130, 0.1);
    color: var(--edi-bp-text);
}

@media screen and (max-width: 46.8em) {
    body.buddypress #buddypress #register-page #signup-form .register-section {
        padding: 14px;
    }

    body.buddypress #buddypress #register-page #signup-form .register-section h2.bp-heading,
    body.buddypress #buddypress #register-page #signup-form .register-section h2 {
        font-size: 20px;
    }

    body.buddypress #buddypress #register-page #signup-form .submit input[type="submit"],
    body.buddypress #buddypress #register-page #signup-form p.submit input[type="submit"],
    body.buddypress #buddypress #register-page #signup-form #submit {
        width: 100%;
        min-width: 0;
    }
}

@media screen and (max-width: 46.8em) {
    body.buddypress #buddypress:not(.bp-single-vert-nav) .bp-navs li {
        background: transparent;
    }

    body.buddypress #item-header-cover-image {
        align-items: center;
        padding: 16px;
    }

    body.buddypress #item-header-cover-image #item-header-avatar img.avatar,
    body.buddypress .single-headers #item-header-avatar a img {
        width: 96px;
        height: 96px;
    }

    body.buddypress .single-headers div#item-header-content {
        min-width: 0;
        width: 100%;
    }

    body.buddypress .activity-update-form #whats-new-buttons,
    body.buddypress .activity-update-form #whats-new-submit {
        margin-left: 0;
    }

    body.buddypress .activity-update-form #whats-new-submit input {
        width: 100%;
        min-width: 0;
    }

    body.buddypress .buddypress-wrap .subnav-filters .bp-search form {
        flex-direction: column;
    }

    body.buddypress .buddypress-wrap .subnav-filters {
        height: auto;
        padding: 10px 12px;
        display: block;
    }

    body.buddypress .buddypress-wrap .subnav-filters .subnav-search,
    body.buddypress .buddypress-wrap .subnav-filters .component-filters,
    body.buddypress .buddypress-wrap .subnav-filters .component-filters .last.filter {
        display: block;
    }
}
