/* CSS variables */
:root {
  --bb-rl-primary-color: #4946fe;
  --bb-rl-secondary-color: #dde4ff;
  --bb-rl-background-color: #fff;
  --bb-rl-background-hover-color: #f8f8f8;
  --bb-rl-background-secondary-color: #f6f6f6;
  --bb-rl-background-secondary-hover-color: #f3f3f3;
  --bb-rl-background-tertiary-color: #dbdbdb;
  --bb-rl-background-tertiary-hover-color: #cececf;
  --bb-rl-background-black-color: #0c0c0d;
  --bb-rl-background-disabled-color: #dbdbdb;
  --bb-rl-background-brand-primary-color: var(--bb-rl-primary-color);
  --bb-rl-background-brand-primary-hover-color: #4937f4;
  --bb-rl-background-brand-secondary-color: #dde4ff;
  --bb-rl-background-brand-secondary-hover-color: #c2cdff;
  --bb-rl-background-brand-disabled-color: #767eff;
  --bb-rl-background-positive-primary-color: #14ae5c;
  --bb-rl-background-positive-primary-hover-color: #009951;
  --bb-rl-background-positive-secondary-color: #ebffee;
  --bb-rl-background-positive-secondary-hover-color: #cff7d3;
  --bb-rl-background-warning-primary-color: #e5a000;
  --bb-rl-background-warning-primary-hover-color: #bf6a02;
  --bb-rl-background-warning-secondary-color: #fffbeb;
  --bb-rl-background-warning-secondary-hover-color: #fff1c2;
  --bb-rl-background-danger-primary-color: #ec221f;
  --bb-rl-background-danger-primary-hover-color: #c00f0c;
  --bb-rl-background-danger-secondary-color: #fee9e7;
  --bb-rl-background-danger-secondary-hover-color: #fdd3d0;
  --bb-rl-border-color: #f3f3f3;
  --bb-rl-border-secondary-color: #e7e7e7;
  --bb-rl-border-tertiary-color: #cececf;
  --bb-rl-border-disabled-color: #f3f3f3;
  --bb-rl-border-quinery-color: #6d6d6e;
  --bb-rl-border-quaternary-color: #9e9e9e;
  --bb-rl-border-brand-primary-color: #3325ae;
  --bb-rl-border-brand-secondary-color: var(--bb-rl-primary-color);
  --bb-rl-border-positive-primary-color: #02542d;
  --bb-rl-border-positive-secondary-color: #14ae5c;
  --bb-rl-border-warning-primary-color: #682d03;
  --bb-rl-border-warning-secondary-color: #e5a000;
  --bb-rl-border-danger-primary-color: #690807;
  --bb-rl-border-danger-secondary-color: #ec221f;
  --bb-rl-text-color: #242425;
  --bb-rl-text-white-color: #fff;
  --bb-rl-text-secondary-color: #555556;
  --bb-rl-text-tertiary-color: #858586;
  --bb-rl-text-disabled-color: #9e9e9e;
  --bb-rl-text-brand-primary-color: var(--bb-rl-primary-color);
  --bb-rl-text-brand-secondary-color: #3325ae;
  --bb-rl-text-positive-primary-color: #02542d;
  --bb-rl-text-positive-secondary-color: #14ae5c;
  --bb-rl-text-warning-primary-color: #682d03;
  --bb-rl-text-warning-secondary-color: #e5a000;
  --bb-rl-text-danger-primary-color: #690807;
  --bb-rl-text-danger-secondary-color: #ec221f;
  --bb-rl-icon-color: #0c0c0d;
  --bb-rl-icon-primary-color: #3d3d3d;
  --bb-rl-icon-secondary-color: #6d6d6e;
  --bb-rl-icon-tertiary-color: #9e9e9e;
  --bb-rl-icon-disabled-color: #cececf;
  --bb-rl-icon-brand-primary-color: #3325ae;
  --bb-rl-icon-brand-secondary-color: var(--bb-rl-primary-color);
  --bb-rl-icon-brand-disabled-color: #767eff;
  --bb-rl-icon-positive-primary-color: #02542d;
  --bb-rl-icon-positive-secondary-color: #14ae5c;
  --bb-rl-icon-warning-primary-color: #682d03;
  --bb-rl-icon-warning-secondary-color: #e5a000;
  --bb-rl-icon-danger-primary-color: #690807;
  --bb-rl-icon-danger-secondary-color: #ec221f;
  --bb-rl-radius-xs: 2px;
  --bb-rl-radius-sm: 4px;
  --bb-rl-radius-md: 6px;
  --bb-rl-radius-base: 8px;
  --bb-rl-radius-lg: 12px;
  --bb-rl-radius-full: 99px;
  --bb-rl-space-0: 0;
  --bb-rl-space-50: 4px;
  --bb-rl-space-100: 8px;
  --bb-rl-space-200: 16px;
  --bb-rl-space-300: 24px;
  --bb-rl-space-400: 32px;
  --bb-rl-space-500: 40px;
  --bb-rl-space-600: 48px;
  --bb-rl-space-700: 56px;
  --bb-rl-z-index-dropdown: 1000;
  --bb-rl-z-index-sticky: 1020;
  --bb-rl-z-index-fixed: 1030;
  --bb-rl-z-index-adminbar: 1035;
  --bb-rl-z-index-modal-backdrop: 1040;
  --bb-rl-z-index-modal: 1050;
  --bb-rl-z-index-popover: 1060;
  --bb-rl-z-index-tooltip: 1070;
  --bb-rl-font-family-base: InterText, serif;
  --bb-rl-font-size-2xl: 20px;
  --bb-rl-font-size-base: 16px;
  --bb-rl-font-size-xs: 11px;
  --bb-rl-font-size-sm: 13px;
  --bb-rl-base-line-xs: 16px;
  --bb-rl-base-line-small: 20px;
  --bb-rl-base-line: 24px;
  --bb-rl-base-line-2xl: 30px;
}

