/* The one loading indicator of the admin. */
@keyframes abientot-loader-spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes abientot-loader-breathe {
	0%,
	100% {
		opacity: 0.45;
		transform: scale(0.7);
	}
	50% {
		opacity: 1;
		transform: scale(1);
	}
}
@keyframes abientot-loader-appear {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.abientot-admin .abientot-loader {
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	padding: 24px;
	color: var(--abientot-admin-muted);
	font-size: 13px;
	text-align: center;
	animation: abientot-loader-appear 180ms ease 120ms backwards;
}
.abientot-admin .abientot-loader__mark {
	position: relative;
	display: block;
	width: 52px;
	height: 52px;
}
/* A ring that fades along its tail, around a slowly breathing centre. */
.abientot-admin .abientot-loader__mark::before,
.abientot-admin .abientot-refreshing::after,
.abientot-admin .abientot-is-loading::before,
.abientot-admin [data-abientot-links-loading]::before,
.abientot-admin [aria-busy='true'] > [data-team-account-status]::before,
.abientot-admin .abientot-is-submitting::after,
.abientot-admin a[aria-busy='true']::after {
	content: '';
	border-radius: 50%;
	background: conic-gradient(from 0deg, transparent 6%, color-mix(in srgb, var(--abientot-admin-action) 70%, transparent) 40%, var(--abientot-admin-primary) 94%, transparent 97%);
	mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4px));
	animation: abientot-loader-spin 0.9s linear infinite;
}
.abientot-admin .abientot-loader__mark::before {
	position: absolute;
	inset: 0;
}
.abientot-admin .abientot-loader__mark::after {
	content: '';
	position: absolute;
	inset: 18px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--abientot-admin-action), var(--abientot-admin-primary));
	animation: abientot-loader-breathe 1.8s ease-in-out infinite;
}

/* Small, inside a line of text or a control. */
.abientot-admin .abientot-is-loading,
.abientot-admin [data-abientot-links-loading] {
	display: inline-flex;
	gap: 8px;
	align-items: center;
}
.abientot-admin .abientot-is-loading::before,
.abientot-admin [data-abientot-links-loading]::before,
.abientot-admin [aria-busy='true'] > [data-team-account-status]::before {
	flex: 0 0 auto;
	display: inline-block;
	width: 16px;
	height: 16px;
	vertical-align: middle;
	mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
}
.abientot-admin .abientot-is-submitting::after,
.abientot-admin a[aria-busy='true']::after {
	display: inline-block;
	width: 13px;
	height: 13px;
	margin-inline-start: 7px;
	vertical-align: -2px;
	mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
}
.abientot-admin .abientot-is-submitting {
	cursor: progress;
}

/* Over content that stays in place while its replacement loads. */
.abientot-admin .abientot-refreshing {
	position: relative;
}
.abientot-admin .abientot-refreshing > * {
	opacity: 0.45;
	transition: opacity 160ms ease 120ms;
	pointer-events: none;
}
.abientot-admin .abientot-refreshing::after {
	position: absolute;
	top: min(120px, 40%);
	left: calc(50% - 22px);
	z-index: 3;
	width: 44px;
	height: 44px;
	animation:
		abientot-loader-spin 0.9s linear infinite,
		abientot-loader-appear 180ms ease 120ms backwards;
}

/* The booking panel. */
.abientot-admin .abientot-booking-sidebar.is-panel-loading {
	position: relative;
}
/* Hides the previous form; the panel's own heading and close button stay usable. */
.abientot-admin .abientot-panel-loader {
	position: absolute;
	inset: 84px 0 0;
	z-index: 5;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 96px;
	border-radius: inherit;
	background: #fff;
}
.abientot-admin [data-abientot-booking-loading] .abientot-loader {
	min-height: 320px;
}
.abientot-admin [data-activity-items] .abientot-is-loading {
	margin: 16px;
}
.abientot-admin [data-abientot-change-customer] .abientot-loader,
.abientot-admin .abientot-admin-slots .abientot-loader {
	flex-direction: row;
	justify-content: flex-start;
	min-height: 44px;
	padding: 8px 0;
}
.abientot-admin [data-abientot-change-customer] .abientot-loader__mark,
.abientot-admin .abientot-admin-slots .abientot-loader__mark {
	width: 22px;
	height: 22px;
}
.abientot-admin [data-abientot-change-customer] .abientot-loader__mark::before,
.abientot-admin .abientot-admin-slots .abientot-loader__mark::before {
	mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
}
.abientot-admin [data-abientot-change-customer] .abientot-loader__mark::after,
.abientot-admin .abientot-admin-slots .abientot-loader__mark::after {
	inset: 7px;
}

@media (prefers-reduced-motion: reduce) {
	.abientot-admin .abientot-loader__mark::before,
	.abientot-admin .abientot-refreshing::after,
	.abientot-admin .abientot-is-loading::before,
	.abientot-admin [data-abientot-links-loading]::before,
	.abientot-admin [aria-busy='true'] > [data-team-account-status]::before,
	.abientot-admin .abientot-is-submitting::after,
	.abientot-admin a[aria-busy='true']::after,
	.abientot-admin .abientot-loader__mark::after {
		animation: abientot-loader-breathe 2.4s ease-in-out infinite;
	}
}
