.ui-none {
    display: none !important;
}


.flex-center {
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    text-align: center;
}

/* 對話機器人 */

.service-content .decor-img {
    position: absolute;
    width: 50px;
    height: 50px;
    left: 50%;
    top: 15px;
    transform: translateX(-50%);
    z-index: 999999;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    background-image: url('../img/chatbot-platform-intro.svg');
  }
  
  .service-content .chatbot-service-intro {
    background-image: url('../img/chatbot-service-intro.svg');
  }
  
  .service-content .chatbot-how-to-use {
    background-image: url('../img/chatbot-how-to-use.svg');
  }
  
  .service-content .chatbot-call-service {
    background-image: url('../img/chatbot-call-service.svg');
  }
  
  .service-content .chatbot-call-smile {
    width: 35px;
    background-image: url('../img/smile.png');
  }
  
  .service-content .chatbot-call-cry {
    width: 35px;
    background-image: url('../img/cry.png');
  }

  .service-content {
    position: relative;
    background: #fff;
    width: 95%;
    padding-bottom: 98%;
    border-radius: 50%;
}

.service-content p {
    position: absolute;
    bottom: 16%;
    left: 50%;
    white-space: nowrap;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    margin-bottom: 0;
    font-size: 1.1rem !important;
}
  

.chatbot-ui-controller {
    bottom: 140px !important;
  }
  
  .chatbot-wrap.on-boarding {
    width: 280px;
    height: auto;
  }
  
  .chatbot-wrap.on-boarding p {
    margin-top: 15px;
    font-size: 0.85rem !important;
    text-align: center !important;
  }
  
  .chatbot-wrap.on-boarding .card-body {
    padding: 0 !important;
    height: 240px;
    overflow: hidden;
    background-color: #efefef;
  }
  
  .chatbot-wrap.on-boarding .card-footer {
    padding: 0;
  }
  
  .chatbot-wrap.on-boarding .card-footer,
  .chatbot-wrap.on-boarding .card-footer .btn {
    height: 50px;
  }
  
  .chatbot-wrap.on-boarding .card-footer .btn {
    border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);
  }
  
  /* .chatbot-wrap {
    position: fixed;
    right: 20px;
    bottom: 160px;
    width: 360px;
    height: 485px;
    z-index: 999;
  } */
  
  .chatbot-wrap.start-to-chart {
    bottom: 150px;
    right: 75px;
  }
  
  .chatbot-wrap .card-header,
  .chatbot-wrap .theme-btn:hover {
    background-color: var(--primaryLight);
    border-color:var(--primaryLight);
    color: #221B03;
  }
  
  .chatbot-wrap .theme-btn:hover,
  .back-to-top:hover {
    opacity: 0.85;
  }
  
  .open-chatbot img {
    width: 30px;
  }
  
  .chatbot-wrap .card-body {
    height: 380px;
    overflow-y: scroll;
    padding-right: 16px;
    padding-left: 41px !important;
  }
  
  .chat-bubble {
    padding: 8px 16px;
    margin-bottom: 18px;
    background-color: #efefef;
  }
  
  .chat-bubble .btn {
    background-color: #fff;
    border-radius: 5px;
    margin: 8px 0 3px;
  }
  
  .chat-bubble .w-50.btn.right {
    margin-right: 5px;
  }
  
  .chat-bubble .w-50.btn.left {
    margin-left: 5px;
  }
  
  .chat-bubble a,
  .chat-bubble p {
    font-size: inherit !important;
    margin-bottom: 0;
  }
  
  .chat-bubble .title{
    font-size: 20px !important;
    text-align: center;
  }
  
  .chat-bubble .second-title {
    font-size: 12px !important;
  }
  
  .chat-bubble .help .btn{
    width: 49%;
    text-decoration: auto;
    font-size: 14px !important;
  }
  
  .chat-bubble-wrap .service-content {
    margin-left: 4px;
    margin-bottom: 0;
    padding: 20px;
    height: 115px;
  }
  
  .chat-bubble-wrap .service-content .inner {
    padding: 20%;
    text-align: center;
  }
  
  .chat-bubble-wrap .service-content .inner img {
    width: auto;
  }
  
  .chat-bubble-wrap.bot .category-box {
    padding: 10px;
    width: 50%;
  }
  
  .chat-bubble-wrap .service-content p {
    font-size: 0.9rem !important;
    bottom: 8%;
  }
  
  .chat-bubble-wrap.bot {
    position: relative;
  }
  
  .chat-bubble-wrap.bot:before {
    content: "";
    position: absolute;
    left: -33px;
    top: -14px;
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-image: url('../img/chatbot-profile-img.svg');
  }
  
  .chat-bubble-wrap.bot .chat-bubble {
    text-align: left;
    border-radius: 0 10px 10px 10px;
  }
  
  .chat-bubble-wrap.user {
    text-align: right;
  }
  
  .chat-bubble-wrap.user .chat-bubble {
    text-align: right;
    border-radius: 10px 0 10px 10px;
    background-color: rgba(19, 137, 9, 0.1);
    display: inline-block;
  }
  
  .chatbot-menu {
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url('../img/chatbot-menu.svg');
    width: 30px;
    height: 30px;
  }
  
  .card-footer.show .reset-wrap {
    display: block;
  }
  
  .card-footer .reset-wrap {
    display: none;
  }
  
  .chatbot-wrap .card-footer {
    height: 60px;
    border-top: 1px solid #E3E3E3;
    background-color: #fff;
    padding-right: 16px;
    padding-left: 16px;
  }
  
  .chatbot-wrap .card-footer input {
    height: 36px !important;
    margin: 0 15px;
    width: inherit;
  }
  
  .reset-wrap {
    position: absolute;
    bottom: 54px;
    padding: 0px 12px 4px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 3px;
  }
  
  .text-primary {
    color: #138909 !important;
  }
  
  .chatbot-wrap .card-footer input,
  .chatbot-wrap .card-footer .theme-btn {
    font-size: 1rem !important;
  }
  
  .chatbot-wrap .card-footer .theme-btn {
    width: 96px;
    min-width: auto;
    height: 36px;
    padding: 5px;
    margin: 0 !important;
  }
  
  .chatbot-wrap.start-to-chart,
  .no-chatbot-onboarding .chatbot-wrap.on-boarding {
    display: none;
  }
  
  .no-chatbot-onboarding .chatbot-wrap.start-to-chart {
    display: inline-block;
  }


  .chatbot-wrap .theme-btn {
    position: relative;
    padding: 6px 25px;
    min-width: 175px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    background-color: var(--primary);
    color: #2D3C48;
    border: 2px solid var(--primary);
    white-space: nowrap;
    text-decoration: none !important;
    margin: 0 8px;
}

