body.infobms-preloading {
    overflow: hidden;
}

.infobms-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.infobms-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.infobms-preloader__inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.infobms-preloader__typewriter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.2em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: clamp(1.75rem, 6vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    color: #004eeb;
    white-space: nowrap;
}

.infobms-preloader__text {
    display: inline-block;
    min-width: 0;
}

.infobms-preloader__cursor {
    display: inline-block;
    margin-left: 2px;
    font-weight: 400;
    color: inherit;
    animation: infobms-preloader-cursor-blink 0.4s step-end infinite;
}

@keyframes infobms-preloader-cursor-blink {
    50% {
        opacity: 0;
    }
}

body.dark-mode .infobms-preloader {
    background: #111827;
}

body.dark-mode .infobms-preloader__typewriter {
    color: #60a5fa;
}

@media print {
    .infobms-preloader {
        display: none !important;
    }

    body.infobms-preloading {
        overflow: visible !important;
    }
}
