@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);

* {
  font-family: "Noto Sans TC", "FS Lucas", sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* :root {
  --main-color: #b07843;
  --sub-color: #d0ba93;
  --bg-grey: #9a9fa3;
  --text-color: #3f3b3a;
  --p-main-color: #b78c5f;
  --p-sub-color: #231816;
  --p-bg-grey: #9a9fa3;
} */

body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

.fcc {
  display: flex;
  justify-content: center;
  align-items: center;
}

section {
  height: 100dvh;
  overflow-x: hidden;
}

.Home {
  width: 100%;
}

.Home {
  position: relative;
  overflow: hidden;
  width: 100%;
  /*background-image: linear-gradient(90deg,#B86F4E,#B0A587);*/


  display: flex;
  flex-direction: column;
  height: 100dvh;
}

/* .Home::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  display: block;
  height: 100%;
  width: 100%;
  background-image: linear-gradient(90deg,#B86F4E,#B0A587);
} */

.Home .Logo_row {
  height: 40%;
}

.Home .Logo_row img {
  height: 20%;
  user-select: none;
}

.Home .Lang_row {
  height: 60%;
  border: 2px solid rgba(255, 255, 255, .3);
  background-color: rgba(255, 255, 255, .2);
  border-radius: 5rem 5rem 0 0;
  border-bottom: none;
}

@media (max-width: 576px) {
  .Home .Lang_row {
    border-radius: 2rem 2rem 0 0;
  }
}


a, a:hover, a:visited, a:link, a:active {
  text-decoration: none;
}

img {
  -webkit-user-drag: none;
}

.Home .Lang_btn {
  background-color: rgba(255, 255, 255, .5);
  border-radius: 0.75rem;
  cursor: pointer;
  width: 180px;
  height: 110px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  font-size: 18px;
  color: #595757;
  margin: auto;
  transition: all .4s ease-in-out;
  letter-spacing: 1px;
}

.Home .Lang_btn:hover {
  background-color: rgba(255, 255, 255, .7);
  box-shadow: rgba(255, 255, 255, .9) 0 0px 8px;
}

.Lang_icon {
  font-weight: 700;
  top: 1rem;
  font-size: 2rem;
  color: rgba(0, 0, 0, .3);
}

@media (max-width: 576px) {
  .Home .Lang_btn {
    width: 150px;
    /*height: 80px;*/
    /*flex-direction: row;*/
    justify-content: space-around;
  }

  .row:has(.welcome-container) {
    margin-top: .5rem !important;
  }

  .Home .Logo_row {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }

  .Home .Lang_row {
    height: max-content;
    border-radius: 2rem 2rem 0 0;
    padding: 0 1rem 1rem 1rem;
  }

  .Home .Logo_row img {
    width: 200px;
  }
}


.Home .Lang_btn:hover, .Home .Lang_btn.active {
  background-color: rgba(255, 255, 255, .7);
  box-shadow: rgba(255, 255, 255, .9) 0 0px 8px;
}

.welcome-container {
  height: 40px;
  margin: 1rem 0;
}

.welcome-text {
  text-align: center;
  margin: 1rem 0;
  color: #EBE9E1;
  letter-spacing: 1px;
  font-weight: 300;
  position: absolute;
  transform: translateY(20px);
  transition: all 0.5s ease;
  opacity: 0;
}

.welcome-text.active {
  opacity: 1;
  transform: translateY(0);
}

.lang_btn_box {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.Chat {
  background-color: #EDE3CF;
  overflow: hidden;
}

.Chat .navbar {
  background-color: rgba(255, 255, 255, .4);
  border-radius: 0 0 2rem 2rem;
  box-shadow: rgba(0, 0, 0, .1) 0 4px 12px;
  height: fit-content;
}

.Chat .title_Box {
  background-color: #2362B7;
  padding: 0.2rem 1rem;
  color: #FFF;
  border-radius: 99px;
  font-weight: 500;
  letter-spacing: 1px;
  text-shadow: rgba(0, 0, 0, .1) 0 4px 12px;
}

@media (max-width: 576px) {
  .Chat .title_Box {
    font-size: small;
  }
}

.Chat .Container_row {
  height: 100%;
  padding-bottom: 75px;
  overflow-y: hidden;
  position: relative;
  background-color: #86b7fe;
}

.Container_row .menu {
  position: absolute;
  z-index: 1;
  bottom: 0;
  background-color: #EDE3CF;
  border-radius: 2rem 2rem 0 0;
  transition: bottom .5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
  padding: 1rem;
  box-shadow: rgba(0, 0, 0, .1) 0 -4px 5px;
}

@media (max-width: 376px) {
  .Container_row .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(40vh); /* 設定高度為 40vh */
  }
}

@media (max-width: 576px) and (min-width: 377px) {
  .Container_row .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(28vh);
  }
}

