/* Timeline rc54 menu geometry, one shared component for the search controls. */
/* Keep native BPS button borders at the same width as the other field edges. */
#buddypress form.majaa-search-form .majaa-choice .majaa-choice-toggle { border-width:1px!important; }
#buddypress .majaa-choice { position:relative;min-width:0;width:100%; }
#buddypress .majaa-choice-native { position:absolute!important;display:block!important;width:1px!important;min-width:0!important;height:1px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important; }
#buddypress form.majaa-search-form .majaa-choice .majaa-choice-toggle,
#buddypress .majaa-choice .majaa-choice-toggle,
#buddypress form.majaa-search-form .majaa-search-picker > summary { display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:44px;margin:0;padding:9px 12px;border:1px solid var(--majaa-search-field-border,rgba(122,140,120,.5));border-radius:var(--majaa-field-radius);background:#fff;box-shadow:none;color:var(--majaa-color-ink);font:400 14px/1.4 var(--majaa-font-body);text-align:left;text-transform:none;letter-spacing:normal;cursor:pointer; }
#buddypress .majaa-choice .majaa-choice-toggle > span { overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0; }
#buddypress .majaa-choice .majaa-choice-toggle::after,
#buddypress .majaa-search-chevron { content:'';display:block;flex:0 0 12px;width:12px;height:8px;margin:0 0 0 auto;border:0;transform:none;background:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"%3E%3Cpath d="m1 1 5 5 5-5" fill="none" stroke="%2339303c" stroke-width="1.3"/%3E%3C/svg%3E') center/contain no-repeat; }
#buddypress details[open] > summary > .majaa-search-chevron,
#buddypress .majaa-choice .majaa-choice-toggle[aria-expanded="true"]::after { transform:rotate(180deg);margin-top:0; }
#buddypress .majaa-choice-panel,
#buddypress form.majaa-search-form .majaa-search-picker > :is(.checkbox,.radio) { position:absolute;z-index:40;box-sizing:border-box;top:calc(100% + 4px);left:0;right:0;width:100%;min-width:0;max-height:280px;margin:0;padding:8px;border:1px solid var(--majaa-warm-border,var(--majaa-color-gold-dark));border-radius:10px;background:#fff;box-shadow:0 9px 24px rgba(62,49,32,.16);overflow:auto;overscroll-behavior:contain; }
#buddypress .majaa-choice-panel[hidden] { display:none!important; }
#buddypress .majaa-choice .majaa-choice-option,
#buddypress form.majaa-search-form .majaa-search-picker .custom-control { display:flex;align-items:center;width:100%;min-height:44px;margin:0;padding:8px 6px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--majaa-warm-ink,var(--majaa-color-ink));font:400 13px/1.4 var(--majaa-font-body);text-align:left;text-transform:none;letter-spacing:normal;cursor:pointer; }
#buddypress .majaa-choice .majaa-choice-option:hover,
#buddypress .majaa-choice .majaa-choice-option:focus-visible,
#buddypress .majaa-choice .majaa-choice-option[aria-selected="true"],
#buddypress form.majaa-search-form .majaa-search-picker .custom-control:hover { background:#fff; }
#buddypress .majaa-choice .majaa-choice-toggle:focus-visible,
#buddypress .majaa-choice .majaa-choice-option:focus-visible { outline:2px solid var(--majaa-warm-ink,var(--majaa-color-gold-dark));outline-offset:2px; }

