
.whatsapp-container {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9998;
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
    animation: slideIn 0.5s ease-out;
}

.whatsapp-pill {
    background-color: #64b161;
    padding: 0.625rem 0.9375rem;
    border-radius: 1.5625rem 1.5625rem 1.5625rem 0.5625rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;

}

.whatsapp-pill:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.375rem 0.875rem rgba(0, 0, 0, 0.25);
}

.whatsapp-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
    transition: all 0.3s ease;
}

.whatsapp-text {
    color: white;
    margin-left: 0.625rem;
    margin-right: 0.3125rem;
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
}

.whatsapp-close {
    position: absolute;
    right: -0.5rem;
    top: -0.625rem;
    width: 1.375rem;
    height: 1.375rem;
    background-color: white;
    border-radius: 50%;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0.125rem 0.3125rem rgba(0,0,0,0.2);
    transition: background-color 0.2s;
    line-height: 1;
    z-index: 2;
}

.whatsapp-close:hover {
    background-color: #f0f0f0;
    color: #000;
}


.whatsapp-container.collapsed .whatsapp-text {
    display: none;
}

.whatsapp-container.collapsed .whatsapp-close {
    display: none;
}

.whatsapp-container.collapsed .whatsapp-pill {
    padding: 0;
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    justify-content: center;
}

.whatsapp-container.collapsed .whatsapp-icon {
    width: 1.75rem;
    height: 1.75rem;
    margin: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 48rem) {
    .whatsapp-container {
        bottom: 0.9375rem;
        right: 0.9375rem;
    }
}