.Container_row .menuShow {
  bottom: -50vh;
}

.Chat .Text_row {
  position: fixed;
  bottom: 24px;
  width: 100%;
  z-index: 10;
  background-color: #86b7fe;
  margin: 0 auto;
}

.BgChange {
  background-color: #B8824F !important;
}

.Chat .Text_row .Text_form {
  bottom: 0;
  background-color: #a1bfe9;
  height: 50px;
  width: 100%;
  border-radius: 2rem 2rem 0 0;
  border-top: 2px solid rgba(255, 255, 255, .3);
  z-index: 10;
}

.Text_form .container {
  position: relative;
}

.Text_control button {
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  background-color: transparent;
  color: #595757;
  margin-left: 1rem;
  font-size: 18px;
}

input {
  border: none;
  outline: none;
  resize: none;
  background: transparent;
}

button, button:focus {
  border: none;
  outline: none;
}

.Text_input {
  width: 90%;
  color: #595757;
}

@media (max-width: 992px) {
  .Text_input {
    width: 60%;
  }
}

.Text_input::placeholder {
  color: #595757 !important;
}

.quick_btn p {
  margin: 0;
  color: #A05812;
  letter-spacing: 1px;
  font-weight: 500;
}

.quick_btn img {
  width: 80px;
}

@media (max-width: 992px) {
  .quick_btn img {
    width: 50px;
  }

  .quick_btn {
    flex-direction: column;
    justify-content: space-between;
    border: none;
    box-shadow: rgba(0, 0, 0, .1) 0 2px 5px;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
  }

  .quick_btn p {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .col-sm-4.col-md-2.fcc:has(.quick_btn) {
    flex: 0 0 auto;
    width: 33.3333333333%;
  }
}

.textShow {
  padding: 1.5rem 1rem 0.5rem 1.5rem;
  height: calc(100% - 75px);
  overflow-y: scroll;
  overflow-x: hidden;
  position: relative;
  margin-top: 2px;


  /*top: 60px;*/
  /*bottom: 75px;*/
}


/* ScrollBar */

/* width */
::-webkit-scrollbar {
  width: 20px;
  transition: cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* Track */
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .2);
  border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .5);
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #8A8A8A;
}

/* 回覆樣式 */

.BotMsg_box {
  margin-bottom: 1.5rem;
  width: fit-content;
  max-width: 50%;
  position: relative;
}

.BotMsg {
  background-color: #dae0ef;
  width: fit-content;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  padding: 1rem;
  text-align: left;
  border-radius: .5rem;
  position: relative;
  letter-spacing: 1px;
  color: #353434;
}

:root {
  --botmsg-bg: url('../images/chatbot/orange.png'); /* 預設圖片 */
}

.BotMsg_box::before {
  position: absolute;
  content: "";
  left: -55px;
  bottom: 0;
  width: 45px;
  height: 45px;
  background-image: var(--botmsg-bg), url('../images/Ellipse 1.png');
  /*background-image: url('../images/chatbot/grey.png'), url('../images/Ellipse 1.png');*/
  /* background-size: contain;
  background-position: center; */
  background-size: 70%, 100%;
  background-position: 50% -10%;
  background-repeat: no-repeat;
}

/* .BotMsg::before{
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  left: -15px;
  bottom: -5%;
  border-radius: 50px;
  background-color: #F2E8D9;
} */

@media (max-width: 576px) {
  .BotMsg_box,
  .userMsg {
    font-size: small;
    max-width: 70% !important;
  }
}

