/*
Theme Name: BuddyBoss Child
Theme URI: https://www.buddyboss.com/
Description: Child theme for BuddyBoss Theme
Author: Yahya Cotton Eddaqqaq
Template: buddyboss-theme
Version: 1.3.4
*/

.mlmmc-message-compose-disabled .bp-messages-recipient,
.mlmmc-message-compose-disabled #bp-message-content,
.mlmmc-message-compose-disabled .bp-message-content_foot_note {
  opacity: 0.45;
  pointer-events: none;
}

.mlmmc-message-compose-disabled .mlmmc-private-message-notice {
  margin: 16px 20px;
}

/* Footer full-width override */
.bb-footer .mlmmc-footer-fullwidth-container {
  width: 100%;
  max-width: 100% !important;
}

.bb-footer .mlmmc-footer-fullwidth-container.flex,
.bb-footer .mlmmc-footer-fullwidth-container {
  padding-left: 20px;
  padding-right: 20px;
}

/* Make footer menu/copyright block take the full row */
.footer-bottom .mlmmc-footer-fullwidth-container.flex {
  flex-wrap: wrap;
}

.footer-bottom .mlmmc-footer-fullwidth-container .footer-bottom-left {
  flex: 1 1 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-bottom .mlmmc-footer-fullwidth-container .footer-bottom-left .footer-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.footer-bottom .mlmmc-footer-fullwidth-container .footer-bottom-left .copyright,
.footer-bottom .mlmmc-footer-fullwidth-container .footer-bottom-left .footer-copyright-wrap {
  text-align: center;
}

.footer-bottom .mlmmc-footer-fullwidth-container .footer-bottom-right.push-right:empty {
  display: none;
}

/* ── Zoom Calendar View ───────────────────────────────────────────────────── */
.bb-zoom-cal-wrap {
  margin-bottom: 20px;
}

/* Toggle button */
.bb-zoom-cal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid var(--bb-content-border-color, #D6D9DD);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--bb-headings-color, #1E2132);
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.bb-zoom-cal-toggle:hover,
.bb-zoom-cal-toggle--open {
  background: var(--bb-primary-color, #16697A);
  color: #fff;
  border-color: var(--bb-primary-color, #16697A);
}
.bb-zoom-cal-chevron {
  transition: transform 0.2s;
}
.bb-zoom-cal-toggle--open .bb-zoom-cal-chevron {
  transform: rotate(180deg);
}

/* Calendar container */
.bb-zoom-cal {
  background: #fff;
  border: 1px solid var(--bb-content-border-color, #D6D9DD);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

/* Month nav */
.bb-zoom-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bb-content-border-color, #D6D9DD);
}
.bb-zoom-cal-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--bb-headings-color, #1E2132);
}
.bb-zoom-cal-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--bb-body-text-color, #5A5A5A);
  font-size: 16px;
  transition: background 0.15s;
}
.bb-zoom-cal-nav-btn:hover {
  background: var(--bb-content-alternate-background-color, #F2F4F5);
}

/* Days-of-week header */
.bb-zoom-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bb-content-alternate-background-color, #F2F4F5);
  border-bottom: 1px solid var(--bb-content-border-color, #D6D9DD);
}
.bb-zoom-cal-dow span {
  text-align: center;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bb-alternate-text-color, #9B9C9F);
}

/* Grid cells */
.bb-zoom-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.bb-zoom-cal-cell {
  min-height: 92px;
  padding: 10px;
  border-right: 1px solid var(--bb-content-border-color, #D6D9DD);
  border-bottom: 1px solid var(--bb-content-border-color, #D6D9DD);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.bb-zoom-cal-cell:nth-child(7n) {
  border-right: none;
}
.bb-zoom-cal-cell--blank {
  background: var(--bb-content-alternate-background-color, #F2F4F5);
}
.bb-zoom-cal-day {
  font-size: 13px;
  font-weight: 600;
  color: var(--bb-body-text-color, #5A5A5A);
  line-height: 1;
}
.bb-zoom-cal-cell--today .bb-zoom-cal-day {
  background: var(--bb-primary-color, #16697A);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bb-zoom-cal-cell--has-event {
  cursor: pointer;
  background: #fff;
}
.bb-zoom-cal-cell--has-event:hover {
  background: var(--bb-content-alternate-background-color, #F2F4F5);
}
.bb-zoom-cal-cell--has-event:focus-visible {
  outline: 2px solid var(--bb-primary-color, #16697A);
  outline-offset: -2px;
  z-index: 1;
}
.bb-zoom-cal-cell--selected {
  background: var(--bb-content-alternate-background-color, #F2F4F5) !important;
}

/* Randomized per-day accent colors */
.bb-zoom-cal-cell--has-event.bb-zoom-cal-cell--color-blue   { box-shadow: inset 3px 0 0 0 #3B82F6; }
.bb-zoom-cal-cell--has-event.bb-zoom-cal-cell--color-green  { box-shadow: inset 3px 0 0 0 #22C55E; }
.bb-zoom-cal-cell--has-event.bb-zoom-cal-cell--color-red    { box-shadow: inset 3px 0 0 0 #EF4444; }
.bb-zoom-cal-cell--has-event.bb-zoom-cal-cell--color-purple { box-shadow: inset 3px 0 0 0 #A855F7; }
.bb-zoom-cal-cell--has-event.bb-zoom-cal-cell--color-orange { box-shadow: inset 3px 0 0 0 #F97316; }
.bb-zoom-cal-cell--has-event.bb-zoom-cal-cell--color-teal   { box-shadow: inset 3px 0 0 0 #14B8A6; }

.bb-zoom-cal-cell--color-blue   .bb-zoom-cal-count { background: #3B82F6; }
.bb-zoom-cal-cell--color-green  .bb-zoom-cal-count { background: #22C55E; }
.bb-zoom-cal-cell--color-red    .bb-zoom-cal-count { background: #EF4444; }
.bb-zoom-cal-cell--color-purple .bb-zoom-cal-count { background: #A855F7; }
.bb-zoom-cal-cell--color-orange .bb-zoom-cal-count { background: #F97316; }
.bb-zoom-cal-cell--color-teal   .bb-zoom-cal-count { background: #14B8A6; }

.bb-zoom-cal-cell--color-blue   .bb-zoom-cal-title { color: #3B82F6; }
.bb-zoom-cal-cell--color-green  .bb-zoom-cal-title { color: #22C55E; }
.bb-zoom-cal-cell--color-red    .bb-zoom-cal-title { color: #EF4444; }
.bb-zoom-cal-cell--color-purple .bb-zoom-cal-title { color: #A855F7; }
.bb-zoom-cal-cell--color-orange .bb-zoom-cal-title { color: #F97316; }
.bb-zoom-cal-cell--color-teal   .bb-zoom-cal-title { color: #14B8A6; }

/* Single-meeting title shown directly in the cell instead of a count badge */
.bb-zoom-cal-title {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.bb-zoom-cal-count {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bb-primary-color, #16697A);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* Popup → now a proper modal overlay */
.bb-zoom-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(30, 33, 50, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
/* Ensure SweetAlert2 dialogs (e.g. delete confirmations) render above the zoom modal overlay */
.swal2-container {
  z-index: 111111 !important;
}
.bb-zoom-modal-overlay[hidden] { display: none; }

.bb-zoom-modal {
  background: #fff;
  border: 1px solid var(--bb-content-border-color, #D6D9DD);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(30, 33, 50, 0.22);
  width: 100%;
  max-width: 640px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.bb-zoom-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #fff;
  color: var(--bb-headings-color, #1E2132);
  border-bottom: 1px solid var(--bb-content-border-color, #D6D9DD);
  flex-shrink: 0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.bb-zoom-modal-date {
  font-size: 17px;
  font-weight: 700;
  color: var(--bb-headings-color, #1E2132);
}
.bb-zoom-modal-close {
  width: 34px;
  height: 34px;
  background: var(--bb-content-alternate-background-color, #F2F4F5);
  border: 1px solid var(--bb-content-border-color, #D6D9DD);
  cursor: pointer;
  color: var(--bb-body-text-color, #5A5A5A);
  font-size: 16px;
  padding: 0;
  border-radius: 50%;
  line-height: 1;
}
.bb-zoom-modal-close:hover { color: #fff; background: var(--bb-primary-color, #16697A); border-color: var(--bb-primary-color, #16697A); }

.bb-zoom-modal-body {
  overflow-y: auto;
  padding: 18px 20px 20px;
  background: var(--bb-content-alternate-background-color, #F2F4F5);
}
.bb-zoom-modal-context {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 12px;
  color: var(--bb-alternate-text-color, #9B9C9F);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bb-zoom-modal-context strong {
  color: var(--bb-primary-color, #16697A);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

/* Each meeting row */
.bb-zoom-modal-meeting {
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid var(--bb-content-border-color, #D6D9DD);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
.bb-zoom-modal-meeting:last-child { margin-bottom: 0; }

.bb-zoom-modal-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bb-zoom-modal-time {
  flex: 0 0 auto;
  min-width: 78px;
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--bb-content-alternate-background-color, #F2F4F5);
  color: var(--bb-headings-color, #1E2132);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.bb-zoom-modal-summary-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.bb-zoom-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bb-headings-color, #1E2132);
  line-height: 1.25;
}
.bb-zoom-modal-meta {
  font-size: 12px;
  color: var(--bb-alternate-text-color, #9B9C9F);
}
.bb-zoom-modal-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* "View details" toggle */
.bb-zoom-details-toggle {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--bb-content-border-color, #D6D9DD);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--bb-body-text-color, #5A5A5A);
  padding: 8px 10px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.bb-zoom-details-toggle i {
  font-size: 11px;
  transition: transform 0.2s;
}
.bb-zoom-details-toggle--open i {
  transform: rotate(180deg);
}
.bb-zoom-details-toggle:hover { border-color: var(--bb-primary-color, #16697A); color: var(--bb-primary-color, #16697A); }

/* Details panel */
.bb-zoom-modal-details {
  margin-top: 12px;
  padding: 0px !important;
  background: var(--bb-content-alternate-background-color, #F2F4F5);
  border-radius: 8px;
}
.bb-zoom-modal-details[hidden] { display: none; }

.bb-zoom-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--bb-body-text-color, #5A5A5A);
  padding: 4px 0;
  border-bottom: 1px solid var(--bb-content-border-color, #D6D9DD);
}
.bb-zoom-detail-row:last-of-type { border-bottom: none; }
.bb-zoom-detail-row span:first-child { font-weight: 600; color: var(--bb-alternate-text-color, #9B9C9F); }

.bb-zoom-join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9px 15px;
  background: var(--bb-primary-color, #16697A);
  color: #fff !important;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}
.bb-zoom-join-btn:hover { background: var(--bb-primary-button-background-hover, #1E8AA4); color: #fff !important; }

.bb-zoom-recordings-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid var(--bb-content-border-color, #D6D9DD);
  border-radius: 7px;
  background: #fff;
  color: var(--bb-body-text-color, #5A5A5A);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}
.bb-zoom-recordings-toggle:hover { border-color: var(--bb-primary-color, #16697A); color: var(--bb-primary-color, #16697A); }
.bb-zoom-recordings-toggle i:last-child {
  margin-left: auto;
  transition: transform 0.2s ease;
}
.bb-zoom-recordings-toggle--open i:last-child { transform: rotate(180deg); }

.bb-zoom-recordings-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.bb-zoom-recordings-list[hidden] { display: none; }
.bb-zoom-recording-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
}
.bb-zoom-recording-info {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.bb-zoom-recording-title {
  color: var(--bb-headings-color, #1E2132);
  font-size: 12px;
  font-weight: 700;
}
.bb-zoom-recording-meta {
  color: var(--bb-alternate-text-color, #9B9C9F);
  font-size: 11px;
  line-height: 1.35;
}
.bb-zoom-recording-btn {
  flex: 0 0 auto;
  padding: 0px 20px !important;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--bb-primary-color, #16697A);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.bb-zoom-recording-btn:hover { color: #fff !important; background: var(--bb-primary-button-background-hover, #1E8AA4); }

/* View switch (calendar / list) */
.bb-zoom-cal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.bb-zoom-view-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.bb-zoom-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--bb-body-text-color, #5A5A5A);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.bb-zoom-view-btn:hover { color: var(--bb-primary-color, #16697A); }
.bb-zoom-view-btn--active {
  background: #fff;
  color: var(--bb-primary-color, #16697A);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* List view */
.bb-zoom-list[hidden] { display: none; }
.bb-zoom-list {
  background: #fff;
  border: 1px solid var(--bb-content-border-color, #D6D9DD);
  border-radius: 8px;
  padding: 10px 14px;
}
.bb-zoom-list-section + .bb-zoom-list-section { margin-top: 14px; }
.bb-zoom-list-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bb-headings-color, #1E2132);
}
.bb-zoom-list-heading span {
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--bb-content-alternate-background-color, #F2F4F5);
  font-size: 11px;
  color: var(--bb-alternate-text-color, #9B9C9F);
}
.bb-zoom-list-date {
  margin: 8px 0 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--bb-alternate-text-color, #9B9C9F);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.bb-zoom-list .bb-zoom-modal-meeting {
  margin-bottom: 6px;
  padding: 8px 12px;
}
.bb-zoom-list .bb-zoom-modal-meeting:last-child {
  margin-bottom: 0;
}
.bb-zoom-list .bb-zoom-modal-time {
  padding: 4px 8px;
  font-size: 12px;
  min-width: 70px;
  text-align: center;
}
.bb-zoom-list .bb-zoom-modal-title {
  font-size: 14px;
  line-height: 1.3;
}
.bb-zoom-list .bb-zoom-modal-meta {
  font-size: 11px;
}
.bb-zoom-list .bb-zoom-modal-actions {
  gap: 6px;
}
.bb-zoom-list .bb-zoom-modal-actions .button,
.bb-zoom-list .bb-zoom-modal-actions button {
  padding: 4px 10px;
  font-size: 12px;
  height: auto;
  line-height: 1.4;
}
.bb-zoom-list .bb-zoom-modal-details {
  margin-top: 0px;
  padding-top: 0px;
}
.bb-zoom-list-empty {
  margin: 0;
  padding: 10px 0;
  color: var(--bb-alternate-text-color, #9B9C9F);
  font-size: 13px;
}
.bb-zoom-cal-note {
  margin: 0;
  padding: 12px 18px;
  border-top: 1px solid var(--bb-content-border-color, #D6D9DD);
  color: var(--bb-alternate-text-color, #9B9C9F);
  font-size: 13px;
  text-align: center;
}

/* Manual recording upload */
.bb-zoom-upload-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid var(--bb-primary-color, #16697A);
  background: #fff;
  color: var(--bb-primary-color, #16697A);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.bb-zoom-upload-open:hover {
  background: var(--bb-primary-color, #16697A);
  color: #fff;
}
.bb-zoom-upload-form {
  display: grid;
  gap: 14px;
}
.bb-zoom-upload-hint {
  margin: 0;
  color: var(--bb-alternate-text-color, #9B9C9F);
  font-size: 12px;
  line-height: 1.5;
}
.bb-zoom-upload-field {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bb-headings-color, #1E2132);
}
.bb-zoom-upload-field input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--bb-content-border-color, #D6D9DD);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
}
.bb-zoom-upload-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bb-zoom-upload-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--bb-content-alternate-background-color, #F2F4F5);
  overflow: hidden;
}
.bb-zoom-upload-progress[hidden] { display: none; }
.bb-zoom-upload-progress-bar {
  width: 0;
  height: 100%;
  background: var(--bb-primary-color, #16697A);
  transition: width 0.2s;
}
.bb-zoom-upload-feedback {
  margin: 0;
  font-size: 12px;
  color: var(--bb-alternate-text-color, #9B9C9F);
}
.bb-zoom-upload-feedback--ok { color: #22C55E; }
.bb-zoom-upload-feedback--error { color: #EF4444; }
.bb-zoom-upload-actions {
  display: flex;
  justify-content: flex-end;
}
.bb-zoom-detail-notice {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--bb-content-alternate-background-color, #F2F4F5);
  color: var(--bb-body-text-color, #5A5A5A);
  font-size: 12px;
}

@media (max-width: 640px) {
  .bb-zoom-upload-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bb-zoom-cal-cell {
    min-height: 74px;
    padding: 7px;
  }
  .bb-zoom-cal-count {
    right: 5px;
    bottom: 5px;
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .bb-zoom-cal-title {
    font-size: 10px;
    -webkit-line-clamp: 2;
  }
  .bb-zoom-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .bb-zoom-modal {
    max-height: 88vh;
    border-radius: 8px 8px 0 0;
  }
  .bb-zoom-modal-header {
    padding: 18px;
  }
  .bb-zoom-modal-body {
    padding: 14px;
  }
  .bb-zoom-modal-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .bb-zoom-modal-time {
    min-width: 0;
  }
  .bb-zoom-modal-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ── Mobile panel: profile + orders quick-link row ── */
.bb-user-wrap-stacked {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px;
}
.bb-mobile-user-quicklinks {
    width: 300px;
}
.bb-user-wrap-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bb-mobile-user-quicklinks {
  display: flex;
  gap: 8px;
  padding: 10px 12px 6px;
}
.bb-mobile-quicklink {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: inherit;
  transition: background 0.2s ease;
}
.bb-mobile-quicklink:hover {
  background: rgba(255,255,255,0.22);
  text-decoration: none;
  color: inherit;
}
.bb-mobile-quicklink i {
  font-size: 15px;
}

/* Add your custom styles below this line */

/* BuddyPanel native styles (replaces Tailwind utilities) */
.bp-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin: 0 auto 10px;
}

.bp-toggle-btn:hover {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  background: #f8fafc;
}

.bp-toggle-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.bb-template-v2 .primary-menu>.menu-item-has-children:not(.hideshow) {
    padding-right: 0px;
    padding-left: 0px !important;
}

.bb-template-v2 .primary-menu>li {
    padding: 0px !important;
}

.container.site-header-container.flex.default-header.header-3 {
    max-width: 1300px;
}

.bp-toggle-icon {
  width: 16px;
  height: 16px;
  color: #64748b;
  transition: transform 0.3s ease;
}

.bp-card {
  padding: 16px 12px 8px;
  margin: 16px 8px 0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.bp-group-heading {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.25;
  margin-bottom: 6px;
  word-break: break-word;
}

.bp-group-name {
  padding-bottom: 4px;
}

.bp-group-label {
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.bp-hint {
  font-size: 12px;
  color: #94a3b8;
  padding-bottom: 8px;
}

.bp-select-wrapper {
  position: relative;
  padding-bottom: 4px;
}

.bp-select {
  width: 100%;
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 10px 38px 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.bp-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.bp-hidden {
  display: none;
}

.bp-select-icon {
  pointer-events: none;
  position: absolute;
  inset: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  color: #94a3b8;
}

.bp-select-icon-svg {
  width: 16px;
  height: 16px;
}

.bp-nav-links {
  margin-top: 12px;
  padding: 0 8px;
}

.bp-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  font-size: 14px;
  color: #94a3b8;
}

.bp-spinner {
  width: 16px;
  height: 16px;
  color: #94a3b8;
  animation: bp-spin 1s linear infinite;
}

@keyframes bp-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.bp-empty {
  padding: 12px;
  font-size: 14px;
  color: #94a3b8;
}

.bp-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #f1f5f9;
}

.bb-template-v2 .buddypanel {
  padding-left: 0px !important;
  padding-right: 0px !important;
}

.bp-menu-item {
  padding: 2px 0;
  border-radius: 10px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.bp-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 5px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  background: transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.bp-menu-link--restricted {
  color: #cbd5e1;
  cursor: not-allowed;
  background: transparent;
}

.bp-menu-link--restricted:hover {
  background: transparent;
  color: #cbd5e1;
}

.bp-menu-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  color: white;
  flex-shrink: 0;
}

.bp-menu-icon--restricted {
  color: #cbd5e1;
}

.bp-menu-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-restricted-icon {
  flex-shrink: 0;
  color: #cbd5e1;
  font-size: 12px;
}

/* ============================================================
   Desktop header: bigger logo, tighter logo container,
   menu takes the majority of the header width.
   min-width: 800px matches BuddyBoss's own breakpoint.
   ============================================================ */
   .site-title img.bb-mobile-logo {
       width: 145px !important;
       height: auto !important;
       max-height: none !important;
   }

   .site-title img {
      padding: 0px !important;
      /* object-fit: contain; */
  }
  .site-branding{
    padding: 0px !important;
  }
@media screen and (max-width: 799px) {
  .site-title img.bb-mobile-logo,
  .site-title img.bb-logo {
    width: 60px !important;
    max-width: 90px !important;
    height: auto !important;
  }
}

ul#primary-menu {
    width: 90%;
}
@media screen and (min-width: 800px) {
  /* Shrink the padding that creates dead space beside the logo */
  .site-branding {
    padding-right: 12px;
    min-width: 0;
  }


  /* Allow the logo image to be taller/wider */
  .site-title img,
  #site-logo .site-title img.bb-logo {
    max-height: 56px;
    min-height: 48px;
    width: auto;
    max-width: 180px;
  }

  /* Navigation already uses flex:1; reinforce it and give it priority */
  .default-header .main-navigation {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* ── Discussions: Unsubscribe CTA ── */
.bb-unsub-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    border: 1.5px solid transparent;
    background: transparent;
    color: #e05252;
    border-color: #e05252;
    line-height: 1.4;
    transition: background 0.18s, color 0.18s, opacity 0.18s, transform 0.12s;
    vertical-align: middle;
    white-space: nowrap;
}
.bb-unsub-btn::before {
    content: "\2715";
    font-size: 10px;
    line-height: 1;
}
.bb-unsub-btn:hover:not(:disabled) {
    background: #e05252;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(224,82,82,.35);
}
.bb-unsub-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}
.bb-unsub-btn--loading {
    opacity: 0.45;
    cursor: default;
}
.bb-unsub-btn--loading::before {
    content: "\21BB";
    display: inline-block;
    animation: bb-spin 0.7s linear infinite;
}
@keyframes bb-spin {
    to { transform: rotate(360deg); }
}
/* fade-out animation when unsubscribed */
@keyframes bb-row-fade {
    from { opacity: 1; transform: scaleY(1); max-height: 200px; }
    to   { opacity: 0; transform: scaleY(0); max-height: 0;   }
}
.bb-unsub-fade {
    animation: bb-row-fade 0.35s ease forwards;
    overflow: hidden;
    transform-origin: top;
}

/* ── Discussions: Admin view switcher dropdown ── */
.bb-discussions-view-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.bb-dsv-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}
.bb-dsv-dropdown {
    position: relative;
    display: inline-block;
}
.bb-dsv-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1.5px solid #c7c7d1;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.bb-dsv-trigger:hover,
.bb-dsv-dropdown.bb-dsv-open .bb-dsv-trigger {
    border-color: var(--bb-primary-button-background-regular, #6366f1);
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
    outline: none;
}
.bb-dsv-caret {
    font-size: 10px;
    transition: transform 0.18s;
}
.bb-dsv-dropdown.bb-dsv-open .bb-dsv-caret {
    transform: rotate(180deg);
}
.bb-dsv-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 160px;
    background: #fff;
    border: 1.5px solid #e0e0ea;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    padding: 4px 0;
    margin: 0;
    list-style: none;
    z-index: 999;
}
.bb-dsv-dropdown.bb-dsv-open .bb-dsv-menu {
    display: block;
    animation: bb-dsv-pop 0.14s ease;
}
@keyframes bb-dsv-pop {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bb-dsv-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
}
.bb-dsv-menu li a:hover {
    background: #f4f4f8;
    color: var(--bb-primary-button-background-regular, #6366f1);
}
.bb-dsv-menu li a.bb-dsv-active {
    font-weight: 700;
    color: var(--bb-primary-button-background-regular, #6366f1);
    background: #f0f0fb;
}

/* Mobile menu organization styles */
.bb-mobile-panel-inner .mobile-org-select-container {
	padding: 10px 15px;
}

.bb-mobile-panel-inner .mobile-org-select-container label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	opacity: 0.8;
}

.bb-mobile-panel-inner .mobile-org-select {
	width: 100%;
	padding: 10px;
	border-radius: 6px;
	border: 1px solid var(--lab-border-medium);
	background-color: var(--lab-bg-light);
	color: var(--lab-text-dark);
	font-size: 14px;
	font-weight: bold;
}

.bb-mobile-panel-inner .org-menu-link {
	display: flex !important;
	align-items: center;
}

.bb-mobile-panel-inner .org-menu-link .menu-icon {
	margin-right: 10px;
	font-size: 18px;
	opacity: 0.9;
	color: var(--lab-primary);
}

/* Mobile Menu Tab Navigation */
.mobile-menu-tabs {
	display: flex;
	width: 100%;
	border-bottom: 1px solid var(--lab-border-light);
	margin-bottom: 15px;
}

.mobile-menu-tab {
	flex: 1;
	text-align: center;
	padding: 12px 5px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	opacity: 0.7;
	position: relative;
}

.mobile-menu-tab.active {
	opacity: 1;
	color: var(--lab-primary);
}

.mobile-menu-tab.active:after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--lab-primary);
	box-shadow: 0 0 10px rgba(82, 113, 255, 0.3);
}

.mobile-menu-content {
	display: none;
}

.mobile-menu-content.active {
	display: block;
}

.org-menu-container {
	padding: 0 15px;
}

.org-menu-title {
	margin: 15px 0 10px;
	font-size: 16px;
	font-weight: 600;
	opacity: 0.9;
}

.bb-cover-list-item .ld-status {
	top: 341px !important;
}
.bb-cover-wrap {
	border-radius: 3px;
	position: relative;
	overflow: visible;
	padding-top: 96.52%;
	display: block;
	background: var(--bb-cover-image-background-color);
}
.bb-course-items .bb-course-cover {
	overflow: visible;
	position: relative;
}

.learndash-wrapper .ld-primary-background,
.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active:after {
	background: var(--bb-primary-button-background-regular) !important;
}

.learndash-wrapper,
.learndash-wrapper:not(
	.ld-registration__outer-wrapper,
	.learndash-wrapper--modern
) {
	color: black;
	line-height: inherit;
}

.learndash_content_wrap .learndash-wrapper .learndash_mark_complete_button,
.learndash_content_wrap
	.learndash-wrapper:not(
	.ld-registration__outer-wrapper,
	.learndash-wrapper--modern
	)
	.learndash_mark_complete_button {
	border-radius: var(--bb-button-radius);
	background-color: var(--bb-primary-button-background-regular) !important;
	color: var(--bb-primary-button-text-regular) !important;
	border: 1px solid var(--bb-primary-button-border-regular);
	-webkit-transition: all linear 0.2s;
	transition: all linear 0.2s;
	font-size: 15px;
	font-weight: 500;
	padding: 0px 20px;
}

.learndash-wrapper.learndash-wrap.learndash-shortcode-wrap {
	margin-bottom: 0px !important;
}

.learndash-shortcode-wrap .ld-course-status {
	display: none !important;
}

.wc-block-checkout__order-notes,
.wp-block-woocommerce-checkout-pickup-options-block,
.wp-block-woocommerce-checkout-shipping-method-block {
	display: none !important;
}

.post-47 .entry-header {
	display: none !important;
}

.wc-block-checkout__billing-fields {
	margin-bottom: 0px !important;
}

ul#menu-legal-pages a {
	font-size: 8px !important;
}

/* Add your custom styles below this line */

/* BuddyPanel native styles (replaces Tailwind utilities) */
.bp-toggle-btn {
	display: block;
	margin: 0 auto 10px;
	background: transparent;
	border: none;
	padding: 0;
}

.bp-toggle-btn:hover {
	box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
	background: #f8fafc;
}

.bp-toggle-btn:focus {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

.bp-toggle-icon {
	width: 16px;
	height: 16px;
	color: #64748b;
	transition: transform 0.3s ease;
}

.bp-card {
	padding: 16px 12px 8px;
	margin: 16px 8px 0;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.bp-group-heading {
	font-size: 14px;
	font-weight: 700;
	color: #1f2937;
	line-height: 1.25;
	margin-bottom: 6px;
	word-break: break-word;
}

.bp-group-name {
	padding-bottom: 4px;
}

.bp-group-label {
	margin-bottom: 10px;
	letter-spacing: -0.01em;
}

.bp-hint {
	font-size: 12px;
	color: #94a3b8;
	padding-bottom: 8px;
}

.bp-select-wrapper {
	position: relative;
	padding-bottom: 4px;
}

.bp-select {
	width: 100%;
	appearance: none;
	border: 1px solid #e2e8f0;
	background: #fff;
	padding: 10px 38px 10px 12px;
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
	transition:
	border-color 0.2s ease,
	box-shadow 0.2s ease;
}

.bp-select:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.bp-hidden {
	display: none;
}

.bp-select-icon {
	pointer-events: none;
	position: absolute;
	inset: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 12px;
	color: #94a3b8;
}

.bp-select-icon-svg {
	width: 16px;
	height: 16px;
}

.bp-nav-links {
	margin-top: 12px;
	padding: 0 8px;
}

.bp-loading {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px;
	font-size: 14px;
	color: #94a3b8;
}

.bp-spinner {
	width: 16px;
	height: 16px;
	color: #94a3b8;
	animation: bp-spin 1s linear infinite;
}

@keyframes bp-spin {
	from {
	transform: rotate(0deg);
	}
	to {
	transform: rotate(360deg);
	}
}

.bp-empty {
	padding: 12px;
	font-size: 14px;
	color: #94a3b8;
}

.bp-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	border-top: 1px solid #f1f5f9;
}

.bp-menu-item {
	padding: 2px 0;
	border-radius: 10px;
	transition:
	background-color 0.2s ease,
	color 0.2s ease;
}

.bp-menu-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: white;
	text-decoration: none;
	background: transparent;
	transition:
	background-color 0.2s ease,
	color 0.2s ease;
}

/* .bp-menu-link:hover {
	background: var( --e-global-color-a9d6911 );
	color: #0f172a;
} */

.bp-menu-link--restricted {
	color: #cbd5e1;
	cursor: not-allowed;
	background: transparent;
}

.bp-menu-link--restricted:hover {
	background: transparent;
	color: #cbd5e1;
}

.bp-menu-icon {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #64748b;
	flex-shrink: 0;
}

.bp-menu-icon--restricted {
	color: #cbd5e1;
}

.bp-menu-title {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bp-restricted-icon {
	flex-shrink: 0;
	color: #cbd5e1;
	font-size: 12px;
}

.footer-bottom-left {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.sticky-header .site-header {
	-webkit-transition: width 0.2s;
	transition: width 0.2s;
	box-shadow: none !important;
	position: fixed;
	z-index: 612;
	width: 100%;
}

.site-header {
	background-color: var(--bb-body-background-color) !important;
	box-shadow: inset 0 -1px 0 0 #dcdfe3;
	position: relative;
}

.site-header:before {
	content: "";
	position: absolute;
	top: 0;
	left: -13px;
	bottom: 0;
	width: 13px;
	box-shadow: none !important;
	pointer-events: none;
}

aside#buddypanel {
	background-color: var(--bb-primary-color);
}

#buddypanel span.menu-title.bp-menu-title {
	color: white;
}

#buddypanel span.menu-title.bp-menu-title:hover {
	color: #ffa62b;
}

.content-area {
	padding-top: 0px !important;
}

a.button.small.outline.signin-button.link {
	display: none !important;
}
div#primary-navbar * {
	font-size: 13px !important;
}

.groups-type-navs.main-navs {
	display: none !important;
}

.groups-header .moderators-lists #group-admins>li img {
    width: 50px !important;
}

ul#group-admins {
	gap: 8px;
}
/* LearnDash lesson/topic/quiz: Go back to community link */
.mlmmc-back-to-community-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
}

.mlmmc-back-to-community {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border: 1px solid #dcdfe3;
	border-radius: 30px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--bb-primary-color, #17697a);
	background: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.mlmmc-back-to-community:hover,
.mlmmc-back-to-community:focus {
	color: var(--bb-primary-color, #17697a);
	border-color: var(--bb-primary-color, #17697a);
	text-decoration: none;
}

div#bb-zoom-modal-body {
    overflow: visible !important;
}

/* ==========================================================================
   Activity feed & reply-form toolbar icons - make more visible (less subtle)
   Covers: #whats-new-toolbar, #editor-toolbar, .ac-reply-toolbar,
           #whats-new-messages-toolbar, #whats-new-formatting-toolbar,
           .bb-modal-header-actions (feature image / close),
           and the same toolbars rendered inside bp/single reply (topic) forms.
   ========================================================================== */

/* 1. Idle icons: use the full heading color (no 30-40% transparency) so they
   are clearly visible instead of washed out. */
#whats-new-toolbar a [class*=" bb-icon-"],
#whats-new-toolbar .emojionearea .emojionearea-button,
#editor-toolbar [class*=" bb-icon-"],
#editor-toolbar .emojionearea .emojionearea-button,
.ac-reply-toolbar a [class*=" bb-icon-"],
.ac-reply-toolbar .emojionearea .emojionearea-button,
#whats-new-messages-toolbar a [class*=" bb-icon-"],
#whats-new-messages-toolbar .emojionearea .emojionearea-button,
#whats-new-formatting-toolbar a [class*=" bb-icon-"],
#whats-new-formatting-toolbar .emojionearea .emojionearea-button,
.bb-modal-header-actions a [class*=" bb-icon-"],
.bb-activity-post-feature-image-ctrl [class*=" bb-icon-"] {
	color: var(--bb-headings-color) !important;
	opacity: 0.8;
}

/* 2. Render muted/light icons as their filled glyph variant so they look
   solid and prominent rather than thin and faint. */
#whats-new-toolbar a [class*=" bb-icon-"],
#editor-toolbar [class*=" bb-icon-"],
.ac-reply-toolbar a [class*=" bb-icon-"],
#whats-new-messages-toolbar a [class*=" bb-icon-"],
#whats-new-formatting-toolbar a [class*=" bb-icon-"],
.bb-modal-header-actions a [class*=" bb-icon-"],
.bb-activity-post-feature-image-ctrl [class*=" bb-icon-"] {
	font-weight: 300;
}

/* 3. Slightly larger icons for better affordance. */
#whats-new-toolbar a .bb-icon,
#editor-toolbar [class*=" bb-icon-"],
.ac-reply-toolbar a .bb-icon,
#whats-new-messages-toolbar a .bb-icon,
#whats-new-formatting-toolbar a .bb-icon,
.bb-modal-header-actions a .bb-icon,
.bb-activity-post-feature-image-ctrl .bb-icon {
	font-size: 20px;
}

/* 4. Medium-editor formatting toolbar (bold/italic/underline/etc.) buttons:
   default medium-editor icons are faint grey; color them with the heading
   color and strengthen them. */
#whats-new-toolbar .medium-editor-toolbar .medium-editor-action b,
.ac-reply-toolbar .medium-editor-toolbar .medium-editor-action b,
.bbp-reply-form .medium-editor-toolbar .medium-editor-action b,
.bbp-topic-form .medium-editor-toolbar .medium-editor-action b {
	color: var(--bb-headings-color);
	font-weight: 600;
}

/* 5. Hover / active states keep a clear highlight. */
#whats-new-toolbar a:hover [class*=" bb-icon-"],
#whats-new-toolbar a.active [class*=" bb-icon-"],
#editor-toolbar [class*=" bb-icon-"]:hover,
.ac-reply-toolbar a:hover [class*=" bb-icon-"],
#whats-new-messages-toolbar a:hover [class*=" bb-icon-"],
#whats-new-formatting-toolbar a:hover [class*=" bb-icon-"],
.bb-modal-header-actions a:hover [class*=" bb-icon-"] {
	color: var(--bb-primary-color);
}

/* ==========================================================================
   Group Topics unseen-activity badge (child theme)
   Unread count on the forum tab of group navigation.
   ========================================================================== */

.mlmmc-group-topics-badge {
	display: inline-flex;
	align-items: center;
	margin-left: 7px;
	vertical-align: middle;
	position: relative;
	top: -1px;
	line-height: 1;
}

/* Unread count pill */
.mlmmc-gfb-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--bb-label-background-color);
	color: var(--bb-label-text-color);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

/* ==========================================================================
   Group Topics unseen-activity badge (child theme)
   Pulsing red dot + unread count on the forum tab of group navigation.
   ========================================================================== */

.mlmmc-group-topics-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: 7px;
	vertical-align: middle;
	position: relative;
	top: -1px;
	line-height: 1;
}

/* Pulsing dot */
.mlmmc-gfb-dot {
	position: relative;
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50
}

#sync-meetings-groups-li{
  display: flex;
}

/* ==========================================================================
   Compact mobile group header (group single pages) — MOBILE ONLY.
   On phones the BuddyBoss default stacks the group avatar centered on its
   own row ABOVE the title/content, eating a lot of vertical space. The child
   group header template (buddypress/groups/single/cover-image-header.php)
   now renders the avatar in two mutually-exclusive places:
     - desktop: the regular #item-header-avatar spot (wp_is_mobile() === false)
     - mobile:  #item-header-avatar-inline inside #header-cover-image, pinned
                to the top-left of the cover banner (wp_is_mobile() === true)
   The rules below only ever size the INLINE mobile copy (and the fallback
   flex layout for desktop browsers resized into the phone breakpoint).

   Scoping: every rule here is anchored on #cover-image-container.mlmmc-group-header,
   a class added ONLY by the child theme's forked groups cover-image-header.php
   template. Member profiles (members/single/cover-image-header.php) never
   render that class, so these rules CANNOT leak into the user profile header.
   Desktop layout is untouched: everything sits inside the same 782px
   breakpoint BuddyBoss' own mobile rules use.
   ========================================================================== */
@media screen and (max-width: 782px) {

	/* Anchor: only group single pages render #cover-image-container with the
	   mlmmc-group-header class. !important is used on the layout-critical
	   declarations so no platform rule (any version or load order) can stack
	   the avatar above the title again; everything stays group-scoped. */
	body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header {
		position: relative;
	}

	body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header #item-header-cover-image {
		flex-flow: row nowrap !important;
		align-items: flex-start !important;
		padding-bottom: 12px;
	}

	/* Desktop-row logo copy is unused on mobile (the template emits the inline
	   copy inside #header-cover-image instead) so it is hidden here rather
	   than sized. */
	body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header #item-header-cover-image #item-header-avatar {
		display: none;
	}

	/* Exception: a desktop browser resized into this breakpoint still gets the
	   regular avatar (the template branches on wp_is_mobile(), not width), and
	   the team guides column is only emitted on desktop. Keep that avatar
	   visible, otherwise the column shows the label and guides with nothing
	   above them. */
	body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header #item-header-cover-image .mlmmc-group-avatar-col #item-header-avatar {
		display: block !important;
	}

	/* Content fills the row. */
	body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header #item-header-cover-image #item-header-content {
		flex: 1 1 0 !important;
		min-width: 0;
		margin-top: 0;
		padding: 0;
		text-align: left;
	}

	body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header #item-header-content .bp-group-title-wrap {
		justify-content: flex-start !important;
	}

	/* Mobile avatar: rendered by the child template INSIDE #header-cover-image
	   so absolute positioning anchors to the cover itself (#header-cover-image
	   is position: relative from the platform), pinned to its top-left corner
	   right below the site header. */
	body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header #header-cover-image #item-header-avatar-inline.mlmmc-inline-avatar {
		position: absolute !important;
		top: 8px;
		left: 8px;
		margin: 0 !important;
		padding: 0;
		flex: 0 0 auto !important;
		z-index: 2;
	}

	/* Smaller avatar pinned flush to the cover's top-left corner, right
	   below the site header. */
	body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header #header-cover-image #item-header-avatar-inline .avatar {
		width: 42px !important;
		max-width: 42px !important;
		height: 42px !important;
		border-width: 2px;
		border-radius: 0;
		box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
	}

	/* Shorter cover image on phones (default 225px eats vertical space).
	   Tune this value to taste; 160px keeps the banner readable. */
	body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header #header-cover-image {
		height: 160px;
	}
}

@media (max-width: 580px) {
	div#buddypress div#item-header img.avatar {
	    margin: 0 auto;
	    float: none;
	    max-width: 100px;
      border-radius: 0px !important;
	}
  #buddypress #header-cover-image.cover-small {
    height: 120px !important;
  }
  body.single-item.single-item.groups #buddypress div#item-header #item-header-cover-image #item-header-content {
    margin-top: 0 !important;
  }
}

/* ==========================================================================
   Team guides under the group avatar (group single pages) — DESKTOP ONLY.
   The group organizers ("team guides") used to take a full row inside
   #item-header-content, below the title and above the action buttons, which
   pushed the header quite tall. The child group header template
   (buddypress/groups/single/cover-image-header.php) now captures that block
   and, on desktop, renders it in .mlmmc-group-avatar-col underneath the group
   avatar, so it sits beside the title/description instead of under it.

   Two layers below:
   - General rules on .mlmmc-group-header .mlmmc-guides-list / .mlmmc-view-all-guides,
     which apply in BOTH placements: on desktop (inside the avatar column) and
     on mobile (the guides stay in the content column there). They turn the
     platform's overlapping inline-block strip into a clean wrapping grid.
   - Column rules scoped to .mlmmc-group-avatar-col — a wrapper the template
     emits only on desktop and only when the guides are being moved there —
     which add the 3-per-line sizing. They cannot affect member profiles, which
     never render that class. (A width media query is deliberately avoided: the
     template branches on wp_is_mobile(), which is user-agent based, so a
     desktop browser resized into a narrow window would otherwise fall between
     the two.)
   ========================================================================== */

/* New flex child of #item-header-cover-image holding avatar + guides. */
body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header #item-header-cover-image .mlmmc-group-avatar-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 0 0 auto;
	/* Replaces the spacing #item-header-avatar used to provide between
	   itself and #item-header-content. */
	margin-right: 30px;
}

/* The platform pushes the avatar up into the cover; inside our own column only
   the vertical nudge applies. Going deeper than the platform's -40px lets the
   header content sit higher and reclaims vertical space. */
body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header .mlmmc-group-avatar-col #item-header-avatar {
	margin-right: 0;
	margin-top: -100px;
}

/* Guides block: stack under the avatar, keep it narrow enough to wrap. */
body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header .mlmmc-group-avatar-col #item-actions {
	display: block;
	margin-top: 8px;
	max-width: 170px;
}

/* The platform hides this caption; show it as a quiet label so the avatars
   are self-explanatory now that they no longer sit under "Organized by". */
body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header .mlmmc-group-avatar-col .moderators-lists .moderators-title {
	display: block;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bb-content-secondary-text-color, #64748b);
	margin-bottom: 4px;
}

/* The list is normally inline-block with a negative right margin (slight
   overlap). Here it becomes a wrapping grid, mirroring the badge grid on
   member profiles — three guides per line once the avatar column narrows it. */
body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header .moderators-lists .user-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header .moderators-lists ul#group-admins.mlmmc-guides-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	margin: 0;
	list-style: none;
}

body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header .moderators-lists ul#group-admins.mlmmc-guides-list > li {
	margin: 0;
}

body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header .moderators-lists ul#group-admins.mlmmc-guides-list > li a {
	display: inline-flex;
}

/* "View all team guides" trigger under the wrap: compact so it costs almost
   no vertical space next to the row of avatars. */
body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header .mlmmc-view-all-guides {
	display: inline-block;
	margin-top: 4px;
	padding: 1px 8px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
	color: var(--bb-primary-color, #385dfb);
	background: var(--bb-content-background-color, #fff);
	border: 1px solid var(--bb-content-border-color, #d8d8e0);
	border-radius: 3px;
	cursor: pointer;
}

/* --- Avatar-column-only layering ---------------------------------------- */

/* 3 per line within the 170px column. */
body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header .mlmmc-group-avatar-col .moderators-lists ul#group-admins.mlmmc-guides-list > li {
	flex: 0 0 calc((100% - 12px) / 3);
	display: flex;
	justify-content: center;
}

/* Smaller than the 50px used in the content column (see the
   .moderators-lists #group-admins rule above) to keep the block compact. */
body #buddypress div#item-header.groups-header #cover-image-container.mlmmc-group-header .mlmmc-group-avatar-col .moderators-lists #group-admins > li img {
	width: 42px !important;
	height: 42px !important;
}

/* Compose recipient dropdown: a pre-made list with avatars + role badges. */
body .select2-container .select2-dropdown.bb-compose-input {
	max-width: 400px !important;
	min-width: 340px !important;
	width: auto !important;
}

.bb-select-container .select2-results__option,
body .select2-container .select2-dropdown.bb-compose-input .select2-results__option {
	padding: 0 !important;
	border-radius: 8px !important;
	margin: 2px 6px;
}

.bb-select-container .select2-results__option .mlmmc-recipient {
	display: flex !important;
	align-items: center;
	gap: 10px !important;
}

.bb-select-container .select2-results__option .mlmmc-recipient .username {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px !important;
	min-width: 0;
}

.bb-select-container .select2-results__option .mlmmc-recipient .username strong {
	font-size: 14px !important;
	font-weight: 600;
	line-height: 1.3;
}

.bb-select-container .select2-results__option .mlmmc-avatar,
body .select2-container .select2-dropdown.bb-compose-input .mlmmc-avatar {
	width: 34px !important;
	height: 34px !important;
	max-width: 34px !important;
	max-height: 34px !important;
	min-width: 34px !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: cover !important;
	border-radius: 50% !important;
	flex-shrink: 0;
}

.bb-select-container .select2-results__option .mlmmc-role-badge {
	display: inline-block;
	padding: 2px 9px !important;
	border-radius: 20px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.45;
	white-space: nowrap;
	letter-spacing: 0.02em;
	margin-left: 2px !important;
}

.bb-select-container .select2-results__option .mlmmc-role-badge.mlmmc-role-guide {
	color: #7a4a00 !important;
	background: #fff2d5 !important;
	border: 1px solid #f3d9a0;
}

.bb-select-container .select2-results__option .mlmmc-role-badge.mlmmc-role-mod {
	color: #1d4e89 !important;
	background: #e4efff !important;
	border: 1px solid #c3d8f6;
}

.bb-select-container .select2-results__option .mlmmc-role-badge.mlmmc-role-member {
	color: #5b6270 !important;
	background: #f1f2f4 !important;
	border: 1px solid #e2e5e9;
}

.bb-select-container .select2-results__option--highlighted .mlmmc-role-badge.mlmmc-role-guide {
	background: #ffe3ad !important;
	border-color: #d9b25f;
}

.bb-select-container .select2-results__option--highlighted .mlmmc-role-badge.mlmmc-role-mod {
	background: #cddff9 !important;
	border-color: #9dbce4;
}

.bb-select-container .select2-results__option--highlighted,
body .select2-container .select2-dropdown.bb-compose-input .select2-results__option--highlighted {
	background: #f6f8fb !important;
	color: #1f2328 !important;
}

.bb-media-model-wrapper .activity-comments.threaded-level-3 .activity-actions>ul>li ul .acomment-edit .ac-reply-avatar::before, .bb-media-model-wrapper .activity-comments.threaded-level-3 .activity-actions>ul>li ul .item-avatar::before, .bb-media-model-wrapper .activity-comments.threaded-level-3>ul>li ul .acomment-edit .ac-reply-avatar::before, .bb-media-model-wrapper .activity-comments.threaded-level-3>ul>li ul .item-avatar::before, .buddypress-wrap .activity-comments.threaded-level-3 .activity-actions>ul>li ul .acomment-edit .ac-reply-avatar::before, .buddypress-wrap .activity-comments.threaded-level-3 .activity-actions>ul>li ul .item-avatar::before, .buddypress-wrap .activity-comments.threaded-level-3>ul>li ul .acomment-edit .ac-reply-avatar::before, .buddypress-wrap .activity-comments.threaded-level-3>ul>li ul .item-avatar::before {
    content: "";
    width: 16px;
    position: absolute;
    left: -10px !important;
    top: -14px;
    height: 32px;
    border-style: solid;
    border-width: 0 0 2px 2px;
    border-bottom-color: var(--bb-content-border-color);
    border-left-color: var(--bb-content-border-color);
    border-bottom-left-radius: 10px;
}

.bb-media-model-wrapper .activity-comments.threaded-level-3 .activity-actions>ul .acomments-view-more::before, .bb-media-model-wrapper .activity-comments.threaded-level-3>ul .acomments-view-more::before, .buddypress-wrap .activity-comments.threaded-level-3 .activity-actions>ul .acomments-view-more::before, .buddypress-wrap .activity-comments.threaded-level-3>ul .acomments-view-more::before {
    content: "";
    background-color: transparent;
    width: 16px;
    position: absolute;
    left: -10px !important;
    top: -15px;
    height: 32px;
    border-style: solid;
    border-width: 0 0 2px 2px;
    border-bottom-color: var(--bb-content-border-color);
    border-left-color: var(--bb-content-border-color);
    border-bottom-left-radius: 10px;
}

body #buddypress .groups-header #item-header-cover-image {
    margin-left: auto;
    padding-bottom: 0;
}

/* Shared group control row: role, bell, and Millo are direct flex siblings. */
body #buddypress #cover-image-container.mlmmc-group-header .mlmmc-group-header-controls {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 5px;
}

body #buddypress #cover-image-container.mlmmc-group-header .mlmmc-group-header-controls > *,
body #buddypress #cover-image-container.mlmmc-group-header .mlmmc-group-header-controls .generic-button,
body #buddypress #cover-image-container.mlmmc-group-header .mlmmc-group-header-controls .button,
body #buddypress #cover-image-container.mlmmc-group-header .mlmmc-group-header-controls .group-subscription {
    margin: 0 !important;
    flex: 0 0 auto;
}

body #buddypress #cover-image-container.mlmmc-group-header #item-header-content .mlmmc-group-header-controls button.mlmmc-millo-launcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    height: 38px;
    min-height: auto;
    min-width: auto;
    padding: 0 16px;
    margin: 0;
    border: 1px solid var(--bb-content-border-color);
    border-radius: var(--bb-button-radius);
    background: var(--bb-content-background-color);
    color: var(--bb-primary-color);
    line-height: 38px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
}

body #buddypress #cover-image-container.mlmmc-group-header button.mlmmc-millo-launcher svg {
    flex: 0 0 18px;
    color: var(--bb-primary-color);
}

body #buddypress #cover-image-container.mlmmc-group-header button.mlmmc-millo-launcher:hover {
    border-color: var(--bb-primary-color);
    background: var(--bb-content-alternate-background-color);
}

body #buddypress #cover-image-container.mlmmc-group-header button.mlmmc-millo-launcher:focus-visible {
    outline: 2px solid var(--bb-primary-color);
    outline-offset: 3px;
}

@media (max-width: 782px) {
    body #buddypress #cover-image-container.mlmmc-group-header .mlmmc-millo-ask {
        display: none;
    }

    body #buddypress #cover-image-container.mlmmc-group-header #item-header-content .mlmmc-group-header-controls button.mlmmc-millo-launcher {
        padding: 0 10px;
    }
}

/* Aura stays centered on the icon without changing the control's footprint. */
body #buddypress #cover-image-container.mlmmc-group-header .mlmmc-millo-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    isolation: isolate;
}

body #buddypress #cover-image-container.mlmmc-group-header .mlmmc-millo-icon::before,
body #buddypress #cover-image-container.mlmmc-group-header .mlmmc-millo-icon::after {
    content: "";
    position: absolute;
    inset: -2px;
    border: 1px solid var(--bb-primary-color);
    border-radius: 50%;
    background: radial-gradient(circle, transparent 35%, var(--bb-primary-color) 100%);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
}

@keyframes mlmmc-millo-aura {
    0%, 58% { transform: scale(.65); opacity: 0; }
    66% { transform: scale(.85); opacity: .24; }
    86%, 100% { transform: scale(1.75); opacity: 0; }
}

/* A quiet sparkle at rest, with a quick greeting on hover. */
@keyframes mlmmc-millo-sparkle {
    0%, 65%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    75% { transform: scale(.94) rotate(-6deg); opacity: .75; }
    85% { transform: scale(1.12) rotate(8deg); opacity: 1; }
}

@keyframes mlmmc-millo-greeting {
    0%, 100% { transform: scale(1) rotate(0deg); }
    45% { transform: scale(1.18) rotate(-12deg); }
    75% { transform: scale(1.08) rotate(6deg); }
}

@media (prefers-reduced-motion: no-preference) {
    body #buddypress #cover-image-container.mlmmc-group-header .mlmmc-millo-icon::before,
    body #buddypress #cover-image-container.mlmmc-group-header .mlmmc-millo-icon::after {
        animation: mlmmc-millo-aura 4s ease-out infinite;
    }

    body #buddypress #cover-image-container.mlmmc-group-header .mlmmc-millo-icon::after {
        animation-delay: .35s;
    }

    body #buddypress #cover-image-container.mlmmc-group-header button.mlmmc-millo-launcher {
        transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
    }

    body #buddypress #cover-image-container.mlmmc-group-header button.mlmmc-millo-launcher svg {
        transform-box: fill-box;
        transform-origin: center;
        animation: mlmmc-millo-sparkle 4s ease-in-out infinite;
    }

    @media (hover: hover) {
        body #buddypress #cover-image-container.mlmmc-group-header button.mlmmc-millo-launcher:hover {
            transform: translateY(-1px);
        }

        body #buddypress #cover-image-container.mlmmc-group-header button.mlmmc-millo-launcher:hover svg {
            animation: mlmmc-millo-greeting .45s ease-in-out;
        }
    }
}
