/* WhatsApp Live Support CSS */

.whatsapp-support-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    font-family: 'Inter', sans-serif, 'Helvetica Neue', Arial;
}

/* Floating Button Styling */
.whatsapp-floating-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), 
                box-shadow 0.3s ease;
    animation: wa-pulse 3s infinite ease-in-out;
}

.whatsapp-floating-btn i {
    color: #fff;
    font-size: 34px;
}

.whatsapp-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    animation: none; /* Stop pulsing on hover */
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Popup Window Styling */
.whatsapp-popup-win {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    display: none; /* Initially hidden */
    transform-origin: bottom right;
    animation: wa-popup-show 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes wa-popup-show {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header Styling */
.whatsapp-popup-header {
    background-color: #075E54;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-popup-title {
    font-weight: 600;
    font-size: 16px;
}

.whatsapp-popup-close {
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.whatsapp-popup-close:hover {
    opacity: 1;
}

/* Body Styling */
.whatsapp-popup-body {
    padding: 20px;
    background-color: #fce7e7; /* Subtle off-white chat vibe */
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png'); /* Light WA pattern background */
    background-repeat: repeat;
    background-size: 100px;
}

.whatsapp-popup-welcome {
    background-color: #ffffff;
    padding: 12px 15px;
    border-radius: 0 15px 15px 15px;
    font-size: 14px;
    color: #444;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
    max-width: 90%;
}

/* CSS "bubble" tail */
.whatsapp-popup-welcome::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    border-top: 10px solid #fff;
    border-left: 10px solid transparent;
}

.whatsapp-user-input {
    width: 100%;
    height: 100px;
    padding: 15px;
    border-radius: 10px;
    border: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    font-size: 14px;
    margin-bottom: 15px;
    resize: none;
    outline: none;
}

.whatsapp-send-btn {
    width: 100%;
    padding: 12px;
    background-color: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, 
                background-color 0.2s ease;
}

.whatsapp-send-btn:hover {
    transform: translateY(-2px);
    background-color: #1ebe57;
}

.whatsapp-send-btn:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .whatsapp-popup-win {
        width: calc(100vw - 40px);
        bottom: 80px;
        right: -10px;
    }
}
