.floating-menu-container {
    position: fixed;
    z-index: 100;
    top: 50%;
    transform: translateY(-50%);
}

.floating-menu-right {
    right: 0;
}

.floating-menu-left {
    left: 0;
}

.floating-menu {
    background-color: var(--card-background, #ffffff);
    border-radius: 8px 0 0 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 250px;
    max-width: 80vw;
    transition: transform 0.3s ease;
}

.floating-menu-left .floating-menu {
    border-radius: 0 8px 8px 0;
    transform: translateX(-100%);
}

.floating-menu-right .floating-menu {
    transform: translateX(100%);
}

.floating-menu-container.active .floating-menu {
    transform: translateX(0);
}

.floating-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.floating-menu-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color, #171717);
}

.floating-menu-toggle {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary, #009739);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.floating-menu-right .floating-menu-toggle {
    left: -20px;
}

.floating-menu-left .floating-menu-toggle {
    right: -20px;
}

.floating-menu-toggle span,
.floating-menu-toggle span::before,
.floating-menu-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    background-color: white;
    position: relative;
    transition: all 0.3s ease;
}

.floating-menu-toggle span::before,
.floating-menu-toggle span::after {
    content: '';
    position: absolute;
}

.floating-menu-toggle span::before {
    top: -6px;
}

.floating-menu-toggle span::after {
    top: 6px;
}

.floating-menu-container.active .floating-menu-toggle span {
    background-color: transparent;
}

.floating-menu-container.active .floating-menu-toggle span::before {
    transform: rotate(45deg);
    top: 0;
}

.floating-menu-container.active .floating-menu-toggle span::after {
    transform: rotate(-45deg);
    top: 0;
}

.floating-menu-content {
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
}

.floating-menu-item {
    margin-bottom: 10px;
}

.floating-menu-item:last-child {
    margin-bottom: 0;
}

.floating-menu-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color, #171717);
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.floating-menu-item a:hover {
    background-color: #f5f5f5;
}

.floating-menu-icon {
    margin-right: 10px;
    font-size: 1.2rem;
    color: var(--primary, #009739);
}

.floating-menu-text {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .floating-menu {
        width: 200px;
    }
}

/* Ocultar en escritorio */
@media (min-width: 768px) {
    .floating-menu-wrapper {
        display: none;
    }
}

/* Mostrar solo en móvil */
@media (max-width: 767px) {
    .floating-menu-wrapper {
        position: fixed;
        left: 0;
        right: 0;
        z-index: 9999;
        display: flex;
        justify-content: center;
        padding: 0 10px;
    }

    .floating-menu-bottom {
        bottom: 10px;
    }

    .floating-menu-top {
        top: 10px;
    }

    .floating-menu {
        display: flex;
        justify-content: space-between;
        width: 100%;
        max-width: 450px;
        background-color: #000;
        padding: 4px;
        text-align: center;
        text-transform: capitalize;
        border-radius: 3px;
        filter: drop-shadow(-3px 0 10px #444);
    }

    .ff-menu-item-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #fff;
        text-decoration: none;
        padding: 5px;
        font-size: 12px;
        flex: 1;
    }

    .ff-menu-item-link svg {
        margin-bottom: 4px;
        width: 24px;
        height: 24px;
    }

    .ff-menu-item-link span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}