/* WP Contact Buttons - Frontend Styles */
.wpcb-wrapper {
    display: flex;
    align-items: center;
    z-index: 9999;
}

.wpcb-fixed {
    position: fixed;
}

.wpcb-static {
    position: relative;
    display: inline-flex;
}

.wpcb-vertical {
    flex-direction: column;
}

.wpcb-horizontal {
    flex-direction: row;
}

.wpcb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0 16px;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
}

.wpcb-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    text-decoration: none !important;
    color: inherit !important;
}

.wpcb-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.wpcb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wpcb-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.wpcb-label {
    font-weight: 600;
}

/* Pulse Effect */
.wpcb-pulse {
    position: relative;
}

.wpcb-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    animation: wpcb-pulse-anim 2s ease-out infinite;
    pointer-events: none;
}

@keyframes wpcb-pulse-anim {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Animations */
.wpcb-anim-bounce {
    animation: wpcb-bounce 2s ease infinite;
    animation-delay: 1s;
}

@keyframes wpcb-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.wpcb-anim-bounce:hover {
    animation: none;
}

.wpcb-anim-pulse {
    animation: wpcb-scale-pulse 1.5s ease-in-out infinite;
}

@keyframes wpcb-scale-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.wpcb-anim-shake {
    animation: wpcb-shake 3s ease infinite;
    animation-delay: 2s;
}

@keyframes wpcb-shake {
    0%, 90%, 100% { transform: rotate(0deg); }
    92% { transform: rotate(-10deg); }
    94% { transform: rotate(10deg); }
    96% { transform: rotate(-8deg); }
    98% { transform: rotate(8deg); }
}

.wpcb-anim-tada {
    animation: wpcb-tada 3s ease infinite;
    animation-delay: 2s;
}

@keyframes wpcb-tada {
    0%, 85%, 100% { transform: scale(1) rotate(0deg); }
    87% { transform: scale(0.9) rotate(-3deg); }
    89%, 93%, 97% { transform: scale(1.1) rotate(3deg); }
    91%, 95%, 99% { transform: scale(1.1) rotate(-3deg); }
}

/* Tooltip */
.wpcb-btn[data-tooltip] {
    position: relative;
}

.wpcb-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10000;
}

/* Tooltip positions based on wrapper position */
.wpcb-wrapper[style*="right"] .wpcb-btn[data-tooltip]::after {
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(5px);
}

.wpcb-wrapper[style*="left"] .wpcb-btn[data-tooltip]::after {
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(-5px);
}

.wpcb-btn[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .wpcb-label {
        display: none;
    }
    .wpcb-btn {
        padding: 0;
        justify-content: center;
    }
}