.userMsg {
  margin-left: auto;
  background-color: #595757;
  color: #dae0ef;
  width: fit-content;
  max-width: 50%;
  word-wrap: break-word;
  margin-bottom: 1.5rem;
  padding: 1rem;
  text-align: justify;
  border-radius: .5rem;
  position: relative;
  letter-spacing: 1px;
}

/* Dots Besiden msgbox */
/* .userMsg::before{
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  right: -15px;
  bottom: -5%;
  border-radius: 50px;
  background-color: #595757;
} */

.BotImg {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
  margin: 1rem 0 0 0;
}

.modal-body {
  position: relative;
  background-color: #0c0c0c;
}

.btn-close {
  position: absolute;
  z-index: 2;
  right: 0.5rem;
  top: 1rem;
}

.cover-img {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 576px) {
  .cover-img {
    height: 400px;
  }
}

.modal-body .modal_text {
  padding: 2rem;
  color: #D9D9D9;
  letter-spacing: 2px;
  position: relative;
}

.modal-body .modal_text .title {
  margin-bottom: 1rem;
  margin-left: 1rem;
  position: relative;
}

.modal_text::after {
  position: absolute;
  content: "";
  top: -6rem;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 6rem;
  background-image: linear-gradient(transparent, #0c0c0c);
}

.modal-body .modal_text .title::before {
  position: absolute;
  content: "";
  width: 5px;
  height: 2.5rem;
  left: -0.9rem;
  background-color: #2362B7;
}

.linkbtn {
  background-color: #2362B7;
  margin: auto;
  width: 95%;
  margin-bottom: 1rem;
  color: #0c0c0c;
  letter-spacing: 1px;
}

.linkbtn:hover {
  color: #0c0c0c;
}

/* 暫時隱藏menu */

.menuControl, .menu {
  display: none !important;
}

/* 暫時隱藏menu */

.userMsg {
  position: relative;
}

.userMsg .NowTime {
  position: absolute;
  left: -4.5rem;
  font-size: small;
  bottom: 0;
  color: #595757;
}

.BotMsg {
  position: relative;
}

.BotMsg .NowTime {
  position: absolute;
  right: -4.5rem;
  font-size: small;
  bottom: 0;
  color: #595757;
}

/* 警示句 */

.alert_row {
  width: 100%;
  height: 24px;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0);
  background-color: #dae0ef;
  z-index: 10;
}

.TextAlert {
  color: #3534349c;
  font-size: small;
  letter-spacing: 2px;
  text-align: center;
  width: fit-content;
  margin: 0 auto;
}


@media (max-width: 576px) {
  .TextAlert {
    font-size: 12px;
    letter-spacing: 1px;
    width: 100%;
  }
}


/* 按鈕 */
.Bot_btn {
  border-radius: 0.3rem;
  padding: 0.5rem 0.8rem;
  margin: 0rem 1rem 0.5rem 0;
  color: #D9D9D9;
  letter-spacing: 1px;
  background-color: #595757;
  position: relative;
  width: 100%;
  text-align: center;
  display: inline-block;
}

.Bot_btn:hover {
  color: #D9D9D9;
  cursor: pointer;
  text-align: center;
  display: inline-block;
}

/* bot倒讚，按讚 */

.feedback_btn_group {
  margin: 0.5rem 0;
  width: 100%;
  justify-content: flex-end;
  transition: all .2s ease-in-out;
}

.feedback_btn_group:has(.alert_inMsg) {
  justify-content: space-between;
}

.feedback_btn_group_row {
  justify-content: flex-end !important;
}

@media (max-width: 576px) {
  .feedback_btn_group {
    width: 100%;
    margin: 0 1rem 0 0;
  }
}

.feedback_box button {
  margin: 0 .5rem;
}

.feedback_btn_group button {
  background-color: transparent;
  font-size: 1.2rem;
  color: rgba(0, 0, 0, .3);
}

.feedback_box {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  transition: cubic-bezier(0.075, 0.82, 0.165, 1) .4s;
}

.feedback_box .good,
.feedback_box .bad {
  transition: cubic-bezier(0.075, 0.82, 0.165, 1) .4s;
}

.feedback_box .good:hover {
  transform: rotate(-15deg);
}

.feedback_box .bad:hover {
  transform: rotate(15deg);
}


.feedback_btn_group .reason {
  transition: cubic-bezier(0.075, 0.82, 0.165, 1) .4s;
  display: none;
  margin-left: 0.3rem;
  gap: 10px;
}

