
.a21chat {
    position: relative;
}

.a21chat:hover .a21chat-body {
    display: block;
}

.a21chat-icon {
    position: fixed;
    width: 85px;
    height: 85px;
    bottom: 30px;
    right: 30px;
    cursor: pointer;
    z-index: 99;
    visibility: visible;
}

.a21chat-icon img {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    /* box-shadow: 5px 5px 5px rgb(0, 0, 0, 0.2); */
}

.a21chat-icon-in {
    display:none;
    box-shadow: none;
}

.a21chat-viaturas {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 120px;
    right: 40px;
    cursor: pointer;
    z-index: 99;
    visibility: visible;
    transition-duration: 0.5s;
    text-align: center;
}

.a21chat-viaturas.active {
    bottom: 460px;
}

.a21chat-viaturas img {
    object-fit: contain;
    height: 100%;
    width: auto;
}

.a21chat .area-visivel {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 85px;
    height: 440px;
    /* overflow: hidden; */
    border-radius: 45px;
    z-index: 10;
}

.a21chat-body {
    width: 85px;
    height: 440px;
    position: absolute;
    background: #ffffff;
    padding: 10px 0;
    max-width: 400px;
    margin: 0 auto;
    bottom: 0px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 45px;
    z-index: 20;
    transition-duration: 0.5s;
    ul {
        opacity: 1;
        transition-delay: 1s;
        transition: opacity 1s;
        list-style: none;
        padding: 0;
        margin: 0;

        li {
            margin-bottom: 15px;
            height: 55px;
            text-align: center;
            
            a {
                color: #000;
                text-decoration: none;
                img {
                    margin-bottom: -10px;
                }
            }
        }
    }
    img {
        opacity: 1;
        transition-delay: 1s;
        transition: opacity 1s;
        max-width: 100%;
        margin-bottom: 0px;
        margin-top: 10px;
    }
}

.a21chat-body-hidden{
    visibility: hidden;
    width: 85px;
    height: 85px;
    transition-duration: 0.5s;
    ul {
        opacity: 0;
        transition-delay: 0.5s;
        transition: opacity 0.5s;
    }
    img {
        opacity: 0;
        transition-delay: 0.5s;
        transition: opacity 0.5s;
    }
}

.a21chat-logo {
    text-align: center;
    img {
        height: 45px !important;
    }
}

.a21chat-body li {
    height: 55px;
    text-align: center;
    p {
        padding: 10px 0px 0px 0px;
        font-size: 10px;
        text-align: center;
        margin: 0px;
        color: #000000!important;
        line-height: 120%!important;
    }
    img {
        max-width: 40px;
        max-height: 40px;
        padding: 2px;
        margin-bottom:-5px;
    }
}

.a21chat-close {
    display: inline-block;
    position: relative;
    top: -33px;
    right: -10px;
    font-size: 26px;
    font-weight: 900;
    float: right;
    cursor: pointer;
    padding: 5px 10px;
    margin-bottom: -39px;
}

.area-contactos {
    position: absolute;
    /*
    transform: translateX(-100%) translateY(-50%);
    top: 50%;
    */
    transform: translateX(calc(-100% + 5px));
    margin-right: 0;
    bottom: 0;
    /* fim */
    background-color: transparent;
    padding-right: 20px;
    height: fit-content;
    transition: all 0.5s ease-in-out;
    width: fit-content;
    opacity: 1;
    

    &.a21chat-contactos-hidden {
        opacity: 0;
        transform: translateX(100%) translateY(-50%);
        transition: all 0.5s ease-in-out;
    }

    .area-contactos-inner {
        background-color: #002D72;
        border-radius: 30px;
        padding: 25px;
        border: 1px solid rgba(0, 0, 0, 0.2);
    }

    .a21chat-contacto {
        display: flex;
        margin-bottom: 10px;
        min-width: 300px;
        background-color: #ffffff;
        padding: 10px;
        border-radius: 20px;

        &:last-of-type {
            margin-bottom: 0;
        }

        .contacto-wrapper {
            height: 80px;
            width: 80px;
            min-width: 80px;
            border-radius: 10px;
            overflow: hidden;
            margin: 0 15px 0 0;

            .contacto-img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }

        .contacto-conteudo {
            &.retoma {
                text-align: center;
                width: 100%;

                .phone-icons {
                    justify-content: center;

                    .phone-icon {
                        margin: 0!important;
                    }
                }
            }

            h5 {
                font-size: 16px;
                line-height: 20px;
                font-weight: 600;
                white-space: nowrap;
                margin-bottom: 0;
                color: #000!important;
            }

            .telefone-disclaimer {
                font-size: 10px;
                line-height: 12px;
                color: #ccc!important;
                margin-bottom: 5px;
                margin-top: 0;
                margin-bottom: 0;
            }

            .telefone {
                color: #000!important;
                text-decoration: none;
                font-size: 16px;
                line-height: 20px;
                margin-bottom: 0;
                white-space: nowrap;
            }

            .phone-icons {
                display: flex;

                .phone-icon {
                    margin-right: 10px;

                    a {
                        transition: all 0.3s ease;
                        
                        &:hover {
                            transform: scale(1.1);
                        }
                    }

                    img {
                        height: 25px;
                        width: 25px;
                    }

                    i {
                        font-size: 18px;
                        line-height: 130%;
                        color: #002D72;
                    }
                }
            }
        }
    }
}


@media (max-width: 991px) {

    .a21chat-icon {
        bottom: 100px;
        width: 50px;
        height: 50px;
        right: 15px;
    }

    .a21chat-viaturas {
        width: 50px;
        height: 50px;
        bottom: 153px;
        right: 15px;
    }

    .a21chat-viaturas.active {
        bottom: 465px;
    }

    .a21chat .area-visivel {
        bottom: 100px;
        width: 50px;
        height: 310px;
        right: 15px;
    }

    .a21chat-body {
        width: 50px;
        padding: 10px 5px;
        height: 375px;

        li {
            margin-bottom: 10px!important;

            p {
                font-size: 7px;
            }

            img {
                margin-top: 0;
            }
        }
    }

    .a21chat-body-hidden {
        height: 50px;
    }

    .area-contactos {
        .a21chat-contacto {
            min-width: unset;
        }
    }
}