#wg-day-time-availability .wg-filter-panel svg {
  width: 20px;
  height: 20px;
  fill: #7d52a2;
}

#wg-day-time-availability li {
  font-weight: 500;
}

#wg-day-time-availability .day-time-slots {
  display: flex;
  gap: 8px;
}

#wg-day-time-availability .day-time-slots div {
  min-width: 36px;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #e0d7ed;
  background: #f3f0f8;
  color: #4b3a60;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#wg-day-time-availability .day-time-slots div:hover {
  background: rgba(125, 82, 162, 0.1);
  border-color: #cbb6e4;
}

#wg-day-time-availability .day-time-slots div.active {
  background: #7d52a2;
  border-color: #7d52a2;
  color: #2d2828;
  box-shadow: 0 4px 10px rgba(125, 82, 162, 0.25);
  transform: translateY(-1px);
}
#wg-day-time-availability .day-time-slots div.active svg {
  fill: #ffffff;
}
#wg-day-time-availability .wg-quick-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

#wg-day-time-availability .wg-quick-filter button {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #e0d7ed;
  background: #f6f2fa;
  color: #4b3a60;
  cursor: pointer;
  transition: all 0.2s ease;
}

#wg-day-time-availability .wg-quick-filter button:hover {
  background: rgba(125, 82, 162, 0.1);
  border-color: #cbb6e4;
}

#wg-day-time-availability .wg-quick-filter button.active {
  background: #7d52a2;
  color: #ffffff;
  border-color: #7d52a2;
  box-shadow: 0 4px 12px rgba(125, 82, 162, 0.25);
}
#wg-team-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#wg-team-results {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  row-gap: 30px;
}
.wg-team-member {
  background: #ffffff;
  transition: all 0.2s ease;
}
#wg-search-clear-search {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #7d52a2;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: none;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#wg-search-clear-search svg {
	width: 14px;
  	height: 14px;
}
#wg-search-clear-search.show {
  pointer-events: auto;
  opacity: 1;
}
#wg-search-clear-search:hover {
  color: #4b3a60;
}
#wg-team-search-input {
  padding-right: 30px;
}

#wg-active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#wg-active-filters .active-filter {
  background: #7d52a2 !important;
  color: #ffffff !important;
  border-color: #7d52a2 !important;
  box-shadow: 0 4px 12px rgba(125, 82, 162, 0.25) !important;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  text-transform: capitalize;
  transition: all 0.3s ease;
}
#wg-active-filters .active-filter::after {
  content: "×";
  margin-left: 6px;
  font-weight: bold;
  cursor: pointer;
}
#wg-active-filters .active-filter strong {
  margin-right: 4px;
}

#wg-team-sidebar li {
  cursor: pointer;
}
#wg-team-sidebar li:hover {
  color: #7d52a2;
}
#wg-team-sidebar ul {
  list-style: none;
  padding-left: 0;
}
#wg-team-sidebar {
  position: sticky;
  top: 0;
}

#wg-other-filters,
#wg-team-sidebar {
  display: flex;
  gap: 12px;
}
/* #wg-other-filters{
					gap: 24px;
				} */
