.cw-whatsapp-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cw-whatsapp-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cw-whatsapp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.cw-whatsapp-button svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

.cw-whatsapp-popup {
    position: absolute;
    right: 0;
    bottom: 80px;
    width: 320px;
    max-width: 90vw;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.cw-whatsapp-popup.cw-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cw-whatsapp-header {
    display: flex;
    align-items: center;
    padding: 20px 15px;
    background: #095e54;
    color: #ffffff;
}

.cw-whatsapp-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.cw-whatsapp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cw-whatsapp-header-text {
    flex: 1;
    min-width: 0;
}

.cw-whatsapp-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    max-width: 85%;
    line-height: normal;
}

.cw-whatsapp-subtitle {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 2px;
}

.cw-whatsapp-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    padding: unset;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cw-whatsapp-body {
    padding: 20px 12px 25px;
    background: #ece5dd;
    position: relative;
}

.cw-whatsapp-message {
    display: inline-block;
    max-width: 90%;
    padding: 12px 15px;
    border-radius: 8px;
    border-top-left-radius: 0;
    background: #ffffff;
    position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.cw-whatsapp-message p {
    line-height: 1.2;
    font-size: 14px;
}

.cw-whatsapp-message strong{
    font-weight: 600 !important;
}

.cw-whatsapp-message.text::before {
    position: absolute;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAmCAMAAADp2asXAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAACQUExURUxpccPDw9ra2m9vbwAAAAAAADExMf///wAAABoaGk9PT7q6uqurqwsLCycnJz4+PtDQ0JycnIyMjPf3915eXvz8/E9PT/39/RMTE4CAgAAAAJqamv////////r6+u/v7yUlJeXl5f///5ycnOXl5XNzc/Hx8f///xUVFf///+zs7P///+bm5gAAAM7Ozv///2fVensAAAAvdFJOUwCow1cBCCnqAhNAnY0WIDW2f2/hSeo99g1lBYT87vDXG8/6d8oL4sgM5szrkgl660OiZwAAAHRJREFUKM/ty7cSggAABNFVUQFzwizmjPz/39k4YuFWtm55bw7eHR6ny63+alnswT3/rIDzUSC7CrAziPYCJCsB+gbVkgDtVIDh+DsE9OTBpCtAbSBAZSEQNgWIygJ0RgJMDWYNAdYbAeKtAHODlkHIv997AkLqIVOXVU84AAAAAElFTkSuQmCC);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    top: 0px;
    left: -12px;
    width: 12px;
    height: 19px;
}

.cw-whatsapp-message.typing {
    background: #dcf8c6;
}

.cw-whatsapp-message.typing:after {
    border-right-color: #dcf8c6;
}

.cw-typing-dots span {
    display: inline-block;
    font-size: 18px;
    animation: cw-bounce 1s infinite;
}

.cw-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.cw-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes cw-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
    40% { transform: translateY(-3px); opacity: 1; }
}

.cw-whatsapp-message.text {
    display: none;
}

.cw-whatsapp-footer {
    padding: 10px 12px 12px;
    background: #ece5dd;
    position: relative;
}

.cw-whatsapp-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 999px;
    background: #25d366 !important;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    z-index: 5;
}

.cw-whatsapp-cta span {
    margin-left: 8px;
    color: #fff;
    font-weight: 400;
}

.cw-whatsapp-body::before {
    display: block;
    position: absolute;
    content: "";
    left: 0px;
    top: 0px;
    height: 100%;
    width: 100%;
    z-index: 0;
    opacity: 0.08;
    background-image: url('../img/whatsapp.png');
}

.cw-whatsapp-footer::after {
    display: block;
    position: absolute;
    content: "";
    left: 0px;
    top: 0px;
    height: 100%;
    width: 100%;
    z-index: 4;
    opacity: 0.08;
    background-image: url(../img/whatsapp.png);
}

.cw-whatsapp-footer::before {
    content: "";
    width: 60%;
    height: 2px;
    background: #fff;
    display: block;
    position: relative;
    bottom: 10px;
    margin: auto;
}

.single-product .cw-whatsapp-widget{
    display: none;
}

@media screen and (max-width:1024px){
    .cw-whatsapp-widget{
        bottom: 16px;
    }
}