
.whatsapp-icon, .whatsappme__box {
    -webkit-transition: all 0.35s cubic-bezier(.25,.8,.25,1);
    -moz-transition: all 0.35s cubic-bezier(.25,.8,.25,1);
    -o-transition: all 0.35s cubic-bezier(.25,.8,.25,1);
    transition: all 0.35s cubic-bezier(.25,.8,.25,1);
}

.whatsapp-container {
    z-index: 999;
    position: fixed;
    bottom: 90px;
    left: 8px;
}

@media (min-width: 768px) {
    .whatsapp-container {
        bottom: 24px;
    }
}

.whatsapp-icon {
    opacity: 0;
    visibility: hidden;
    z-index: 2;
    bottom: 8px;
    padding: 0;
    line-height: 60px;
    right: 8px;
    height: 60px;
    min-width: 60px;
    max-width: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 100px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
    cursor: pointer;
    transform: scale(0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wpPulse 2.4s ease-out infinite;
}

    .whatsapp-icon svg {
        color: white !important;
        width: 30px;
        height: 30px;
    }

    .whatsapp-icon.open, .whatsappme__box.open {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

@keyframes wpPulse {
    0% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .55);
    }
    70% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsappme__box {
    visibility: hidden;
    opacity: 0;
    bottom: 5px;
    right: auto;
    left: 9px;
    z-index: -1;
    width: calc(100vw - 40px);
    max-width: 360px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 56px rgba(24, 24, 24, .25);
    overflow: hidden;
    position: absolute;
    transform: scale(0.3) translate(-15%, 25%);
    transform-origin: bottom left;
}

.whatsappme__header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 44px 22px 22px;
    background: linear-gradient(135deg, #25D366, #0f6d5f);
}

.whatsappme__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.whatsappme__avatar {
    position: relative;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    overflow: visible;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}

    .whatsappme__avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }

.whatsappme__avatar-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4ADE80;
    border: 3px solid #1c9c81;
}

.whatsappme__brand-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.whatsappme__brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whatsappme__brand-status {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .92);
}

.whatsappme__close {
    position: absolute;
    top: 14px;
    right: 14px;
    margin: 0;
    border: 0;
    font-size: 18px;
    line-height: 1;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    cursor: pointer;
    transition: background 200ms ease-out;
}

    .whatsappme__close:hover {
        background: rgba(255, 255, 255, .38);
    }

.whatsappme__message {
    border: 0;
    position: relative;
    padding: 14px 16px;
    margin: 20px 20px 8px;
    border-radius: 4px 16px 16px 16px;
    background-color: #F0F2F5;
    color: #2f2f2f;
    font-size: 14px;
    line-height: 1.55;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.whatsappme__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 20px 22px;
    padding: 14px 18px;
    border-radius: 999px;
    background-color: var(--primary, #591734);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform 200ms ease-out, box-shadow 200ms ease-out;
    box-shadow: 0 10px 22px rgba(89, 23, 52, .38);
}

    .whatsappme__cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(89, 23, 52, .48);
        color: #fff;
    }

    .whatsappme__cta svg {
        color: #25D366;
    }