.wg-filter-controls:hover .wg-filter-panel {
  opacity: 1;
  pointer-events: auto;
}
.wg-filter-panel {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e0d7ed;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(125, 82, 162, 0.25);
  padding: 20px;
  z-index: 10;
  /* left:0%; */
  top: 100%;
  /* width: 100%; */
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
#wg-team-filters .wg-filter-panel ul,
#wg-team-treatment-orientation .wg-filter-panel ul,
#wg-team-community-group .wg-filter-panel ul {
  column-count: 4;
}
#wg-team-filters .wg-filter-panel,
#wg-team-treatment-orientation .wg-filter-panel ,
#wg-team-community-group .wg-filter-panel{
        max-height: calc(100svh - 300px);
    overflow-y: auto;
}
#wg-team-filters .wg-filter-panel ul li {
  /* padding-left: 1em; */
}
.wg-filter-panel li {
  font-size: 14px;
  line-height: 1.1;
  position: relative;
  padding-left: 1.5em;
  cursor: pointer;
  margin-bottom: 8px;
}
#wg-team-treatment-orientation .wg-filter-panel,
#wg-team-community-group .wg-filter-panel {
  right: 0;
}
#wg-clear-filters-button,
#wg-clear-filters-tablet {
  cursor: pointer;
  display: inline-block;
  font-size: 12px;
  color: #7d52a2;
}
#wg-clear-filters-button:hover {
  color: #4b3a60;
}
#wg-team-count {
  font-size: 12px;
}
#wg-team-filters .wg-filter-panel {
  width: 100%;
  left: 0;
}
#wg-day-time-availability .wg-filter-panel {
  min-width: 450px;
  width: 100%;
  right: 0%;
  left: auto;
}
#wg-day-time-availability {
  position: relative;
}
#wg-team-filters .wg-filter-panel ul li::before,
#wg-team-session-format .wg-filter-panel ul li::before,
#wg-pronouns .wg-filter-panel ul li::before,
#wg-team-age-range .wg-filter-panel ul li::before,
#wg-team-treatment-orientation .wg-filter-panel ul li::before,
#wg-team-modality .wg-filter-panel ul li::before,
#wg-team-community-group .wg-filter-panel ul li::before {
  content: "";
  color: #7d52a2;
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 1px solid #7d52a2;
  margin-left: 0em;
  margin-right: 0.4em;
  position: absolute;
  top: 0px;
  transition: all 0.3s ease;
  border-radius: 50%;
  left: 0;
}
#wg-team-filters .wg-filter-panel ul li.active::before,
#wg-team-session-format .wg-filter-panel ul li.active::before,
#wg-pronouns .wg-filter-panel ul li.active::before,
#wg-team-age-range .wg-filter-panel ul li.active::before,
#wg-team-treatment-orientation .wg-filter-panel ul li.active::before,
#wg-team-modality .wg-filter-panel ul li.active::before,
#wg-team-community-group .wg-filter-panel ul li.active::before {
  background: #7d52a2;
}
#wg-team-filters .wg-filter-panel ul li.active::after,
#wg-team-session-format .wg-filter-panel ul li.active::after,
#wg-pronouns .wg-filter-panel ul li.active::after,
#wg-team-age-range .wg-filter-panel ul li.active::after,
#wg-team-treatment-orientation .wg-filter-panel ul li.active::after,
#wg-team-modality .wg-filter-panel ul li.active::after,
#wg-team-community-group .wg-filter-panel ul li.active::after {
  color: #fff;
  content: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%221.5%22%20stroke%3D%22%23fff%22%20class%3D%22size-6%22%3E%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M6%2018%2018%206M6%206l12%2012%22%20%2F%3E%3C%2Fsvg%3E);
  display: flex;
  width: 0.8em;
  height: 0.8em;
  border: none;
  background: none;
  position: absolute;
  top: 0.1em;
  left: 0.1em;
}
#wg-team-sidebar {
  transition: 0.3s all ease;
  position: sticky;
  top: 0px;
  z-index: 10;
  display: flex;
  /* flex-wrap: wrap; */
  /* align-items: center; */
  gap: 12px;
  /* justify-content: space-between; */
  padding-bottom: 8px;
  padding-top: 8px;
}
#wg-team-search {
  position: relative;
  z-index: 2;
}

#wg-team-search .search-icon {
  width: 25px;
  height: 25px;
  position: relative;
}
#wg-team-search .search-icon svg {
  width: 25px;
  height: 25px;
  color: #7d52a2;
}
#wg-team-search .search-icon .wg-mag-x,
#wg-team-search .search-icon .wg-mag {
  /* display: none; */
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  color: #7d52a2;
  cursor: pointer;
  opacity: 1;
  transition: all 0.3s ease;
}
#wg-team-search .search-icon .wg-mag-x {
  opacity: 0;
  pointer-events: none;
}
#wg-team-search .search-icon .wg-mag-x.show {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
  position: relative;
}
#wg-team-search .search-icon .wg-mag.hide {
  opacity: 0;
  pointer-events: none;
}
#wg-search-input-cont {
  position: relative;
}
#wg-search-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 300px;
  max-width: 300px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
#wg-search-box.show {
  opacity: 1;
  pointer-events: auto;
}
/* #wg-team-sidebar #wg-team-search {
					flex: 1 1 100%;
					max-width: 300px;
				} */
/* #wg-team-search:hover #wg-search-box {
					opacity: 1;
					pointer-events: auto;

				}
				#wg-team-search:hover:after{
					content: '';
					position: absolute;
					left: 100%;
					top:0;
					width: 100px;
					height: 100%;
					display: block;
				} */
