/* ==================================================================	*/
/* 處理和原有Css產生衝突的部分，套用客戶版型處為ChatView.js > renderSKFH()	*/
/* TalkingView.js > render > mid : 修改預設字型大小為1rem				    */
/* ==================================================================	*/
/* 隱私權聲明，我知道了顏色 */
.btn-privacy {
  margin: 0px 6px;
}

.btn-privacy:hover {
  color: #fff;
  margin: 0px 6px;
}

.main-wrapper {
  -webkit-overflow-scrolling: touch;
  will-change: transform;
}

/* 覆蓋 bootstrap 設定*/
a {
  font-size: 1rem;
}

/* 覆蓋 bootstrap 設定*/
li.li-with-icon {
  color: #0f0f0f;
}

/* 覆蓋 bootstrap 設定*/
/*.msg.msg-bubble {*/
/*  color: #FFF;*/
/*}*/

p {
  margin: 0;
}

.msg-sticker-img {
  display: flex;
  margin-left: 0;
  padding: 0;
}

.msg-box-robot .msg-bubble {
  display: inline-block;
  margin-left: 0;
  max-width: calc(75% + 5px);
}

.msg-box-user .msg-bubble {
  max-width: calc(75% - 45px);
}

.system .msg-bubble {
  max-width: calc(75% - 45px);
}

.msg-cont:before, .msg-cont:after {
  visibility: hidden;
}

.avatar-wrapper {
  position: static;
}

.msg-loading {
  width: max-content;
}

.input-bar .inputfield .user-input+.btn-input-send {
  display: inline-block;
}

.row {
  margin-left: 0;
}

/* 圖卡版面調整(B2) */
.card-B2-swiper {
  margin-top: 0.5rem;
}

.swiper-container.card-B2-swiper.swiper-container-initialized.swiper-container-horizontal {
  padding-left: 62px;
}

.B2-title {
  border-bottom: none;
}

.B2-linklist li {
  border-top: 1px solid #CCCCCC;
  height: 40px;
  text-align: center;
  line-height: 40px;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 0 10px;
  white-space: nowrap;
}

.B2-linklist a {
  padding: 0;
}

.B2-title p {
  font-weight: normal;
  font-size: 0.875rem;
  text-align: left;
  margin-bottom: 0;
  color: #666;
}

.description {
  color: #414141;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #D8D8D8;
  background: url("../img/B2-title.svg") no-repeat right 0 top 0;
  background-size: 20px 20px;
}

.description h4 {
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
}

.question-clickable {
  text-align: center;
  color: #E1251B;
}

.question-clickable:hover {
  font-weight: bold;
}

.B1-wrapper {
  width: 100%;
  display: flex;
}

@media only screen and (max-width: 900px) {
  .B1-wrapper {
    flex-direction: column;
  }
}

.swiper-container.card-B1-swiper {
  margin-top: 15px;
}

.msg-wrapper {
  width: calc(100% - 70px);
}

.D-wrapper {
  display: flex;
  width: calc(100% - 70px);
}

.D7-wrapper {
  display: flex;
  width: calc(100% - 70px);
}

/* E1, E2 多按鈕 */
.E1-wrapper  .msg-btnlist.msg-btnlist-bottom, .E2-wrapper .msg-btnlist.msg-btnlist-bottom {
  height: auto;
}

/* imagemap */
.msg-Imap-img {
  padding-left: 0;
}

/* 原先廠商設為999導致歡迎語有J版型mask遮不住 */
.inputopt-section {
  z-index: 10;
}

/* J1-自動完成 */
.inputopt-J1 {
  padding-top: 0;
}

.ui-helper-hidden-accessible {
  display: none;
}

.ui-state-focus {
  background: #E1251B;
  color: #fff;
}

/* 問卷 */
.swiper-container.card-H-swiper {
  padding-bottom: 0;
}
/* 五顆星評分 */
.score-rating ul {
  width: 100%;
  padding: 20px 0 0 0;
  text-align: center;
  color: #E1251B;
}

.score-rating li {
  width: 5vh;
  height: 5vh;
  list-style: none;
  display: inline-block;
  background: none;
  margin: 5px;
}

.score-rating li:hover {
  cursor: pointer;
}

/* 開放式答案 */
.H-page-wrapper .H-ques-txt:before {
  content: none;
}

