/* ── Share button + channel popup ── */

.bbat-share-button-wrap {
	display: inline-flex;
	vertical-align: middle;
}

.bbat-share-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.bbat-share-trigger {
	cursor: pointer;
}

.bbat-share-popup {
	position: absolute;
	bottom: calc(100% + 10px);
	left: auto;
	right: 0;
	z-index: 200;
	display: none;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 2px;
	min-width: max-content;
	overflow: visible;
	padding: 6px 8px;
	background: var(--bb-rl-background-color, #fff);
	border: 1px solid var(--bb-rl-border-secondary-color, #e7e7e9);
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(12, 12, 13, 0.12), 0 2px 6px rgba(12, 12, 13, 0.06);
	opacity: 0;
	transform: translateY(8px) scale(0.94);
	transform-origin: bottom right;
	transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
	pointer-events: none;
	white-space: nowrap;
}

.bbat-share-popup::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: auto;
	right: 22px;
	width: 10px;
	height: 10px;
	background: var(--bb-rl-background-color, #fff);
	border-right: 1px solid var(--bb-rl-border-secondary-color, #e7e7e9);
	border-bottom: 1px solid var(--bb-rl-border-secondary-color, #e7e7e9);
	transform: rotate(45deg);
}

.bbat-share-popup.is-open {
	display: flex;
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.bbat-share-popup[hidden]:not(.is-open) {
	display: none !important;
}

/* Override ReadyLaunch footer link styles (padding breaks icon layout in Firefox). */
.bp-generic-meta .generic-button .bbat-share-popup .bbat-share-option,
.bp-generic-meta .generic-button .bbat-share-popup a.bbat-share-option,
.bp-generic-meta .generic-button .bbat-share-popup button.bbat-share-option {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px;
	flex: 0 0 32px;
	padding: 0 !important;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
}

.bp-generic-meta .generic-button .bbat-share-popup .bbat-share-option:hover,
.bp-generic-meta .generic-button .bbat-share-popup a.bbat-share-option:hover {
	background: var(--bb-rl-background-secondary-color, #f6f6f6);
	border-radius: 50%;
}

.bp-generic-meta .generic-button .bbat-share-popup .bbat-share-option span {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: 1;
}

.bbat-share-option {
	opacity: 1;
	transform: scale(1) translateY(0);
	transition: transform 0.15s ease, background 0.12s ease;
}

.bbat-share-popup:not(.is-open) .bbat-share-option {
	opacity: 0;
	transform: scale(0.92) translateY(4px);
	pointer-events: none;
}

.bbat-share-popup.is-open .bbat-share-option {
	opacity: 1;
	transform: scale(1) translateY(0);
	pointer-events: auto;
	animation: bbat-share-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
	animation-delay: var(--bbat-delay, 0ms);
}

.bbat-share-option:hover,
.bbat-share-option:focus-visible {
	transform: scale(1.12) translateY(-2px);
	background: var(--bb-rl-background-secondary-color, #f6f6f6);
}

.bbat-share-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	width: 18px;
	height: 18px;
}

.bbat-share-icon svg {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.bbat-share-whatsapp {
	color: #25d366;
}

.bbat-share-facebook {
	color: #1877f2;
}

.bbat-share-twitter {
	color: #0f1419;
}

.bbat-share-copy {
	color: var(--bb-rl-text-secondary-color, #3a3a3c);
}

.bbat-share-copy.is-copied {
	background: rgba(239, 93, 51, 0.12);
	color: var(--bbat-brand-primary, #ef5d33);
}

@keyframes bbat-share-pop {
	from {
		transform: scale(0.72) translateY(4px);
	}
	to {
		transform: scale(1) translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bbat-share-popup.is-open .bbat-share-option {
		animation: none;
	}
}

/* Report lives in the ⋯ menu — hide if it appears in the footer row */
.bbat-report-button-wrap,
.bp-generic-meta .generic-button a.report-content,
.bp-generic-meta .generic-button a.reported-content {
	display: none !important;
}

/* Copy toast */
.bbat-share-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	z-index: 99999;
	padding: 10px 18px;
	border-radius: 8px;
	background: rgba(12, 12, 13, 0.92);
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	opacity: 0;
	transform: translate(-50%, 12px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

.bbat-share-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

@media (max-width: 480px) {
	.bbat-share-popup {
		right: 0;
		left: auto;
		max-width: calc(100vw - 32px);
	}
}
