/* Cobra Smart Grid Performance — lightweight grid skeleton states. */
.csgp-js .csgp-grid-image.csgp-skeleton-active {
    transition: opacity var(--csgp-fade, 180ms) ease;
}

.csgp-js .csgp-grid-image.csgp-skeleton-active:not(.csgp-loaded) {
    opacity: 0;
}

.csgp-skeleton-host {
    position: relative !important;
    overflow: hidden;
    background: var(--csgp-skeleton-bg, #b7babe);
}

.csgp-skeleton-host::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: var(--csgp-skeleton-bg, #b7babe);
    opacity: 1;
    transition: opacity 140ms ease;
}

.csgp-skeleton-host.csgp-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -70%;
    width: 60%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.52), transparent);
    animation: csgp-shimmer 1.15s linear infinite;
}

.csgp-custom-skeleton-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--csgp-custom-size, 92%);
    height: var(--csgp-custom-size, 92%);
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: .72;
    will-change: opacity;
}

.csgp-custom-skeleton-mark.csgp-custom-pulse {
    animation: csgp-custom-pulse 1.18s ease-in-out infinite;
}

.csgp-skeleton-host.csgp-skeleton-done::before,
.csgp-skeleton-host.csgp-skeleton-done::after,
.csgp-skeleton-host.csgp-skeleton-done > .csgp-custom-skeleton-mark {
    opacity: 0;
    animation: none;
}

.csgp-skeleton-host > .csgp-grid-image.csgp-skeleton-active {
    position: relative;
    z-index: 2;
}

@keyframes csgp-shimmer {
    100% { left: 120%; }
}

@keyframes csgp-custom-pulse {
    0%, 100% { opacity: .46; }
    50% { opacity: .76; }
}

@media (prefers-reduced-motion: reduce) {
    .csgp-js .csgp-grid-image.csgp-skeleton-active { transition: none !important; }
    .csgp-skeleton-host::after,
    .csgp-custom-skeleton-mark { animation: none !important; }
}
