
/**
* Buddy Press
*/
#buddypress {
    padding-left: 355px;
    padding-right: 55px;
    padding-bottom: 70px;
}

#change-cover-image-personal-li,
#item-header {
	display: none;
} 


body.buddypress h1.content-font-400-60 {
	padding-left: 355px;
    text-align: left;
} 

#cover-image-container,
#settings-personal-li,
#xprofile-personal-li {
	display: none;
}

.item-avatar img, img.avatar {
	width:50px;
	height: 50px;
	object-fit: cover;
}

#buddypress img.avatar {
    border-radius: 100%;
}

#buddypress .activity-list li.mini .activity-avatar img.FB_profile_pic, #buddypress .activity-list li.mini .activity-avatar img.avatar {
    height: 30px;
    margin-left: 30px;
    width: 30px;
    margin-top: 10px;
}


/*BP AFG Menu*/
.afg-bp-menu {
    position: fixed;
    width: 300px;
    display: flex;
    flex-direction: column;
    color: var(--third-color);
    left: 0;
    top: 50%;
    transform: translateY(-120px);
    z-index:1000;
}

.afg-bp-menu a, .afg-bp-menu-header {
	color: var(--third-color);
	background-color: var(--second-color);
	padding: 18px 20px;
    border-bottom: 1px solid #797373;
    letter-spacing: .02em;
    position: relative;
    align-items: center;
    display: flex;
    transition: all .3s;
}

.afg-bp-menu a:hover, .afg-bp-menu a.afg-active {
	color: var(--second-color);
	background-color: var(--main-color);
}

.afg-bp-menu a:last-child {
	border-bottom: unset;
}

.item-avatar img {
	border-radius: 100%;
	border:2px solid var(--second-color);
}


/**
* BP Buttons
*/
.action {
	display: flex;
	flex-wrap: wrap;
}

.action .generic-button a {
	margin-left: 5px;
}

.generic-button a, 
#buddypress #send,
#buddypress #profile-group-edit-submit,
#buddypress #group-creation-create,
#buddypress #settings-form #submit,
#bp-data-export button,
.avatar-crop-submit,
#activity-stream .load-more,
.activity-comments input[type="submit"] {
    height: 30px;
    line-height: 30px;
    font-weight: 400;
    font-size: 15px!important;
    display: flex!important;
    justify-content: center!important;
    align-items: center!important;
    color:var(--second-color)!important;
    padding-bottom: 0!important;
    background-color: var(--main-color)!important;
    border:unset!important;
    padding:0 10px!important;
}

#buddypress .standard-form div.submit input,
#buddypress #send,
#buddypress #profile-group-edit-submit,
#buddypress #group-creation-create,
#buddypress #settings-form #submit,
#bp-data-export button,
.avatar-crop-submit,
#activity-stream .load-more {
	height: 40px;
	font-size: 15px!important;
	padding:0 20px!important;
	letter-spacing: 0.1em;
}

.activity-comments input[type="submit"] {
	display: inline-flex!important;
	height: 30px;
	font-size: 12px!important;
	padding:0 15px!important;
	letter-spacing: 0.05em;
}

.thread-options {
	color:transparent;
}

.thread-options a, #buddypress .feed a{
    background: #fff;
    border: 1px solid #ccc;
    color: #767676;
    font-size: small;
    cursor: pointer;
    outline: 0;
    padding: 4px 10px;
    text-align: center;
    text-decoration: none;
}

#buddypress .standard-form button {
	margin-left: 5px;
}



/*BP Top Nav*/
#buddypress div.item-list-tabs:not(#subnav) ul li {
    padding: 0;
    background-color: var(--main-color);
    margin-right: 5px;
}

@media screen and (max-width: 1500px) {
	#buddypress div.item-list-tabs:not(#subnav) ul li a,
	#buddypress div.item-list-tabs:not(#subnav) ul li > span {
	    padding: 18px 10px!important;
	}
}

