.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.5s ease;
}

.whatsapp-widget.show {
    transform: translateX(0);
    opacity: 1;
}

.whatsapp-widget > .logo-container {
    padding: 10px;
    background-color: #1bd741;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.whatsapp-widget > .logo-container:hover {
    transform: scale(1.1);
}

.whatsapp-widget > .logo-container > .mark {
    width: 10px;
    height: 10px;
    background-color: red;
    display: block;
    position: absolute;
    border-radius: 50%;
    top: 5px;
    right: 5px;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s ease;
}

.whatsapp-widget > .logo-container > .mark.show {
    transform: scale(1);
    opacity: 1;
}

.whatsapp-widget > .logo-container > img.logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.whatsapp-widget > .chat-container {
    position: absolute;
    width: 400px;
    height: auto;
    bottom: 90px;
    right: 0;
    display: none;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.5s ease;
}

.whatsapp-widget > .chat-container.show {
    transform: translateX(0);
    opacity: 1;
}

.whatsapp-widget > .chat-container::after {
    box-shadow: 0 14px 28px rgba(117, 117, 117, 0.25), 0 10px 10px rgba(138, 138, 138, 0.22);
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    z-index: -1;
}

.whatsapp-widget > .chat-container > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #008069;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    position: relative;
    z-index: 1;
}

.whatsapp-widget > .chat-container > header > div > .user-logo-container {
    position: relative;
}

.whatsapp-widget > .chat-container > header .name {
    color: white;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.whatsapp-widget > .chat-container > header .status {
    color: white;
    margin: 0;
    font-size: 14px;
}

.whatsapp-widget > .chat-container > header > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

.whatsapp-widget > .chat-container > header > .close {
    align-self: baseline;
    cursor: pointer;
    color: white;
    font-size: 20px;
    opacity: 50%;
    transition: opacity 0.3s ease;
}

.whatsapp-widget > .chat-container > header > .close:hover {
    opacity: 100%;
}

.whatsapp-widget > .chat-container > header > div > .user-logo-container > img.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.whatsapp-widget > .chat-container > header > div > .user-logo-container > .mark-available {
    width: 10px;
    height: 10px;
    background-color: #4ad504;
    border: 1px solid green;
    display: block;
    position: absolute;
    border-radius: 50%;
    bottom: 0;
    right: 0;
}

.whatsapp-widget > .chat-container > section {
    background-size: 500px;
    border-radius: 0 0 15px 15px;
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.whatsapp-widget > .chat-container > section > small {
    color: #a6a6a6;
    text-align: center;
    width: 100%;
    font-size: 12px;
}

.whatsapp-widget > .chat-container > section chat {
    background-color: white;
    padding: 10px;
    border-radius: 0 10px 10px 10px;
    position: relative;
    margin: 15px 0;
    display: inline-block;
    max-width: 80%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.whatsapp-widget > .chat-container > section chat.show {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-widget > .chat-container > section chat::after {
    content: "";
    position: absolute;
    left: -7px;
    transform: rotate(-90deg);
    top: -2px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 20px solid white;
    border-radius: 0 4px 0 0;
}

.whatsapp-widget > .chat-container > section > .btn-container {
    width: 100%;
    text-align: center;
    margin: 25px 0 10px 0;
    position: relative;
    z-index: 2;
}

.whatsapp-widget > .chat-container > section > .btn-container > a {
    text-decoration: none;
    color: white;
    width: 75%;
    background-color: #1bd741;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.whatsapp-widget > .chat-container > section > .btn-container > a:hover {
    transform: scale(1.02);
}

.whatsapp-widget > .chat-container > section > .btn-container > a.pulse {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.whatsapp-widget > .chat-container > section > .btn-container > a > img {
    width: 35px;
    height: 35px;
    margin-top: -3px;
}

@media (max-width: 576px) {
    .whatsapp-widget > .chat-container {
        width: 100vw !important;
        height: 100vh !important;
        bottom: -30px !important;
        right: -30px !important;
    }

    .whatsapp-widget > .chat-container section {
        height: 100vh !important;
    }

    .whatsapp-widget > .chat-container header {
        border-radius: 0 !important;
    }

    .whatsapp-widget > .chat-container .close{
        font-size: 5vh !important;
    }
}
