/**
 * RAI Floating Login Button Styles
 * Version: 1.2.23
 */

.rai-floating-login-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    height: 48px;
    box-sizing: border-box;
    white-space: nowrap;
    will-change: transform, opacity;
    cursor: pointer;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rai-floating-login-btn.ready {
    opacity: 1;
    pointer-events: auto;
}

.rai-floating-login-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
}

.rai-floating-login-btn:active {
    transform: translateY(0);
}

.rai-floating-login-btn i {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.rai-floating-login-btn span {
    display: inline-block;
    vertical-align: middle;
}

/* Hide Circle's launcher button */
[class*="launcher-button"],
[class*="LauncherButton"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Circle Widget Overlay Styles */
.circle-widget-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 2147483646 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: visibility 0.2s, opacity 0.2s !important;
}

.circle-widget-overlay.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.circle-widget-overlay.shown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.circle-widget-overlay iframe {
    width: 100% !important;
    max-width: 800px !important;
    height: 90vh !important;
    max-height: 800px !important;
    border: none !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    margin: 20px !important;
}

@media (max-width: 768px) {
    .rai-floating-login-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 14px;
        height: 42px;
    }
    
    .rai-floating-login-btn i {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    .circle-widget-overlay iframe {
        width: 95% !important;
        height: 95vh !important;
        margin: 10px !important;
    }
}