.eg-fab {
    --eg-fab-primary: #F39318;
    --eg-fab-primary-dark: #d47d0f;
    --eg-fab-secondary: #461E38;
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.eg-fab-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.eg-fab.is-open .eg-fab-backdrop {
    background: rgba(70, 30, 56, 0.25);
    backdrop-filter: blur(2px);
    opacity: 1;
    pointer-events: auto;
}

.eg-fab-items {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.6rem;
}

.eg-fab-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 6px 18px rgba(70, 30, 56, 0.28);
    opacity: 0;
    transform: translateY(14px) scale(0.5);
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, box-shadow 0.25s ease;
}

.eg-fab.is-open .eg-fab-item {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition-delay: var(--fab-delay, 0s);
}

.eg-fab-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eg-fab-item-fallback {
    font-size: 1.4rem;
    color: var(--eg-fab-secondary);
}

.eg-fab-item:hover,
.eg-fab-item:focus-visible {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 26px rgba(243, 147, 24, 0.45);
    outline: none;
}

.eg-fab-toggle {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(145deg, var(--eg-fab-primary) 0%, var(--eg-fab-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(243, 147, 24, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.eg-fab-toggle::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--eg-fab-primary);
    opacity: 0.6;
    animation: eg-fab-pulse 2.2s ease-out infinite;
}

.eg-fab.is-open .eg-fab-toggle::after {
    animation: none;
    opacity: 0;
}

.eg-fab-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(243, 147, 24, 0.6);
}

.eg-fab-toggle:active {
    transform: scale(0.96);
}

.eg-fab-icon {
    position: absolute;
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.eg-fab-icon--open {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.eg-fab-icon--close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.eg-fab.is-open .eg-fab-icon--open {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.eg-fab.is-open .eg-fab-icon--close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

@keyframes eg-fab-pulse {
    0% { transform: scale(0.85); opacity: 0.6; }
    70% { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
}

@media (max-width: 576px) {
    .eg-fab {
        bottom: 1rem;
        left: 1rem;
    }

    .eg-fab-toggle {
        width: 3.1rem;
        height: 3.1rem;
    }

    .eg-fab-item {
        width: 2.7rem;
        height: 2.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eg-fab-item,
    .eg-fab-toggle,
    .eg-fab-icon {
        transition: opacity 0.2s ease;
    }

    .eg-fab-toggle::after {
        animation: none;
    }
}
