/* Otech logo loader. Deliberately independent of Bootstrap and icon fonts. */
.otech-page-loader {
    --otech-loader-ready: 1;
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #fafaff;
    color: #292443;
    pointer-events: none;
    /* CSS backstop in addition to JS: never leave a stalled page covered. */
    animation: otech-loader-fail-open 0s 5s forwards;
}

.otech-page-loader[hidden] {
    display: none !important;
}

.otech-page-loader__content {
    display: grid;
    justify-items: center;
    gap: 24px;
    max-width: 100%;
}

.otech-logo-loader__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    width: 192px;
    max-width: 100%;
}

.otech-logo-loader__logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.otech-logo-loader__track {
    position: relative;
    display: block;
    width: 88px;
    height: 3px;
    border-radius: 4px;
    background: #ded8ff;
}

.otech-logo-loader__track::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #2d13ea;
    transform: scaleX(.38);
    transform-origin: left center;
    animation: otech-loader-track 1.6s ease-in-out infinite alternate;
}

.otech-logo-loader__diamond {
    position: absolute;
    top: -3px;
    left: -4px;
    width: 9px;
    height: 9px;
    background: #ff7800;
    transform: translateX(33px) rotate(45deg);
    animation: otech-loader-diamond 1.6s ease-in-out infinite alternate;
}

.otech-logo-loader__label {
    color: #5a5670;
    font: 500 14px/1.5 Lato, system-ui, sans-serif;
    letter-spacing: .025em;
    text-align: center;
}

/* Only wrappers that JS successfully branded are affected. Keep all WHMCS
   visibility, message, table-loading and payment selectors untouched. */
.data__loading__animation__wrapper.otech-logo-loader-host,
.data__loading__animation__wrapper:has(> .otech-logo-loader__template) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 150px;
}

.otech-logo-loader-host .otech-logo-loader__brand {
    width: 152px;
}

.otech-logo-loader__template {
    width: 152px;
}

.otech-logo-loader__brand.otech-logo-loader__compact {
    width: 112px;
    gap: 18px;
}

/* Reset the old cubes' 3D transform and the minimalist spinner's rotating
   background while retaining their original DOM and show/hide contracts. */
.boxes__loading.otech-logo-loader__indicator,
.minimalist__loader__spiner.otech-logo-loader__indicator {
    position: relative;
    width: max-content;
    max-width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: none;
    text-indent: 0;
    transform: none;
    transform-style: flat;
    animation: none;
}

.otech-logo-loader__indicator > :not(.otech-logo-loader__brand) {
    display: none !important;
}

.minimalist__loader__spiner.otech-logo-loader__indicator::before,
.minimalist__loader__spiner.otech-logo-loader__indicator::after {
    content: none;
}

.section__loader.otech-logo-loader-host,
.section__loader:has(> .otech-logo-loader__template) {
    gap: 22px;
}

.otech-logo-loader-host .section__loader__title,
.data__loading__animation__wrapper:has(> .otech-logo-loader__template) .section__loader__title,
.section__loader:has(> .otech-logo-loader__template) .section__loader__title {
    position: static;
    margin: 0;
    transform: none;
    opacity: 1;
    color: #5a5670;
    font-size: 14px;
    line-height: 1.5;
}

#fullpage-overlay.otech-logo-loader-overlay,
#fullpage-overlay.otech-logo-loader-overlay .fullpage__loadingscreen__overlay {
    background: #fafaff;
}

@keyframes otech-loader-track {
    from { transform: scaleX(.15); }
    to { transform: scaleX(1); }
}

@keyframes otech-loader-diamond {
    from { transform: translateX(13px) rotate(45deg); }
    to { transform: translateX(88px) rotate(45deg); }
}

@keyframes otech-loader-fail-open {
    to { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .otech-logo-loader__track::before,
    .otech-logo-loader__diamond {
        animation: none;
    }
}

@media print {
    .otech-page-loader { display: none !important; }
}