#buddypress div.item-list-tabs:not(#subnav) ul li a,
#buddypress div.item-list-tabs:not(#subnav) ul li > span {
    padding: 18px 25px;
    letter-spacing: .02em;
    font-size: 14px;
}

#buddypress div.item-list-tabs:not(#subnav) ul li.selected,
#buddypress div.item-list-tabs:not(#subnav) ul li.current {
	background-color: #fff;
}

#buddypress div.item-list-tabs:not(#subnav) ul li.current a,
#buddypress div.item-list-tabs:not(#subnav) ul li.selected a {
    background-color: #fff;
    color: var(--second-color);
    opacity: 1;
}


/**
* BP Grouped action on list bottoms
*/
#buddypress .messages-options-nav select {
    height: 18px;
    margin-top: 6px;
    font-size: 11px!important;
}

/*BP Top Nav Notifications*/
#buddypress div.item-list-tabs ul li a span, .afg-notification {
    background: transparent;
    border-radius: 50%;
    border: 1px solid var(--second-color);
    color: var(--second-color);
    font-size: 70%;
    margin-left: 10px;
    padding: 6px;
    height: 20px;
    width: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 400;
}


#buddypress div.item-list-tabs ul li a:hover span {
	background: transparent;
}

#buddypress div.item-list-tabs ul li a span.count, .afg-notification.count {
	background: #ff473f;
	border-color:transparent;
	color:var(--third-color);

}

#afg-user-picto .afg-notification { 
	position: absolute;
	top:-10px;
	right: -10px;
}

/*BP Subnav*/
#buddypress div.item-list-tabs#subnav {
	margin:0 0 20px;
	/*display: flex;
    justify-content: space-between;
    align-items: center;*/
}

#buddypress div.item-list-tabs#subnav ul {
	position: relative;
	font-size: 14px;
}

#buddypress div.item-list-tabs#subnav ul li {
    padding: 0 50px 0 0;
}

#buddypress div.item-list-tabs#subnav ul li:last-child {
    padding: 0;
}

#buddypress div.item-list-tabs#subnav ul li a,
#buddypress div.item-list-tabs#subnav ul li.selected a,
#buddypress div.item-list-tabs#subnav ul li.current a {
	padding:0;
	color:var(--second-color);
	font-weight: 400;
	font-size: 14px;
	background-color: transparent;
}

#buddypress div.item-list-tabs#subnav ul li.selected a,
#buddypress div.item-list-tabs#subnav ul li.current a {
    border-bottom: 1px solid;
}

#item-body {
	background-color: #fff;
	padding:25px;
}

#item-body h2 {
	margin-top:0!important;
	margin-bottom: 20px!important;
	font-size: 22px;
}


#buddypress div.item-list-tabs#subnav ul li#activity-filter-select {
	margin-top: 10px;
} 

/**
* BP Edit profile form
*/
#buddypress .field-visibility-settings,
#buddypress .field-visibility-settings-notoggle,
#buddypress .field-visibility-settings-toggle {
    color: var(--second-color);
    font-size: 11px;
    font-style: normal;
    margin-bottom: 0;
    margin-top:7px;
}

#buddypress .editfield {
	margin-bottom: 30px;
}

/**
* BP Actions in users && groups directory
*/
#buddypress ul.item-list li div.action {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    right: 0;
    align-items: center;
    text-align: right;
}

#buddypress ul.item-list li div.meta {
    margin-top: 0;
    margin-left: 10px;
}

/**
* BP Fields
*/
#buddypress .dir-search input[type=text], 
#buddypress .groups-members-search input[type=text], 
#buddypress .standard-form input[type=color], 
#buddypress .standard-form input[type=date],
#buddypress .standard-form input[type=datetime-local], 
#buddypress .standard-form input[type=datetime], 
#buddypress .standard-form input[type=email],
#buddypress .standard-form input[type=month], 
#buddypress .standard-form input[type=number], 
#buddypress .standard-form input[type=password],
#buddypress .standard-form input[type=range], 
#buddypress .standard-form input[type=tel],
#buddypress .standard-form input[type=text], 
#buddypress .standard-form input[type=time], 
#buddypress .standard-form input[type=url],
#buddypress .standard-form input[type=week], 
#buddypress .standard-form select, 
#buddypress .standard-form textarea,
#buddypress div.activity-comments form .ac-textarea {
	border-radius: 0;
	background-color: var(--third-color);
	border:1px solid #ebebeb;
	color:var(--second-color);
	min-width: 300px;
}

