.allChatIndex{
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 100;
    .allChatIndexBlock{
        position: relative;
        .chatButtons{
            display: grid;
            justify-items: center;
            .text{
                font-size: .7rem;
                font-weight: 300;
                color: white;
                border-radius: 5px;
                background: $green;
                margin-bottom: 5px;
                padding: 2px 5px;
                border: 2px solid white;
                box-shadow: 0 0 20px rgba(0,0,0,.3);
            }
            .chatButton{
                background: $green;
                width: 3.5rem;
                height: 3.5rem;
                border-radius: 100%;
                cursor: pointer;
                border: 2px solid white;
                animation: pulse 1.5s infinite;
                box-shadow: 0 0 20px rgba(0,0,0,.3);
                i{
                    display: grid;
                    align-items: center;
                    justify-content: center;
                    svg{
                        width: 1.5rem;
                        height: 1.5rem;
                        fill: white;
                    }
                }
            }
            @keyframes pulse {
                0% {
                    transform: scale(1);
                    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
                }
                70% {
                    transform: scale(1.1);
                    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
                }
                100% {
                    transform: scale(1);
                    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
                }
            }
        }
        .chatContents{
            position: absolute;
            bottom: calc(100% + 20px);
            right: 0;
            display: none;
            z-index: 100;
            width: 30rem;
            border: 1px solid $border1;
            border-radius: 10px;
            background: $backHome;
            box-shadow: 0 0 15px rgba(0,0,0,.1);
            overflow: hidden;
            .chatContent{
                .header{
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    gap: .5rem;
                    padding: 1rem;
                    background: $green;
                    .title2{
                        color: white;
                        font-size: 1.2rem;
                        font-weight: 700;
                    }
                    .leftHeader{
                        display: flex;
                        justify-content: left;
                        gap: .5rem;
                    }
                    i{
                        display: grid;
                        align-items: center;
                        justify-content: center;
                        cursor: pointer;
                        svg{
                            width: 1.3rem;
                            height: 1.3rem;
                            fill: white;
                        }
                    }
                }
                .body{
                    overflow-y: scroll;
                    height: 55vh;
                    padding: 1rem;
                    p{
                        font-size: .8rem;
                        font-weight: 300;
                        color: $text1;
                        opacity: .7;
                        .closeChats{
                            padding: .2rem .4rem;
                            background: red;
                            color: white;
                            border-radius: 5px;
                            font-size: .7rem;
                            cursor: pointer;
                            display: none;
                        }
                    }
                    .choice{
                        display: grid;
                        padding: .8rem;
                        border: 1px solid #bbb;
                        font-size: .9rem;
                        font-weight: 300;
                        color: $text1;
                        margin-top: .5rem;
                        border-radius: 5px;
                        cursor: pointer;
                        transition: all .3s ease-in-out;
                        &:hover{
                            color: $green;
                            border: 1px solid $green;
                        }
                    }
                    .login{
                        display: grid;
                    }
                    .bodyLabel{
                        display: grid;
                        grid-template-columns: 1fr;
                        grid-gap: .5rem;
                        font-size: .9rem;
                        font-weight: 300;
                        color: $text1;
                        margin-top: 1rem;
                        input,select,textarea{
                            background: $backHome;
                            border: 1px solid $border1;
                            padding: 0.3rem .5rem;
                            color: $text1;
                            border-radius: 5px;
                            font-size: .9rem;
                            font-weight: 300;
                            width: 100%;
                            transition: all .3s ease-in-out;
                        }
                    }
                    .messages{
                        padding: .5rem;
                        border: 2px solid $green;
                        border-radius: 5px;
                        margin-top: 1rem;
                        font-size: .9rem;
                        font-weight: 300;
                        color: $text1;
                        opacity: .7;
                        .time{
                            text-align: left;
                            font-size: .7rem;
                        }
                    }
                    .me{
                        border: 2px solid #bbb;
                    }
                    .submit{
                        font-size: .9rem;
                        font-weight: 500;
                        color: $green;
                        text-align: center;
                        background: transparent;
                        width: 100%;
                        border: 1px solid $green;
                        padding: .5rem 1rem;
                        border-radius: 5px;
                        margin-top: 1rem;
                        transition: all .3s ease-in-out;
                        &:hover{
                            background: $green;
                            color: white;
                        }
                    }
                    .sendImage{
                        background: white;
                        border-radius: 10px;
                        overflow: hidden;
                        display: grid;
                        grid-template-columns: 1fr;
                        justify-content: center;
                        box-shadow: 0 0 10px rgba(0,0,0,.05);
                        margin-top: 1rem;
                        .dropify-wrapper{
                            height: 100px;
                            border: 1px solid #eee !important;
                            .file-icon{
                                &:before{
                                    opacity: 0 !important;
                                    position: absolute !important;
                                    top: 0 !important;
                                    visibility: hidden !important;
                                }
                            }
                            .dropify-message{
                                position: relative !important;
                                top: auto !important;
                                margin-top: 2rem;
                            }
                            .dropify-message p{
                                margin: 0;
                                font-size: 1rem;
                                color: #00800082;
                            }
                        }
                    }
                }
                .send{
                    display: grid;
                    grid-template-columns: 1fr auto;
                    padding: .5rem;
                    grid-gap: .5rem;
                    input{
                        background: $backHome3;
                        border: 2px solid $border1;
                        padding: .5rem;
                        color: $text1;
                        font-size: 1rem;
                        font-weight: 300;
                        width: 100%;
                        border-radius: 5rem;
                        transition: all .3s ease-in-out;
                    }
                    button{
                        font-size: .9rem;
                        font-weight: 300;
                        color: white;
                        background: black;
                        border-radius: 5rem;
                        padding: 0 1rem;
                    }
                }
                .loginChat{
                    background: red;
                    border-top: 1px solid $border1;
                    padding: .5rem;
                    text-align: center;
                    font-size: .8rem;
                    font-weight: 300;
                    color: white;
                    display: grid;
                    width: 100%;
                }
                .typeLogin1{
                    margin-top: 1rem;
                    border-radius: 5px;
                }
            }
        }
    }
}
@media screen and (max-width: 700px) {
    .allChatIndex{
        z-index: 150;
        bottom: 5.5rem;
        right: .5rem;
        .allChatIndexBlock{
            position: relative;
            .chatButtons{
                .text{
                    display: none;
                }
            }
            .chatButton{
                width: 3rem;
                height: 3rem;
                border: 1px solid white;
                i{
                    svg{
                        width: 1.3rem;
                        height: 1.3rem;
                    }
                }
            }
            .chatContents{
                width: 100vw;
                position: fixed;
                top: 0;
                right: 0;
                left: 0;
                border-radius: 0;
                bottom: 0;
                .chatContent{
                    .header{
                        padding: .5rem;
                    }
                    .body{
                        padding: .5rem;
                        height: 88vh;
                    }
                }
            }
        }
    }
}
