/* WP WhatsApp Button - Frontend Styles */

#wpwab-wrapper {
    position: fixed;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

/* Button */
.wpwab-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--wpwab-size, 60px);
    height: var(--wpwab-size, 60px);
    background: var(--wpwab-color, #25D366);
    border-radius: 50%;
    box-shadow:
        0 4px 20px rgba(37, 211, 102, 0.45),
        0 2px 8px rgba(0,0,0,0.18);
    text-decoration: none;
    pointer-events: all;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
    overflow: visible;
}

.wpwab-btn:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow:
        0 8px 32px rgba(37, 211, 102, 0.55),
        0 4px 16px rgba(0,0,0,0.2);
}

.wpwab-btn:active {
    transform: scale(0.96);
}

/* Icon */
.wpwab-icon {
    width: 55%;
    height: 55%;
    fill: #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
    position: relative;
    z-index: 2;
}

/* Pulse ring */
.wpwab-pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--wpwab-color, #25D366);
    opacity: 0;
    z-index: 0;
}

.wpwab-pulse .wpwab-pulse-ring {
    animation: wpwab-pulse-anim 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.wpwab-pulse .wpwab-pulse-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--wpwab-color, #25D366);
    opacity: 0;
    animation: wpwab-pulse-anim 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) 0.7s infinite;
}

@keyframes wpwab-pulse-anim {
    0% { transform: scale(1); opacity: 0.6; }
    70% { transform: scale(1.65); opacity: 0; }
    100% { transform: scale(1.65); opacity: 0; }
}

/* Tooltip */
.wpwab-tooltip {
    background: #1a1a2e;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    animation: wpwab-tooltip-fade 0.4s ease both;
    animation-delay: 1.5s;
    opacity: 0;
}

@keyframes wpwab-tooltip-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wpwab-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1a1a2e;
}

.wpwab-tooltip.tooltip-left::after  { right: 18px; }
.wpwab-tooltip.tooltip-right::after { left: 18px; }

/* Entrance animation */
#wpwab-wrapper {
    animation: wpwab-entrance 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
    animation-delay: 0.8s;
}

@keyframes wpwab-entrance {
    from { opacity: 0; transform: scale(0.4) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .wpwab-tooltip { font-size: 12px; padding: 6px 11px; }
}
