.whatsapp-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1030;
    font-family: Poppins, Arial, sans-serif;
}

.whatsapp-fab {
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    background: #06b659;
    color: #fff;
    box-shadow: 0 12px 28px rgba(4, 79, 57, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus {
    background: #04a851;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(4, 79, 57, 0.35);
    outline: none;
}

.whatsapp-fab i {
    font-size: 34px;
    line-height: 1;
}

.whatsapp-chat {
    position: absolute;
    right: 0;
    bottom: 82px;
    width: min(420px, calc(100vw - 32px));
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.98);
    transform-origin: right bottom;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.whatsapp-widget.is-open .whatsapp-chat {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-chat-header {
    background: #06b659;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
}

.whatsapp-chat-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #049c4e;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14), 0 6px 14px rgba(0, 0, 0, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 0;
}

.whatsapp-chat-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.whatsapp-chat-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.whatsapp-chat-subtitle {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.92;
}

.whatsapp-chat-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    padding: 4px;
}

.whatsapp-chat-close:hover,
.whatsapp-chat-close:focus {
    opacity: 1;
    outline: none;
}

.whatsapp-chat-body {
    min-height: 142px;
    padding: 26px 24px;
    background-color: #eee7dc;
    background-image:
        radial-gradient(circle at 20px 20px, rgba(4, 79, 57, 0.06) 0 2px, transparent 3px),
        radial-gradient(circle at 64px 46px, rgba(4, 79, 57, 0.05) 0 1px, transparent 2px);
    background-size: 78px 78px;
}

.whatsapp-message {
    width: fit-content;
    max-width: 270px;
    border-radius: 8px;
    background: #fff;
    color: #273238;
    padding: 14px 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.whatsapp-message strong {
    display: block;
    color: #8b8f94;
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.whatsapp-message span {
    display: block;
    font-size: 15px;
    line-height: 1.35;
}

.whatsapp-chat-footer {
    padding: 18px 24px 24px;
    background: #fff;
}

.whatsapp-start {
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    background: #06b659;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.whatsapp-start:hover,
.whatsapp-start:focus {
    background: #04a851;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 575px) {
    .whatsapp-widget {
        right: 16px;
        bottom: 16px;
    }

    .whatsapp-fab {
        width: 58px;
        height: 58px;
    }

    .whatsapp-fab i {
        font-size: 30px;
    }

    .whatsapp-chat {
        bottom: 74px;
    }

    .whatsapp-chat-header {
        padding: 18px;
    }

    .whatsapp-chat-body {
        padding: 22px 18px;
    }

    .whatsapp-chat-footer {
        padding: 16px 18px 20px;
    }
}
