﻿.chatmsg {
    position: relative;
    width: auto;
    height: auto;
    float: left;
    border-radius: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    padding:10px;
}

.chatmsginner {
    position: relative;
    width: auto;
    height: auto;
    float: left;
    max-width: 360px;
 }

.user {
    background-color: rgba(65, 105, 225,0.8);
    color: white;
    font-style: italic;
}

.xook {
    background-color: rgba(255,255,255,0.8);
    color: black;
}

.chatbkg {
    position: absolute;
    width: 100%;
    height: 100%;
    float: left;
    left: 0px;
    top: 0px;
    background-image: url("images/chatbkg.jpg");
    filter: blur(8px);
    -webkit-filter: blur(8px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.chatbkgsimple {
    position: absolute;
    width: 100%;
    height: 100%;
    float: left;
    left: 0px;
    top: 0px;
}


.xookimgcontainer {
    position: relative;
    width: 120px;
    height: auto;
    float: left;
}

.xookimg {
    position: relative;
    width: 100%;
    height: auto;
    float: left;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.inputcover {
    position: absolute;
    width: 100%;
    height: 120px;
    left: 0px;
    top: 0px;
    background-color: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
}

.chatcoverimg {
    width:150px;
    height:150px;
}

.xookyt {
    aspect-ratio: 4/3;
    position: relative;
    width: 100%;
    height: auto;
    float: left;
}

.xooksyt {
    aspect-ratio: 9/16;
    position: relative;
    width: 100%;
    height: auto;
    float: left;
}

.searchpage {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    background-color: rgba(255,255,255,.9);
}

.searchpageinner {
    position: relative;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    top: 10px;
    left: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.searchpagebar{
    position:absolute;
    width:100%;
    height:70px;
    top:0px;
    left:0px;
    background-color:white;
}

.searchbartitle{
    position:relative;
    width:calc(100% - 80px);
    height:70px;
    line-height:70px;
    float:left;
    font-size:22px;
    left:10px;
}

.searchbarcross{
    position:relative;
    width:70px;
    height:70px;
    line-height:70px;
    float:right;
    border-radius:50%;
    font-size:30px;
    text-align:center;

}

    .searchbarcross:hover{
        font-weight:bold;
        cursor:pointer;
    }

    @media only screen and (max-width: 768px) {
        /* For mobile: */
        .pc_chatbotcontainer {
        display: none;
    }

    .mobile_chatbotcontainer {
        display: none;
        position: absolute;
        width: calc(100% - 40px);
        height: calc(100% - 210px);
        left: 20px;
        top: 200px;
        background-color: lightgray;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.75);
        -webkit-box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.75);
        -moz-box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.75);
    }

    .chatbottitlebar {
        position: relative;
        width: 100%;
        height: 50px;
        float: left;
        background-color: black;
    }

    .chatbottitlebarinner {
        position: relative;
        width: calc(100% - 15px);
        height: calc(100% - 10px);
        float: left;
        left: 10px;
        top: 5px;
        overflow:hidden;
    }

    .chatbottitlebarname {
        position: relative;
        width: 100px;
        height: 40px;
        line-height: 40px;
        color: white;
        font-size: 16px;
        float: left;
    }

    .chatbotcorssbutton {
        position: relative;
        width: 60px;
        height: 40px;
        line-height: 40px;
        color: black;
        font-size: 18px;
        float: right;
        border-radius: 20px 0px 0px 20px;
        background-color: white;
        text-align: center;
        font-weight: bold;
    }

    .chatboatinner {
        position: relative;
        width: calc(100% - 20px);
        height: calc(100% - 70px);
        float: left;
        left: 10px;
    }

    .chatbotuserinputarea {
        position: relative;
        width: 100%;
        height: 120px;
        float: left;
        background-color: white;
        border-radius: 5px;
        overflow:hidden;
    }

    .chatinner {
        position: relative;
        width: calc(100% - 20px);
        height: auto;
        float: left;
        left: 10px;
    }

    .chatbotinput {
        position: relative;
        width: calc(100% - 20px);
        height: 50px;
        float: left;
        border-radius: 5px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        padding: 10px;
        font-size: 14px;
    }

    .chatbotbtn {
        position: relative;
        width: 60px;
        height: 25px;
        line-height: 25px;
        text-align: center;
        color: white;
        background-color: royalblue;
        border-radius: 15px;
        float: right;
        font-size: 12px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .chatmsgarea {
        position: relative;
        width: 100%;
        height: calc(100% - 130px);
        float: left;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .xookchatbtn {
        width: auto;
        height:auto;
        left:5px;
    }

    .searchcontentsegment {
        position: absolute;
        width: 100%;
        height: 100%;
        left:0px;
        top:0px;
    }


    .xookproducttile{
        position:relative;
        width:50%;
        height:auto;
        float:left;
    }

        .mobilechatbtncontainer {
            position: absolute;
            width: 150px;
            height: 150px;
            top: calc(100% - 170px);
            left: calc(100% - 170px);
        }

}

@media only screen and (min-width: 768px) {
    /* For desktop: */
    .pc_chatbotcontainer {
        position: relative;
        width: 400px;
        height: 100%;
        float: right;
        background-color: lightgray;
    }

    .mobile_chatbotcontainer {
        display: none;
    }

    .chatboatinner {
        position: relative;
        width: calc(100% - 20px);
        height: calc(100% - 20px);
        float: left;
        left: 10px;
    }


    .chatbotuserinputarea{
        position:relative;
        width:100%;
        height:120px;
        float:left;
        background-color:white;
        border-radius:5px;
        overflow:hidden;
    }

    .chatinner{
        position:relative;
        width:calc(100% - 20px);
        height:auto;
        float:left;
        left:10px;
    }
    
    .chatbotinput{
        position:relative;
        width:calc(100% - 20px);
        height:50px;
        float:left;
        border-radius:5px;
        font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        padding:10px;
        font-size:14px;
    }

    .chatbotbtn {
        position: relative;
        width: 60px;
        height: 25px;
        line-height: 25px;
        text-align: center;
        color: white;
        background-color: royalblue;
        border-radius: 15px;
        float: right;
        font-size: 12px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .chatbotbtn:hover{
        cursor:pointer;
        font-weight:bold;
    }
        



    .chatmsgarea{
        position:relative;
        width:100%;
        height:calc(100% - 130px);
        float:left;
        overflow-y:auto;
        overflow-x:hidden;
        font-size:12px;
    }

    .placeordercontainer{
        position:relative;
        width:200px;
        height:auto;
        float:left;
        font-size:12px;
    }

    .placeordertxt{
        position:relative;
        width:100%;
        height:auto;
        float:left;
    }

    .xookchatbtn{
        width:150px;
    }

    .searchcontentsegment {
        position: relative;
        width: calc(100% - 400px);
        height: 100%;
        float: left;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .xookproducttile{
        position:relative;
        width:33%;
        height:auto;
        float:left;
    }

    .mobilechatbtncontainer {
        display:none;
    }

}