/* Bright Addons Pro: Social Proof Notification */
.bapro-spn {
	--bapro-spn-width: 340px;
	--bapro-spn-offset: 20px;
	--bapro-spn-accent: #6c3cf0;
	--bapro-spn-img: 52px;
	position: fixed;
	z-index: 99990;
	width: var(--bapro-spn-width);
	max-width: calc(100vw - (var(--bapro-spn-offset) * 2));
	pointer-events: none;
}
.bapro-spn--bottom-left { left: var(--bapro-spn-offset); bottom: var(--bapro-spn-offset); }
.bapro-spn--bottom-right { right: var(--bapro-spn-offset); bottom: var(--bapro-spn-offset); }
.bapro-spn--top-left { left: var(--bapro-spn-offset); top: var(--bapro-spn-offset); }
.bapro-spn--top-right { right: var(--bapro-spn-offset); top: var(--bapro-spn-offset); }
.admin-bar .bapro-spn--top-left,
.admin-bar .bapro-spn--top-right { top: calc(var(--bapro-spn-offset) + 32px); }

.bapro-spn__box {
	position: relative;
	display: flex;
	align-items: center;
	background: #fff;
	color: #1d2433;
	border-radius: 999px;
	padding: 8px 40px 8px 8px;
	box-shadow: 0 12px 34px rgba(20, 24, 40, .16), 0 2px 6px rgba(20, 24, 40, .08);
	pointer-events: auto;
	opacity: 0;
	transform: translateY(16px) scale(.98);
	transition: opacity .35s ease, transform .35s ease;
}
.bapro-spn--top-left .bapro-spn__box,
.bapro-spn--top-right .bapro-spn__box { transform: translateY(-16px) scale(.98); }
.bapro-spn__box[hidden] { display: none; }
.bapro-spn.is-visible .bapro-spn__box,
.bapro-spn.is-preview .bapro-spn__box {
	opacity: 1;
	transform: none;
}
.bapro-spn--card .bapro-spn__box {
	border-radius: 14px;
	padding: 12px 40px 12px 12px;
	align-items: flex-start;
}

.bapro-spn__link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1 1 auto;
	color: inherit;
	text-decoration: none;
}
.bapro-spn__link:hover,
.bapro-spn__link:focus { color: inherit; text-decoration: none; }
.bapro-spn__link:focus-visible { outline: 2px solid var(--bapro-spn-accent); outline-offset: 3px; border-radius: inherit; }
.bapro-spn--card .bapro-spn__link { align-items: flex-start; }
.bapro-spn__link:not([href]),
.bapro-spn__link[href="#"] { cursor: default; }

.bapro-spn__media { flex: 0 0 auto; display: block; line-height: 0; }
.bapro-spn__img {
	display: block;
	width: var(--bapro-spn-img);
	height: var(--bapro-spn-img);
	max-width: none;
	object-fit: cover;
	border-radius: 50%;
}
.bapro-spn--card .bapro-spn__img { border-radius: 10px; }
.bapro-spn__img--icon {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bapro-spn-accent);
	background: linear-gradient(135deg, var(--bapro-spn-accent), #ff6aa2);
	color: #fff;
}
.bapro-spn__img--icon svg { width: 46%; height: 46%; fill: currentColor; }

.bapro-spn__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bapro-spn__title { font-size: 14px; line-height: 1.35; font-weight: 500; }
.bapro-spn__name { color: var(--bapro-spn-accent); font-weight: 700; }
.bapro-spn__message {
	font-size: 13px;
	line-height: 1.4;
	opacity: .8;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.bapro-spn__time { font-size: 12px; line-height: 1.3; opacity: .6; }
.bapro-spn__stars { color: #f5a623; letter-spacing: 1px; margin-right: 4px; }

.bapro-spn__close {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(20, 24, 40, .06);
	color: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: .7;
	line-height: 0;
	box-shadow: none;
}
.bapro-spn--card .bapro-spn__close { top: 10px; transform: none; }
.bapro-spn__close:hover,
.bapro-spn__close:focus-visible { opacity: 1; background: rgba(20, 24, 40, .12); color: inherit; }

/* In the editor the notification sits in place so it can be styled. */
.bapro-spn.is-preview {
	position: relative;
	left: auto;
	right: auto;
	top: auto;
	bottom: auto;
	max-width: 100%;
}
.bapro-spn__notice { margin: 0; padding: 12px; border: 1px dashed #c3c7d0; font-size: 13px; }

@media (max-width: 767px) {
	.bapro-spn--hide-mobile:not(.is-preview) { display: none !important; }
	.bapro-spn:not(.is-preview) { --bapro-spn-offset: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.bapro-spn__box { transition: opacity .2s linear; transform: none !important; }
}