#buddypress div.activity-comments form .ac-textarea {
	background-color: #fff;
	border:1px solid #ccc;
}

#buddypress .dir-search input[type=search],
#buddypress .groups-members-search input[type=search],
#buddypress .standard-form input[type=search] {
	background-color: transparent;
	border-color:var(--second-color);
	color:var(--second-color);
}

#buddypress select {
    border: unset;
    border-bottom: 1px solid var(--second-color);
    background: unset;
}

#buddypress div.activity-comments form div.ac-reply-content a {
    font-size: 80%;
    border-bottom: 1px solid;
}

/**
* Users && Groups directory
*/
#members-directory-form #subnav,
#groups-directory-form #subnav,
#buddypress > #subnav {
	background-color: #fff!important;
	margin-bottom:0!important;
	padding:20px 20px 0 20px;
}

#members-dir-list,
#groups-dir-list,
#buddypress > .activity {
	background-color: #fff;
	padding:20px;
}

#pag-bottom {
	float: none!important;
	padding-bottom: 20px!important;
}

/*Messages list bulk actions*/
#buddypress #item-body select {
    font-size: small;
}

.messages-options-nav {
	display: flex;
	margin-top:15px;
}

.messages-options-nav select {
	margin-right: 15px;
} 

/**
* BP Search fields
*/
#search-groups-form, #search-message-form, #search-members-form {
	display: flex;
    align-items: center;
}

#groups_search, #messages_search, #members_search {
	border:unset!important;
	border-bottom:1px solid var(--second-color)!important;
	font-size: 11px!important;
	min-width: 190px!important;
    padding: 0!important;
} 

#groups_search_submit, #messages_search_submit, #members_search_submit {
	border:unset!important;
	font-size: 0px!important;
	background: url('assets/img/search-2.svg')!important;
	background-repeat: no-repeat;
	background-size: contain;
	padding:0!important;
	height: 30px!important;
    width: 30px!important;
    margin-left:15px!important;
}

#buddypress #search-groups-form input::placeholder, 
#buddypress #search-message-form input::placeholder,
#buddypress #search-members-form input::placeholder {
	color:var(--second-color);
}

/**
* BP Notifications
*/
#buddypress div#message p,
#sitewide-notice #message, 
#buddypress p.warning,
body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,
body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,
#buddypress div#message.updated p {
    background-color: transparent;
    border: 1px solid var(--second-color);
    color: var(--second-color);
    font-weight: 400;
    margin-top: 0;
    margin:0;
    display: inline-block;
    margin-top:20px;
    position: relative;
}

/**
* BP Avatar form
*/

.bp-avatar-nav ul {
	border-bottom: unset;
}

.bp-avatar-nav ul.avatar-nav-items li {
	padding:10px;
}

.avatar-nav-items li a {
    font-size: 14px;
    padding:0;
}

.bp-avatar-nav ul.avatar-nav-items li.current {
	border: unset;
}

.bp-avatar-nav ul.avatar-nav-items li.current a {
	border-bottom: 1px solid;
}

/**
* BP Write Message form
*/
#buddypress #send-to-input {
	width: 100%!important;
}


/**
* BP Image Upload
*/
#avatar-crop-pane {
    border-radius: 100%;
}


/**
* BP Messages list Table
*/
#buddypress table tr td {
    background: transparent!important;
    border-top: 1px solid #EBEBEB!important;
    border-bottom: 1px solid #EBEBEB!important;
}

#buddypress th {
	font-weight: 400;
	//border-bottom: 1px solid var(--second-color);
}

.message-action-star .screen-reader-text {
	display: none;
}