.btStickyHeaderActive #wg-team-sidebar {
  top: 216px;
}
.wg-filter-panel ul li.disabled {
  opacity: 0.25;
  pointer-events: none;
}
.admin-bar.btStickyHeaderActive #wg-team-sidebar {
  top: 249px;
}
#wg-team-results {
  min-height: 500px;
}
#wg-day-time-availability .wg-filter-panel {
  display: flex;
  gap: 40px;
}

#wg-day-time-availability .wg-quick-filter {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wg-filter-controls .wg-filter-button svg {
  width: 14px;
}
.wg-filter-controls .wg-filter-button svg {
  transition: 0.3s all ease;
}
.wg-filter-controls .wg-filter-button {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0;
  height: 100%;
  padding-top: 8px;
  padding-bottom: 8px;
}
.wg-filter-controls:hover .wg-filter-button {
  color: #7d52a2;
}
.wg-filter-controls:hover > .wg-filter-button > svg {
  transform: scaleY(-1);
}
.wg-filter-controls:hover > .wg-filter-button > svg path {
  stroke: #7d52a2;
}
#wg-team-sidebar > div {
  /* padding-top:8px; */
  /* padding-bottom:8px; */
}
#wg-team-sidebar #wg-team-search {
  padding-top: 2px;
}
.wg-filter-panel ul li {
  margin-bottom: 10px;
}
.wg-filter-controls > .wg-filter-button {
  position: relative;
}
.wg-filter-controls > .wg-filter-button span,
#wg-filter-tab > span {
  background: #7d52a2;
  color: #ffffff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  position: relative;
  top: -6px;
  right: 4px;
  margin-right: -10px;
}
.wg-filter-controls > .wg-filter-button span:empty,
#wg-filter-tab > span:empty {
  display: none;
}
#wg-team-results .rowItem:nth-child(4n-3) {
  -webkit-transition-delay: 200ms !important;
  -moz-transition-delay: 200ms !important;
  transition-delay: 200ms !important;
}
#wg-team-results .rowItem:nth-child(4n-2) {
  -webkit-transition-delay: 400ms !important;
  -moz-transition-delay: 400ms !important;
  transition-delay: 400ms !important;
}
#wg-team-results .rowItem:nth-child(4n-1) {
  -webkit-transition-delay: 600ms !important;
  -moz-transition-delay: 600ms !important;
  transition-delay: 600ms !important;
}
#wg-team-results .rowItem:nth-child(4n) {
  -webkit-transition-delay: 800ms !important;
  -moz-transition-delay: 800ms !important;
  transition-delay: 800ms !important;
}

.wg-member-photo {
  position: relative;
  overflow: hidden;
}
.wg-member-photo + .btIcoMediumSize {
  margin-top: -21px;
  margin-bottom: 10px;
}

.wg-team-member-content {
  padding-left: 15px;
  padding-right: 15px;
}
.wg-team-member:hover {
  color: #444;
}
.hover-cont {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 35px;
  text-align: center;
}
.hover-cont svg {
  height: 100px;
  width: 50px;
  fill: #7d52a2;
}
#wg-team-results {
  gap: 30px;
}
#wg-team-results .rowItem {
  padding-left: 0;
  padding-right: 0;
}
#wg-team-results .wg-member-photo {
  margin-left: -15px;
  margin-right: -15px;
}
#wg-filter-tab {
  align-self: center;
  display: none;
}
#wg-filter-tab svg {
  width: 24px;
  height: 24px;
  fill: #7d52a2;
  display: flex;
  align-items: center;
}
#wg-other-filters-close {
  display: none;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #7d52a2;
}
#wg-other-filters-close svg {
  width: 16px;
  height: 16px;
  fill: #7d52a2;
}
.wg-modal-open {
  touch-action: none;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  overflow: hidden;
}
/* .wg-modal-open #wg-other-filters {
			touch-action: none;
		 overscroll-behavior: none;
		-webkit-overflow-scrolling: auto;
		overflow: hidden;
} */