.feedback_btn_group .reason_show {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.feedback_btn_group .reason button {
  background-color: rgba(255, 255, 255, .4);
  color: rgba(0, 0, 0, .5);
  border-radius: 0.5rem;
  padding: 0.3rem 0.5rem;
  font-size: 14px;
}


@media (max-width: 576px) {
  .feedback_box {
    margin-top: 0.5rem;
  }

  .feedback_btn_group button {
    font-size: small;
  }

  .feedback_btn_group .reason button {
    font-size: small;
    /* margin: 0 0.3rem 0.3rem 0; */
  }

  .feedback_btn_group .reason {
    margin-top: 0.5rem;
    gap: 5px;
  }
}

.Text_form .emoji {
  font-size: 20px;
  text-shadow: rgba(0, 0, 0, .3) 1px 1px 1px;
}

/* 表單 */

.verify_form input,
.verify_form select,
.verify_form textarea {
  border: none;
  background-color: rgba(255, 255, 255, .9);
}

.verify_form label span {
  color: red;
  margin-left: 0.1rem;
}

input,
input:focus,
select,
select:focus,
textarea,
textarea:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.verify_form select {
  margin-bottom: 0.5rem;
  cursor: pointer;
}

@media (max-width: 576px) {
  .alert_inMsg {
    margin: 0.3rem 0.2rem;
    font-size: small;
  }
}

/* alert_In_BotMsg */
.alert_inMsg {
  font-size: 14px;
}

.alert_inMsg_hide {
  display: none;
}

/* 身分驗證 */
.verify_box:has(.verify_step1) {
  margin: 1.5rem 0;
}

.verify_step1 button{
  width: 100%;
  border-radius: 0.3rem;
  padding: 0.8rem 0.8rem;
  margin: 0rem 1rem 0.8rem 0;
  color: #D9D9D9;
  background-color: #595757;
  letter-spacing: 1px;
}

@media (max-width: 576px) {
  .verify_box button {
    font-size: small;
  }
}

.verify_box {
  color: #595757;
}

.verify_box .btn-back {
  background: transparent;
  color: #595757;
}

.verify_box p {
  color: #595757;
  margin: 1.5rem 0;
  font-weight: 500;
}

.verify_box .Bot_btn {
  margin-top: 1.5rem;
}

.d-none {
  display: none;
}

/* 表單附件上傳 */

.file_box {
  position: relative;
}

input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.custom-file-upload {
  position: relative;
  border: 2px dashed #595757;
  background-color: rgba(255, 255, 255, .3);
  display: inline-block;
  padding: 6px 12px;
  margin: 1rem 0 0 0;
  cursor: pointer;
  width: 100%;
  border-radius: .25rem;
  text-align: center;
}

.file-name {
  font-size: 0.9rem;
  color: #555;
  word-break: break-word;
  padding-top: 2px;
}

.upload-icon {
  transition: color 0.3s ease;
}

.uploaded .upload-icon {
  color: #28a745; /* 綠色表示成功 */
}

.uploaded-text {
  font-weight: bold;
}

/* emoji-picker */
.emoji-menu {
  bottom: 49px;
  /* right: 13rem; */
  cursor: pointer;
  width: fit-content;
}

.emoji-picker-icon {
  right: 60px;
  top: 7.5px;
}

.emoji-wysiwyg-editor {
  border: none !important;
  outline: none !important;
  resize: none !important;
  background: transparent !important;
}

.emoji-wysiwyg-editor:empty:before {
  color: #595757 !important;
}

.emoji-menu .emoji-items-wrap {
  height: 174px;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 0 !important;
}

/*emoji-ScrollBar */

/* width */
.emoji-menu .emoji-items-wrap::-webkit-scrollbar {
  width: 0px;
  transition: cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* Track */
.emoji-menu .emoji-items-wrap::-webkit-scrollbar-track {
  background: rgba(3, 2, 2, 0.2);
  border-radius: 10px;
}

/* Handle */
.emoji-menu .emoji-items-wrap::-webkit-scrollbar-thumb {
  background: rgba(44, 19, 19, 0.5);
  border-radius: 10px;
}

/* Handle on hover */
.emoji-menu .emoji-items-wrap::-webkit-scrollbar-thumb:hover {
  background: #340b0b;
}


.emoji-menu .emoji-items {
  padding: 0 !important;
}

@media (max-width: 576px) {
  .emoji-menu {
    bottom: 51px;
    right: 1rem;
  }

  .Action_menu {
    max-width: 100% !important;
    /* overflow-x: scroll; */
    padding-bottom: 0.5rem;
  }

  .Action_menu .BotMsg {
    width: 80%;
  }
}


/* Action_menu */
.Action_menu {
  max-width: 100%;
  width: 100%;
  margin-left: 0rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: nowrap;
}

.swiper:has(.Action_menu) {
  margin-bottom: 1.5rem;
  padding-right: 4rem;
  cursor: pointer;
}

.Action_menu .swiper-wrapper {
  display: flex;
}

.Action_menu .swiper-wrapper .swiper-slide:last-child {
  padding-right: 60px;
}

.Action_menu::-webkit-scrollbar {
  width: 3px;
}

.Action_menu .BotMsg::before {
  display: none;
}


.Action_menu .title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem;
}

.Action_menu .quick_btn_group {
  margin: 1rem;
}

.BotMsg:has(.quick_btn_group) {
  max-width: 300px;
  padding: 0;
  box-shadow: rgba(0, 0, 0, .1) 0 4px 8px;
}

.Action_menu img {
  width: 100%;
  height: 200px;
  border-radius: .5rem .5rem 0 0;
}

@media (max-width: 576px) {
  .Action_menu img {
    height: 150px;
    object-fit: cover;
  }
}

/* emoji */
.emoji-menu .emoji-items-wrap {
  height: fit-content;
}

.emoji-items-wrap1 .emoji-menu-tabs {
  display: none;
}

/*
.emoji-menu a .label{
  display: block;
} */

/* 留言單按鈕 */
.go_comment {
  display: block;
  text-align: center;
  cursor: pointer;
  margin-top: 1rem;
}

.go_comment:hover {
  color: #D9D9D9;
}

/* 真人客服滿意度調查 */
.font-small {
  font-size: small;
}

.emoji-wysiwyg-editor,
.emoji-wysiwyg-editor.parent-has-scroll {
  overflow: hidden !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  word-wrap: break-word !important;
}

.emoji-picker-icon.parent-has-scroll {
  right: 60px !important;
  top: 10px !important;
  transform: rotate(0) !important;
}

.Text_control {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Safari specific styles */
@media not all and (min-resolution: 0.001dpcm) {
  @supports (-webkit-appearance: none) {
    .emoji-wysiwyg-editor,
    .emoji-wysiwyg-editor.parent-has-scroll {
      overflow-y: hidden !important;
      padding: 0 !important;
    }

    .emoji-picker-icon.parent-has-scroll {
      right: 60px !important;
      top: 5px !important;
      transform: rotate(0) !important;
    }
  }
}


/*#region feedbackModal和confirmModal*/

.feedbackModal .modal-dialog,
.confirmModal .modal-dialog {
  align-items: flex-end;
}

.feedbackModal .modal-content,
.confirmModal .modal-content {
  margin-bottom: 75px !important;
  border-radius: 15px !important;
  border: 5px solid rgba(255, 255, 255, .6);
}

.feedbackModal .modal_text,
.confirmModal .modal_text {
  border: 5px solid rgba(255, 255, 255, .6);
  padding: 0 !important;
  border-radius: 15px !important;
}

.feedbackModal .modal_text .modal-title,
.confirmModal .modal_text .modal-title {
  position: relative;
  overflow: hidden;
  background: rgba(162, 135, 89, 0.4);
  border-radius: 15px 15px 0 0 !important;
  padding: 0.8rem 2rem 0.8rem 0.8rem;
  margin-bottom: 0.8rem;
}

.feedbackModal .modal_text .modal-title::before,
.confirmModal .modal_text .modal-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(214, 179, 143, 0.5);
  z-index: -1;
}

.feedbackModal .modal_text .modal-title,
.confirmModal .modal_text .modal-title {
  position: relative;
  z-index: 1;
  /* color: #595757; */
  color: #FFF;
  margin: 0;
}

.feedbackModal .modal_text::after,
.confirmModal .modal_text::after {
  display: none;
}

.feedbackModal .modal-body,
.confirmModal .modal-body {
  background-color: transparent;
  border-radius: 15px !important;
}

.feedbackModal .select-box {
  margin: 0.8rem;
  margin-bottom: 0;
}

.confirmModal .select-box {
  padding: 0.8rem;
}

.confirmModal .select-box .confirm-btn {
  display: grid;
  grid-gap: 0.5rem;
  gap: 0.5rem;
}

.confirmModal .select-box p,
.feedbackModal .select-box p {
  color: #FFF;
  text-shadow: rgba(0, 0, 0, .2) 0 0 3px;
}

.confirmModal .select-box .confirm-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.confirmModal .select-box .confirm-btn button {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, .5);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #353434;
  transition: all 0.3s ease;
  text-transform: none;
  margin: 1rem;
}

