/* =========================================
   RAKAN FLOATING BAR (SOLID TO GLASS UX)
   ========================================= */

/* 1. The Main Pill Container (Now defaults to SOLID) */
.rakan-floating-bar {
    position: fixed;
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 9999; 
    
    /* DEFAULT STATE: Solid and Opaque */
    background-color: rgba(255, 255, 255, 1) !important; 
    backdrop-filter: none !important; 
    -webkit-backdrop-filter: none !important; 
    border-radius: 50px; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); 
    
    width: max-content !important; 
    max-width: 95%; 
    padding: 12px 132px !important; 
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease; 
}

.rakan-floating-bar.show-bar {
    opacity: 1;
    visibility: visible;
}

/* THE NEW SCROLLING STATE: Re-activates the Glass Effect */
.rakan-floating-bar.is-scrolling {
    background-color: rgba(235, 235, 235, 0.45) !important; 
    backdrop-filter: blur(12px) !important; 
    -webkit-backdrop-filter: blur(12px) !important; 
}

/* 2. Target your Inner Container */
.rakan-floating-bar > .gb-inside-container > .gb-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; 
    gap: 8px !important; 
    margin: 0 !important;
    
    /* THE FIX: Force inner container to be transparent so it doesn't block the glass */
    background-color: transparent !important; 
}

/* 3. Force the Buttons to behave (DEFAULT: Solid) */
.rakan-floating-bar .gb-button {
    white-space: nowrap !important; 
    flex-shrink: 0 !important; 
    padding: 10px 20px !important; 
    border-radius: 40px !important;
    font-size: 14px !important;
    
    /* Default to 100% solid when static */
    opacity: 1 !important; 
    transition: opacity 0.4s ease !important; 
}

/* THE SCROLLING STATE FOR BUTTONS 
.rakan-floating-bar.is-scrolling .gb-button {
    opacity: 0.5 !important; 
}*/

/* THE HOVER STATE */
.rakan-floating-bar .gb-button:hover {
    opacity: 1 !important;
}

/* --- MOBILE RESPONSIVE FIX --- */
@media (max-width: 768px) {
    .rakan-floating-bar {
        width: 90vw !important; 
        left: 5vw !important; 
        transform: none !important; 
        padding: 6px !important; 
        box-sizing: border-box !important;
    }

    .rakan-floating-bar > .gb-inside-container > .gb-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .rakan-floating-bar .gb-button {
        flex: 1 1 50% !important; 
        width: 50% !important;
        min-width: 0 !important; 
        padding: 10px 4px !important; 
        font-size: 11px !important; 
        white-space: normal !important; 
        word-wrap: break-word !important; 
        line-height: 1.2 !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

body.ke-cbx-tour-active .rakan-floating-bar {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
}