/*
 * CBA_ACTIVITY_CENTER_STYLES_V1
 */

.cba-category-ballot-session {
  display: none !important;
}

.cba-activity-launcher {
  display: flex;
  width: 100%;
  min-height: 50px;
  margin: 18px 0;
  padding: 12px 16px;
  border: 1px solid #d9dde5;
  border-radius: 12px;
  background: #ffffff;
  color: #111111;
  align-items: center;
  gap: 10px;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cba-activity-launcher:hover {
  border-color: #111111;
}

.cba-activity-launcher-icon {
  color: #ff3c57;
  font-size: 15px;
}

.cba-activity-badge {
  min-width: 24px;
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.cba-activity-overlay {
  position: fixed;
  z-index: 999999;
  inset: 0;
  padding: 24px;
  background: rgba(17, 17, 17, 0.46);
  overflow: auto;
}

.cba-activity-overlay[hidden] {
  display: none !important;
}

.cba-activity-open {
  overflow: hidden;
}

.cba-activity-panel {
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  margin: 0 auto;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 24px 80px
    rgba(17, 17, 17, 0.24);
  overflow: hidden;
}

.cba-activity-header {
  display: flex;
  padding: 22px 24px 16px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cba-activity-header span {
  display: block;
  margin-bottom: 4px;
  color: #737b8c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cba-activity-header h2 {
  margin: 0;
  color: #111111;
  font-size: 24px;
  line-height: 1.2;
}

.cba-activity-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f2f6;
  color: #4d5565;
  font-size: 26px;
  line-height: 38px;
  cursor: pointer;
}

.cba-activity-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 24px;
  border-bottom: 1px solid #e3e6ec;
}

.cba-activity-tabs button {
  padding: 13px 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #737b8c;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cba-activity-tabs button.is-active {
  border-bottom-color: #ff3c57;
  color: #111111;
  border-radius: 0;
}

.cba-activity-body {
  max-height: calc(100vh - 190px);
  padding: 20px 24px 28px;
  overflow: auto;
}

.cba-activity-list,
.cba-manage-list {
  display: grid;
  gap: 10px;
}

.cba-activity-row,
.cba-manage-row {
  display: flex;
  padding: 14px;
  border: 1px solid #e0e4eb;
  border-radius: 12px;
  background: #ffffff;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cba-activity-row-copy,
.cba-manage-copy {
  min-width: 0;
}

.cba-activity-row-copy strong,
.cba-manage-copy strong {
  display: block;
  color: #111111;
  font-size: 14px;
  line-height: 1.35;
}

.cba-activity-row-copy span,
.cba-manage-copy span {
  display: block;
  margin-top: 3px;
  color: #737b8c;
  font-size: 12px;
  text-transform: capitalize;
}

.cba-activity-row-copy p {
  margin: 7px 0 0;
  color: #148238;
  font-size: 12px;
  font-weight: 700;
}

.cba-activity-row a {
  flex: 0 0 auto;
  color: #111111;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
}

.cba-activity-empty {
  padding: 26px 18px;
  border: 1px dashed #ccd2dd;
  border-radius: 12px;
  text-align: center;
}

.cba-activity-empty strong {
  display: block;
  color: #111111;
}

.cba-activity-empty p {
  max-width: 420px;
  margin: 7px auto 0;
  color: #737b8c;
  font-size: 13px;
  line-height: 1.5;
}

.cba-activity-loading {
  padding: 30px;
  color: #737b8c;
  text-align: center;
}

.cba-activity-body h3 {
  margin: 24px 0 10px;
  color: #111111;
  font-size: 14px;
}

.cba-activity-body h3:first-child {
  margin-top: 0;
}

.cba-manage-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.cba-manage-notify,
.cba-manage-remove,
.cba-activity-primary {
  padding: 8px 11px;
  border: 1px solid #cdd2dc;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cba-manage-notify.is-on {
  border-color: #ff3c57;
  background: #ff3c57;
  color: #ffffff;
}

.cba-manage-remove {
  color: #a92a3d;
}

.cba-activity-primary {
  margin-top: 16px;
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

@media (max-width: 640px) {
  .cba-activity-overlay {
    padding: 0;
  }

  .cba-activity-panel {
    width: 100%;
    min-height: 100vh;
    max-height: none;
    border-radius: 0;
  }

  .cba-activity-body {
    max-height: calc(100vh - 145px);
    padding-right: 16px;
    padding-left: 16px;
  }

  .cba-activity-header,
  .cba-activity-tabs {
    padding-right: 16px;
    padding-left: 16px;
  }

  .cba-activity-row,
  .cba-manage-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .cba-manage-actions {
    width: 100%;
  }

  .cba-manage-actions button {
    flex: 1;
  }
}


/*
 * CBA_ACTIVITY_CENTER_HEADER_FILTERS_V2
 */

/* The old full-width ballot launcher is no longer used. */
.cba-activity-launcher {
  display: none !important;
}

/* Compact circular control beside the main header ellipsis. */
.cba-activity-header-trigger {
  position: relative;
  display: inline-flex !important;
  width: 42px;
  height: 42px;
  min-width: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f1f3;
  color: #111111;
  align-items: center;
  justify-content: center;
  appearance: none;
  cursor: pointer;
}

.cba-activity-header-trigger:hover {
  background: #e2e4e8;
}

.cba-activity-header-trigger:focus-visible {
  outline: 2px solid #ff3c57;
  outline-offset: 2px;
}

.cba-activity-header-bell {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

.cba-activity-header-trigger
.cba-activity-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: block;
  min-width: 19px;
  height: 19px;
  margin: 0;
  padding: 0 5px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}

.cba-activity-header-trigger
.cba-activity-badge[hidden] {
  display: none !important;
}

/* Type and status filtering in the Manage tab. */
.cba-manage-filters {
  display: grid;
  margin-bottom: 20px;
  gap: 14px;
}

.cba-manage-filter-group {
  display: grid;
  gap: 7px;
}

.cba-manage-filter-label {
  color: #737b8c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cba-manage-filter-buttons {
  display: flex;
  max-width: 100%;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.cba-manage-filter {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #d4d9e2;
  border-radius: 999px;
  background: #ffffff;
  color: #596172;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.cba-manage-filter:hover {
  border-color: #111111;
  color: #111111;
}

.cba-manage-filter.is-active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

/* Entire activity item is now the navigation control. */
.cba-activity-row.is-clickable {
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.cba-activity-row.is-clickable:hover {
  border-color: #c8ced8;
  background: #f5f6f8;
}

.cba-activity-row.is-clickable:active {
  transform: translateY(1px);
}

.cba-activity-row.is-clickable:focus-visible {
  border-color: #ff3c57;
  outline: 2px solid rgba(255, 60, 87, 0.2);
  outline-offset: 2px;
}

/* Old independent text links are no longer rendered. */
.cba-activity-row > a {
  display: none !important;
}

@media (max-width: 760px) {
  .cba-activity-header-trigger {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .cba-manage-filter-buttons {
    padding-bottom: 3px;
  }
}

/*
 * CBA_ACTIVITY_CENTER_CARD_BELL_MODAL_FIX_V3
 *
 * Match the contextual nominee bell while using the requested path
 * fills for the persistent header activity center.
 */
.custom_header
.cba-activity-header-trigger.cba-context-bell-trigger {
  position: relative;
  display: inline-flex !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  align-items: center !important;
  justify-content: center !important;
  appearance: none;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.custom_header
.cba-activity-header-trigger
.cba-context-bell-icon {
  display: block;
  width: 30px !important;
  height: 33.378px !important;
  overflow: visible;
  pointer-events: none;
}

/* Requested icon fills. */
.custom_header
.cba-activity-header-trigger
#inner-fill {
  fill: #000000 !important;
  stroke: none !important;
}

.custom_header
.cba-activity-header-trigger
#stroke {
  fill: #f0f1f3 !important;
  stroke: none !important;
}

.custom_header
.cba-activity-header-trigger
.cba-context-bell-dot {
  position: absolute;
  top: 5px;
  right: 4px;
  display: block;
  width: 9px;
  height: 9px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #ff3c57;
  pointer-events: none;
}

.custom_header
.cba-activity-header-trigger
.cba-context-bell-dot[hidden] {
  display: none !important;
}

/* Keep the numeric count available to screen readers only. */


.custom_header
.cba-activity-header-trigger:hover
#stroke {
  fill: #e1e3e7 !important;
}

.custom_header
.cba-activity-header-trigger:focus-visible {
  outline: 2px solid #ff3c57 !important;
  outline-offset: 2px !important;
}

@media (max-width: 760px) {
  .custom_header
  .cba-activity-header-trigger.cba-context-bell-trigger {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  .custom_header
  .cba-activity-header-trigger
  .cba-context-bell-icon {
    width: 27px !important;
    height: auto !important;
  }
}

/*
 * CBA_BALLOT_ACTIVITY_CLEANUP_V4
 *
 * Match the header ellipsis control:
 * - gray circular background
 * - black bell body
 * - light-gray outer bell path
 */
.custom_header
.cba-activity-header-trigger.cba-context-bell-trigger {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #f0f1f3 !important;
  box-shadow: none !important;
}

.custom_header
.cba-activity-header-trigger.cba-context-bell-trigger:hover {
  background: #e2e4e8 !important;
}

.custom_header
.cba-activity-header-trigger
.cba-context-bell-icon {
  width: 22px !important;
  height: auto !important;
}

.custom_header
.cba-activity-header-trigger
#inner-fill {
  fill: #000000 !important;
  stroke: none !important;
}

.custom_header
.cba-activity-header-trigger
#stroke {
  fill: #f0f1f3 !important;
  stroke: none !important;
}

.custom_header
.cba-activity-header-trigger:hover
#stroke {
  fill: #e2e4e8 !important;
}


/*
 * CBA_ACTIVITY_RELATIONSHIP_STATE_COLLAPSE_V5
 */
.custom_header
.cba-activity-header-trigger
.cba-context-bell-icon {
  width: 22px !important;
  height: auto !important;
}

/*
 * CBA_ACTIVITY_UNSEEN_DOT_V2
 *
 * Core Activity code may track whether activity exists. The sitewide
 * loader exclusively controls whether the red unseen dot is visible.
 */
.custom_header
.cba-activity-header-trigger
.cba-context-bell-dot {
  display: none !important;
}



.cba-activity-auth-actions {
  display: flex;
  margin-top: 16px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cba-activity-auth-actions
.cba-activity-primary {
  margin-top: 0;
}

.cba-activity-secondary {
  display: inline-flex;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #111111;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}


/*
 * CBA_ACTIVITY_INDICATOR_CLEANUP_V4
 */
.custom_header .cba-activity-header-trigger[data-unseen="1"] .cba-context-bell-dot {
  position: absolute;
  top: 4px !important;
  right: 3px !important;
  display: block !important;
  width: 9px !important;
  height: 9px !important;
  border: none;
  border-radius: 50% !important;
  background: #ff3c57 !important;
}

/*
 * CBA_NOTIFICATION_PREFERENCES_FOUNDATION_V1
 */

.cba-email-preference-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 22px;
  padding: 17px;
  border: 1px solid #d8dde6;
  border-radius: 12px;
  background: #f8f9fb;
  gap: 18px;
  align-items: center;
}

.cba-email-preference-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.cba-email-preference-copy strong {
  color: #111;
  font-size: 15px;
  line-height: 1.3;
}

.cba-email-preference-copy span {
  color: #596172;
  font-size: 13px;
  line-height: 1.45;
}

.cba-email-preference-controls {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.cba-email-preference-toggle {
  margin: 0;
  display: inline-flex;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid #cfd4dc;
  border-radius: 9px;
  background: #fff;
  color: #111;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cba-email-preference-toggle input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #ff3c57;
  align-self: center;
}

.cba-email-preference-toggle input:disabled {
  cursor: not-allowed;
}

.cba-email-preference-frequency {
  min-height: 38px;
  padding: 7px 32px 7px 10px;
  border: 1px solid #cfd4dc;
  border-radius: 9px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 13px;
}

.cba-email-preference-frequency:disabled {
  opacity: .55;
  cursor: not-allowed;
}


@media (max-width: 640px) {
  .cba-email-preference-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .cba-email-preference-controls {
    justify-items: stretch;
  }

  .cba-email-preference-toggle {
    justify-content: center;
  }

  .cba-email-preference-frequency {
    width: 100%;
  }
}


/*
 * CBA_NOTIFICATION_PREFERENCES_DEFAULT_ON_V2
 * New email preferences default on with a daily summary.
 * Checkbox alignment corrected.
 */


/*
 * CBA_EMAIL_PREFERENCE_STATUS_REMOVED_V3
 * Removed the unused email-preference status element.
 */
