﻿
.whatsapp-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 50px;
    background-color: #3fd97f;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 0 0 rgba(63, 217, 127, 0.7);
    animation: pulse 1.5s infinite;
    cursor: pointer;
    border: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(63,217,127,0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(63,217,127,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(63,217,127,0);
    }
}

.whatsapp-chatbox {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: min(300px, calc(100vw - 32px));
    max-height: calc(100vh - 110px);
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
    z-index: 9999;
    overflow-y: auto;
}

.chat-header {
    background-color: #3fd97f;
    color: white;
    padding: 12px;
    font-size: 14px;
    position: relative;
}

    .chat-header .close-btn {
        position: absolute;
        top: 10px;
        right: 12px;
        cursor: pointer;
        font-size: 22px;
        line-height: 1;
        color: white;
        background: transparent;
        border: none;
        padding: 0;
        width: 32px;
        height: 32px;
    }

    .chat-header p {
        margin-top: 5px;
        font-size: 13px;
    }

.chat-body {
    padding: 12px;
}

    .chat-body p {
        margin: 0 0 10px;
        font-size: 15px;
        color: #333;
    }

    .chat-body input[type="text"],
    .chat-body input[type="tel"],
    .chat-body input[type="email"] {
        width: 100%;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #ccc;
        font-size: 14px;
        box-sizing: border-box;
    }

.chat-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3fd97f;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: background .3s ease;
    border: none;
    cursor: pointer;
}

    .chat-button:hover {
        background-color: #34c570;
    }

    .whatsapp-launcher:focus-visible,
    .close-btn:focus-visible,
    .chat-button:focus-visible {
        outline: 3px solid #145c35;
        outline-offset: 3px;
    }

    .chat-button img {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

@media (max-width: 420px) {
    .whatsapp-launcher {
        right: 16px;
        bottom: 16px;
        width: 140px;
        height: 48px;
        font-size: 16px;
    }

    .whatsapp-chatbox {
        left: 12px;
        right: 12px;
        bottom: 76px;
        width: auto;
        max-height: calc(100vh - 92px);
        border-radius: 10px;
    }
}