/* Dark Mode Variables */
.bb-rl-dark-mode {
  --bb-rl-primary-color: #4946fe;
  --bb-rl-background-color: #242425;
  --bb-rl-background-hover-color: #555556;
  --bb-rl-background-secondary-color: #2f2f2f;
  --bb-rl-background-secondary-hover-color: #3d3d3d;
  --bb-rl-background-tertiary-color: #6d6d6e;
  --bb-rl-background-tertiary-hover-color: #555556;
  --bb-rl-background-black-color: #0c0c0d;
  --bb-rl-background-disabled-color: #dbdbdb;
  --bb-rl-background-brand-primary-color: var(--bb-rl-primary-color);
  --bb-rl-background-brand-primary-hover-color: #4937f4;
  --bb-rl-background-brand-secondary-color: #3325ae;
  --bb-rl-background-brand-secondary-hover-color: #2e2689;
  --bb-rl-background-brand-disabled-color: #767eff;
  --bb-rl-background-positive-primary-color: #008043;
  --bb-rl-background-positive-primary-hover-color: #02542d;
  --bb-rl-background-positive-secondary-color: #02542d;
  --bb-rl-background-positive-secondary-hover-color: #024023;
  --bb-rl-background-warning-primary-color: #975102;
  --bb-rl-background-warning-primary-hover-color: #682d03;
  --bb-rl-background-warning-secondary-color: #682d03;
  --bb-rl-background-warning-secondary-hover-color: #522504;
  --bb-rl-background-danger-primary-color: #900b09;
  --bb-rl-background-danger-primary-hover-color: #690807;
  --bb-rl-background-danger-secondary-color: #690807;
  --bb-rl-background-danger-secondary-hover-color: #4d0b0a;
  --bb-rl-border-color: #2f2f2f;
  --bb-rl-border-secondary-color: #3d3d3d;
  --bb-rl-border-tertiary-color: #555556;
  --bb-rl-border-disabled-color: #f3f3f3;
  --bb-rl-border-quinery-color: #f6f6f6;
  --bb-rl-border-quaternary-color: #f3f3f3;
  --bb-rl-border-brand-primary-color: #c2cdff;
  --bb-rl-border-brand-secondary-color: var(--bb-rl-primary-color);
  --bb-rl-border-positive-primary-color: #cff7d3;
  --bb-rl-border-positive-secondary-color: #14ae5c;
  --bb-rl-border-warning-primary-color: #fff1c2;
  --bb-rl-border-warning-secondary-color: #e5a000;
  --bb-rl-border-danger-primary-color: #fdd3d0;
  --bb-rl-border-danger-secondary-color: #ec221f;
  --bb-rl-text-color: #fff;
  --bb-rl-text-white-color: #fff;
  --bb-rl-text-secondary-color: #cececf;
  --bb-rl-text-tertiary-color: #b6b6b6;
  --bb-rl-text-disabled-color: #e7e7e7;
  --bb-rl-text-brand-primary-color: var(--bb-rl-primary-color);
  --bb-rl-text-brand-secondary-color: #c2cdff;
  --bb-rl-text-positive-primary-color: #cff7d3;
  --bb-rl-text-positive-secondary-color: #14ae5c;
  --bb-rl-text-warning-primary-color: #fff1c2;
  --bb-rl-text-warning-secondary-color: #e5a000;
  --bb-rl-text-danger-primary-color: #fdd3d0;
  --bb-rl-text-danger-secondary-color: #ec221f;
  --bb-rl-icon-color: #cececf;
  --bb-rl-icon-primary-color: #cececf;
  --bb-rl-icon-secondary-color: #cececf;
  --bb-rl-icon-tertiary-color: #9e9e9e;
  --bb-rl-icon-disabled-color: #858586;
  --bb-rl-icon-brand-primary-color: #c2cdff;
  --bb-rl-icon-brand-secondary-color: var(--bb-rl-primary-color);
  --bb-rl-icon-brand-disabled-color: #767eff;
  --bb-rl-icon-positive-primary-color: #cff7d3;
  --bb-rl-icon-positive-secondary-color: #14ae5c;
  --bb-rl-icon-warning-primary-color: #fff1c2;
  --bb-rl-icon-warning-secondary-color: #e5a000;
  --bb-rl-icon-danger-primary-color: #fdd3d0;
  --bb-rl-icon-danger-secondary-color: #ec221f;
  scrollbar-color: #666 transparent;
  color-scheme: dark;
}