.confirmModal .select-box .confirm-btn button i {
  margin: 0 0.5rem;
}

.feedbackModal .feedback-face img {
  cursor: pointer;
  width: 40%;
  object-fit: contain;
}

.feedbackModal .select-box p,
.confirmModal .select-box p {
  margin-bottom: 0;
}

@media (max-width: 576px) {
  .feedbackModal .feedback-face img {
    width: 60%;
  }

  .feedbackModal .select-box p,
  .confirmModal .select-box p {
    font-size: 14px;
  }

  .feedbackModal .feedback-face .feedback-button {
    height: 150px;
    margin: 1rem 0;
  }
}

@media screen and (max-width: 767px) {
  .feedbackModal .feedback-face img {
    width: 60%;
    height: 50px;
  }

  .feedbackModal .select-box p,
  .confirmModal .select-box p {
    font-size: 14px;
  }

  .feedbackModal .feedback-face .feedback-button {
    min-height: 120px !important;
    padding: 0.8rem !important;
    width: 100% !important;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .feedbackModal .feedback-face .feedback-button {
    min-height: 140px !important;
    padding: 1rem !important;
    margin: 0.8rem !important;
  }
}

.feedbackModal .feedback-face .col-4 {
  flex-direction: column;
  justify-content: flex-end;
  margin: 1rem 0;
}

.feedbackModal .feedback-face .col-4 span {
  color: #333;
  margin: 0.8rem 0;
}

.feedbackModal .feedback-face .feedback-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 1rem;
  height: auto;
  min-height: 180px;
  justify-content: flex-end;
  background-color: rgba(255, 255, 255, .5);
}

