/**
 * BuddyBoss Groups Search Form filter — field chrome only.
 * Full Calendar page layout lives in events-calendar-search.css.
 */

.cns-mec-bb-group-sf {
	display: flex;
	align-items: stretch;
	vertical-align: top;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

.cns-mec-bb-group-sf__select {
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.cns-mec-bb-group-sf--disabled {
	opacity: 0.72;
}

.cns-mec-bb-group-sf--disabled .cns-mec-bb-group-sf__select {
	cursor: not-allowed;
}

/* My Groups checkbox + hint */
.cns-mec-my-groups-cb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	box-sizing: border-box;
	padding: 4px 0;
	min-height: 28px;
	width: 100%;
}

.cns-mec-my-groups-cb label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	font-size: 13px;
	font-weight: 500;
	color: #555;
	cursor: pointer;
	line-height: 1.2;
	white-space: nowrap;
}

.cns-mec-my-groups-cb input[type="checkbox"] {
	margin: 0;
	position: static;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	vertical-align: middle;
}

.cns-mec-my-groups-cb label > span {
	position: static;
	display: inline;
	transform: none;
}

.cns-mec-my-groups-cb--disabled {
	opacity: 1;
}

.cns-mec-my-groups-cb--disabled label {
	cursor: not-allowed;
	opacity: 0.72;
}

.cns-mec-my-groups-hint {
	position: relative;
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
}

.cns-mec-my-groups-hint__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #e8f4ef;
	color: #2a7a5a;
	font-size: 11px;
	font-weight: 700;
	font-style: normal;
	line-height: 1;
	flex: 0 0 18px;
	cursor: help;
	user-select: none;
}

/* Logged-in: ? tooltip on hover / focus */
.cns-mec-my-groups-hint--member {
	flex: 0 0 auto;
}

.cns-mec-my-groups-hint--member .cns-mec-my-groups-hint__box {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	z-index: 100050;
	min-width: 220px;
	max-width: 280px;
	padding: 10px 12px;
	background: #1f2a24;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	white-space: normal;
	text-align: left;
	transition: opacity 0.15s ease, visibility 0.15s ease;
}

.cns-mec-my-groups-hint--member .cns-mec-my-groups-hint__box::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -6px;
	border: 6px solid transparent;
	border-top-color: #1f2a24;
}

.cns-mec-my-groups-hint--member:hover .cns-mec-my-groups-hint__box,
.cns-mec-my-groups-hint--member:focus .cns-mec-my-groups-hint__box,
.cns-mec-my-groups-hint--member:focus-within .cns-mec-my-groups-hint__box {
	visibility: visible;
	opacity: 1;
}

/* Guest: always-visible info strip */
.cns-mec-my-groups-hint--guest {
	flex: 1 1 220px;
	gap: 8px;
	align-items: flex-start;
	padding: 8px 10px;
	background: #f3f8f5;
	border: 1px solid #d5e6dc;
	border-radius: 6px;
	max-width: 100%;
}

.cns-mec-my-groups-hint--guest .cns-mec-my-groups-hint__icon {
	margin-top: 1px;
	background: #2a7a5a;
	color: #fff;
	cursor: default;
}

.cns-mec-my-groups-hint--guest .cns-mec-my-groups-hint__text {
	margin: 0;
	padding: 0;
	font-size: 12px;
	line-height: 1.4;
	color: #3d5248;
	font-weight: 400;
	white-space: normal;
}
