:root {
	--bbfc-primary: #007c89;
	--bbfc-floating-button: #007c89;
	--bbfc-floating-button-text: #ffffff;
}

.bbfc-hide-native-composer #whats-new-form,
.bbfc-hide-native-composer form#whats-new-form,
.bbfc-hide-native-composer .activity-update-form,
.bbfc-hide-native-composer .bp-activity-post-form,
.bbfc-hide-native-composer .bb-activity-form,
.bbfc-hide-native-composer .bb-activity-post-form,
.bbfc-hide-native-composer .buddypress-wrap .activity-form {
	display: none !important;
}

.bbfc-native-replacement {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0 0 18px;
	padding: 16px 18px;
	border: 1px solid #e3e7ec;
	border-radius: 8px;
	background: #fff;
	color: #667085;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.bbfc-native-replacement:hover,
.bbfc-native-replacement:focus-visible {
	border-color: var(--bbfc-primary);
	box-shadow: 0 12px 30px rgba(15, 23, 42, .1);
	transform: translateY(-1px);
}

.bbfc-native-replacement:focus-visible {
	outline: 3px solid rgba(0, 124, 137, .18);
	outline-offset: 2px;
}

.bbfc-native-replacement-icon {
	display: grid;
	flex: 0 0 38px;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--bbfc-floating-button);
	color: var(--bbfc-floating-button-text);
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
}

.bbfc-native-replacement-text {
	font-size: 16px;
	font-weight: 700;
}

.bbfc-mobile-bottom-nav {
	display: none;
}

.bbfc-float-button {
	position: fixed;
	right: 24px;
	bottom: 28px;
	z-index: 99999;
	width: 62px;
	height: 62px;
	border: 0;
	border-radius: 50%;
	background: var(--bbfc-floating-button);
	color: var(--bbfc-floating-button-text);
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 12px 32px rgba(15, 23, 42, .22);
	animation: bbfc-float-button-in .35s ease-out, bbfc-float-button-pulse 2.8s ease-in-out 1.2s infinite;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.bbfc-float-button:hover,
.bbfc-float-button:focus-visible {
	transform: translateY(-3px) scale(1.04);
	filter: brightness(1.04);
	box-shadow: 0 16px 38px rgba(15, 23, 42, .28);
}

.bbfc-float-button:focus-visible {
	outline: 3px solid rgba(0, 124, 137, .25);
	outline-offset: 4px;
}

.bbfc-float-button::before,
.bbfc-float-button::after {
	position: absolute;
	top: 50%;
	right: calc(100% + 12px);
	pointer-events: none;
	opacity: 0;
	transform: translate(8px, -50%);
	transition: opacity .16s ease, transform .16s ease;
}

.bbfc-float-button::before {
	content: attr(aria-label);
	width: max-content;
	max-width: 180px;
	padding: 8px 10px;
	border-radius: 6px;
	background: #111827;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: 0 10px 24px rgba(15, 23, 42, .2);
}

.bbfc-float-button::after {
	content: "";
	right: calc(100% + 6px);
	border: 6px solid transparent;
	border-left-color: #111827;
}

.bbfc-float-button:hover::before,
.bbfc-float-button:hover::after,
.bbfc-float-button:focus-visible::before,
.bbfc-float-button:focus-visible::after {
	opacity: 1;
	transform: translate(0, -50%);
}

@keyframes bbfc-float-button-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(.9);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes bbfc-float-button-pulse {
	0%,
	70%,
	100% {
		box-shadow: 0 12px 32px rgba(15, 23, 42, .22);
	}

	35% {
		box-shadow: 0 12px 32px rgba(15, 23, 42, .22), 0 0 0 10px color-mix(in srgb, var(--bbfc-floating-button) 22%, transparent);
	}
}

.bbfc-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(248, 250, 252, .82);
	backdrop-filter: blur(2px);
}

.bbfc-overlay.is-open,
.bbfc-modal.is-open {
	display: block;
}

.bbfc-modal {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 99999;
	width: min(94vw, 920px);
	max-height: 92vh;
	overflow: auto;
	transform: translate(-50%, -50%);
	background: #fff;
	border: 1px solid #d9dee5;
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, .2);
	color: #1f2430;
}

.bbfc-modal-header,
.bbfc-poll-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 28px;
	border-bottom: 1px solid #e3e7ec;
}

.bbfc-modal h3,
.bbfc-poll-header h3 {
	margin: 0;
	font-size: 24px;
	line-height: 1.25;
}