@media (min-width: 992px) {
  .modal-lg, .modal-xl {
    max-width: 820px;
  }
}
/*#endregion feedbackModal和confirmModal*/


/*#region Chat設定*/
#Home {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.Action_menu .color-white {
  color: #D9D9D9;
}

.BotMsg_box .BotMsg .message {
  margin-bottom: 0;
}

.GoToAgent {
  cursor: pointer;
}

.RetractedTag {
  display: none;
}

/*#endregion Chat設定*/

/*#region 等待訊息*/
.WaitMsg .message {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.bot-typing {
  display: flex;
  gap: 5px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #333;
  border-radius: 50%;
  opacity: 0.2;
  animation: typing 1.5s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.3s;
}

.dot:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes typing {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

/*#endregion 等待訊息*/

/*#region 系統訊息*/
.disconnected {
  margin: 1rem 0;
  flex-direction: column;
  padding-right: 110px;
  padding-left: 80px;
}

.disconnected hr {
  width: 40%;
}

.disconnected .message {
  background: rgba(255, 255, 255, .2);
  border-radius: 0.9rem;
  font-size: 14px;
  padding: 0.5rem 1rem;
  letter-spacing: 1px;
  text-align: center;
  color: #595757;
  position: relative;
  max-width: 30vw;
  margin: 2rem 0;
  line-height: 2rem;
  box-shadow: rgba(0, 0, 0, .1) 0 3px 5px;
}

.disconnected .message .box-title {
  position: absolute;
  display: inline-block;
  top: -13px;
  left: 10px;
  padding: 5px 10px;
  line-height: 1;
  font-size: 16px;
  background: rgba(255, 255, 255, .0);
  color: #353434;
  letter-spacing: 2px;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(3px);
  transform: translateZ(0);
}

.disconnected .NowTime {
  font-size: small;
  bottom: 0;
  color: #595757;

  margin-bottom: 2rem;
  margin-top: 0.5rem;
  margin-left: 0;
  margin-right: 1rem;
  align-self: flex-end;
}

@media only screen and (min-width: 577px) and (max-width: 1200px) {
  .disconnected .message {
    max-width: 50vw;
  }
}

@media (max-width: 576px) {
  .disconnected {
    display: block;
    margin-left: -3rem;
    padding: 0;
  }

  .disconnected .message {
    margin-bottom: 0;
  }

  .disconnected .message .box-title {
    font-size: small;
    backdrop-filter: blur(15px);
  }

  .disconnected .NowTime {
    margin-bottom: 1rem;
  }

  .disconnected .message {
    max-width: 90vw;
  }
}

/*#endregion 系統訊息*/

/*#region 快速工具*/
.function_menu_box {
  background-color: #FFF;
  border-radius: 0.5rem;
}

.function_menu {
  display: none;
  position: absolute;
  left: 0;
  border: 4px solid rgba(255, 255, 255, .4);
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
  width: max-content;
  opacity: 0;
  transform: translateY(-10px);
}

.function_menu.active {
  display: block;
  top: -135px;
  opacity: 1;
  transform: translateY(0);
}

.textShow.blurred {
  filter: blur(8px); /* 模糊效果，可調整數值 */
  pointer-events: none; /* 防止互動 */
}

@media (max-width: 576px) {
  .function_menu.active {
    left: 20px;
    max-width: 320px;
  }
}

.functionControl {
  position: relative;
}

.function_menu_box button, .function_menu_box a {
  padding: 8px 16px;
  width: 100%;
  margin: 0;
  font-size: 14px;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  transition: all .1s ease-in-out;
  background-color: transparent;
  color: #595757;
  display: inline-block;
}

.function_menu_box button:hover, .function_menu_box a:hover {
  color: #000;
}

/*#endregion 快速工具*/

/*#region baby*/
.babyContainer {
  position: relative;
  width: 100%;
  height: 160px;
  margin: 0.5rem auto -10px auto;
}

.babyChild {
  width: 80px;
  height: 110px;
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translate(-50%, 0px);
}

svg {
  overflow: visible;
  position: relative;
  display: block;
}

.fcc {
  display: flex;
  justify-content: center;
  align-items: center;
}

.relative {
  position: relative;
}

.absoulate {
  position: absolute;
}

.visible {
  overflow: visible;
}

.core {
  position: absolute;
  animation: bob 0.6s infinite;;
}

@keyframes bob {
  0%   {top: 20px;
    transform: rotate(5deg);
  }
  22%   {top: 15px;
    transform: rotate(0deg);
  }
  25%   {top: 15px;
    transform: rotate(0deg);
  }
  50%  {top: 20px;
    transform: rotate(5deg);
  }
  72%   {top: 15px;
    transform: rotate(0deg);
  }
  75%   {top: 15px;
    transform: rotate(0deg);
  }
  100% {top: 20px;
    transform: rotate(5deg);
  }
}

.hip-r {
  animation: run-hip-r 0.6s infinite;;
  overflow: visible;
  transform-origin: center;
  position: absolute;
}

@keyframes run-hip-r {
  0% {transform: rotate(15deg);
  }
  23% {
    bottom: 1rem;
  }
  50% {transform: rotate(-10deg);
  }
  75% {
    bottom: 1rem;
  }
  100% {transform: rotate(15deg);
  }
}

.hip-l {
  overflow: visible;
  transform-origin: center;
  animation: run-hip-l 0.6s infinite;;
}

@keyframes run-hip-l {
  0% {
    transform: rotate(-18deg);
  }
  50% {
    transform: rotate(8deg);
  }
  100% {
    transform: rotate(-18deg);
  }
}

.shoulder-l {
  position: absolute;
  overflow: visible;
  animation: run-shoulder-l 0.6s infinite;;
}

@keyframes run-shoulder-l {
  0% {
    -webkit-transform: rotate(-5deg);
  }
  50% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(-5deg);
  }
}

.shoulder-r {
  position: absolute;
  overflow: visible;
  animation: run-shoulder-r 0.6s infinite;;
  transform-origin: center;
}

@keyframes run-shoulder-r {
  0% {
    -webkit-transform: rotate(50deg);
  }
  50% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(50deg);
  }
}