#buddypress table.forum thead tr, #buddypress table.messages-notices thead tr, #buddypress table.notifications thead tr, #buddypress table.notifications-settings thead tr, #buddypress table.profile-fields thead tr, #buddypress table.profile-settings thead tr, #buddypress table.wp-profile-fields thead tr {
    background: transparent;
}

#buddypress table.forum tr td.label, #buddypress table.messages-notices tr td.label, #buddypress table.notifications tr td.label, #buddypress table.notifications-settings tr td.label, #buddypress table.profile-fields tr td.label, #buddypress table.wp-profile-fields tr td.label {
    border-right: unset;
    font-weight: 700;
    width: 25%;
}

#buddypress div.pagination .pagination-links a, #buddypress div.pagination .pagination-links span {
	font-size: 100%;
    padding: 0;
    margin: 0 5px 5px;
    margin-bottom: 5px;
    border: 1px solid;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 100%;
}


/**
* BP Groups
*/
#buddypress #group-create-body {
	margin:0;
	padding:20px;
	background-color: #fff;
}

#buddypress div#invite-list {
	width: 300px;
	padding: 20px 25px 20px 20px;
    margin-right: 10px;
}

#buddypress form.standard-form .main-column {
	margin-left: 300px;
} 

#buddypress div#invite-list label {
	display: flex;
	align-items: center;
}

#buddypress div#invite-list label input {
	margin-right: 10px;
}

#buddypress div.item-list-tabs ul li.last select {
    font-size: 11px;
}



/**
* BP Cover image && Group Header
*/
#buddypress #header-cover-image {
	height: auto;
}

#buddypress div#item-header {
	position: relative;
	padding-bottom: 20px;
}

#buddypress div#item-header div#item-actions {
	width: 50%;
	max-width: 50%;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

#buddypress div#item-header div#item-actions h2, #buddypress div#item-header div#item-actions h3 {
	font-size: 80%;
	margin-bottom: 0;
}

#buddypress div#item-header ul {
	margin-bottom: 0;
}

#buddypress div#item-header .bp-tooltip {
	display: block;
}  

#buddypress div#item-header div#item-meta {
    margin: 0;
    padding-bottom: 0;
    position: absolute;
    top: 0;
    right: 0;
}

body.group-home #buddypress div#item-header div#item-meta {
	position: relative;
	padding-bottom: 20px;
}

#buddypress div#item-header a.button, #buddypress div#item-header div.generic-button {
    margin: 8px 0 0 10px;
}

body.single-item.groups #buddypress div#item-header #item-header-cover-image #item-actions {
	max-width: 100%;
	width: 100%;
	float: none;
}

body.single-item.groups #buddypress div#item-header #item-header-cover-image #item-header-content, body.single-item.groups #buddypress div#item-header #item-header-cover-image #item-actions {
    clear: none;
    max-width: 100%;
    margin-top: 0;
}

#buddypress #item-header-cover-image #item-header-avatar {
    margin-top: 15px;
}

/**
* BP Lists
*/
#buddypress table.forum tr.alt td, 
#buddypress table.messages-notices tr.alt td, 
#buddypress table.notifications tr.alt td, 
#buddypress table.notifications-settings tr.alt td, 
#buddypress table.profile-fields tr.alt td, 
#buddypress table.profile-settings tr.alt td, 
#buddypress table.wp-profile-fields tr.alt td {
    color: var(--second-color)!important;
}



/**
* BP Comments count
*/
#buddypress #reply-title small a span, #buddypress a.bp-primary-action span {
    //background: #767676a1;
    color: #fff;
    font-size: 90%;
    margin-left: 2px;
    padding: 0 0 0 1px;
    border-radius: 100%;
    height: 15px;
    width: 15px;
    display: inline-block;
}

/**
* BP Activity
*/

#buddypress .activity-inner img {
	height: 200px;
	width: auto;
	display: block;
	margin-top: 20px;
}

#buddypress .activity-header a {
	border-bottom: 1px solid;
}

#buddypress .activity-list .activity-content .activity-header,
#buddypress .activity-list .activity-content .comment-header {
	margin-right: 0;
}

