:root {
	--bf-theme-body-text-rgb: 189, 195, 199;
	--bf-theme-background-rgb: 189, 195, 199;
}

.bf-skeleton-root {
	font-size: 0;
	line-height: 0;
}
.bf-skeleton-root > *:not(.bf-skeleton-container) {
	display: none;
}
.bf-skeleton-container {
	width: 100%;
}
.bf-skeleton-loader:empty,
.bf-skeleton-container .bf-skeleton-loader:empty {
	display: block;
	background-color: rgba(var(--bf-theme-body-text-rgb), 0.2) !important;
	border-color: rgba(var(--bf-theme-body-text-rgb), 0.2) !important;
	position: relative;
	overflow: hidden;
}

.bf-skeleton-loader::after,
.bf-skeleton-container .bf-skeleton-loader::after {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	transform: translateX(-100%);
	background-image: linear-gradient(90deg, rgba(var(--bf-theme-background-rgb), 0) 0, rgba(var(--bf-theme-background-rgb), 0.2) 20%, rgba(var(--bf-theme-background-rgb), 0.5) 60%, rgba(var(--bf-theme-background-rgb), 0));
	-webkit-animation: shimmer 2s infinite;
	animation: shimmer 2s infinite;
	content: "";
}
@-webkit-keyframes shimmer {
	100% {
		transform: translateX(100%);
	}
}
@keyframes shimmer {
	100% {
		transform: translateX(100%);
	}
}

/* buttons
   ========================================================================== */
.bf-skeleton-container .bf-skeleton-loader.skeleton-button--full-width,
.bf-skeleton-container .bf-skeleton-loader.skeleton-button {
	display: inline-block;
	height: 36px;
	min-width: 80px;
	border-radius: 4px;
	margin-right: 8px;
}
.bf-skeleton-container .bf-skeleton-loader.skeleton-button--full-width {
	width: 100%;
}
.bf-skeleton-container .skeleton-actions {
	text-align: right;
	width: 100%;
}

/* images / avatars
   ========================================================================== */
.bf-skeleton-container .bf-skeleton-loader.skeleton-avatar {
	height: 48px;
	width: 48px;
	border-radius: 50%;
}
.bf-skeleton-container .bf-skeleton-loader:empty.skeleton-image {
	aspect-ratio: 16/9;
	margin-bottom: 5px;
	width: 100%;
}
.bf-skeleton-container .bf-skeleton-loader.skeleton-heading.skeleton-card-heading {
	margin: 16px;
}
.bf-skeleton-container .skeleton-card-avatar .skeleton-image.bf-skeleton-loader {
	margin-bottom: 16px;
}

/* paragraph, sentences, text, heading..etc
   ========================================================================== */
.bf-skeleton-container .bf-skeleton-loader.skeleton-heading {
	border-radius: 12px;
	height: 24px;
	width: 45%;
}
.bf-skeleton-container .bf-skeleton-loader.skeleton-text {
	border-radius: 6px;
	flex: 1 0 auto;
	height: 14px;
	margin-bottom: 6px;
}
.bf-skeleton-container .skeleton-sentences {
	width: 100%;
}
.bf-skeleton-container .skeleton-paragraph {
	width: 100%;
}
.bf-skeleton-container .skeleton-paragraph .bf-skeleton-loader.skeleton-text:first-child {
	max-width: 100%;
}
.bf-skeleton-container .skeleton-paragraph .bf-skeleton-loader.skeleton-text:nth-child(2) {
	max-width: 100%;
}
.bf-skeleton-container .skeleton-paragraph .bf-skeleton-loader.skeleton-text:nth-child(3) {
	max-width: 70%;
}
.bf-skeleton-container .skeleton-article {
	width: 100%;
}
.bf-skeleton-container .skeleton-article .bf-skeleton-loader.skeleton-heading {
	margin: 16px 0 16px 16px;
}
.bf-skeleton-container .skeleton-article .skeleton-paragraph {
	padding: 16px;
}

.bf-skeleton-container .skeleton-list-item-avatar {
	width: 100%;
	display: flex;
	align-items: center;
	padding: 0 16px;
}

/* lists
   ========================================================================== */
.bf-skeleton-container .skeleton-list-item-avatar .skeleton-avatar.bf-skeleton-loader {
	margin-right: 16px;
}

.bf-skeleton-container .skeleton-list-item {
	align-content: center;
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	padding: 0 16px;
	height: 48px;
	width: 100%;
}

.bf-skeleton-container .skeleton-list-item-avatar-two-line,
.bf-skeleton-container .skeleton-list-item-two-line {
	align-content: center;
	align-items: center;
	display: flex;
	padding: 0 16px;
	height: 72px;
	width: 100%;
}

.bf-skeleton-container .skeleton-list-item-avatar-three-line .skeleton-avatar.bf-skeleton-loader,
.bf-skeleton-container .skeleton-list-item-avatar-two-line .skeleton-avatar.bf-skeleton-loader {
	margin-right: 16px;
	flex-shrink: 0;
}

.bf-skeleton-container .skeleton-sentences .bf-skeleton-loader.skeleton-text:first-child,
.bf-skeleton-container .skeleton-list-item-two-line .bf-skeleton-loader.skeleton-text:first-child {
	max-width: 100%;
}
.bf-skeleton-container .skeleton-list-item-two-line .bf-skeleton-loader.skeleton-text:nth-child(2),
.bf-skeleton-container .skeleton-sentences .bf-skeleton-loader.skeleton-text:nth-child(2) {
	max-width: 70%;
}

.bf-skeleton-container .skeleton-list-item-avatar-two-line .skeleton-sentences {
	flex-grow: 1;
}

.bf-skeleton-container .skeleton-list-item-avatar-three-line,
.bf-skeleton-container .skeleton-list-item-three-line {
	align-content: center;
	align-items: center;
	display: flex;
	padding: 0 16px;
	height: 88px;
	width: 100%;
}

/* other
   ========================================================================== */
.bf-skeleton-container .bf-skeleton-loader.skeleton-chip {
	border-radius: 16px;
	height: 32px;
	width: 96px;
}
