/* =====================================================
   Contact Floating Buttons — Frontend Styles
   ===================================================== */

/* Wrapper — holds both buttons, sits above everything */
.cfb-wrapper {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    pointer-events: none;   /* let clicks pass through the wrapper itself */
    z-index: 99999;
}

/* ── Shared button styles ── */
.cfb-btn {
    position: fixed;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.cfb-btn:hover,
.cfb-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
    color: #ffffff !important;
    text-decoration: none !important;
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.cfb-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Icon */
.cfb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cfb-icon svg {
    display: block;
    fill: currentColor;
}

/* ── Call button — bottom-left ── */
.cfb-btn--call {
    left: 24px;
    background: #0073aa;   /* WordPress blue; change freely */
    background: linear-gradient(135deg, #0073aa 0%, #005580 100%);
}

/* ── WhatsApp button — bottom-right ── */
.cfb-btn--whatsapp {
    right: 24px;
    background: #25D366;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

/* ── Pulse animation on WhatsApp button to draw attention ── */
@keyframes cfb-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.cfb-btn--whatsapp {
    animation: cfb-pulse 2.5s infinite;
}

.cfb-btn--whatsapp:hover {
    animation: none; /* stop pulse on hover so the hover shadow looks clean */
}

/* ── Responsive: hide text label on very small screens ── */
@media (max-width: 480px) {
    .cfb-label {
        display: none;
    }

    .cfb-btn {
        padding: 14px;
        border-radius: 50%;
    }

    .cfb-icon svg {
        width: 24px;
        height: 24px;
    }
}