/* SCSS Variables */
.bb-rl-groups .bp-list.grid .item-entry .list-wrap {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.bb-rl-groups .bp-list.grid .item-entry .item {
  padding: 0 var(--bb-rl-space-200) var(--bb-rl-space-300);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bb-rl-groups .bp-list.grid .item-entry .group-item-wrap {
  margin-bottom: var(--bb-rl-space-200);
}

.bb-rl-groups .bp-list.grid .item-entry .group-footer-wrap {
  margin: auto 0 0;
  flex-direction: column;
  align-items: flex-start;
}

.bb-rl-groups .bp-list.grid .item-entry .groups-loop-buttons {
  margin-top: var(--bb-rl-space-200);
}

.bb-rl-groups .bp-list.grid .group-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-top: calc(-1 * var(--bb-rl-space-400));
  margin-left: var(--bb-rl-space-200);
}

.bb-rl-groups .bp-list.grid.bb-cover-disabled .group-avatar-wrap {
  margin-top: var(--bb-rl-space-200);
}

.bb-rl-groups .bp-list.grid .bs-group-cover a {
  position: relative;
  display: block;
  height: 100%;
  padding-top: 104px;
  border-radius: var(--bb-rl-radius-lg) var(--bb-rl-radius-lg) 0 0;
  overflow: hidden;
}

.bb-rl-groups .bp-list.grid .bs-group-cover img {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.bb-rl-groups .bp-list:not(.grid) .item-entry .list-wrap {
  display: flex;
  align-items: center;
  padding: var(--bb-rl-space-400) var(--bb-rl-space-300);
}

@media screen and (max-width: 544px) {
  .bb-rl-groups .bp-list:not(.grid) .item-entry .list-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--bb-rl-space-100);
  }
}

.bb-rl-groups .bp-list:not(.grid) .item-entry .item-avatar {
  margin-right: var(--bb-rl-space-200);
}

.bb-rl-groups .bp-list:not(.grid) .item-entry .item {
  display: flex;
  align-items: center;
  flex: 1;
}

@media screen and (max-width: 768px) {
  .bb-rl-groups .bp-list:not(.grid) .item-entry .item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--bb-rl-space-100);
  }
}

