/* STR Floating Buttons Styles */

.str-floating-buttons {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
}

.str-fb-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    pointer-events: auto;
    position: fixed;
    z-index: 10000;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: "Font Awesome 6 Free", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.str-fb-button i {
    font-size: 24px;
    font-weight: 900;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.str-fb-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: white;
}

.str-fb-button:active {
    transform: translateY(0);
}

.str-fb-button.str-fb-clicked {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Position classes */
.str-fb-bottom-right {
    bottom: 20px;
    right: 20px;
}

.str-fb-bottom-left {
    bottom: 20px;
    left: 20px;
}

.str-fb-top-right {
    top: 20px;
    right: 20px;
}

.str-fb-top-left {
    top: 20px;
    left: 20px;
}

/* Size variations */
.str-fb-size-small {
    width: 50px;
    height: 50px;
}

.str-fb-size-small i {
    font-size: 20px;
}

.str-fb-size-medium {
    width: 60px;
    height: 60px;
}

.str-fb-size-medium i {
    font-size: 24px;
}

.str-fb-size-large {
    width: 70px;
    height: 70px;
}

.str-fb-size-large i {
    font-size: 28px;
}

.str-fb-size-extra-large {
    width: 80px;
    height: 80px;
}

.str-fb-size-extra-large i {
    font-size: 32px;
}

/* Icon size multiplier */
.str-fb-icon-2x i {
    font-size: 2em !important;
    transform: scale(1.2);
}

/* Button spacing when both are in same corner */
.str-fb-button-1.str-fb-bottom-right + .str-fb-button-2.str-fb-bottom-right,
.str-fb-button-2.str-fb-bottom-right + .str-fb-button-1.str-fb-bottom-right {
    bottom: 80px;
}

.str-fb-button-1.str-fb-bottom-left + .str-fb-button-2.str-fb-bottom-left,
.str-fb-button-2.str-fb-bottom-left + .str-fb-button-1.str-fb-bottom-left {
    bottom: 80px;
}

.str-fb-button-1.str-fb-top-right + .str-fb-button-2.str-fb-top-right,
.str-fb-button-2.str-fb-top-right + .str-fb-button-1.str-fb-top-right {
    top: 80px;
}

.str-fb-button-1.str-fb-top-left + .str-fb-button-2.str-fb-top-left,
.str-fb-button-2.str-fb-top-left + .str-fb-button-1.str-fb-top-left {
    top: 80px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .str-fb-button {
        width: 55px;
        height: 55px;
    }
    
    .str-fb-button i {
        font-size: 22px;
    }
    
    .str-fb-bottom-right,
    .str-fb-bottom-left {
        bottom: 15px;
    }
    
    .str-fb-top-right,
    .str-fb-top-left {
        top: 15px;
    }
    
    .str-fb-bottom-right {
        right: 15px;
    }
    
    .str-fb-bottom-left {
        left: 15px;
    }
    
    .str-fb-top-right {
        right: 15px;
    }
    
    .str-fb-top-left {
        left: 15px;
    }
    
    /* Adjust size classes for mobile */
    .str-fb-size-small {
        width: 45px;
        height: 45px;
    }
    
    .str-fb-size-small i {
        font-size: 18px;
    }
    
    .str-fb-size-medium {
        width: 55px;
        height: 55px;
    }
    
    .str-fb-size-medium i {
        font-size: 22px;
    }
    
    .str-fb-size-large {
        width: 65px;
        height: 65px;
    }
    
    .str-fb-size-large i {
        font-size: 26px;
    }
    
    .str-fb-size-extra-large {
        width: 75px;
        height: 75px;
    }
    
    .str-fb-size-extra-large i {
        font-size: 30px;
    }
    
    /* Adjust 2x icon size for mobile */
    .str-fb-icon-2x i {
        font-size: 1.8em !important;
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    .str-fb-button {
        width: 50px;
        height: 50px;
    }
    
    .str-fb-button i {
        font-size: 20px;
    }
    
    .str-fb-bottom-right,
    .str-fb-bottom-left {
        bottom: 10px;
    }
    
    .str-fb-top-right,
    .str-fb-top-left {
        top: 10px;
    }
    
    .str-fb-bottom-right {
        right: 10px;
    }
    
    .str-fb-bottom-left {
        left: 10px;
    }
    
    .str-fb-top-right {
        right: 10px;
    }
    
    .str-fb-top-left {
        left: 10px;
    }
    
    /* Adjust size classes for small mobile */
    .str-fb-size-small {
        width: 40px;
        height: 40px;
    }
    
    .str-fb-size-small i {
        font-size: 16px;
    }
    
    .str-fb-size-medium {
        width: 50px;
        height: 50px;
    }
    
    .str-fb-size-medium i {
        font-size: 20px;
    }
    
    .str-fb-size-large {
        width: 60px;
        height: 60px;
    }
    
    .str-fb-size-large i {
        font-size: 24px;
    }
    
    .str-fb-size-extra-large {
        width: 70px;
        height: 70px;
    }
    
    .str-fb-size-extra-large i {
        font-size: 28px;
    }
    
    /* Adjust 2x icon size for small mobile */
    .str-fb-icon-2x i {
        font-size: 1.6em !important;
        transform: scale(1.05);
    }
}

/* Animation for button appearance */
.str-fb-button {
    animation: strFadeInUp 0.5s ease-out;
}

@keyframes strFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility improvements */
.str-fb-button:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .str-fb-button {
        border: 2px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .str-fb-button {
        transition: none;
        animation: none;
    }
    
    .str-fb-button:hover {
        transform: none;
    }
}

/* Responsive visibility controls */
.str-fb-hide-desktop {
    display: none !important;
}

.str-fb-hide-mobile {
    display: block !important;
}

@media (max-width: 767px) {
    .str-fb-hide-mobile {
        display: none !important;
    }
    
    .str-fb-hide-desktop {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .str-fb-hide-desktop {
        display: none !important;
    }
    
    .str-fb-hide-mobile {
        display: block !important;
    }
}
