/*
|--------------------------------------------------------------------------
| RAV Floating Contact
|--------------------------------------------------------------------------
*/

/* the widget itself takes no flow space — the button is fixed to the viewport */
.elementor-widget-rav_fab {
    margin: 0 !important;
}

.cew-rav-fab {
    position: fixed;
    bottom: 32px;
    z-index: 40;
}

.cew-rav-fab--right {
    right: 32px;
}

.cew-rav-fab--left {
    left: 32px;
}

/*
|--------------------------------------------------------------------------
| Button
|--------------------------------------------------------------------------
*/

.cew-rav-fab-btn {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;
    border-radius: 999px;

    background-color: #2D6A4F;
    color: #ffffff;
    text-decoration: none;

    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.cew-rav-fab-btn:hover {
    transform: scale(1.1);
}

.cew-rav-fab-btn:active {
    transform: scale(0.95);
}

.cew-rav-fab-btn .material-symbols-outlined {
    font-size: 30px;
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Tooltip
|--------------------------------------------------------------------------
*/

.cew-rav-fab-tip {
    position: absolute;

    padding: 8px 16px;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;

    background-color: #0f5238;
    color: #ffffff;

    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.20);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cew-rav-fab--right .cew-rav-fab-tip {
    right: 100%;
    margin-right: 16px;
}

.cew-rav-fab--left .cew-rav-fab-tip {
    left: 100%;
    margin-left: 16px;
}

.cew-rav-fab-btn:hover .cew-rav-fab-tip,
.cew-rav-fab-btn:focus-visible .cew-rav-fab-tip {
    opacity: 1;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .cew-rav-fab {
        bottom: 20px;
    }

    .cew-rav-fab--right {
        right: 20px;
    }

    .cew-rav-fab--left {
        left: 20px;
    }

}