.bbfc-close {
	border: 0;
	background: transparent;
	color: #1f2430;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

.bbfc-tabs {
	display: flex;
	gap: 8px;
	padding: 12px 18px;
	border-bottom: 1px solid #e3e7ec;
	overflow-x: auto;
}

.bbfc-tab {
	flex: 0 0 auto;
	border: 1px solid #d8dee6;
	border-radius: 6px;
	background: #fff;
	color: #344054;
	padding: 9px 13px;
	font-weight: 700;
	cursor: pointer;
}

.bbfc-tab.is-active {
	border-color: var(--bbfc-primary);
	background: var(--bbfc-primary);
	color: #fff;
}

.bbfc-body {
	padding: 22px 28px 28px;
}

.bbfc-panel {
	display: none;
}

.bbfc-panel.is-active {
	display: block;
}

.bbfc-panel textarea,
.bbfc-panel input[type="text"],
.bbfc-panel select {
	width: 100%;
	max-width: 100%;
	margin: 0 0 14px;
	padding: 13px 16px;
	border: 1px solid #cfd6df;
	border-radius: 6px;
	background: #fff;
	color: #1f2430;
	font-size: 15px;
	line-height: 1.4;
}

.bbfc-panel textarea {
	min-height: 120px;
	resize: vertical;
}

.bbfc-submit,
.bbfc-secondary,
.bbfc-add-option,
.bbfc-vote-submit,
.bbfc-read-more {
	border: 1px solid var(--bbfc-primary);
	border-radius: 6px;
	padding: 11px 20px;
	font-weight: 700;
	cursor: pointer;
}

.bbfc-submit,
.bbfc-vote-submit,
.bbfc-read-more {
	background: var(--bbfc-primary);
	color: #fff;
}

.bbfc-secondary,
.bbfc-add-option {
	background: #fff;
	color: var(--bbfc-primary);
}

.bbfc-message {
	margin-top: 14px;
	font-weight: 700;
	color: #344054;
}

.bbfc-drop-zone {
	margin-bottom: 16px;
	padding: 30px 20px;
	border: 2px dashed #cbd5e1;
	border-radius: 8px;
	background: #f8fafc;
	text-align: center;
	cursor: pointer;
}

.bbfc-drop-zone strong,
.bbfc-drop-zone span {
	display: block;
}

.bbfc-drop-zone span {
	margin-top: 4px;
	color: #667085;
}

.bbfc-drop-zone.is-dragging {
	border-color: var(--bbfc-primary);
	background: #eef9fb;
}

.bbfc-upload-notice {
	margin: -6px 0 14px;
	color: #667085;
	font-size: 13px;
	line-height: 1.4;
}

.bbfc-image-preview,
.bbfc-activity-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 10px;
	margin: 0 0 16px;
}

.bbfc-preview-item {
	position: relative;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.bbfc-preview-item span {
	position: absolute;
	top: 6px;
	right: 6px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(15, 23, 42, .8);
	color: #fff;
}

.bbfc-preview-item img,
.bbfc-activity-gallery img {
	display: block;
	width: 100%;
	height: 132px;
	object-fit: cover;
	border: 1px solid #e3e7ec;
	border-radius: 6px;
}

.bbfc-upload-label,
.bbfc-poll-modal label {
	display: block;
	margin: 16px 0 8px;
	font-weight: 700;
}

.bbfc-editor-wrap {
	margin-bottom: 16px;
}

.bbfc-poll-modal {
	max-width: 760px;
	margin: 0 auto;
}

.bbfc-poll-modal h4 {
	margin: 24px 0 8px;
	font-size: 18px;
}

.bbfc-check {
	display: flex !important;
	align-items: center;
	gap: 10px;
	margin: 10px 0 !important;
	font-weight: 500 !important;
}

.bbfc-check input {
	width: 18px;
	height: 18px;
}

.bbfc-add-option {
	margin-top: 2px;
}

.bbfc-poll-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #e3e7ec;
}

.bbfc-video-wrap {
	margin-top: 16px;
	width: 100%;
	max-width: 100%;
}

.bbfc-video-wrap iframe {
	width: 100%;
	max-width: 100%;
	min-height: 360px;
	border: 0;
	border-radius: 8px;
}

.bbfc-video-wrap blockquote,
.bbfc-video-wrap .twitter-tweet,
.bbfc-video-wrap .instagram-media {
	max-width: 100% !important;
}

.bbfc-activity-article {
	margin-top: 14px;
	padding: 18px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}

.bbfc-article-title {
	margin: 0 0 12px;
	font-size: 24px;
	line-height: 1.3;
}

