/* Chat with us */

.chatContact {
    &__btnWrapper {
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 9990;
    }
    &__btn {
        font-size: 16px;
        font-weight: 400;
        font-family: var(--body-font);
        display: inline-flex;
        text-transform: capitalize;
        align-items: center;
        text-align: center;
        gap: 5px;
        cursor: pointer;
        line-height: 20px;
        padding: 13px 25px;
        transition: all .3s;
        @include transition($transition);
        background-color: var(--main-color-one);
        color: var(--white-text);
        position: relative;
        z-index: 0;
        overflow: hidden;
        border: 1px solid transparent;
        border-radius: 30px;
        @include responsive(xs) {
            padding: 10px 20px;
            font-size: 15px;
        }
        @include responsive(vxxs) {
            padding: 10px 15px;
            font-size: 14px;
        }
        i,
        .material-symbols-outlined {
            font-size: 20px;
            line-height: 1;
        }
    }
    &__contents {
        background-color: var(--white-bg);
        border-radius: 10px;
        box-shadow: 0 0 10px var(--box-shadow-2);
        height: 540px;
        max-height: calc(100vh - 50px);
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transition: .2s ease-in;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: -1;
        max-width: 400px;
        @include responsive(xxs) {
            height: 100%;
            max-height: 100%;
            bottom: 0;
            right: 0;
            max-width: 100%;
        }
        &.showChat {
            visibility: visible;
            opacity: 1;
            z-index: 9992;
        }
        &__header {
            background-color: var(--main-color-one);
            padding: 30px 30px;
            position: relative;
            &__close {
                display: flex;
                align-items: center;
                gap: 5px;
                position: absolute;
                right: 20px;
                top: 20px;
                &__icon {
                    font-size: 24px;
                    line-height: 24px;
                    color: var(--white-text);
                    cursor: pointer;
                    i,
                    .material-symbols-outlined {
                        font-size: 24px;
                        line-height: 24px;
                    }
                }
            }
            &__main {
                max-width: 400px;
            }
            &__say {
                font-size: 50px;
                max-width: 50px;
                img {

                }
            }
            &__title {
                font-size: 20px;
                font-weight: 600;
                line-height: 24px;
                color: var(--white-text);
            }
            &__para {
                font-size: 14px;
                font-weight: 300;
                line-height: 20px;
                color: var(--white-text);
                opacity: .8;
            }
            &__team {
                padding-right: 50px;
                &__flex {
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    flex-wrap: wrap;
                }
                &__author {
                    display: flex;
                    align-items: center;
                    &__item {
                        max-width: 45px;
                        border: 2px solid var(--white);
                        border-radius: 50%;
                        transition: all .3s;
                        &:hover {
                            transform: scale(1.1);
                        }
                        &:not(:first-child) {
                            margin-left: -10px;
                        }
                        img {
                            border-radius: 50%;
                        }
                    }
                }
                &__name {
                    font-size: 18px;
                    font-weight: 600;
                    line-height: 28px;
                    color: var(--white-text);
                }
                &__activity {
                    font-size: 14px;
                    font-weight: 400;
                    line-height: 20px;
                    color: var(--white-text);
                    opacity: .8;
                }
            }
        }
        &__inner {
            background-color: var(--white-bg);
            // padding: 20px 0 20px 20px;
            padding: 20px 20px;
            max-height: 100%;
            min-height: 150px;
            overflow-y: auto;
            scrollbar-color: var(--white-bg) var(--white-bg);
            scrollbar-width: thin;
            flex: 1;
            @include responsive(xxs) {
                height: 100vh;
                max-height: 100%;
                flex: 1;
            }
            &::-webkit-scrollbar {
                background-color: var(--white-bg);
                &-thumb {
                    background-color: var(--white-bg);
                }
            }
            &__faq {
                width: 100%;
                &__flex {
                    display: inline-flex;
                    flex-direction: column;
                    justify-content: flex-start;
                    align-items: flex-end;
                    width: 100%;
                }
                &__item {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    padding: 7px 15px;
                    font-size: 15px;
                    line-height: 24px;
                    color: var(--main-color-one);
                    border: 1px solid var(--main-color-one);
                    background-color: rgba(var(--main-color-one-rgb), .1);
                    border-radius: 30px;
                    cursor: pointer;
                    transition: all .3s;
                    &:not(:first-child) {
                        margin-top: 10px;
                    }
                    &:hover {
                        background-color: var(--main-color-one);
                        color: var(--white-text);
                    }
                }
            }
            &__chat {
                &__item {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    justify-content: end;
                    width: 100%;
                    gap: 10px;
                    &.chatReply {
                        justify-content: flex-start;
                        .chatContact {
                            &__contents {
                                &__inner {
                                    &__chat {
                                        &__item {
                                            &__para {
                                                background-color: var(--border-color);
                                                color: var(--heading-color);
                                                border-radius: 0 10px 10px 10px;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                    &:not(:first-child) {
                        margin-top: 10px;
                    }
                    &__para {
                        font-size: 14px;
                        line-height: 20px;
                        font-weight: 400;
                        background-color: var(--main-color-one);
                        padding: 7px 15px;
                        border-radius: 10px 0 10px 10px;
                        color: var(--white-text);
                    }
                }
            }
            &__form {
                padding: 20px;
                @include responsive(xxs) {
                    height: 100vh;
                    max-height: 100%;
                    -webkit-box-flex: 1;
                    -ms-flex: 1;
                    flex: 1;
                }
            }
        }
        &__footer {
            padding: 10px 20px 20px;
            border-top: 1px solid var(--border-color);
            flex-shrink: 0;
            &__bottom {
                display: flex;
                align-items: center;
                justify-content: space-between;
                &__left {
                    flex-grow: 1;
                    display: flex;
                    align-items: flex-end;
                    gap: 10px;
                }
                &__right {
                    flex-shrink: 0;
                }
            }
            &__input {
                textarea {
                    width: 100%;
                    height: 50px;
                    line-height: 20px;
                    padding: 10px 0px;
                    border: 0;
                    background-color: unset;
                    outline: none;
                    color: var(--paragraph-color);
                    -webkit-transition: 300ms;
                    transition: 300ms;
                    appearance: none;
                    resize: none;
                    &:focus {
                        background-color: var(--white-bg);
                    }
                }
            }
            &__icon {
                font-size: 22px;
                line-height: 22px;
                color: var(--paragraph-color);
                transition: all .3s;
                i,
                .material-symbols-outlined {
                    font-size: 22px;
                    line-height: 22px;
                }
                &:hover {
                    color: var(--main-color-one);
                }
                &.attachment {
                    position: relative;
                    cursor: pointer;
                    .inputTag {
                        position: absolute;
                        left: 0;
                        top: 0;
                        height: 100%;
                        width: 100%;
                        cursor: pointer;
                        opacity: 0;
                        color: var(--paragraph-color);
                    }
                    &::before {
                        content: "\e2bc";
                        font-family: 'Material Symbols Outlined';
                        font-size: 20px;
                        font-weight: 700;
                        height: 100%;
                        width: 100%;
                        color: var(--paragraph-color);
                    }
                }
            }
            .chatSumbit {
                display: flex;
                align-items: center;
                justify-content: center;
                height: 40px;
                width: 40px;
                background-color: var(--search-bg);
                color: var(--paragraph-color);
                font-size: 24px;
                line-height: 24px;
                transition: all .3s;
                border-radius: 50%;
                i, 
                .material-symbols-outlined {
                    font-size: 24px;
                    line-height: 24px;
                }
                &:hover {
                    background-color: var(--main-color-one);
                    color: var(--white);
                }
            }
        }
    }
}

