﻿/* ===== Full page overlay ===== */
.mihs-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 22, 40, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

    .mihs-loader.is-active {
        opacity: 1;
        visibility: visible;
    }

.mihs-loader__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 26px 34px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.mihs-loader__ring {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(240, 165, 0, .25);
    border-top-color: #F0A500;
    border-radius: 50%;
    animation: mihs-spin .8s linear infinite;
}

.mihs-loader__text {
    font-size: 14px;
    font-weight: 600;
    color: #0A1628;
}

/* ===== Button inline spinner ===== */
.is-loading {
    position: relative;
    pointer-events: none;
    opacity: .85;
}

    .is-loading::after {
        content: "";
        width: 16px;
        height: 16px;
        margin-left: 10px;
        display: inline-block;
        vertical-align: middle;
        border: 2px solid rgba(255, 255, 255, .4);
        border-top-color: #fff;
        border-radius: 50%;
        animation: mihs-spin .7s linear infinite;
    }

@keyframes mihs-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mihs-loader__ring, .is-loading::after {
        animation-duration: 2s;
    }
}
