.ps-chatbot-opened {
  position: fixed;
}

#ibmchatbox {
  -webkit-align-items: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  cursor: pointer;
  background-image: url('https://robot.allianz.com.tw/images/Allie_head.png');
  background-repeat: no-repeat;
  background-size: 80px 80px;
  bottom: 32px;
  border-radius: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  fill: #fff;
  height: 80px;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: fixed;
  right: 32px;
  width: 110px;
  z-index: 999;
  background-position: center;
  border: 0;
  font-size: 14px;
  color: unset;
  line-height: unset;
  letter-spacing: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#ibmchatbox.chatbotBtn_APP {
  bottom: unset;
  top: 80px;
}

.welcome-msg::before {
  background-image: url('https://robot.allianz.com.tw/images/welcome_allie.png');
  background-repeat: no-repeat;
  background-size: 110px;
  height: 110px;
  width: 110px;
  z-index: 999;
  background-position: center;
  content: ' ';
  right: 80px;
  position: relative;
  bottom: 65px;
}

#ibmchat {
    background: #f5f8fb;
    border-radius: 10px;
    box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 400px;
    z-index: 999;
    border: 0;
    color: unset;
    line-height: unset;
    letter-spacing: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    max-height: 600px;
    height: 90%;
}

#ibmchat.maximize {
  border-radius: 0;
  bottom: 0;
  max-height: 100%;
  height: 100%;
  right: 0;
  width: 100%;
}

@media screen and (max-width: 568px), screen and (max-height: 420px) {
  #ibmchatbox {
    background-size: 60px 60px;
  }

  #ibmchat {
    border-radius: 0;
    bottom: 0;
    height: 100%;
    max-height: 100%;
    right: 0;
    width: 100%;
    z-index: 999;
  }
}

@supports(env(safe-area-inset-top)) {
  #ibmchatbox {
    top: env(safe-area-inset-top);
  }

  #ibmchat {
    height: calc(100% - env(safe-area-inset-top));
  }

  @media screen and (max-width: 568px), screen and (max-height: 420px) {
    #ibmchat {
      height: calc(100% - env(safe-area-inset-top));
    }
  }
}
