/* Wrapper positioning */
.fsf-wrapper {
    position: fixed;
    bottom: 25px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* CSS variables from inline style */
    --fsf-fab-bg: #0073aa;
    --fsf-icon-bg: #ffffff;
    --fsf-icon-size: 48px;
    --fsf-fab-size: 58px;
}

/* Left / Right placement */
.fsf-wrapper.fsf-position-right {
    right: 25px;
}

.fsf-wrapper.fsf-position-left {
    left: 25px;
}

/* Main FAB button */
.fsf-main-btn {
    width: var(--fsf-fab-size);
    height: var(--fsf-fab-size);
    background: var(--fsf-fab-bg);
    color: #ffffff;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: calc(var(--fsf-fab-size) * 0.5);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.fsf-main-btn:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.fsf-main-btn.active {
    transform: rotate(45deg);
}

/* Icons container (vertical stack above FAB) */
.fsf-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform-origin: bottom center;
    transition:
        opacity 0.25s ease,
        max-height 0.25s ease,
        transform 0.25s ease;
}

/* Open state controlled by JS (class on wrapper) */
.fsf-wrapper.fsf-open .fsf-icons {
    max-height: 500px; /* enough to show all icons */
    opacity: 1;
    pointer-events: auto;
}

/* Animation styles */
.fsf-wrapper.fsf-animation-slide .fsf-icons {
    transform: translateY(10px);
}
.fsf-wrapper.fsf-animation-slide.fsf-open .fsf-icons {
    transform: translateY(0);
}

.fsf-wrapper.fsf-animation-zoom .fsf-icons {
    transform: scale(0.8);
}
.fsf-wrapper.fsf-animation-zoom.fsf-open .fsf-icons {
    transform: scale(1);
}

.fsf-wrapper.fsf-animation-fade .fsf-icons {
    transform: translateY(0);
}
.fsf-wrapper.fsf-animation-fade.fsf-open .fsf-icons {
    transform: translateY(0);
}

/* Individual icon links */
.fsf-icon {
    margin: 6px 0;
    text-decoration: none;
}

/* Circular icon background – always round */
.fsf-icon-inner {
    width: var(--fsf-icon-size);
    height: var(--fsf-icon-size);
    background: var(--fsf-icon-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.fsf-icon-inner:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* Icon images inside the round background */
.fsf-icon-inner img {
    width: calc(var(--fsf-icon-size) * 0.6);
    height: calc(var(--fsf-icon-size) * 0.6);
    display: block;
}

/* Simple responsiveness tweak for very small screens */
@media (max-width: 480px) {
    .fsf-wrapper {
        bottom: 18px;
    }

    .fsf-wrapper.fsf-position-right {
        right: 18px;
    }

    .fsf-wrapper.fsf-position-left {
        left: 18px;
    }
}
