/* Global Rotate Overlay Plugin - Unified Styles */

/* Base Overlay */
#bft-rotate-overlay {
    display: none;
    /* Hidden by default, toggled via JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    /* White background as per original design */
    z-index: 999999;
    /* Always on top */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Flex display when active via JS class */
#bft-rotate-overlay.bft-visible {
    display: flex !important;
}

/* Icon Container */
#bft-rotate-overlay .bft-rotate-icon {
    font-size: 50px;
    margin-bottom: 20px;
    animation: bft-spin 2s infinite linear;
    width: auto;
    height: auto;
}

/* Title */
#bft-rotate-overlay h3 {
    color: #cc0000;
    margin-bottom: 10px;
    font-size: 1.5em;
    font-weight: 600;
}

/* Text */
#bft-rotate-overlay p {
    color: #555;
    font-size: 1.1em;
    line-height: 1.4;
    margin: 0;
}

/* Animation Keyframes */
@keyframes bft-spin {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-90deg);
    }

    50% {
        transform: rotate(-90deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Optional: Lock body scroll when overlay is active */
body.bft-rotate-locked {
    overflow: hidden !important;
}