.bbfc-article-full,
.bbfc-article-excerpt {
	line-height: 1.7;
}

.bbfc-poll-box {
	margin-top: 14px;
	padding: 16px;
	border: 1px solid #e3e7ec;
	border-radius: 8px;
	background: #f8fafc;
}

.bbfc-poll-box h4 {
	margin: 0 0 14px;
	font-size: 18px;
}

.bbfc-vote-option {
	display: block;
	margin: 8px 0;
	padding: 10px 12px;
	border: 1px solid #d8dee6;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
}

.bbfc-new-poll-option {
	width: 100%;
	margin: 10px 0;
	padding: 10px 12px;
	border: 1px solid #d8dee6;
	border-radius: 6px;
}

.bbfc-poll-result {
	position: relative;
	display: flex;
	justify-content: space-between;
	overflow: hidden;
	margin: 8px 0;
	padding: 10px 12px;
	border: 1px solid #d8dee6;
	border-radius: 6px;
	background: #fff;
}

.bbfc-poll-result span,
.bbfc-poll-result strong {
	position: relative;
	z-index: 1;
}

.bbfc-poll-result em {
	position: absolute;
	inset: 0 auto 0 0;
	background: rgba(0, 124, 137, .16);
}

.bbfc-poll-meta {
	margin-top: 10px;
	color: #667085;
	font-size: 13px;
}

.bbfc-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 48px 72px;
	background: rgba(0, 0, 0, .9);
}

.bbfc-lightbox.is-open {
	display: flex;
}

.bbfc-lightbox-image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 6px;
}

.bbfc-lightbox-close,
.bbfc-lightbox-prev,
.bbfc-lightbox-next {
	position: absolute;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	line-height: 1;
}

.bbfc-lightbox-close {
	top: 18px;
	right: 24px;
	font-size: 42px;
}

.bbfc-lightbox-prev,
.bbfc-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	font-size: 72px;
}

.bbfc-lightbox-prev {
	left: 24px;
}

.bbfc-lightbox-next {
	right: 24px;
}

.bbfc-lightbox-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	body.bbfc-mobile-bottom-nav-enabled {
		padding-bottom: 82px;
	}

	.bbfc-float-button {
		right: 18px;
		bottom: 20px;
		width: 56px;
		height: 56px;
	}

	body.bbfc-mobile-bottom-nav-enabled .bbfc-float-button {
		bottom: 94px;
	}

	.bbfc-mobile-bottom-nav {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 99990;
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 0;
		min-height: 72px;
		padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
		border-top: 1px solid #e5e7eb;
		background: rgba(255, 255, 255, .96);
		box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
		backdrop-filter: blur(12px);
	}

	.bbfc-mobile-bottom-nav-item {
		display: flex;
		min-width: 0;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		padding: 6px 4px;
		border-radius: 8px;
		color: #1f2430;
		text-decoration: none;
		font-weight: 700;
		line-height: 1;
	}

	.bbfc-mobile-bottom-nav-item:hover,
	.bbfc-mobile-bottom-nav-item:focus,
	.bbfc-mobile-bottom-nav-item.is-active {
		color: #1f2430;
		text-decoration: none;
	}

	.bbfc-mobile-bottom-nav-item.is-active .bbfc-mobile-bottom-nav-icon {
		background: #1f2430;
		color: #fff;
	}

	.bbfc-mobile-bottom-nav-icon {
		display: grid;
		flex: 0 0 30px;
		place-items: center;
		width: 30px;
		height: 30px;
		border-radius: 8px;
		color: #1f2430;
	}

	.bbfc-mobile-bottom-nav-icon svg {
		display: block;
		width: 28px;
		height: 28px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.8;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.bbfc-mobile-bottom-nav-label {
		overflow: hidden;
		font-size: 12px;
		line-height: 1.15;
		letter-spacing: 0;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.bbfc-float-button::before,
	.bbfc-float-button::after {
		display: none;
	}

	.bbfc-modal {
		width: 96vw;
	}

	.bbfc-modal-header,
	.bbfc-body {
		padding-left: 18px;
		padding-right: 18px;
	}

	.bbfc-image-preview,
	.bbfc-activity-gallery {
		grid-template-columns: repeat(2, 1fr);
	}

	.bbfc-lightbox {
		padding: 48px 18px;
	}

	.bbfc-lightbox-prev,
	.bbfc-lightbox-next {
		font-size: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bbfc-float-button {
		animation: none;
		transition: none;
	}
}
