/* Sticky CTA Button Plugin Styles */

/* Base Button Styles */
.wp-sticky-button {
    position: fixed;
    z-index: 9999;
    padding: 12px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 50px;
    min-height: 50px;
    height: 50px;
    justify-content: center;
}

.wp-sticky-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.wp-sticky-button a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.wp-sticky-button i {
    font-size: 16px;
    line-height: 1;
}

.wp-sticky-button span {
    white-space: nowrap;
    font-weight: 500;
}

/* Position Classes - now handled by inline styles with custom offsets */

/* Action Button Specific */
.wp-sticky-action-button {
    padding: 0px 20px;
    border-radius: 25px;
    min-height: 50px;
    height: 50px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Show action button after scroll when scroll behavior is set */
[data-display-behavior="scroll"] .wp-sticky-action-button.show {
    opacity: 1;
    visibility: visible;
}

.wp-sticky-action-button span {
    margin-left: 4px;
}

/* Back to Top Button Specific */
.wp-sticky-back-to-top {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Always visible behavior */
[data-display-behavior="always"] .wp-sticky-back-to-top {
    opacity: 1;
    visibility: visible;
}

[data-display-behavior="always"] .wp-sticky-action-button {
    opacity: 1;
    visibility: visible;
}

.wp-sticky-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.wp-sticky-back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
}

/* Combined Button Container */
.wp-sticky-button-combined {
    position: fixed;
    z-index: 9999;
    display: flex;
    gap: 10px;
}

/* Vertical Layout */
.wp-sticky-button-combined.wp-sticky-layout-vertical {
    flex-direction: column;
    align-items: flex-end;
}

/* Left alignment for left positions */
.wp-sticky-button-combined.wp-sticky-top-left.wp-sticky-layout-vertical,
.wp-sticky-button-combined.wp-sticky-bottom-left.wp-sticky-layout-vertical {
    align-items: flex-start;
}

.wp-sticky-button-combined.wp-sticky-layout-vertical .wp-sticky-button {
    position: relative;
    margin: 0;
}

.wp-sticky-button-combined.wp-sticky-layout-vertical .wp-sticky-action-button {
    height: 50px;
    min-height: 50px;
}

.wp-sticky-button-combined.wp-sticky-layout-vertical .wp-sticky-back-to-top {
    height: 50px;
    width: 50px;
}

/* Horizontal Layout */
.wp-sticky-button-combined.wp-sticky-layout-horizontal {
    flex-direction: row;
    align-items: center;
}

.wp-sticky-button-combined.wp-sticky-layout-horizontal .wp-sticky-button {
    position: relative;
    margin: 0;
}

.wp-sticky-button-combined.wp-sticky-layout-horizontal .wp-sticky-action-button {
    border-radius: 25px 10px 10px 25px;
}

.wp-sticky-button-combined.wp-sticky-layout-horizontal .wp-sticky-back-to-top {
    border-radius: 10px 25px 25px 10px;
    width: 50px;
    height: 50px;
}

.wp-sticky-button-combined.wp-sticky-layout-horizontal .wp-sticky-action-button {
    height: 50px;
    min-height: 50px;
}

/* Combined Position Classes - now handled by inline styles with custom offsets */

/* Animation for Back to Top */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wp-sticky-back-to-top.show {
    animation: fadeInUp 0.3s ease;
}

/* Animation for Action Button on scroll */
[data-display-behavior="scroll"] .wp-sticky-action-button.show {
    animation: fadeInUp 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wp-sticky-button {
        padding: 10px 14px;
        font-size: 13px;
        height: 45px;
        min-height: 45px;
    }
    
    .wp-sticky-action-button {
        padding: 0px 16px;
        height: 45px;
        min-height: 45px;
    }
    
    .wp-sticky-back-to-top {
        width: 45px;
        height: 45px;
    }
    
    .wp-sticky-button-combined.wp-sticky-layout-vertical .wp-sticky-action-button,
    .wp-sticky-button-combined.wp-sticky-layout-horizontal .wp-sticky-action-button {
        height: 45px;
        min-height: 45px;
    }
    
    .wp-sticky-button-combined.wp-sticky-layout-vertical .wp-sticky-back-to-top {
        height: 45px;
        width: 45px;
    }
    
    /* Hide text on very small screens */
    .wp-sticky-action-button span {
        display: none;
    }
    
    .wp-sticky-action-button {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        padding: 0;
    }
    
    /* Adjust combined layout for mobile */
    .wp-sticky-button-combined.wp-sticky-layout-horizontal {
        flex-direction: column;
        gap: 8px;
    }
    
    .wp-sticky-button-combined.wp-sticky-layout-horizontal .wp-sticky-action-button,
    .wp-sticky-button-combined.wp-sticky-layout-horizontal .wp-sticky-back-to-top {
        border-radius: 50%;
    }
}

@media (max-width: 480px) {
    .wp-sticky-button {
        padding: 8px 12px;
        font-size: 12px;
        height: 40px;
        min-height: 40px;
    }
    
    .wp-sticky-back-to-top {
        width: 40px;
        height: 40px;
    }
    
    .wp-sticky-action-button {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }
    
    .wp-sticky-button-combined.wp-sticky-layout-vertical .wp-sticky-action-button,
    .wp-sticky-button-combined.wp-sticky-layout-horizontal .wp-sticky-action-button {
        height: 40px;
        min-height: 40px;
    }
    
    .wp-sticky-button-combined.wp-sticky-layout-vertical .wp-sticky-back-to-top {
        height: 40px;
        width: 40px;
    }
    
    .wp-sticky-button i {
        font-size: 14px;
    }
}

/* Accessibility */
.wp-sticky-button:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

.wp-sticky-button:focus:not(:focus-visible) {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wp-sticky-button {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wp-sticky-button,
    .wp-sticky-back-to-top,
    .wp-sticky-action-button {
        transition: none;
    }
    
    .wp-sticky-button:hover {
        transform: none;
    }
    
    @keyframes fadeInUp {
        from, to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Print styles */
@media print {
    .wp-sticky-button,
    .wp-sticky-button-combined {
        display: none !important;
    }
} 

/* Basic Icon Replacements for Font Awesome */
.wp-sticky-button i[class*="fa-"] {
    font-style: normal;
    font-weight: normal;
    display: inline-block;
    text-decoration: inherit;
    width: auto;
    height: auto;
    line-height: normal;
    vertical-align: baseline;
}

/* Icon mappings using Unicode */
.fa-rocket:before { content: "🚀"; }
.fa-download:before { content: "⬇"; }
.fa-phone:before { content: "📞"; }
.fa-envelope:before { content: "✉"; }
.fa-shopping-cart:before { content: "🛒"; }
.fa-play:before { content: "▶"; }
.fa-star:before { content: "⭐"; }
.fa-heart:before { content: "❤"; }
.fa-thumbs-up:before { content: "👍"; }
.fa-fire:before { content: "🔥"; }
.fa-bolt:before { content: "⚡"; }
.fa-gift:before { content: "🎁"; }
.fa-bullhorn:before { content: "📢"; }
.fa-comment:before { content: "💬"; }
.fa-user:before { content: "👤"; }
.fa-cog:before { content: "⚙"; }

/* Back to top icons */
.fa-chevron-up:before { content: "▲"; }
.fa-arrow-up:before { content: "↑"; }
.fa-angle-up:before { content: "˄"; }
.fa-caret-up:before { content: "▲"; }
.fa-angle-double-up:before { content: "⌃"; }
.fa-long-arrow-alt-up:before { content: "⇧"; }
.fa-sort-up:before { content: "▲"; }
.fa-level-up-alt:before { content: "↗"; } 