/* Component and utility styles can be defined here */

/* Skeleton loading */

.skeleton-block {
    position: relative;
    overflow: hidden;
    display: block;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 0.9rem;
    isolation: isolate;
}

.skeleton-block::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: skeleton-shimmer 1.2s infinite;
}

.skeleton-block--lg {
    height: 220px;
    border-radius: 1.25rem;
}

.skeleton-block--md {
    height: 20px;
    width: 70%;
}

.skeleton-block--sm {
    height: 16px;
    width: 55%;
}

.skeleton-block--xs {
    height: 12px;
    width: 35%;
}

.skeleton-inline {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

@media (max-width: 575.98px) {
    .skeleton-block--lg {
        height: 180px;
    }
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}
