/**
 * PLANK WhatsApp Button Styles
 *
 * Base styles for the floating WhatsApp button.
 * Most styles are generated inline via the WPBakery element.
 */

/* Trigger element - completely invisible */
.plank-wa-trigger {
    position: relative;
    width: 100%;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Floating container base - ensure always on top */
.plank-wa-floating {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: fixed !important;
    z-index: 2147483647 !important;
    /* iOS Safari critical fixes */
    -webkit-transform: translate3d(0, 0, 0) !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    -webkit-overflow-scrolling: auto;
    will-change: opacity, bottom;
}

/* Button base - no transparency ever! */
.plank-wa-btn {
    cursor: pointer;
    border: none;
    outline: none;
    line-height: 1.4;
    opacity: 1 !important;
    background-color: inherit;
}

/* Ensure all child elements are fully opaque */
.plank-wa-floating * {
    opacity: 1 !important;
}

/* Icon container */
.plank-wa-icon {
    line-height: 0;
}

/* Text styling */
.plank-wa-text {
    white-space: nowrap;
}

/* Mobile responsive adjustments - only for optional compact mode */
@media (max-width: 480px) {
    /* On very small screens with compact mode enabled */
    .plank-wa-floating.plank-wa-compact .plank-wa-text {
        display: none;
    }

    .plank-wa-floating.plank-wa-compact .plank-wa-btn {
        padding: 12px !important;
        border-radius: 50% !important;
    }
}

/* Animation keyframes for extra effects */
@keyframes plank-wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Optional pulse animation - add class 'plank-wa-pulse' to enable */
.plank-wa-floating.plank-wa-pulse .plank-wa-btn {
    animation: plank-wa-pulse 2s infinite;
}
