/* GREAT USA — shared loading overlay & button states */

/* Early boot state before loading.js runs — visual only, never blocks clicks */
html.gu-loading {
    cursor: wait;
}

html.gu-loading::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    pointer-events: none;
}

html.gu-loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 99999;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    border: 5px solid rgba(255, 255, 255, 0.12);
    border-top-color: #b31942;
    border-right-color: #1e3a5f;
    border-radius: 50%;
    animation: great-loading-spin 0.9s linear infinite;
    pointer-events: none;
}

.great-loading-overlay {
    display: none;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.great-loading-overlay.is-visible {
    display: flex;
    visibility: visible;
    pointer-events: auto;
}

.great-loading-box {
    width: 220px;
    padding: 28px;
    border-radius: 26px;
    background: rgba(8, 18, 39, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.great-loading-spinner {
    width: 54px;
    height: 54px;
    margin: 0 auto;
    border: 5px solid rgba(255, 255, 255, 0.12);
    border-top-color: #b31942;
    border-right-color: #1e3a5f;
    border-radius: 50%;
    animation: great-loading-spin 0.9s linear infinite;
}

.great-loading-message {
    margin: 14px 0 0;
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 0.02em;
}

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

/* Inline button loading */

.great-btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.88;
}

.great-btn-loading .great-btn-label {
    opacity: 0.92;
}

.great-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: middle;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: great-loading-spin 0.75s linear infinite;
}

.great-btn-loading .great-btn-spinner {
    border-top-color: currentColor;
    border-right-color: rgba(255, 255, 255, 0.35);
}
