@charset "UTF-8";
.fab {
  bottom: 152px !important;
}

#floating-bubble {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  background-color: #07d1f1;
  padding: 12px 20px 12px 32px;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  z-index: 999;
}

#floating-bubble:before {
  content: "";
  background-image: url(../img/im/bubble-arrow.png);
  display: inline-block;
  position: absolute;
  bottom: -8px;
  right: 8px;
  width: 24px;
  height: 21px;
  background-size: contain;
  background-repeat: no-repeat;
}

#floating-bubble .bot-icon {
  width: 60px;
  height: auto;
  position: absolute;
  left: -32px;
}

#floating-bubble::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: #07d1f1 transparent transparent transparent;
}

#chat-widget {
  position: fixed;
  right: 24px;
  bottom: 20px;
  width: 350px;
  min-height: 540px;
  height: 82vh;
  max-height: 640px;
  background: linear-gradient(to right, #65d3e0, #04d1f1);
  border-radius: 16px 16px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.16);
}

#chat-widget .chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

#chat-widget .chat-header img {
  width: 24px;
  cursor: pointer;
  background: transparent;
  border: none;
}
#chat-widget .chat-header img.btn-collapse {
  width: 20px;
  padding: 5px 0;
}

#chat-widget .chat-step {
  display: none;
  flex-direction: column;
  padding: 24px;
  color: white;
  height: 100%;
}
#chat-widget .chat-step .chat-bottom-fixed {
  margin-top: auto;
  margin-bottom: 16px;
}

#chat-widget .chat-step .bot-big {
  width: 100px;
  margin: 0 auto 12px;
}

#chat-widget .chat-step .bot-small {
  width: 64px;
  background: white;
  border-radius: 50%;
  padding: 4px;
}

#chat-widget .chat-step .bot-title {
  text-align: center;
  margin: 8px 0;
  font-size: 17px;
}

#chat-widget .chat-step .options {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#chat-widget .chat-step .options .opt-btn {
  background: white;
  border-radius: 8px;
  padding: 10px;
  border: none;
  color: #333;
  cursor: pointer;
}
#chat-widget .chat-step .options .opt-btn:hover {
  color: #0ed1ef;
  font-weight: bold;
}

#chat-widget .chat-step .next-btn {
  background: white;
  color: #04d1f1;
  border-radius: 99rem;
  padding: 10px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

#chat-widget .chat-step .input-bar {
  background: white;
  padding: 16px;
  display: flex;
  border-radius: 16px 16px 0 0;
  z-index: 2;
}

#chat-widget .chat-step .input-bar input {
  flex: 1;
  border: none;
  padding: 6px 12px;
  color: #333;
  background: #f2f2f2;
  height: 36px;
  font-size: 15px;
  border-radius: 99rem;
}

#chat-widget .chat-step .input-bar input::-moz-placeholder {
  color: #aaa;
}

#chat-widget .chat-step .input-bar input::placeholder {
  color: #aaa;
}

#chat-widget .chat-step .input-bar button {
  border: none;
  padding-left: 8px;
  background: #0ed1ef;
  width: 36px;
  height: 36px;
  border-radius: 99rem;
  margin-left: 16px;
  align-items: center;
  justify-content: center;
  display: inline-flex;
}

#chat-widget .chat-step .input-bar button img {
  width: 8px;
  height: auto;
}

#chat-widget .chat-step .chat-body {
  flex: 1;
  overflow-y: auto;
}

#chat-widget .chat-step .chat-body .msg {
  max-width: 80%;
  font-size: 15px;
  padding: 6px 16px;
  border-radius: 16px;
  margin-bottom: 10px;
  width: -moz-fit-content;
  width: fit-content;
}

#chat-widget .chat-step .chat-body .user-msg {
  background: #f2f2f2;
  color: #333333;
  align-self: flex-end;
  margin-left: auto;
  text-align: right;
}

#chat-widget .chat-step .chat-body .bot-msg {
  background: #acecfa;
  color: #333;
  align-self: flex-start;
  text-align: left;
  margin-left: 4px;
}

#chat-widget .chat-step .chat-body .typing {
  font-size: 24px;
  align-items: center;
  display: flex;
  height: 36px;
  padding-top: 8px;
}
#chat-widget .chat-step .chat-body .typing .dot {
  animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
  background-color: #fff;
  border-radius: 50%;
  height: 6px;
  margin-right: 6px;
  vertical-align: middle;
  width: 6px;
  display: inline-block;
}
#chat-widget .chat-step .chat-body .typing .dot:nth-child(1) {
  animation-delay: 200ms;
}
#chat-widget .chat-step .chat-body .typing .dot:nth-child(2) {
  animation-delay: 300ms;
}
#chat-widget .chat-step .chat-body .typing .dot:nth-child(3) {
  animation-delay: 400ms;
}
#chat-widget .chat-step .chat-body .typing .dot:last-child {
  margin-right: 0;
}