.activity-time-since.bp-tooltip {
	border-bottom: unset!important;
	float: right;
	padding:0;
}

/**
* BP RSS
*/
.feed .bp-tooltip {
	display: flex!important;
    padding: 0 10px!important;
}

.feed .bp-tooltip:after {
    background: var(--third-color);
    margin-left: 10px;
    margin-top: 0;
    border: unset;
    border-radius: 0;
    box-shadow: unset;
    color: var(--second-color);
    font-family: 'Rubik',sans-serif;
    position: relative;
    right: 0;
    top: 0;
    transform: unset;
    transition: opacity 2s ease-out;
    white-space: pre;
    word-wrap: break-word;
    z-index: 998!important;
    display: none;
    align-items: center;
 	padding:0 5px;
}

.feed .bp-tooltip:hover:after {
	display: flex;
}

/***
* BP Mobile
*/
@media screen and (max-width: 992px) {
	
	/**
	* Afg BP Fixed Menu
	*/
	.afg-bp-menu {
	    position: fixed;
	    width: 100vw;
	    bottom: -100%;
	    top:auto;
	    transform: unset;
	    transition: all .3s;
	}

	.afg-bp-menu-preheader {
	    color: var(--third-color);
	    background-color: var(--second-color);
	    padding: 18px 20px;
	    letter-spacing: .02em;
	    position: fixed;
	    align-items: center;
	    display: flex;
	    transition: all .3s;
	    height:60px;
		width: 100vw;
		bottom:0;
		left:0;
		z-index:1001;
	}

	.afg-bp-menu-overlay {
		position: fixed;
		top:0;
		left:0;
		z-index:999;
		width: 100vw;
		height: 100vh;
		opacity: 0;
		pointer-events: none;
	}


	.afg-bp-menu.afg-active {
	    top: auto;
	    bottom:60px;
	}

	.afg-bp-menu-overlay.afg-active{
		pointer-events: all;
	}

	/**
	* Top Nav
	*/
	#buddypress div.item-list-tabs:not(#subnav) {
		margin-bottom: 20px;
 	}

	#buddypress div.item-list-tabs:not(#subnav) ul li {
	    display: block;
	    width: 100%;
	    margin-right: 0;
	}

	#buddypress ul.item-list li div.action {
	    position: relative;
	    height: auto;
	}

	body.buddypress h1.content-font-400-60 {
	    padding-left: 0;
	    text-align: center;
	}

	#buddypress form#whats-new-form p.activity-greeting {
		line-height: 1.2em;
	}

	.activity-meta a {
		display: block;
		margin-top:10px;
	}

	.activity-meta a:first-child {
		margin-top:0;
	}


	/**
	* Users && Groups directory
	*/
	#members-directory-form #subnav,
	#groups-directory-form #subnav,
	#buddypress > #subnav {
		padding:15px 15px 0;
	}

	#members-dir-list,
	#groups-dir-list,
	#buddypress > .activity {
		background-color: #fff;
		padding:0 15px 15px;
	}

	#buddypress div.pagination .pag-count {
		text-align: left;
		margin-left: 0;
		float: none;
		margin-bottom: 10px;
	} 

	#buddypress div.pagination .pagination-links {
		float: none;
	} 

	#pag-bottom {
		padding-bottom: 0!important;
	} 

	#message-threads td p.thread-excerpt {
		word-break: break-word!important;
	}

	.bp-tooltip {
	    padding: 0!important;
	}

	.thread-options a, #buddypress .feed a {
		width: 100%;
		display: block;
	}

	#buddypress div#item-header div#item-meta {
	    position: relative;
	    top: auto;
	    right: auto;
	}

	.activity-time-since.bp-tooltip {
		border-bottom: unset!important;
		float: none;
	}


}

@media only screen and (max-width: 480px) {
	#buddypress div.dir-search {
	    float: none;
	    margin-top: 0;
	}

	

	#buddypress ul.item-list li div.meta {
	    margin-top: 10px;
	}
}