/* KHAS WhatsApp Integration Styles */
.khas-whatsapp-float-wrap {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.khas-whatsapp-float-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
}

.khas-whatsapp-float-btn:hover {
    transform: scale(1.1) translateY(-3px);
    background-color: #20ba5a;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 6px 16px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.khas-whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: #ffffff;
    position: relative;
    z-index: 2;
}

/* Pulse animation effect */
.khas-whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0.7;
    z-index: 1;
    animation: khasWpPulse 2.5s infinite ease-out;
}

@keyframes khasWpPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Tooltip Badge */
.khas-whatsapp-tooltip {
    position: absolute;
    right: 72px;
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(203, 178, 106, 0.3); /* KHAS gold accent border touch */
    pointer-events: none;
}

.khas-whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #1a1a2e;
}

.khas-whatsapp-float-btn:hover .khas-whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .khas-whatsapp-float-wrap {
        bottom: 20px;
        right: 20px;
    }

    .khas-whatsapp-float-btn {
        width: 52px;
        height: 52px;
    }

    .khas-whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .khas-whatsapp-tooltip {
        display: none; /* Hide tooltip on small mobile screens to prevent overflow */
    }
}

@media (max-width: 360px) {
    .khas-whatsapp-float-wrap {
        bottom: 14px;
        right: 14px;
    }

    .khas-whatsapp-float-btn {
        width: 46px;
        height: 46px;
    }

    .khas-whatsapp-icon {
        width: 24px;
        height: 24px;
    }
}
