@keyframes bp-skeleton-pulse {
	0% {
		background-position: -200% 0;
	}
	100% {
		background-position: 200% 0;
	}
}

.bp-guest-loading .bp-guest-name-placeholder {
	display: inline-block;
	height: 1.2em;
	width: 120px;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: bp-skeleton-pulse 1.5s infinite;
	border-radius: 4px;
	vertical-align: middle;
}

[data-bp-inject] {
	transition: opacity 0.3s ease-in-out;
}

.bp-inject-hidden {
	opacity: 0;
}

.bp-inject-visible {
	opacity: 1;
}

/* --- Widget Specific placeholders --- */
.bp-qr-placeholder {
	width: 200px;
	height: 200px;
	background: #f8f8f8;
	border: 2px dashed #ddd;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

.bp-souvenir-placeholder {
	padding: 10px 20px;
	background: #eee;
	border-radius: 30px;
	display: inline-block;
}

/* Loading overlay for whole widgets */
.bp-widget-loading {
	position: relative;
	pointer-events: none;
}

.bp-widget-loading::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.5);
	cursor: wait;
	z-index: 10;
}

/* Animations */
@keyframes bp-fade-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.bp-animate-fade-in {
	animation: bp-fade-in 0.5s ease-out forwards;
}

/* QR Code dynamic sizing fix */
.bp-dynamic-qr-image {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

.bp-dynamic-qr-image-wrap {
	display: inline-block;
	overflow: hidden;
}

/* --- Premium Animations for Status Widgets --- */
@keyframes bp-float-old {
	0% { transform: translateY(0px); }
	50% { transform: translateY(-4px); }
	100% { transform: translateY(0px); }
}

@keyframes bp-shimmer {
	0% { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}

.bp-status-animate {
	animation: bp-float-old 3s ease-in-out infinite;
	display: inline-flex;
}

/* --- Common optimization for all status animations --- */
[class*="bp-anim-"] {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* --- Pulse Animation --- */
@keyframes bp-pulse {
	0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255, 0.4); }
	50% { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(255,255,255, 0); }
	100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255, 0); }
}
.bp-anim-pulse {
	animation: bp-pulse 2s infinite ease-in-out !important;
}

/* --- Bounce Animation --- */
@keyframes bp-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}
.bp-anim-bounce {
	animation: bp-bounce 2s infinite ease-in-out !important;
}

/* --- Float Animation (Premium) --- */
@keyframes bp-float {
	0% { transform: translateY(0px); }
	50% { transform: translateY(-6px); }
	100% { transform: translateY(0px); }
}
.bp-anim-float {
	animation: bp-float 3s ease-in-out infinite !important;
}