.floating-wpp {
    position: fixed;
    bottom: 15px;
    left: 15px;
    font-size: 14px;
    transition: bottom .2s
}



.floating-wpp .floating-wpp-button {
    position: relative;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    /* overflow: hidden; */
    background: #25D366;
}

.floating-wpp .floating-wpp-button.has-msg{
    animation: whatsappPulse 3s infinite;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 82, 82, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.2);
    animation: wpbadgePulse 2s infinite;
    z-index: 3;
}
.notification-badge.small {
    width: 16px;
    height: 16px;
}
@keyframes wpbadgePulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

  @keyframes whatsappPulse {
            0% {
                transform: scale(1);
                box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5), 0 0 0 10px rgba(37, 211, 102, 0);
            }
            100% {
                transform: scale(1);
                box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
            }
        }

.floating-wpp .floating-wpp-button img,.floating-wpp .floating-wpp-button svg {
    position: absolute;
    width: 100%;
    height: auto;
    object-fit: cover;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%,-50%,0);
    border-radius: 50px;
}

.floating-wpp:hover {
    bottom: 17px
}

.floating-wpp:hover .floating-wpp-button {
    box-shadow: 1px 2px 8px rgba(60,60,60,.4)
}

.floating-wpp .floating-wpp-popup {
    border-radius: 6px;
    background-color: #E5DDD5;
    position: absolute;
    overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 0;
    box-shadow: 1px 2px 8px rgba(60,60,60,.25);
    width: 0;
    height: 0;
    bottom: 0;
    opacity: 0;
    transition: bottom .1s ease-out,opacity .2s ease-out;
    transform-origin: bottom
}

.floating-wpp .floating-wpp-popup.active {
    /* padding: 0 12px 12px; */
    width: 260px;
    height: auto;
    bottom: 82px;
    opacity: 1
}

.floating-wpp .floating-wpp-popup .floating-wpp-message {
    color: #303030;
    padding: 8px;
    border-radius: 18px;
    opacity: 0;
    transition: opacity .2s
}

.floating-wpp .floating-wpp-popup.active .floating-wpp-message {
    opacity: 1;
    transition-delay: .2s
}

.floating-wpp .floating-wpp-popup .floating-wpp-head {
    text-align: right;
    color: #fff;
    margin: 0 -15px 10px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

.floating-wpp .floating-wpp-input-message {/* background: #f8f8f8; */padding: 12px;display: flex;align-items: center;gap: 8px;border-top: 1px solid #e0e0e0;background: #f8f8f8;}
.floating-wpp .floating-wpp-input-message textarea {
    flex: 1;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 10px 16px;
    padding-top: 14px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: all 0.2s;
    line-height: 1.4;
    max-height: 100px;
}

.floating-wpp .floating-wpp-btn-send {
    width: 40px;
    height: 40px;
    background: #25D366;
    border-radius: 50%;
    display: flex
;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.floating-wpp .floating-wpp-btn-send svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.floating-wpp .floating-wpp-btn-send:hover {
background: #128C7E;
    transform: scale(1.1);
}

.floating-wpp .floating-wpp-btn-send:active {
    transform: scale(0.95);
}
.floating-wpp {
    z-index: 9999!important
}

.chat-head {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    margin: 0 10px;
}

.chat-head .user-image img {
    height: 48px;
    width: 48px;
    padding: 8px;
    border-radius: 20px;
    position: relative;
    display: flex
;
    justify-content: center;
    align-items: center;
    object-fit: contain;
    background-color: #ffffff57;
}

.chat-head .store-info span {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #fff
}

.chat-head .store-info {
    margin-left: 1rem;
    max-width: 144px;
}

.floating-wpp .floating-wpp-input-message textarea,.floating-wpp .floating-wpp-input-message textarea:focus {
    outline: 0!important;
}
.floating-wpp .floating-wpp-input-message textarea:focus{
    border-color: #25d366;
}

.floating-wpp .floating-wpp-btn-send:hover {
    opacity: 1
}

.chat-head .store-info p {
    font-size: 10px;
    margin: 0;
    padding: 0;
    opacity: .75;
    left: 3px;
    position: relative
}

.floating-wpp-head .close {
    background: rgb(255 255 255 / 10%);
    border: none;
    color: #ffffff9e;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    line-height: 0;
    transition: all 0.2s ease;
    z-index: 1;
    left: -10px;
    top: 8px;
    padding-top: 0;
    position: relative;
}
.floating-wpp-head .close:hover {
    background: #ffffff8f;
    color: #fff;
}

.floating-wpp .floating-wpp-popup {
    border-radius: 16px;
    background: #f0f0f0;
    box-shadow: 1px 2px 20px 4px rgb(60 60 60 / 12%);
}

.floating-wpp .floating-wpp-popup .floating-wpp-message {
    padding: 20px;
    background: #fff;
    margin-bottom: 5rem;
    border: 0;
    margin: 20px;
    margin-top: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 5rem;
    position: relative;
    box-shadow: 1px 1px 5px 0px #e5e5e5eb;
}

.floating-wpp .floating-wpp-popup .floating-wpp-message:before {
        content: '';
        position: absolute;
        top: -8px;
        left: 20px;
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid #fff;
}

.floating-wpp .floating-wpp-popup.active {
    /* padding: 0 14px 14px; */
    width: 300px;
}

@media screen and (max-width: 590px) {
    .floating-wpp .floating-wpp-popup.active {
        position:fixed;
        z-index: 99999;
        width: 80%;
        bottom: 65px;
        right: 10px!important
    }

    .floating-wpp .floating-wpp-input-message {
        position: absolute;
        bottom: 0;
        width: 100%
    }

    .floating-wpp .floating-wpp-popup .floating-wpp-message {
        margin-bottom: 150px;
    }
    
}
