/* Floating contact button — [metafp_contact_fab] */
.metafp-fab {
    --fab-size: 56px;
    position: fixed;
    right: var(--fab-right, 22px);
    bottom: var(--fab-bottom, 100px);
    z-index: 9000;
    width: var(--fab-size);
    height: var(--fab-size);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 50% 50% 6px 50%;
    background: var(--fab-color, #00c8f0);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    text-decoration: none;
    transition: translate 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    /* Entrance: wait, then zoom in (like the WhatsApp button) */
    animation: metafp-fab-zoom-in 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28) var(--fab-appear-delay, 3300ms) both;
}

@keyframes metafp-fab-zoom-in {
    from { scale: 0; opacity: 0; }
    to { scale: 1; opacity: 1; }
}

/* Inner translucent ring */
.metafp-fab::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.metafp-fab:hover,
.metafp-fab:focus-visible {
    filter: brightness(1.08);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
    translate: 0 -2px;
}

.metafp-fab:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.metafp-fab__dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: metafp-fab-blink 3s ease infinite;
    transition: all 0.3s ease;
}

.metafp-fab__dot--2 { animation-delay: 0.4s; }
.metafp-fab__dot--3 { animation-delay: 0.8s; }

/* Clicked: "loading" — dots bounce in a wave and a ring pulses outwards */
.metafp-fab.is-active {
    cursor: progress;
}

.metafp-fab.is-active::before {
    background: transparent;
    box-shadow: 0 0 0 0 var(--fab-color, #00c8f0);
    animation: metafp-fab-pulse 1s ease-out infinite;
}

.metafp-fab.is-active .metafp-fab__dot {
    opacity: 1;
    animation: metafp-fab-bounce 0.6s ease-in-out infinite;
}

.metafp-fab.is-active .metafp-fab__dot--2 { animation-delay: 0.1s; }
.metafp-fab.is-active .metafp-fab__dot--3 { animation-delay: 0.2s; }

@keyframes metafp-fab-blink {
    50% { opacity: 0.25; }
}

@keyframes metafp-fab-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-7px); }
}

@keyframes metafp-fab-pulse {
    0% { box-shadow: 0 0 0 0 var(--fab-color, #00c8f0); opacity: 0.7; }
    100% { box-shadow: 0 0 0 16px var(--fab-color, #00c8f0); opacity: 0; }
}

@media (max-width: 767px) {
    .metafp-fab { --fab-size: 50px; }
}

@media (prefers-reduced-motion: reduce) {
    .metafp-fab,
    .metafp-fab::before,
    .metafp-fab__dot {
        animation: none;
        transition: none;
    }
}