@keyframes mercuryTypingAnimation {
  0% {
    transform: translateY(0px);
  }
  28% {
    transform: translateY(-7px);
  }
  44% {
    transform: translateY(0px);
  }
}
#chat-widget .chat-step h2 {
  color: #fff;
  font-size: 32px;
  text-align: center;
  max-width: 250px;
  margin: 8px auto 20px;
  line-height: 1.3;
}
#chat-widget .chat-step.step-1 p, #chat-widget .chat-step.step-2 p {
  color: #fff;
  text-align: center;
  max-width: 270px;
  font-size: 13px;
  margin: 0 auto;
}
#chat-widget .chat-step.step-2, #chat-widget .chat-step.step-3 {
  overflow: hidden;
  padding: 0;
}
#chat-widget .chat-step.step-2 .chat-content, #chat-widget .chat-step.step-3 .chat-content {
  text-align: center;
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
#chat-widget .chat-step.step-3 .top {
  text-align: center;
}
#chat-widget .chat-step.step-3 .chat-content {
  opacity: 0;
  background: white;
  border-radius: 16px 16px 0 0;
  padding: 24px 24px 8px 16px;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#chat-widget .chat-step.step-3.active .chat-content {
  opacity: 1;
  transform: translateY(0);
}
#chat-widget .chat-step.step-3 .input-bar {
  border-radius: 0;
}

.chat-checkbox input[type=radio] + label:before, .chat-checkbox input[type=checkbox] + label:before {
  border-color: #fff;
  background-color: #fff;
}

.bot-talk {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 40px;
}
.bot-talk:before {
  content: "";
  background-image: url(../img/im/im_bot_chat_small.png);
  width: 36px;
  height: 36px;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  position: absolute;
  left: 0px;
  top: -12px;
}
.bot-talk .btn.btn-white {
  border-width: 1px;
  width: 80%;
  align-self: flex-start;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  #floating-bubble {
    padding: 10px 12px 10px 32px;
    background: rgba(7, 211, 242, 0.9);
  }
  #floating-bubble .bot-icon {
    width: 54px;
    left: -25px;
  }
  #chat-widget {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    bottom: 0;
    right: 0;
    z-index: 99999;
    border-radius: 0;
  }
  #chat-widget .chat-header img {
    width: 36px;
  }
  #chat-widget .chat-header img.btn-collapse {
    width: 24px;
  }
  #chat-widget .chat-step .bot-big {
    width: 160px;
    margin: 0 auto 20px;
  }
  #chat-widget .chat-step h2 {
    font-size: 40px;
    max-width: 300px;
  }
  #chat-widget .chat-step.step-1 p, #chat-widget .chat-step.step-2 p {
    max-width: 300px;
    font-size: 15px;
  }
  .chat-checkbox, .chat-checkbox a.border-a {
    font-size: 17px;
  }
  #chat-widget .chat-step .next-btn {
    border-radius: 8px;
    font-size: 18px;
  }
  #chat-widget .chat-step .chat-bottom-fixed {
    margin-bottom: 28px;
  }
  #chat-widget .chat-step .input-bar {
    padding: 32px 16px 40px;
  }
  #chat-widget .chat-step .options {
    margin: 36px 0 0;
    flex-direction: column;
    gap: 16px;
  }
  #chat-widget .chat-step .options .opt-btn {
    font-size: 17px;
    padding: 12px;
  }
  #chat-widget .chat-step .chat-body .msg {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .bot-talk .btn.btn-white {
    margin-bottom: 12px;
  }
  #chat-widget .chat-step .input-bar input {
    height: 40px;
    font-size: 16px;
  }
  #chat-widget .chat-step .input-bar button {
    width: 40px;
    height: 40px;
  }
}
/* 初始狀態 */
.slide-up-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* 啟動動畫時套用 */
.slide-up-fade.in {
  opacity: 1;
  transform: translateY(0);
}