.unhappy .eyes-l,
.unhappy .eyes-r {
  position: absolute;
  overflow: hidden;
  animation: eyebob 0.6s infinite;;
}

.Happy .eyes-l,
.Happy .eyes-r {
  animation: eyebob-happy 0.6s infinite;;
}

@keyframes eyebob {
  0% { transform: translateY(6.5px) }
  25% { transform: translateY(0px) }
  50% { transform: translateY(6.5px) }
  75% { transform: translateY(0px) }
  100% { transform: translateY(6.5px) }
}

@keyframes eyebob-happy {
  0% { transform: translateY(6.5px) }
  25% { transform: translateY(-2px) }
  50% { transform: translateY(6.5px) }
  75% { transform: translateY(-2px) }
  100% { transform: translateY(6.5px) }
}

.head {
  animation: headbounce 0.6s infinite;;
  transform-origin: center;
}

@keyframes headbounce {
  0% {-webkit-transform: rotate(-0deg);
    left: 0px;
    top: -108px;}
  25% {-webkit-transform: rotate(-2deg);
    left: 0px;
    top: -102px;}
  50% {-webkit-transform: rotate(-0deg);
    left: 0px;
    top: -108px;}
  75% {-webkit-transform: rotate(-2deg);
    left: 0px;
    top: -102px;}
  100% {-webkit-transform: rotate(-0deg);
    left: 0px;
    top: -108px;}
}