/* Match the existing Timeline visibility menu, keep closed fields white. */
body.majaa-member-search #buddypress .majaa-choice .majaa-choice-toggle,
body.majaa-member-search #buddypress .majaa-choice .majaa-choice-toggle:is(:hover,:focus,:active),
body.majaa-member-search #buddypress form.majaa-search-form .majaa-search-picker > summary,
body.majaa-member-search #buddypress form.majaa-search-form .majaa-search-picker > summary:is(:hover,:focus,:active) {
  background:#fff!important;background-image:none!important;box-shadow:none!important;
}
body.majaa-member-search #buddypress :is(.majaa-choice-panel,.majaa-search-picker > .checkbox,.majaa-search-picker > .radio) { background:#fff!important; }
body.majaa-member-search #buddypress .majaa-choice .majaa-choice-option,
body.majaa-member-search #buddypress form.majaa-search-form .majaa-search-picker .custom-control {
  color:var(--majaa-warm-ink);font:400 var(--majaa-type-control,16px)/1.5 var(--majaa-font-body,var(--majaa-font-body));background:#fff!important;
}
body.majaa-member-search #buddypress .majaa-choice .majaa-choice-option:is(:hover,:focus-visible,[aria-selected="true"]),
body.majaa-member-search #buddypress form.majaa-search-form .majaa-search-picker .custom-control:is(:hover,:has(input:checked)) {
  background:#fff!important;color:var(--majaa-warm-ink);
}
body.majaa-member-search #buddypress form.majaa-search-form .custom-control input { accent-color:var(--majaa-warm-fill); }
/* Row inset changed from 12 to 6px: align the original reset with option text. */
body.majaa-member-search #buddypress form.majaa-search-form .radio > a { margin-left:34px; }

/* Selection is a checkmark, never a filled row. Native inputs retain semantics. */
body.majaa-member-search #buddypress .majaa-choice .majaa-choice-option { gap:10px; }
body.majaa-member-search #buddypress .majaa-choice .majaa-choice-option::after {
  content:"";display:block;flex:0 0 18px;width:18px;height:18px;margin-left:auto;background:transparent;
}
body.majaa-member-search #buddypress .majaa-choice .majaa-choice-option[aria-selected="true"]::after {
  box-sizing:border-box;flex-basis:10px;width:10px;height:6px;margin:0 5px 3px auto;
  border:solid currentColor;border-width:0 0 2px 2px;transform:rotate(-45deg);
}
body.majaa-member-search #buddypress form.majaa-search-form .custom-control input:is([type=checkbox],[type=radio]) {
  appearance:none!important;display:inline-grid;place-content:center;box-sizing:border-box;
  border:1px solid var(--majaa-warm-icon);border-radius:3px;background:#fff!important;
  color:var(--majaa-warm-ink);box-shadow:none;margin:0;order:0;flex:0 0 18px;width:18px;height:18px;
}
body.majaa-member-search #buddypress form.majaa-search-form .custom-control input[type=radio] { border-radius:50%; }
body.majaa-member-search #buddypress form.majaa-search-form .custom-control input:is([type=checkbox],[type=radio])::before {
  content:"";box-sizing:border-box;display:block;width:10px;height:6px;margin-bottom:3px;
  border:solid currentColor;border-width:0 0 2px 2px;transform:rotate(-45deg);visibility:hidden;
}
body.majaa-member-search #buddypress form.majaa-search-form .custom-control input:is([type=checkbox],[type=radio]):checked::before { visibility:visible; }

/* Search menus below age/radius retain left-hand selection marks. */
body.majaa-member-search #buddypress form.majaa-search-form .majaa-choice:not(.majaa-choice-compact-right) .majaa-choice-option::after { display:none; }
body.majaa-member-search #buddypress form.majaa-search-form .majaa-choice:not(.majaa-choice-compact-right) .majaa-choice-option::before {
  content:"";display:block;box-sizing:border-box;flex:0 0 18px;width:18px;height:18px;
}
body.majaa-member-search #buddypress form.majaa-search-form .majaa-choice:not(.majaa-choice-compact-right) .majaa-choice-option[aria-selected="true"]::before {
  flex-basis:10px;width:10px;height:6px;margin:0 4px 3px 4px;border:solid currentColor;border-width:0 0 2px 2px;transform:rotate(-45deg);
}
/* Use the approved sort button's 12px gap, rather than a full-row spacer. */
body.majaa-member-search #buddypress form.majaa-search-form .majaa-choice-compact-right .majaa-choice-toggle { gap:12px; }
body.majaa-member-search #buddypress form.majaa-search-form .majaa-choice-compact-right .majaa-choice-toggle::after { margin-left:0; }
body.majaa-member-search #buddypress form.majaa-search-form .majaa-choice-compact-right .majaa-choice-option { gap:12px; }
body.majaa-member-search #buddypress form.majaa-search-form .majaa-choice-compact-right .majaa-choice-option::after { margin-left:0; }
body.majaa-member-search #buddypress form.majaa-search-form .majaa-choice-compact-right .majaa-choice-option[aria-selected="true"]::after { margin-left:0; }