/* 貼圖 */
.sticker {
  flex: 0 0 auto;
}

.msg-sticker-img {
  margin-top: 0.5rem;
}

/* 動態貼圖 frame2~5, 8~10 */
.sticker-ani-2f {
  background-size: 340px 170px;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(2, end);
  animation-name: stickerAniSteps2;
}

@keyframes stickerAniSteps2 {
  100% {
    background-position: -340px center;
  }
}

.sticker-ani-3f {
  background-size: 510px 170px;
  animation-duration: 0.6s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(3, end);
  animation-name: stickerAniSteps3;
}

@keyframes stickerAniSteps3 {
  100% {
    background-position: -510px center;
  }
}

.sticker-ani-4f {
  background-size: 680px 170px;
  animation-duration: 0.9s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(4, end);
  animation-name: stickerAniSteps4;
}

@keyframes stickerAniSteps4 {
  100% {
    background-position: -680px center;
  }
}

.sticker-ani-5f {
  background-size: 850px 170px;
  animation-duration: 1.2s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(5, end);
  animation-name: stickerAniSteps5;
}

@keyframes stickerAniSteps5 {
  100% {
    background-position: -850px center;
  }
}

.sticker-ani-8f {
  background-size: 1360px 170px;
  animation-duration: 2.1s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(8, end);
  animation-name: stickerAniSteps8;
}

@keyframes stickerAniSteps8 {
  100% {
    background-position: -1360px center;
  }
}

.sticker-ani-9f {
  background-size: 1530px 170px;
  animation-duration: 2.4s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(9, end);
  animation-name: stickerAniSteps9;
}

@keyframes stickerAniSteps9 {
  100% {
    background-position: -1530px center;
  }
}

.sticker-ani-10f {
  background-size: 1700px 170px;
  animation-duration: 2.7s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(10, end);
  animation-name: stickerAniSteps10;
}

@keyframes stickerAniSteps10 {
  100% {
    background-position: -1700px center;
  }
}

/* 自動完成功能用方向鍵選擇時的 highlight */
.ui-state-focus {
  background-color: transparent;
  font-weight: bold;
}

/* 自動完成符合字串 */
.ui-autocomplete-term { color: #E1251B; }

/* J3按鈕改黑色 */
.inputopt-J3-wrapper .msg-btnlist-alone a {
  color: black;
}

/* jquery-ui 版型調整成 J3 */
li.show-link.js-inputopt-J3-close.ui-menu-item {
  border-bottom: 1px solid #D8D8D8;
  display: block;
  padding: 0.8rem 1rem;
}

/* 關閉橫向捲軸 */
.inputopt-J3 {
  overflow-x: hidden;
}


/* 時間改側邊版型調整-head */
.avatar-wrapper {
  align-self: flex-start;
}

.msg-box-robot:after {
  content: none;
}

.msg-box-robot:after, .msg-box-user:after {
  align-self: flex-end;
}

.msg-wrapper:after, .msg-sticker-img:after, .D-wrapper:after, .B1-wrapper:after, .D7-wrapper:after, .system:after {
  content: attr(data-time);
  width: auto;
  font-size: 12px;
  color: #414141;
  align-self: flex-end;
  margin-left: 2px;
  flex: 0 0 auto;
}
/* 時間改側邊版型調整-end */

/* 結束對話按鈕 */
.exit {
  width: 100%;
}

.exit-yes-btn {
  color: #E1251B;
}

p.E3-txt {
  margin: 0.5rem 0;
}

/* imageMap 時間改下方版型調整 */
.I-wrapper {
  width: calc(100% - 70px);
}

.I-wrapper:after {
  content: attr(data-time);
  width: auto;
  font-size: 12px;
  color: #414141;
}

/* Header CI D版 (logo 去除系統名稱且手機寬度置中) */
.top-bar .logo {
  background-position: 10px;
  width: 150px;
}

@media only screen and (max-width: 768px) {
  .top-bar {
    justify-content: center;
  }

  .top-bar .top-toggle {
    position: absolute;
    right: 0;
    top: 5px;
  }

}

/* for 自適應圖片(robot 傳 type = text 的狀況) */
.msg-sticker-img {
  width: auto;
}
.msg-sticker-img p img {
  width: 100%;
  height: auto;
}
.msg-wrapper .msg-sticker-img:after {
  content: none;
}