/* Nofal SEO — Professional floating WhatsApp button */

.ht_ctc_chat,
#ht-ctc-chat,
.ht_ctc_style,
.ccw_plugin,
.sa-floating-wa {
    display: none !important;
}

.nofal-wa-fab {
    position: fixed;
    bottom: 24px;
    z-index: 99985;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    text-decoration: none !important;
    box-shadow:
        0 10px 28px rgba(18, 140, 126, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: nofal-wa-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.8s;
}

html[dir="rtl"] .nofal-wa-fab {
    right: 20px;
    left: auto;
    padding: 10px 12px 10px 18px;
}

html[dir="ltr"] .nofal-wa-fab {
    left: 20px;
    right: auto;
}

.nofal-wa-fab:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 36px rgba(18, 140, 126, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset;
    color: #fff;
}

.nofal-wa-fab__pulse {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.45);
    animation: nofal-wa-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

.nofal-wa-fab__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}

.nofal-wa-fab__icon svg {
    width: 24px;
    height: 24px;
}

.nofal-wa-fab__text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
    text-align: start;
}

.nofal-wa-fab__text strong {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.nofal-wa-fab__text small {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.92;
}

.nofal-wa-fab__dot {
    position: absolute;
    top: 6px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #6dff9a;
    border: 2px solid #128c7e;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
    animation: nofal-wa-dot 2s ease-in-out infinite;
    pointer-events: none;
}

html[dir="rtl"] .nofal-wa-fab__dot {
    left: 8px;
    right: auto;
}

html[dir="ltr"] .nofal-wa-fab__dot {
    right: 8px;
    left: auto;
}

@media (max-width: 640px) {
    .nofal-wa-fab {
        width: 58px;
        height: 58px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .nofal-wa-fab__text {
        display: none;
    }

    .nofal-wa-fab__icon {
        width: 58px;
        height: 58px;
        background: transparent;
    }

    .nofal-wa-fab__icon svg {
        width: 28px;
        height: 28px;
    }

    html[dir="rtl"] .nofal-wa-fab__dot,
    html[dir="ltr"] .nofal-wa-fab__dot {
        top: 4px;
    }

    html[dir="rtl"] .nofal-wa-fab__dot {
        left: 6px;
    }

    html[dir="ltr"] .nofal-wa-fab__dot {
        right: 6px;
    }
}

@keyframes nofal-wa-enter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes nofal-wa-pulse {
    0% {
        opacity: 0.55;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.45);
    }
}

@keyframes nofal-wa-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nofal-wa-fab,
    .nofal-wa-fab__pulse,
    .nofal-wa-fab__dot {
        animation: none !important;
    }
}
