
/* =====================================
   FLOATING CONTACT BUTTONS
===================================== */

.eg-floating-contact {
    position: fixed;
    left: 20px;
    bottom: 24px;
    z-index: 99999;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;

    direction: ltr;
}

/* Common buttons */

.eg-floating-contact .eg-floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-width: 112px;
    height: 48px;
    padding: 0 14px;

    border-radius: 12px;
    box-sizing: border-box;

    color: #fff !important;
    text-decoration: none !important;

    font-family: "Tajawal", sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;

    box-shadow: 0 5px 16px rgba(45,30,15,.18);

    transition: transform .25s ease, box-shadow .25s ease;
}

/* SVG icons */

.eg-floating-contact .eg-floating-btn svg {
    display: block;
    width: 23px;
    height: 23px;
    flex-shrink: 0;
}

/* Call button */

.eg-floating-contact .eg-floating-call {
    background: linear-gradient(135deg, #80501D, #493016);
    border: 1px solid rgba(255,255,255,.18);
}

.eg-floating-call svg {
    width: 22px;
    height: 22px;
}

/* WhatsApp button */

.eg-floating-contact .eg-floating-whatsapp {
    background: #25D366;
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 5px 17px rgba(37,211,102,.25);
}

.eg-floating-whatsapp svg {
    width: 25px;
    height: 25px;
}

/* Hover */

.eg-floating-contact .eg-floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45,30,15,.25);
}

.eg-floating-contact .eg-floating-whatsapp:hover {
    background: #1EBE5D;
}

.eg-floating-contact .eg-floating-call:hover {
    background: #80501D;
}

/* WhatsApp pulse */

.eg-floating-whatsapp {
    position: relative;
    isolation: isolate;
}

.eg-floating-whatsapp::after {
    content: "";
    position: absolute;
    inset: -4px;
    z-index: -1;
    border: 1px solid rgba(37,211,102,.55);
    border-radius: 15px;
    animation: eg-wa-pulse 2.8s ease-out infinite;
    pointer-events: none;
}

@keyframes eg-wa-pulse {
    0% {
        transform: scale(1);
        opacity: .65;
    }
    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 600px) {
    .eg-floating-contact {
        left: 12px;
        bottom: 17px;
        gap: 8px;
    }

    .eg-floating-contact .eg-floating-btn {
        min-width: 101px;
        height: 43px;
        padding: 0 11px;
        gap: 8px;
        border-radius: 11px;
        font-size: 13px;
    }

    .eg-floating-contact .eg-floating-btn svg {
        width: 21px;
        height: 21px;
    }

    .eg-floating-contact .eg-floating-whatsapp svg {
        width: 23px;
        height: 23px;
    }
}

@media (max-width: 380px) {
    .eg-floating-contact {
        left: 9px;
        bottom: 13px;
        gap: 7px;
    }

    .eg-floating-contact .eg-floating-btn {
        min-width: 92px;
        height: 40px;
        padding: 0 9px;
        gap: 7px;
        font-size: 12px;
        border-radius: 10px;
    }

    .eg-floating-contact .eg-floating-btn svg {
        width: 19px;
        height: 19px;
    }

    .eg-floating-contact .eg-floating-whatsapp svg {
        width: 21px;
        height: 21px;
    }
}

/* Touch devices */

@media (hover: none) {
    .eg-floating-contact .eg-floating-btn:hover {
        transform: none;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .eg-floating-whatsapp::after {
        animation: none;
    }
}
