#shery-page-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #ffffff;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}

#shery-page-loader.shery-loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.shery-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(220px, 80vw);
    text-align: center;
}

.shery-loader-logo {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 70px;
    margin: 0 auto 28px;
    object-fit: contain;
    animation: sheryLogoPulse 1.8s ease-in-out infinite;
}

.shery-loader-text {
    margin-bottom: 28px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #3742FC;
}

.shery-loader-line {
    position: relative;
    width: 100%;
    max-width: 180px;
    height: 3px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(55, 66, 252, 0.12);
}

.shery-loader-line span {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: #3742FC;
    animation: sheryLoaderLine 1.2s ease-in-out infinite;
}

@keyframes sheryLogoPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.04);
        opacity: 0.72;
    }
}

@keyframes sheryLoaderLine {
    0% {
        left: -40%;
    }

    100% {
        left: 100%;
    }
}

@media (max-width: 767px) {
    .shery-loader-logo {
        max-width: 145px;
        max-height: 60px;
        margin-bottom: 24px;
    }

    .shery-loader-line {
        max-width: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shery-loader-logo,
    .shery-loader-line span {
        animation: none;
    }

    .shery-loader-line span {
        left: 0;
        width: 100%;
    }
}