/* Calentix Shop — Boot loader (until storefront JS + Calentix API bootstrap) */
.calentix-shop-boot-loader {
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 16px;
	min-height: 280px;
	padding: 48px 24px;
}

.calentix-shop--booting .calentix-shop-boot-loader {
	display: flex;
}

.calentix-shop--booting .calentix-shop-boot-content {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	height: 0;
	overflow: hidden;
}

.calentix-shop--ready .calentix-shop-boot-content {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	height: auto;
	overflow: visible;
	transition: opacity 0.28s ease;
}

.calentix-shop-boot-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(18, 18, 18, 0.12);
	border-top-color: var(--cx-shop-accent, #121212);
	border-radius: 50%;
	animation: calentix-shop-spin 0.75s linear infinite;
}

#calentix-checkout.calentix-shop--booting {
	min-height: 360px;
}

#calentix-checkout.calentix-shop--booting .calentix-shop-boot-loader {
	min-height: 360px;
}

@keyframes calentix-shop-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.calentix-shop-boot-spinner {
		animation: none;
		border-top-color: var(--cx-shop-accent, #121212);
		opacity: 0.65;
	}

	.calentix-shop--ready .calentix-shop-boot-content {
		transition: none;
	}
}