.wg-filter-controls .wg-filter-button {
  font-size: 12px;
  padding-left: 16px;
  padding-right: 12px;
  padding-top: 4px;
  padding-bottom: 4px;
  border: 1px solid #444;
  border-radius: 40px;
  transition: all 0.3s ease;
  position: relative;
}
@media (min-width: 1200px) {
  .btStickyHeaderActive #wg-team-sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc((-1 * (100vw - 1175px) / 2));
    width: 100vw;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: -1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  }
}
@media (max-width: 1200px) {
  .btStickyHeaderActive #wg-team-sidebar::before {
    content: none;
  }
  .btStickyHeaderActive #wg-team-sidebar {
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 11;
    box-shadow: none;
  }
}
@media (min-width: 1091px) {
  .wg-filter-controls:hover .wg-filter-button:after {
    content: "";
    position: absolute;
    top: 100%;
    width: 100%;
    left: 0;
    height: 20px;
  }
  .wg-filter-controls:hover .wg-filter-button {
    border-color: #7d52a2;
    background-color: #7d52a2;
    color: #fff;
  }
  .wg-filter-controls:hover .wg-filter-button span,
  #wg-filter-tab:hover > span {
    background: #fff;
    color: #7d52a2;
  }
  .wg-filter-controls:hover .wg-filter-button svg path {
    stroke: #fff;
  }
  #wg-other-filters {
    align-items: center;
  }
  #wg-active-filters .active-filter:hover {
    background-color: #4b3a60 !important;
  }
  #wg-team-search {
    max-width: 215px;
  }
}
@media (max-width: 1090px) {
  #wg-search-box {
    position: relative;
    top: auto;
    left: auto;
    opacity: 1;
    pointer-events: auto;
    padding: 0;
    box-shadow: none;
  }
  #wg-team-search .search-icon {
    display: none;
  }
  #wg-team-sidebar {
    justify-content: space-between;
  }
  .wg-tablet-top-cont {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  #wg-clear-filters-button {
    display: none;
  }
  #wg-other-filters-close {
    justify-self: flex-end;
  }
  #wg-active-filters {
    display: none;
  }
  #wg-clear-filters-tablet {
    display: inline-block;
  }
  #wg-other-filters {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    padding: 40px 20px;
    z-index: 100;
    overflow-y: auto;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    /* gap: 24px; */
    align-items: stretch;
  }
  #wg-other-filters.active {
    transform: translateX(0);
  }
  #wg-other-filters .wg-filter-button {
	justify-content: space-between;
  }
  #wg-filter-tab {
    display: flex;
  }
  .wg-modal-open .mainHeader {
    z-index: 10;
  }
  .admin-bar #wg-other-filters {
    top: 32px;
  }
  .wg-filter-panel {
    background-color: transparent;
    position: relative;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
    top: 0;
  }
  .wg-filter-controls:first-of-type {
    margin-top: 20px !important;
  }
  .wg-filter-controls .wg-filter-button {
    height: auto;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  .wg-filter-controls:last-of-type .wg-filter-button {
    border-bottom: 1px solid #444;
  }
  .wg-filter-panel {
    height: 0;
    display: none;
  }
  #wg-other-filters #wg-other-filters-close {
    display: inline-flex;
    justify-content: flex-end;
  }
  .wg-filter-controls.active .wg-filter-panel {
    display: flex;
    height: auto;
  }
  .wg-filter-controls.active .wg-filter-button {
    color: #7d52a2;
  }
  .wg-filter-controls.active .wg-filter-button svg {
    transform: scaleY(-1);
  }
}

@media (max-width: 992px) {
  #wg-team-results {
    grid-template-columns: 1fr 1fr;
  }
  #wg-team-filters .wg-filter-panel ul,
  #wg-team-treatment-orientation .wg-filter-panel ul,
  #wg-team-community-group .wg-filter-panel ul {
    column-count: 2;
  }
  .btStickyHeaderActive #wg-team-sidebar {
    top: 0;
  }
  #wg-day-time-availability .wg-filter-panel {
    display: none;
  }
  #wg-day-time-availability.active .wg-filter-panel {
    display: flex;
    gap: 30px;
    flex-direction: row;
  }
  .wg-filter-controls .wg-filter-button {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(125, 82, 162, 0.9);
    border-top: none;
    font-size: 15px;
  }
}
@media (max-width: 768px) {
  #wg-team-results {
    grid-template-columns: 1fr;
  }
  #wg-team-filters .wg-filter-panel ul,
  #wg-team-treatment-orientation .wg-filter-panel ul,
  #wg-team-community-group .wg-filter-panel ul {
    column-count: 1;
  }
}
