.md-storefront-loading { overflow: hidden; }

.md-storefront-loader {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.58);
    opacity: 1;
    pointer-events: none;
    visibility: visible;
    transition: opacity 280ms ease, visibility 280ms ease;
}

.md-storefront-loader.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.md-storefront-loader__stage {
    position: relative;
    width: 42px;
    height: 42px;
}

.md-storefront-loader__icon {
    --loader-icon-step: 0;
    position: absolute;
    inset: 0;
    width: 42px;
    height: 42px;
    color: var(--md-store-primary, #ff8000);
    opacity: 0;
    transform: translateY(4px) scale(0.92);
    animation: md-storefront-loader-icon 4.2s linear infinite;
    animation-delay: calc(var(--loader-icon-step) * 0.6s);
}

.md-storefront-loader__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes md-storefront-loader-icon {
    0%, 12% { opacity: 1; transform: translateY(0) scale(1); }
    15%, 97% { opacity: 0; transform: translateY(-4px) scale(0.92); }
    98%, 100% { opacity: 0; transform: translateY(4px) scale(0.92); }
}

@media (prefers-reduced-motion: reduce) {
    .md-storefront-loader__icon { animation: none; }
    .md-storefront-loader__icon { display: none; }
    .md-storefront-loader__icon:first-child { display: block; opacity: 1; transform: none; }
}
