.mobile-loading-overlay {
    display: none;
}

.mobile-loading-overlay.is-active {
    align-items: center;
    background: rgb(15 23 42 / 58%);
    color: #fff;
    inset: 0;
    justify-content: center;
    padding: max(1.5rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right))
        max(1.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
    position: fixed;
    z-index: 2000;
}

.mobile-loading-content {
    align-items: center;
    background: #1c2541;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgb(15 23 42 / 25%);
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    font-weight: 600;
    gap: 0.85rem;
    min-width: 10rem;
    padding: 1.5rem 2rem;
}

.mobile-loading-spinner {
    animation: mobile-loading-spin 0.8s linear infinite;
    border: 4px solid rgb(255 255 255 / 35%);
    border-radius: 50%;
    border-top-color: #fff;
    height: 2.25rem;
    width: 2.25rem;
}

body.mobile-loading-active {
    overflow: hidden;
}

@keyframes mobile-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.mobile-loading-overlay.is-active {
    display: flex;
}

@media (prefers-reduced-motion: reduce) {
    .mobile-loading-spinner {
        animation: none;
    }
}
