#chatbot {
    right: 24px;
    bottom: 130px;
    position: fixed;
    z-index: 1001;
}

.chat-bot-icon {
    width: 85px;
    height: 85px;
    border-radius: 15%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.27);
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column;
    flex-flow: column;
    -webkit-box-shadow: 0 8px 14px rgba(36,88,110,.15);
    box-shadow: 0 8px 14px rgba(36,88,110,.15);
    cursor: pointer;
}

    .chat-bot-icon::before {
        width: 80px;
        height: 80px;
        content: "";
        display: block;
        background-image: url('https://static01-ipass.cdn.hinet.net/ipassweb/iPassWebV2/style2018/smsv.png');
        background-repeat: no-repeat;
        background-size: cover;
    }

    .chat-bot-icon::after {
        /* content: "\7DDA\4E0A\5BA2\670D";*/
        display: block;
        font-size: 12px;
        color: #737d82;
    }

.chat-bot-icon2 {
    width: 85px;
    height: 85px;
    border-radius: 15%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.27);
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column;
    flex-flow: column;
    -webkit-box-shadow: 0 8px 14px rgba(36,88,110,.15);
    box-shadow: 0 8px 14px rgba(36,88,110,.15);
    cursor: pointer;
}

    .chat-bot-icon2 img {
        width: 80px;
        height: 80px;
        /*content: "";*/
        display: block;
    }

#contract_window {
    display: none;
    width: 358px;
    height: 348px;
    position: absolute;
    right: 0;
    bottom: 0;
}

#chatbot_topbar {
    width: 235px;
    height: 44px;
    top: 0;
    position: absolute;
    background-color: white;
    z-index: 10030;
    right: 0;
    text-align: right;
}

    #chatbot_topbar .ctl {
        padding-top: 10px;
        padding-right: 10px;
        font-weight: 800;
    }

.chatbot-iframe {
    /*display: none;*/
    position: absolute;
    left: auto;
    top: auto;
    right: 0;
    bottom: 0;
    max-width: 500px;
    width: 360px;
    height: 350px;
    z-index: 10000;
    border: 1px solid #ddd;
}

#contract-close {
    cursor: pointer;
    width: 18px;
    height: 18px;
    background: url(..img/icons/close@2x.png) 50% no-repeat;
}

@media only screen and (max-width: 767px) {
    #chatbot {
        right: 18px;
        bottom: 110px;
    }

    .chat-bot-icon {
        width: 75px;
        height: 75px;
    }

        .chat-bot-icon::before {
            width: 75px;
            height: 75px;
        }

    .chatbot-iframe {
        width: 100%;
        height: 100%;
        max-width: 100%;
    }

    #contract_window {
        width: 320px;
    }

    #chatbot_topbar {
        width: 194px;
    }
}

@media only screen and (max-width: 740px) {
    #contract_window {
        width: 478px;
        height: 307px;
        right: 90px;
        bottom: -100px;
    }

    #chatbot_topbar {
        width: 355px;
    }
}

@media only screen and (max-width: 670px) {
    #contract_window {
        width: 478px;
        height: 287px;
        right: 60px;
        bottom: -108px;
    }
}

@media only screen and (max-width: 570px) {
    #contract_window {
        width: 478px;
        height: 257px;
        right: 20px;
        bottom: -108px;
    }
}

@media only screen and (max-width: 420px) {
    #contract_window {
        width: 368px;
        height: 367px;
        right: 1px;
        bottom: 60px;
    }

    #chatbot_topbar {
        width: 130px;
    }
}

@media only screen and (max-width: 380px) {
    #contract_window {
        width: 328px;
        height: 327px;
        right: 0px;
        bottom: 24px;
    }

    #chatbot_topbar {
        width: 100px;
    }
}

@media only screen and (max-width: 330px) {
    #contract_window {
        width: 281px;
        height: 297px;
        right: 4px;
        bottom: -44px;
    }

    #chatbot_topbar {
        width: 196px;
    }
}

@media only screen and (max-width: 420px) {
    #chatbot {
        width: 100%;
        height: 0%;
        /*top: 12%;*/
        bottom: 12%;
        right: 0px;
    }

    #contract_window {
        width: 100%;
        height: calc(100% - 20%);
    }

    #chatbot-open {
        right: 3px;
        bottom: 3px;
        position: absolute;
    }

    .chatbot-show {
        height: 76% !important;
    }
}
