/* WhatsApp Chat Widget Styles - Expert UI Refinement */
.whatsapp-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #16cba7;
    /* RAMP Green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: launcherPulse 2s infinite;
}

@keyframes launcherPulse {
    0% {
        box-shadow: rgba(22, 203, 167, 0) 0px 0px 0px 0px;
    }

    70% {
        box-shadow: rgba(22, 203, 167, 0.4) 0px 4px 12px 0px, rgba(22, 203, 167, 0.1) 0px 0px 0px 10px;
    }

    100% {
        box-shadow: rgba(22, 203, 167, 0) 0px 0px 0px 0px;
    }
}

.whatsapp-launcher:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: rgba(22, 203, 167, 0.5) 0px 8px 20px 0px;
}

.whatsapp-launcher i {
    color: #fff;
    font-size: 28px;
}

.whatsapp-widget {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 310px;
    /* Reduced width for elegance */
    background: #ffffff;
    border-radius: 20px;
    /* Layered "Expert" Shadow for depth */
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.02),
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 10px 15px rgba(0, 0, 0, 0.03),
        0 20px 25px rgba(0, 0, 0, 0.03),
        0 30px 50px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.whatsapp-widget.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.whatsapp-header {
    background: #ffffff;
    padding: 20px 20px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.whatsapp-profile {
    position: relative;
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-profile i {
    font-size: 20px;
}

.whatsapp-status {
    display: flex;
    flex-direction: column;
}

.whatsapp-header h4 {
    margin: 0;
    font-size: 15px;
    color: #0f172a;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #10b981;
    font-weight: 400;
}

.online-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
}

/* Pulsing effect for "Expert" touch */
.online-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: onlinePulse 2s infinite;
}

@keyframes onlinePulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.whatsapp-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(0, 0, 0, 0.03);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 16px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.whatsapp-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #64748b;
}

.whatsapp-body {
    padding: 20px;
    background: #fbfcfe;
}

.message-bubble {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    border-top-left-radius: 2px;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
    max-width: 95%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.whatsapp-footer {
    padding: 4px 20px 20px;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #10b981;
    color: #ffffff;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.whatsapp-btn i {
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .whatsapp-widget {
        left: 16px;
        right: 16px;
        width: auto;
        bottom: 88px;
    }

    .whatsapp-launcher {
        bottom: 20px;
        right: 20px;
    }
}