.chatbot-wrap input{
    padding: 4px 8px !important;
    color: #495057;
    box-shadow: none;
    border: none;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.chatbot-wrap .left {
    background-color: #fff;
    z-index: inherit;
    overflow-y: inherit;
    overflow-x: inherit;
    padding: 0.375rem 0.75rem;
    padding-top: inherit;
    padding-bottom: inherit;
    max-height: inherit;
    min-height: inherit;
    font-weight: 400;
    font-size: 1rem;
}

.chatbot-wrap .left,.chatbot-wrap .right{
    min-height: 38px;
}

.moreTool-robot-wrap{
    min-width: auto;
}

.no-chatbot-onboarding .moreTool-robot-wrap {
    min-width: 440px;
    overflow: hidden;
}

.chatbot-loading{
    position: absolute;
    z-index: 999999999;
    left: 0px;
    right: 0px;
    background-color: var(--primaryLight);
    width: 100%;
    height: 100%;
}

.box {
  position: relative;
  border-radius: 100%;
  background-color: var(--lightblk);
  height: 50px;
  width: 50px;
  transition: 0.5s ease-in-out;
}

.txt {
  display: none;
  color: var(--lightblk);
  font-family: "Red Hat Text";
  font-weight: 700;
  font-size: 25px;
  transform: translate(-50%, -50%);
  position: absolute;
  top: 50%;
  left: 50%;
}

@keyframes loading_anim {
  0% {
    background-color: var(--lightblk);
    /*filter: drop-shadow(0px 0px 0rem rgba(var(--blue), 0.8)); */
  }
  50% {
    transform: translate(15px, 0px);
    background-color: white;
    /*filter: drop-shadow(0px 0px 1rem rgba(var(--blue), 0.8)) saturate(4); */
  }
  100% {
    background-color: var(--lightblk);
    /*    filter: drop-shadow(0px 0px 0rem rgba(var(--blue), 0.8)); */
  }
}

/* 讀取中 */
.chatbot-loading .lo_circle{
    border: 8px solid orange;
    border-radius: 50%;
    border-color: #fff #fff #fff transparent;
    width: 80px;
    height: 80px;
    animation: spinning 1s linear infinite;
    margin-bottom: 30px;
}
@keyframes spinning {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}


@media screen and (max-width:500px){
    .no-chatbot-onboarding .moreTool-robot-wrap {
        min-width: 305px;
    }
    .chatbot-wrap .card-footer input {
        height: 36px !important;
        margin: 0 15px;
        width: 140px;
    }

    .chatbot-wrap .card-footer .theme-btn {
        width: 61px;
    }

    .card-footer input{
        margin: 0px!important;
        margin-right: 3px!important;
    }

    .card-footer .bg-img{
        padding: 10px 0px;
    }

    .chatbot-wrap .card-footer {
        display: flex;
        align-items: center;
    }
}