.mouth {
  animation: smilebob 0.6s infinite;;
  transform-origin: center;
}

@keyframes smilebob {
  0% { transform: rotate(5.0395deg) scale(1); }
  25% { transform: rotate(5.0395deg) scale(0.95, 1.1); }
  50% { transform: rotate(5.0395deg) scale(1, 0.95); }
  75% { transform: rotate(5.0395deg) scale(0.95, 1.1); }
  100% { transform: rotate(5.0395deg) scale(1); }
}

.drip-t {
  animation: dripTbob 0.6s infinite;;
}

@keyframes dripTbob {
  0% { transform: translateX(5px) }
  25% { transform: translateX(-5px) }
  50% { transform: translateX(5px) }
  75% { transform: translateX(-5px) }
  100% { transform: translateX(5px) }
}

.drip-d {
  animation: dripDbob 0.6s infinite;;
}

@keyframes dripDbob {
  0% { transform: translateX(-5px) }
  25% { transform: translateX(5px) }
  50% { transform: translateX(-5px) }
  75% { transform: translateX(5px) }
  100% { transform: translateX(-5px) }
}

.unhappy .mouth-inside {
  animation: mouth-inside-bob 0.6s infinite;;
  transform-origin: center;
}

@keyframes mouth-inside-bob {
  0% { transform: rotate(5.0395deg) scale(1); }
  25% { transform: rotate(5.0395deg) scale(0.98, 1); }
  50% { transform: rotate(5.0395deg) scale(1, 0.98); }
  75% { transform: rotate(5.0395deg) scale(0.98, 1); }
  100% { transform: rotate(5.0395deg) scale(1); }
}

.Happy .mouth-inside {
  animation: mouth-inside-bob-happy 0.6s infinite;;
  transform-origin: center;
}

@keyframes mouth-inside-bob-happy {
  0% { transform: rotate(5.0395deg) scale(1); }
  25% { transform: rotate(5.0395deg) scale(0.9, 1); }
  50% { transform: rotate(5.0395deg) scale(1, 0.9); }
  75% { transform: rotate(5.0395deg) scale(0.9, 1); }
  100% { transform: rotate(5.0395deg) scale(1); }
}

.fa-spinner {
  animation: spin 3s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*#endregion baby*/

/*#region loading*/
.loading-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.loading-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid #fff;
  border-radius: 50%;
  animation: loading-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #ffffffcf transparent transparent transparent;
}

.loading-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.loading-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.loading-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes loading-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-panel {
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: #0000004f;
  display: flex;
  justify-content: center;
  align-items: center;
}
/*#endregion loading*/
