/* Spinner Overlay */
.p7co-spinner-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
}

.p7co-spinner-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Spinner Container */
.p7co-spinner-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 32px 40px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 0 1px rgba(0, 0, 0, 0.1);
    animation: p7coBoxPulse 2s ease-in-out infinite;
}

/* Modern Spinner Ring with Dual Animation */
.p7co-spinner-ring {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p7co-spinner-ring::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #1b8f73;
    border-right-color: rgba(27, 143, 115, 0.3);
    animation: p7coSpin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.p7co-spinner-ring::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: #1b8f73;
    border-left-color: rgba(27, 143, 115, 0.3);
    animation: p7coSpinReverse 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

/* Spinner Text */
.p7co-spinner-text {
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
    letter-spacing: 0.3px;
    animation: p7coFade 2s ease-in-out infinite;
}

/* Body Scroll Lock */
body.p7co-spinner-active {
    overflow: hidden;
}

/* Animations */
@keyframes p7coSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes p7coSpinReverse {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes p7coBoxPulse {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                    0 0 1px rgba(0, 0, 0, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 20px 70px rgba(27, 143, 115, 0.15),
                    0 0 2px rgba(27, 143, 115, 0.2);
        transform: scale(1.02);
    }
}

@keyframes p7coFade {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}
