/* ================================================
   WhatsApp Floating Button + Wave Ripple Effect
   ================================================ */

.wa-float {
    position: fixed;
    bottom: 30px;
    right: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none !important;
    outline: none;
}

/* ---- Ripple / Wave rings ---- */
.wa-float::before,
.wa-float::after,
.wa-float .wa-ring3 {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.40);
    animation: wa-ripple 2.6s ease-out infinite;
    z-index: 0;
}

.wa-float::after {
    animation-delay: 0.85s;
}

.wa-float .wa-ring3 {
    animation-delay: 1.7s;
}

@keyframes wa-ripple {
    0%   { transform: scale(1);   opacity: 0.75; }
    100% { transform: scale(2.8); opacity: 0;    }
}

/* ---- Icon image ---- */
.wa-float img {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: block;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.50);
}

.wa-float:hover img {
    transform: scale(1.13);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.70);
}

/* ---- Tooltip label ---- */
.wa-float .wa-label {
    position: absolute;
    right: 70px;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 3;
}

.wa-float .wa-label::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #1a1a1a;
    border-right: none;
}

.wa-float:hover .wa-label {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Mobile tweaks ---- */
@media (max-width: 576px) {
    .wa-float {
        bottom: 18px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
    .wa-float img {
        width: 52px;
        height: 52px;
    }
}

/* ================================================
   Back To Top Button
   ================================================ */

.back-to-top.scroll-to-target {
    position: fixed !important;
    bottom: 31px;
    left: 28px;
    z-index: 9999999998;
    width: 44px;
    height: 44px;
    background: #F05A49;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0;              /* hide any text */
    box-shadow: 0 4px 14px rgba(240, 90, 73, 0.45);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.scroll-to-target.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top.scroll-to-target i {
    font-size: 18px !important;
    display: block !important;
    line-height: 1;
    color: #fff;
}

.back-to-top.scroll-to-target:hover {
    background: #d44030;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(240, 90, 73, 0.55);
    color: #fff !important;
}

/* show/hide on scroll via JS class */
@media (max-width: 576px) {
    .back-to-top.scroll-to-target {
        bottom: 84px;
        right: 16px;
        width: 38px;
        height: 38px;
    }
}