.bb-rl-groups .bp-list:not(.grid) .item-entry .group-footer-wrap {
  display: flex;
  align-items: center;
  gap: var(--bb-rl-space-200);
}

@media screen and (max-width: 768px) {
  .bb-rl-groups .bp-list:not(.grid) .item-entry .group-footer-wrap {
    margin-left: 0;
  }
}

@media screen and (max-width: 544px) {
  .bb-rl-groups .bp-list:not(.grid) .item-entry .group-footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

.bb-rl-groups .item-entry .list-wrap {
  position: relative;
  height: 100%;
  border-radius: var(--bb-rl-radius-lg);
  background-color: var(--bb-rl-background-color);
  border: 1px solid var(--bb-rl-border-secondary-color);
}

.bb-rl-groups .item-entry .avatar {
  max-width: 80px;
  height: auto;
  border-radius: var(--bb-rl-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.bb-rl-groups .item-entry .groups-title {
  font-size: var(--bb-rl-font-size-base);
  font-weight: 500;
  line-height: var(--bb-rl-base-line);
  margin-bottom: var(--bb-rl-space-50);
}

.bb-rl-groups .item-entry .item-meta-wrap {
  display: flex;
  align-items: center;
  flex-flow: wrap;
}

.bb-rl-groups .item-entry .item-meta {
  font-size: var(--bb-rl-font-size-sm);
  font-weight: 500;
  line-height: var(--bb-rl-base-line-small);
  color: var(--bb-rl-text-tertiary-color);
}

.bb-rl-groups .item-entry .group-item-desc {
  display: none;
}

.bb-rl-groups .item-entry .group-footer-wrap {
  margin-left: auto;
}

.bb-rl-groups .item-entry .group-footer-wrap button,
.bb-rl-groups .item-entry .group-footer-wrap .generic-button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border-radius: var(--bb-rl-radius-md);
  padding: var(--bb-rl-space-100) var(--bb-rl-space-200);
  transition: background-color 0.2s ease, bordfont/size/smer-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  background-color: var(--bb-rl-background-tertiary-color);
  color: var(--bb-rl-text-color);
  border: 1px solid transparent;
  font-size: var(--bb-rl-font-size-sm);
  padding: var(--bb-rl-space-50) var(--bb-rl-space-200);
  white-space: nowrap;
}

.bb-rl-groups .item-entry .group-footer-wrap button:hover,
.bb-rl-groups .item-entry .group-footer-wrap .generic-button a:hover {
  background-color: var(--bb-rl-background-tertiary-hover-color);
}

.bb-rl-groups .item-entry .group-footer-wrap button:focus,
.bb-rl-groups .item-entry .group-footer-wrap .generic-button a:focus {
  outline: 2px solid var(--bb-rl-border-quinery-color);
}

.bb-rl-groups .item-entry .group-footer-wrap button:disabled,
.bb-rl-groups .item-entry .group-footer-wrap .generic-button a:disabled {
  background-color: var(--bb-rl-background-tertiary-color);
  color: var(--bb-rl-text-disabled-color);
  cursor: not-allowed;
}

.bb-rl-groups .item-entry .group-footer-wrap button.group-button::before,
.bb-rl-groups .item-entry .group-footer-wrap .generic-button a.group-button::before {
  content: "";
  display: inline-block;
  margin-right: var(--bb-rl-space-50);
  font-weight: 400;
  font-family: bb-icons-rl;
  font-size: 16px;
  line-height: 1;
  color: var(--bb-rl-icon-secondary-color);
  font-style: normal;
}

.bb-rl-groups .item-entry .group-footer-wrap button.group-button.join-group::before,
.bb-rl-groups .item-entry .group-footer-wrap .generic-button a.group-button.join-group::before {
  content: "\e3d4";
}

.bb-rl-groups .item-entry .group-footer-wrap button.group-button.request-membership::before,
.bb-rl-groups .item-entry .group-footer-wrap .generic-button a.group-button.request-membership::before {
  content: "\e2fe";
}

.bb-rl-groups .item-entry .group-footer-wrap button.group-button.membership-requested::before,
.bb-rl-groups .item-entry .group-footer-wrap .generic-button a.group-button.membership-requested::before {
  content: "\e182";
}

.bb-rl-groups .item-entry .group-footer-wrap button.group-button.membership-requested.bp-toggle-action-button-clicked::before,
.bb-rl-groups .item-entry .group-footer-wrap .generic-button a.group-button.membership-requested.bp-toggle-action-button-clicked::before {
  content: "\e2fe";
}

.bb-rl-groups .item-entry .group-footer-wrap button.membership-requested,
.bb-rl-groups .item-entry .group-footer-wrap .generic-button a.membership-requested {
  background-color: transparent;
  color: var(--bb-rl-text-color);
  border: 1px solid var(--bb-rl-border-tertiary-color);
}

.bb-rl-groups .item-entry .group-footer-wrap button.membership-requested:hover,
.bb-rl-groups .item-entry .group-footer-wrap .generic-button a.membership-requested:hover {
  background-color: var(--bb-rl-background-secondary-color);
}

.bb-rl-groups .item-entry .group-footer-wrap button.membership-requested:focus,
.bb-rl-groups .item-entry .group-footer-wrap .generic-button a.membership-requested:focus {
  outline: 2px solid var(--bb-rl-border-quinery-color);
}

.bb-rl-groups .item-entry .group-footer-wrap button.membership-requested:disabled,
.bb-rl-groups .item-entry .group-footer-wrap .generic-button a.membership-requested:disabled {
  border-color: var(--bb-rl-border-tertiary-color);
  color: var(--bb-rl-text-disabled-color);
  cursor: not-allowed;
}

.bb-rl-groups .item-entry .group-footer-wrap .generic-button .group-button.bp-toggle-action-button.leave-group::before {
  content: "\e182";
  display: inline-block;
  margin-right: var(--bb-rl-space-50);
  font-weight: 400;
  font-family: bb-icons-rl;
  font-size: 16px;
  line-height: 1;
  color: var(--bb-rl-icon-secondary-color);
  font-style: normal;
}

.bb-rl-groups .item-entry .bb-group-members {
  display: flex;
  margin-bottom: 0;
  padding-right: 10px;
  margin-right: 5px;
}

.bb-rl-groups .item-entry .bb-group-members .bb-group-member {
  max-width: 24px;
  min-width: 24px;
  float: left;
  margin-right: -4px;
  position: relative;
  z-index: 1;
}

.bb-rl-groups .item-entry .bb-group-members .bb-group-member a {
  text-decoration: none;
}

.bb-rl-groups .item-entry .bb-group-members .bb-group-member img {
  background-color: #fff;
  border-radius: 50%;
  float: left;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
  display: block;
}

.bb-rl-groups .item-entry .bb-group-members .bb-group-member [class*=" bb-icon-"] {
  height: 24px;
  width: 24px;
  font-size: 16px;
  color: #c3c4c8;
  line-height: 24px;
  border-radius: 50%;
  background-color: #f9f9f9;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.bb-rl-groups .item-entry .bb-group-members .bb-group-member [class*=" bb-icon-"]:hover {
  background-color: #e3e3e3;
}

.bb-rl-groups .item-entry .bb-group-members .bb-group-member.count-wrap {
  margin-left: 8px;
  max-width: none;
}

.bb-rl-groups .item-entry .bb-group-members .bb-group-member.count-wrap a {
  font-size: var(--bb-rl-font-size-sm);
  font-weight: 500;
  line-height: var(--bb-rl-base-line-small);
  color: var(--bb-rl-text-tertiary-color);
  white-space: nowrap;
}

.bb-rl-groups .item-list.grid .only-list-view {
  display: none;
}

.bb-rl-groups .item-list:not(.grid) .only-grid-view {
  display: none;
}

.bb-rl-group-block .item-meta-wrap p > span + span::before {
  content: "\2022";
  display: inline-block;
  margin: 0 6px 0 3px;
  color: var(--bb-rl-background-tertiary-color);
}

.bb-rl-group-block .item-meta-wrap p + p.last-activity::before {
  content: "\2022";
  display: inline-block;
  margin: 0 6px 0 3px;
  color: var(--bb-rl-background-tertiary-color);
}
