#chatWrap {
    display: flex;
    justify-content: flex-end;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 288px;
    z-index: 999999;
}

#chatWrap > * {
    position: absolute;
    right: 0;
    bottom: 0;
}

#chatWrap .active {
    display: block;
}

#chatWrap .question {
    display: none;
    cursor: pointer;
    position: relative;
}

#chatWrap .question img {
    width: 100%;
  display: block;
  filter: drop-shadow(0 0 4px rgba(100,100,100,.3));
}

#chatWrap .question .cancel {
    position: absolute;
    top: -20px;
    right: 0;
    text-align: center;
    font-size: 120%;
    font-weight: bold;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    align-items: center;
    border-radius: 100%;
    filter: drop-shadow(0 0 4px rgba(100,100,100,.3));
    width: 25px;
    height: 25px;
    line-height: 24px;
    margin-left: auto;
    cursor: pointer;
}

#chatWrap .question.active {
    display: block;
}

#chatWrap .blandMenu {
    transform: translateY(0px);
    width: 100%;
    display: none;
}

#chatWrap .blandMenu .menuTtl {
    background-color: #2f79b4;
    color: #fff;
    padding: 4px 0;
    cursor: pointer;
}

#chatWrap .blandMenu ul {
    text-align: center;
}

#chatWrap .blandMenu ul li {
    padding: 10px 0;
    background-color: #fff;
    border: 1px solid #2f79b4;
    border-top: 0;
    cursor: pointer;
}

#chatWrap .blandMenu span.cancel {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #fff;
    display: inline-block;
    border-radius: 15px;
    color: #000;
    top: 7px;
    right: 7px;
    line-height: 20px;
}

#chatWrap .blandMenu.active {
    display: block;
}

#chatWrap .chat {
    display: none;
    border: 1px solid #B81C22;
    background-color: #fff;
    width: 400px;
}

#chatWrap .chat .cancel {
    text-align: center;
    font-weight: bold;
    color: #000;
    align-items: center;
    margin-left: auto;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 12px;
    background-color: #fff;
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 15px;
}

#chatWrap .chat iframe {
    width: 100%;
    height: 95vh;
    max-height: 800px;
}

#chatWrap .chat.active {
    display: block;
}

@media screen and (max-width: 768px) {
    #chatWrap {
        width: 76%;
        right: 10px;
        bottom: 80px;
    }
    #chatWrap > * {
        width: 100%;
    }
    #chatWrap .question {
        margin: 0 2%;
        width: 96%;
        bottom: 10px;
    }
    #chatWrap .blandMenu {
        width: 96%;
        margin: 0 2%;
        bottom: 10px;
    }
    #chatWrap .chat {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100%;
    }
    #chatWrap .chat iframe {
        width: 100vw;
        height: 100%;
        top: -10px;
        max-height: unset;
    }
}