.aicare #chat-widget {
  display: block;
  position: unset;
  width: 100%;
  background: #fff;
  box-shadow: none;
  height: auto;
}
.aicare #chat-widget .chat-step {
  color: #333;
  margin: 0 auto;
}
.aicare #chat-widget .chat-step h2 {
  font-size: 44px;
  max-width: 360px;
  color: #333;
}
.aicare #chat-widget .chat-step.step-1 {
  max-width: 360px;
}
.aicare #chat-widget .chat-step.step-1 p {
  margin-bottom: 80px;
  color: #333;
  text-align: left;
  max-width: 350px;
  font-size: 16px;
}
.aicare #chat-widget .chat-step.step-2 p {
  color: #333;
  text-align: left;
  max-width: 350px;
  font-size: 16px;
}
.aicare #chat-widget .chat-step .next-btn {
  background: #04d1f1;
  color: #fff;
  border-radius: 6px;
}
.aicare #chat-widget .chat-step .next-btn:focus {
  outline: none;
}
.aicare #chat-widget .chat-checkbox input[type=radio] + label:before,
.aicare #chat-widget .chat-checkbox input[type=checkbox] + label:before {
  border: 1px solid var(--secondary);
}
.aicare #chat-widget .input-bar {
  display: flex;
  position: relative;
  padding: 8px 12px 52px 12px;
  color: #333;
  background: #f2f2f2;
  height: 108px;
  font-size: 15px;
  border-radius: 8px;
}
.aicare #chat-widget .input-bar input {
  border: none;
  background: transparent;
  color: #333;
  width: 100%;
  outline: none;
}
.aicare #chat-widget .input-bar input::-moz-placeholder {
  color: #999;
}
.aicare #chat-widget .input-bar input::placeholder {
  color: #999;
}
.aicare #chat-widget .input-bar button.send {
  border: none;
  padding-left: 8px;
  background: #0ed1ef;
  width: 36px;
  height: 36px;
  border-radius: 99rem;
  margin-left: 16px;
  align-items: center;
  justify-content: center;
  display: inline-flex;
  position: absolute;
  right: 12px;
  bottom: 12px;
  outline: none;
}
.aicare #chat-widget .input-bar button.send img {
  width: 8px;
  height: auto;
}
.aicare #chat-widget .max-h-auto {
  max-height: 640px;
  height: 640px;
  overflow-y: auto;
}
.aicare #chat-widget .top {
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px;
  background-color: #fff;
}
.aicare #chat-widget .top .options-wrapper {
  display: inline-flex;
  gap: 10px;
}
.aicare #chat-widget .top .options-wrapper .option {
  flex: 0 0 auto;
  padding: 4px 12px;
  font-size: 15px;
  border: 1px solid #00d1f2;
  border-radius: 20px;
  background-color: #fff;
  color: #00d1f2;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.aicare #chat-widget .top .options-wrapper .option.ic {
  padding: 2px 12px;
}
.aicare #chat-widget .top .options-wrapper .option:hover {
  background-color: #00d1f2;
  color: #fff;
}
.aicare #chat-widget .top .options-wrapper .option.active {
  background-color: #00d1f2;
  color: #fff;
}
.aicare #chat-widget .bot-article {
  padding: 16px 0;
  max-width: 80%;
  text-align: left;
}
.aicare #chat-widget .bot-article .tags {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.aicare #chat-widget .bot-article .tags .tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid #00d1f2;
  border-radius: 20px;
  background-color: #fff;
  color: #00d1f2;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}
.aicare #chat-widget .bot-article .tags .tag.active {
  background-color: #00d1f2;
  color: #fff;
}
.aicare #chat-widget .bot-article .tags .tag.active .check-circle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #fff;
  color: #00d1f2;
  font-size: 12px;
}
.aicare #chat-widget .bot-article .article-title {
  margin-bottom: 20px;
  color: #333333;
}
.aicare #chat-widget .bot-article .content-label {
  display: inline-block;
  padding: 2px 10px;
  font-size: 13px;
  color: #333333;
  border: 1px solid #00d1f2;
  border-radius: 12px;
  background-color: #fff;
  margin-bottom: 10px;
}
.aicare #chat-widget .bot-article .article-content {
  font-size: 15px;
  line-height: 1.6;
  color: #333333;
}
.aicare #chat-widget .bot-article ul.article-content {
  padding-left: 20px;
}
.aicare #chat-widget .bot-talk .btn.btn-white {
  max-width: 280px;
}
.aicare #chat-widget .user-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.aicare #chat-widget .user-options .option {
  display: inline-block;
  padding: 4px 12px;
  font-size: 15px;
  color: #333333;
  border: 1px solid #00d1f2;
  border-radius: 99rem;
  background-color: #fff;
  margin-bottom: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.aicare #chat-widget .user-options .option:hover, .aicare #chat-widget .user-options .option.active {
  background-color: #00d1f2;
  color: #fff;
}
.aicare #chat-widget .chat-step.step-3.active .chat-content {
  padding: 24px 0 8px;
}

@media (max-width: 768px) {
  div.aicare {
    padding: 0 !important;
  }
  div.aicare #chat-widget .chat-step.step-1 {
    max-width: 100%;
    padding: 24px 16px 0;
  }
  div.aicare #chat-widget {
    min-height: 88vh;
  }
}/*# sourceMappingURL=im-bot.css.map */