/**
 * BBW Sticky Button Styles
 */

.bbw-sticky-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: fixed;
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Content Order - Text First (reverse order) */
.bbw-sticky-button.bbw-text-first {
    flex-direction: column-reverse;
}

/* Horizontal Position */
.bbw-sticky-button.bbw-position-right {
    right: 0;
    left: auto;
}

.bbw-sticky-button.bbw-position-left {
    left: 0;
    right: auto;
}

/* Icon */
.bbw-sticky-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.bbw-sticky-button-icon img {
    display: block;
    max-width: 100%;
    height: auto;
    width: var(--bbw-icon-size, 30px);
}

.bbw-sticky-button-icon i {
    display: block;
    font-size: var(--bbw-icon-size, 30px);
}

.bbw-sticky-button-icon svg {
    display: block;
    width: var(--bbw-icon-size, 30px);
    height: var(--bbw-icon-size, 30px);
}

/* Text */
.bbw-sticky-button-text {
    display: block;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
    max-width: var(--bbw-text-max-width, 60px);
    text-align: center;
}

/* Hover Effects */
.bbw-sticky-button:hover {
    transform: translateX(-3px);
}

.bbw-sticky-button.bbw-position-left:hover {
    transform: translateX(3px);
}

/* Mobile Hiding */
@media (max-width: 767px) {
    .bbw-sticky-button.bbw-hide-mobile {
        display: none !important;
    }
}

/* Sticky State - Applied via JS */
.bbw-sticky-button.is-sticky {
    position: fixed;
}

/* Elementor Editor Specific */
.elementor-editor-active .bbw-sticky-button {
    position: relative;
    right: auto;
    left: auto;
    top: auto;
}

/* Animation */
.bbw-sticky-button {
    animation: bbwFadeIn 0.5s ease;
}

@keyframes bbwFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bbw-sticky-button.bbw-position-left {
    animation: bbwFadeInLeft 0.5s ease;
}

@keyframes bbwFadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Global Button specific styles */
.bbw-sticky-button-global .bbw-sticky-button-icon {
    margin-bottom: 8px;
}

.bbw-sticky-button-global.bbw-text-first .bbw-sticky-button-icon {
    margin-bottom: 0;
    margin-top: 8px;
}
