/**
 * BuildPieces Live Sales Proof Alerts Stylesheet
 * Includes 8 Selectable Design Themes:
 * 1. Modern Crisp
 * 2. Dark Glass
 * 3. Brand Red Ribbon
 * 4. Compact Floating Pill
 * 5. Aurora Luxury Gradient
 * 6. Minimalist Borderless
 * 7. Soft Neumorphic Luxe
 * 8. Verified Trust Shield
 */

.bp-sales-popup-wrap {
	position: fixed;
	z-index: 99998;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	max-width: 360px;
	width: calc(100% - 32px);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (max-width: 767px) {
	.bp-sales-popup-wrap.bp-hide-mobile {
		display: none !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}
}

/* Screen Positions */
.bp-sales-popup-wrap.pos-bottom-left {
	bottom: 24px;
	left: 24px;
}

.bp-sales-popup-wrap.pos-bottom-right {
	bottom: 24px;
	right: 24px;
}

.bp-sales-popup-wrap.pos-top-left {
	top: 90px;
	left: 24px;
}

.bp-sales-popup-wrap.pos-top-right {
	top: 90px;
	right: 24px;
}

/* Base Popup Card */
.bp-sales-popup-card {
	pointer-events: auto;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
	opacity: 0;
	transform: translateY(20px) scale(0.96);
	will-change: transform, opacity;
	box-sizing: border-box;
}

.bp-sales-popup-card * {
	box-sizing: border-box;
}

/* Animations */
.bp-sales-popup-card.bp-popup-visible {
	animation: bpPopupSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bp-sales-popup-card.bp-popup-hiding {
	animation: bpPopupSlideOut 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bpPopupSlideIn {
	0% {
		opacity: 0;
		transform: translateY(24px) scale(0.95);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes bpPopupSlideOut {
	0% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
	100% {
		opacity: 0;
		transform: translateY(18px) scale(0.95);
	}
}

/* ==========================================================================
   DESIGN 1: MODERN CRISP (Default Minimalist White)
   ========================================================================== */
.bp-sales-popup-card.bp-style-modern {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}

.bp-sales-popup-card.bp-style-modern:hover {
	transform: translateY(-2px) scale(1.01);
	box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.14), 0 6px 12px -2px rgba(0, 0, 0, 0.06);
	border-color: #cbd5e1;
}

.bp-sales-popup-card.bp-style-modern .bp-sales-popup-thumb-wrap {
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.bp-sales-popup-card.bp-style-modern .bp-sales-popup-title {
	color: #0f172a;
}

.bp-sales-popup-card.bp-style-modern:hover .bp-sales-popup-title {
	color: #E51D2E;
}

.bp-sales-popup-card.bp-style-modern .bp-sales-popup-buyer {
	color: #475569;
}

.bp-sales-popup-card.bp-style-modern .bp-sales-popup-verified {
	background: #ecfdf5;
	color: #059669;
}

/* ==========================================================================
   DESIGN 2: DARK GLASSMORPHISM (Sleek Obsidian)
   ========================================================================== */
.bp-sales-popup-card.bp-style-dark {
	background: rgba(15, 23, 42, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
	color: #f8fafc;
}

.bp-sales-popup-card.bp-style-dark:hover {
	transform: translateY(-2px) scale(1.01);
	box-shadow: 0 18px 40px -5px rgba(0, 0, 0, 0.6);
	border-color: rgba(229, 29, 46, 0.5);
}

.bp-sales-popup-card.bp-style-dark .bp-sales-popup-thumb-wrap {
	border-radius: 12px;
	background: #1e293b;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.bp-sales-popup-card.bp-style-dark .bp-sales-popup-title {
	color: #ffffff;
}

.bp-sales-popup-card.bp-style-dark:hover .bp-sales-popup-title {
	color: #f87171;
}

.bp-sales-popup-card.bp-style-dark .bp-sales-popup-buyer {
	color: #94a3b8;
}

.bp-sales-popup-card.bp-style-dark .bp-sales-popup-buyer strong {
	color: #f1f5f9;
}

.bp-sales-popup-card.bp-style-dark .bp-sales-popup-time {
	color: #64748b;
}

.bp-sales-popup-card.bp-style-dark .bp-sales-popup-verified {
	background: rgba(16, 185, 129, 0.2);
	color: #34d399;
	border: 1px solid rgba(16, 185, 129, 0.3);
}

.bp-sales-popup-card.bp-style-dark .bp-sales-popup-close {
	background: rgba(255, 255, 255, 0.1);
	color: #94a3b8;
}

.bp-sales-popup-card.bp-style-dark .bp-sales-popup-close:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
}

/* ==========================================================================
   DESIGN 3: BRAND RED RIBBON ACCENT (High-Converting Border Accent)
   ========================================================================== */
.bp-sales-popup-card.bp-style-ribbon {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #E51D2E;
	border-radius: 4px 16px 16px 4px;
	box-shadow: 0 10px 28px -5px rgba(229, 29, 46, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}

.bp-sales-popup-card.bp-style-ribbon:hover {
	transform: translateY(-2px) scale(1.01);
	box-shadow: 0 14px 35px -5px rgba(229, 29, 46, 0.2);
	border-color: #cbd5e1;
	border-left-color: #cc1524;
}

.bp-sales-popup-card.bp-style-ribbon .bp-sales-popup-thumb-wrap {
	border-radius: 10px;
	background: #fff5f5;
	border: 1px solid #fed7d7;
}

.bp-sales-popup-card.bp-style-ribbon .bp-sales-popup-title {
	color: #0f172a;
}

.bp-sales-popup-card.bp-style-ribbon:hover .bp-sales-popup-title {
	color: #E51D2E;
}

.bp-sales-popup-card.bp-style-ribbon .bp-sales-popup-buyer {
	color: #475569;
}

.bp-sales-popup-card.bp-style-ribbon .bp-sales-popup-verified {
	background: #fee2e2;
	color: #dc2626;
	border: 1px solid #fecaca;
}

/* ==========================================================================
   DESIGN 4: COMPACT PILL (Rounded Floating Capsule with Pulsing Status)
   ========================================================================== */
.bp-sales-popup-card.bp-style-pill {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 9999px;
	padding: 8px 18px 8px 10px;
	box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12);
	gap: 10px;
}

.bp-sales-popup-card.bp-style-pill:hover {
	transform: translateY(-2px) scale(1.01);
	box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.16);
	border-color: #E51D2E;
}

.bp-sales-popup-card.bp-style-pill .bp-sales-popup-thumb-wrap {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.bp-sales-popup-card.bp-style-pill .bp-sales-popup-title {
	font-size: 12.5px;
	padding-right: 14px;
}

.bp-sales-popup-card.bp-style-pill .bp-sales-popup-buyer {
	font-size: 11px;
}

.bp-pulse-dot {
	position: absolute;
	bottom: 1px;
	right: 1px;
	width: 10px;
	height: 10px;
	background: #10b981;
	border: 2px solid #ffffff;
	border-radius: 50%;
	z-index: 3;
	animation: bpPulse 2s infinite;
}

@keyframes bpPulse {
	0% {
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	}
	70% {
		box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
	}
}

/* ==========================================================================
   DESIGN 5: AURORA GRADIENT (Cyber Luxury Indigo)
   ========================================================================== */
.bp-sales-popup-card.bp-style-gradient {
	background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 18px;
	box-shadow: 0 16px 36px -6px rgba(49, 46, 129, 0.45);
	color: #ffffff;
}

.bp-sales-popup-card.bp-style-gradient:hover {
	transform: translateY(-2px) scale(1.01);
	box-shadow: 0 20px 42px -6px rgba(49, 46, 129, 0.6);
	border-color: #818cf8;
}

.bp-sales-popup-card.bp-style-gradient .bp-sales-popup-thumb-wrap {
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.bp-sales-popup-card.bp-style-gradient .bp-sales-popup-title {
	color: #ffffff;
	font-weight: 800;
}

.bp-sales-popup-card.bp-style-gradient:hover .bp-sales-popup-title {
	color: #a5b4fc;
}

.bp-sales-popup-card.bp-style-gradient .bp-sales-popup-buyer {
	color: #c7d2fe;
}

.bp-sales-popup-card.bp-style-gradient .bp-sales-popup-buyer strong {
	color: #fbbf24;
}

.bp-sales-popup-card.bp-style-gradient .bp-sales-popup-time {
	color: #93c5fd;
}

.bp-sales-popup-card.bp-style-gradient .bp-sales-popup-verified {
	background: rgba(245, 158, 11, 0.2);
	color: #fbbf24;
	border: 1px solid rgba(245, 158, 11, 0.35);
}

.bp-sales-popup-card.bp-style-gradient .bp-sales-popup-close {
	background: rgba(255, 255, 255, 0.15);
	color: #e0e7ff;
}

.bp-sales-popup-card.bp-style-gradient .bp-sales-popup-close:hover {
	background: rgba(255, 255, 255, 0.3);
	color: #ffffff;
}

/* ==========================================================================
   DESIGN 6: MINIMALIST BORDERLESS (Soft Diffused Scandinavian)
   ========================================================================== */
.bp-sales-popup-card.bp-style-minimal {
	background: #ffffff;
	border: none;
	border-radius: 22px;
	box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.02);
	padding: 14px 16px;
}

.bp-sales-popup-card.bp-style-minimal:hover {
	transform: translateY(-2px) scale(1.01);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
}

.bp-sales-popup-card.bp-style-minimal .bp-sales-popup-thumb-wrap {
	width: 60px;
	height: 60px;
	border-radius: 16px;
	background: #f1f5f9;
	border: none;
}

.bp-sales-popup-card.bp-style-minimal .bp-sales-popup-title {
	font-size: 13.5px;
	font-weight: 900;
	color: #0f172a;
}

.bp-sales-popup-card.bp-style-minimal:hover .bp-sales-popup-title {
	color: #E51D2E;
}

.bp-sales-popup-card.bp-style-minimal .bp-sales-popup-buyer {
	color: #64748b;
	font-size: 12px;
}

.bp-sales-popup-card.bp-style-minimal .bp-sales-popup-verified {
	background: #f0fdf4;
	color: #15803d;
	font-weight: 800;
}

/* ==========================================================================
   DESIGN 7: SOFT NEUMORPHIC LUXE (Tactile Dual-Shadow)
   ========================================================================== */
.bp-sales-popup-card.bp-style-neumorphic {
	background: #f8fafc;
	border: 1px solid #ffffff;
	border-radius: 18px;
	box-shadow: 8px 8px 20px rgba(148, 163, 184, 0.25), -6px -6px 16px rgba(255, 255, 255, 0.95);
}

.bp-sales-popup-card.bp-style-neumorphic:hover {
	transform: translateY(-2px) scale(1.01);
	box-shadow: 12px 12px 25px rgba(148, 163, 184, 0.32), -8px -8px 20px rgba(255, 255, 255, 1);
}

.bp-sales-popup-card.bp-style-neumorphic .bp-sales-popup-thumb-wrap {
	border-radius: 14px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	box-shadow: inset 2px 2px 5px rgba(0,0,0,0.04);
}

.bp-sales-popup-card.bp-style-neumorphic .bp-sales-popup-title {
	color: #1e293b;
	font-weight: 800;
}

.bp-sales-popup-card.bp-style-neumorphic:hover .bp-sales-popup-title {
	color: #E51D2E;
}

.bp-sales-popup-card.bp-style-neumorphic .bp-sales-popup-buyer {
	color: #475569;
}

.bp-sales-popup-card.bp-style-neumorphic .bp-sales-popup-verified {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
	box-shadow: inset 1px 1px 2px rgba(0,0,0,0.02);
}

/* ==========================================================================
   DESIGN 8: VERIFIED TRUST SHIELD (Maximum Social Proof with Ratings)
   ========================================================================== */
.bp-sales-popup-card.bp-style-badge {
	background: #ffffff;
	border: 1.5px solid #bfdbfe;
	border-radius: 16px;
	box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
	padding: 12px 14px;
}

.bp-sales-popup-card.bp-style-badge:hover {
	transform: translateY(-2px) scale(1.01);
	box-shadow: 0 16px 36px -5px rgba(37, 99, 235, 0.2);
	border-color: #3b82f6;
}

.bp-sales-popup-card.bp-style-badge .bp-sales-popup-thumb-wrap {
	border-radius: 12px;
	background: #eff6ff;
	border: 1px solid #dbeafe;
}

.bp-trust-shield {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	background: #2563eb;
	color: #ffffff;
	font-size: 8.5px;
	font-weight: 800;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	padding: 1px 6px;
	border-radius: 4px;
	margin-bottom: 2px;
	width: fit-content;
}

.bp-sales-stars {
	color: #f59e0b;
	font-size: 10px;
	letter-spacing: 1px;
}

.bp-sales-popup-card.bp-style-badge .bp-sales-popup-title {
	color: #0f172a;
	font-size: 12.5px;
}

.bp-sales-popup-card.bp-style-badge:hover .bp-sales-popup-title {
	color: #2563eb;
}

.bp-sales-popup-card.bp-style-badge .bp-sales-popup-verified {
	background: #dbeafe;
	color: #1d4ed8;
	font-weight: 800;
}

/* ==========================================================================
   COMMON COMPONENT STYLES
   ========================================================================== */

.bp-sales-popup-thumb-wrap {
	width: 58px;
	height: 58px;
	overflow: hidden;
	flex-shrink: 0;
	position: relative;
}

.bp-sales-popup-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bp-sales-popup-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bp-sales-popup-title {
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	padding-right: 18px; /* space for close button */
	transition: color 0.15s ease;
}

.bp-sales-popup-buyer {
	font-size: 11.5px;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
}

.bp-sales-popup-buyer strong {
	font-weight: 700;
}

.bp-sales-popup-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 10.5px;
	font-weight: 600;
	color: #94a3b8;
	margin-top: 1px;
}

.bp-sales-popup-time {
	color: #64748b;
}

.bp-sales-popup-verified {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 6px;
	font-size: 9.5px;
}

.bp-sales-popup-verified svg {
	width: 10px;
	height: 10px;
}

/* Close Button */
.bp-sales-popup-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #f1f5f9;
	border: none;
	color: #64748b;
	font-size: 13px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
	z-index: 2;
}

.bp-sales-popup-close:hover {
	background: #e2e8f0;
	color: #0f172a;
	transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 640px) {
	.bp-sales-popup-wrap {
		max-width: 100%;
		width: calc(100% - 24px);
	}
	
	.bp-sales-popup-wrap.pos-bottom-left,
	.bp-sales-popup-wrap.pos-bottom-right {
		bottom: 70px;
		left: 12px;
		right: 12px;
	}

	.bp-sales-popup-wrap.pos-top-left,
	.bp-sales-popup-wrap.pos-top-right {
		top: 60px;
		left: 12px;
		right: 12px;
	}
}
