html, body {
  height: 100%;
  max-height: 100%;
  /* min-height: 100%; */
  overflow: hidden;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  touch-action: manipulation;
}

body {
  font-family: Meiryo, "PingFang TC", "微軟正黑體", "Microsoft JhengHei", sans-serif;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#lhc_livechat {
  height: 100%;
  overflow: hidden;
  /* height: 100%; */
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
}

.main-wrapper {
  width: 100%;
  flex-grow: 1;
  overflow: hidden;
  display: -ms-flexbox;
  display: flex;
  /* height: calc(100% - 40px); */
}

.chat-wrapper {
  flex-grow: 1;
  overflow: hidden;
  border-right: 1px solid #D9D9D9;
  position: relative;
  background-color: white;
  display: flex;
  flex-direction: column;
}

.chat-message-container {
  flex-grow: 1;
  width: 100%;
  padding: 0 40px;
  overflow-y: auto;
  overflow-y: overlay;
  -ms-overflow-y: scroll;
}

.chat-messages {
  margin-top: 40px;
}

.chat-input-container {
  background: #FFFFFF;
  width: 100%;
  padding: 0px 28px 16px;
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-shrink: 0;
  position: relative;
}

.chat-input-buttons {
  display: inline-block;
  /* display: none; */
  flex-shrink: 0;
  margin-right: 8px;
}

.chat-input-buttons button {
  border: 1px solid #BFBFBF;
  background-color: transparent;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  outline: none;
}

.mobile-menu-btn {
  background: url('../img/mobile-menu.svg') 50% 50% no-repeat;
  display: none;
}

.mobile-menu-opened .mobile-menu-btn {
  background: url('../img/mobile-menu-active.svg') 50% 50% no-repeat;
}

body:not(.mobile) .voice-input-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 360px;
  height: 360px;
  background-color: white;
  z-index: 100;
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

body:not(.mobile).voice-input-opened .voice-input-panel {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s;
  padding-top: 60px;
}

.voice-input-close-btn {
  background: url('../img/close-circle.svg') no-repeat;
  width: 25px;
  height: 25px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

.voice-input-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  height: 100%;
}

.voice-input-txt {
  position: absolute;
  text-align: center;
  top: 54px;
  left: 0;
  color: #BFBFBF;
  font-size: 18px;
  width: 100%;
  padding: 0 20px;
}

.voice-input-error {
  color: #F57F17;
}

.voice-input-panel-btn {
  background: url('../img/voice-input.svg') 50% 50% no-repeat;
}

.voice-input-opened .voice-input-panel-btn {
  background: url('../img/voice-input-active.svg') 50% 50% no-repeat;
}

.waveform-base {
  border: 0;
  background-color: rgba(34, 150, 243, 0.30);
  height: 1px;
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  left: 0;
}

#waveform-container {
  width: 100%;
  position: absolute;
  margin-top: 2px;
  opacity: 0.4;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.chat-input-form {
  flex-grow: 1;
}

.chat-input-form>input {
  vertical-align: middle;
}

.chat-input-form .txt_input {
  height: 48px;
  width: calc(100% - 70px);
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #BFBFBF;
  border-radius: 4px 0 0 4px;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
}

.chat-input-form .btn_send {
  height: 48px;
  width: 70px;
  border-radius: 0 4px 4px 0;
  outline: none;
  background-color: #2296F3;
  margin-left: -8px;
  border: none;
  color: white;
  letter-spacing: 3px;
  -webkit-appearance: none;
}

.top {
  position: relative;
  height: 60px;
  min-height: 60px;
  line-height: 60px;
  padding-right: 20px;
  padding-left: 40px;
  background: #2296F3;
}

.top-logo span {
  margin-left: 12px;
  font-size: 20px;
  color: white;
  vertical-align: middle;
}

.top-banner {
  background-color: white;
  line-height: 60px;
  font-size: 16px;
  color: #7F7F7F;
  height: 0;
  border-bottom: 1px solid #CCC;
  padding: 0 40px;
  transition: height 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.top-banner.show {
  height: 60px;
  min-height: 60px;
  transition: height 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.top-banner a {
  font-size: 16px;
  color: #2296F3;
}

.top-banner img {
  margin-right: 14px;
}

/*==============================================
  MENU STYLES
  =============================================*/
/*
  側邊欄樣式使用 main.css 的 RWD 樣式
*/

.sidebar .tab.active {
  color: #2B93FC;
}

.sidebar .tab.active:after {
  background-color: #2B93FC;
}

.question-clickable {
  color: #2296F3;
}

/* welcome和welcome4歡迎語裡的可點擊連結樣式 */
.welcome .chat-item span.question-clickable {
  color: #2296F3;
  cursor: pointer;
  text-decoration: underline;
  display: inline;
  height: auto;
}

/* URL 及傳送訊息按鈕統一樣式（黑字無底色） */
.btn.btn-link {
  color: #333333;
  text-decoration: none;
  background-color: transparent;
  border-color: transparent;
}
.btn.btn-link:hover {
  color: #000000;
  background-color: transparent;
}

.hover-content {
    display: none;
    opacity: 0;
    z-index: 1;
    width: 0;
    transition: opacity 1s, width 1s;
    border-bottom: 1px dashed #999;
    margin-left: 3px;
    margin-right: 15px;
}

.hover-container:hover .hover-content {
    display: inline-block;
    opacity: 1;
    width: auto;
}

.badge.question-clickable {
    color: black;
    font-size: 16px;
    cursor: pointer;
}

.slide-indicator-container {
  position: absolute;
  display: none;
  height: 20px;
  width: 100%;
  text-align: center;
  /* background-color: red; */
  margin-top: -10px;
}

.slide-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 1px;
  background-color: #c0c0c0;
}

.slide-indicator.active {
  background-color: darkslategray;
}

.voice-input-btn {
  height: 100px;
  width: 100px;
  border-radius: 50%;
  text-align: center;
  line-height: 100px;
  z-index: 99;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

.voice-input-btn.active {
  background-color: rgba(34, 150, 243, 0.05);
}

.voice-input-btn img {
  /* height: 50px; */
  /* width: 50px; */
  pointer-events: none;
  height: 60%;
}

/*==============================================
  DASHBOARD STYLES
  =============================================*/
.div-square {
  padding: 5px;
  border: 3px double #e1e1e1;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
  margin: 5px;
}

.div-square>a, .div-square>a:hover {
  color: #808080;
  text-decoration: none;
}

/*==============================================
  FOOTER STYLES
  =============================================*/
.footer {
  background-color: #cce300;
  min-height: 50px;
  height: 50px;
  z-index: 12;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding-left: 5px;
  padding-right: 5px;
  gap: 5px;
  color: #fff;
}

@media screen and (min-width: 576px) {
  .footer {
    min-height: 62px;
    height: 62px;
  }
}

.footer>a, .footer>a:hover {
  color: #fff;
}

.footer .footer-user {
  position: relative;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
}

.avatar-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.robot-avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

#username {
  font-size: 11px;
  text-align: center;
  color: #666;
  max-width: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.message-datetime {
  font-size: 0.75rem;  /* 12px */
  margin-bottom: 8px;
  color: #bfbfbf;
  clear: both;
}

.by-user .message-datetime {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  margin-right: 5px;
}

.message-row .msg {
  border-radius: 0.75rem;
  background-color: #ebf5ff;
  color: #4C4C4C;
  font-size: 1rem;
  line-height: 1.5em;
  word-break: break-word;
  word-wrap: break-word;
  font-family: Meiryo, "PingFang TC", "Microsoft JhengHei", sans-serif;
  float: left;
  max-width: 560px ;
}

.message-row .msg > div + div {
  margin-top: 10px;
}

.message-row .msg img {
  display: block;
  max-width: 100%;
}

.message-row.by-user {
  float: right;
}

.message-row.by-user .msg {
  background-color: #a3ebac;
  float: right;
}

.message-row.by-user .msg .inline-msg{
  background-color: #a3ebac;
}

.col-lg-12 {
  padding-left: 0px;
  padding-right: 0px;
}

button.btn_help {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 50%;
  right: 95px;
  margin-top: -18px;
  border: 0;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  background: url(../img/help.svg) 0 0 no-repeat;
  background-position: 50% 50%;
  background-size: 24px 24px;
}

button.btn_exit {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 50%;
  right: 40px;
  margin-top: -18px;
  border: 0;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  /* float: right; */
  background: url(../img/close.svg) 0 0 no-repeat;
  background-position: 50% 50%;
  background-size: 24px 24px;
}

.tooltip-inner {
  padding: 10px;
  width: 260px;
  max-width: 350px;
  text-align: left;
  background: rgba(64, 64, 64, 0.85);
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.20);
  border-radius: 6px;
  font-size: 14px;
  color: #FFFFFF;
}

.tooltip.bottom .tooltip-arrow {
  border-bottom-color: rgba(64, 64, 64, 0.85);
}

@keyframes inputbox-anim {
  0% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(-8px);
  }
}

@keyframes inputbox-float-anim {
  100% {
    transform: translateY(-8px);
  }
}

@keyframes grid-icon-anim {
  0% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(-4px);
  }
  100% {
    transform: translateX(-8px);
  }
}

@keyframes grid-icon-float-anim  {
  100% {
    transform: translateX(-8px);
  }
}
.tip {
  position: absolute;
  display: inline-block;
  z-index: 100;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  transform: translateZ(0);
}

.tip.animated {
  animation-duration: .3s, 1.5s;
  animation-timing-function: ease-out, ease-in-out;
  animation-delay: .3s, .3s;
  animation-iteration-count: 1, infinite;
  animation-direction: normal, alternate;
  animation-fill-mode: forwards;
}

.grid-icon-tip {
  position: fixed;
  right: 420px;
}

.grid-icon-tip:after {
  bottom: calc(50% - 6px);
  right: -12px;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-left-color: #4C4C4C;
  /* border-left-color: red; */
  border-width: 6px;
}

.inputbox-tip {
  top: -65px;
  left: calc(50% - 190px);
}

.inputbox-tip:after {
  bottom: -12px;
  left: calc(50% - 6px);
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-top-color: #4C4C4C;
  border-width: 6px;
}

.overlay {
  position: absolute;
  width: 100vw;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.overlay.active {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s;
}

.tip-highlight {
  background: rgba(34, 150, 243, 0.20);
  border: 2px solid #FFF;
  position: absolute;
  z-index: 100;
}

.grid-icon-tip-highlight {
  width: 108px;
  height: 108px;
  border-radius: 4px;
}

.inputbox-tip-highlight {
  border-radius: 4px;
  width: calc(100% - 60px);
  height: 50px;
}

.tip-content {
  background-color: #4C4C4C;
  border-radius: 4px;
  color: white;
  font-size: 16px;
  padding: 10px 20px;
  font-weight: 300;
  line-height: 1.6em;
}

.grid-icon-tip-content {
  width: 270px;
}

.inputbox-tip-content {
  width: 420px;
}

.skip-tips-btn {
  background: transparent;
  padding: 1px 20px;
  border: 2px solid #FFFFFF;
  border-radius: 8px;
  font-size: 20px;
  line-height: 36px;
  color: #FFFFFF;
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  cursor: pointer;
  pointer-events: auto;
}

.tutorial-1 {
  display: none;
  opacity: 0;
}

.tutorial-2 {
  display: none;
  opacity: 0;
}

.tutorial-1.active {
  display: inline-block;
  opacity: 1;
  transition: opacity 1s linear;
}

.tutorial-2.active {
  display: inline-block;
  opacity: 1;
  transition: opacity 1s linear;
}

.itri-tooltip {
  position: absolute;
  display: none;
  width: 114px;
  height: auto;
  background: #4C4C4C;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.20);
  border-radius: 4px;
  font-size: 14px;
  line-height: 20px;
  color: #FFFFFF;
  top: 50%;
  margin-top: 24px;
  right: 30px;
  padding: 10px 15px;
  z-index: 1;
}

button.btn_help:hover+.itri-tooltip {
  display: inline-block;
}

.itri-tooltip:after {
  bottom: 100%;
  right: 22px;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: rgba(136, 183, 213, 0);
  border-bottom-color: #4C4C4C;
  border-width: 6px;
}

.message-row {
  position: relative;
  margin-bottom: 10px;
  overflow: visible;
  clear: both;
}

.message-row a {
  color: #2296F3;
  font-size: inherit;
  cursor: pointer;
}

.message-row a:hover {
  color: #71B1F7;
  text-decoration: none;
}

.message-row.by-robot {
  position: relative;
  /*min-height: 96px;*/
}

.message-row.by-robot .msg,
.message-row.by-robot .feedback-wrapper{
  margin-left: 50px;
  margin-right: 0;
}

.message-row.by-robot .feedback-wrapper {
  clear: both;
  margin-top: 5px;
  display: flex;
  color: #bfbfbf;
}
.message-row.by-robot .feedback-wrapper span {
  font-size: 1rem;
  line-height: 1.6rem;
}

.feedback-btns {
  padding-top: 5px;
}

.feedback-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-left: 20px;
  cursor: pointer;
}

.feedback-btn:hover {
  color: #333333;
}

.feedback-btn img {
  width: 22px;
  height: 22px;
}

.feedback-btn span {
  white-space: nowrap;
  margin-left: 5px;
}

.message-row.by-robot .message-datetime {
  margin-left: 50px;
}

.message-row.grouped .robot-avatar,
.message-row.grouped .staff-name,
.message-row.grouped .message-datetime {
  display: none;
}

.message-row.grouped {
  margin-bottom: 5px;
}

.message-row.grouped.by-robot .msg,
.message-row.grouped.by-robot .feedback-wrapper {
  margin-left: 50px;
}

.message-row.by-robot.swiper {
  margin-right: 0;
  overflow: visible;
}

.message-row.by-robot.swiper .msg {
  margin-right: 0;
  position: relative;
  overflow: visible;
  display: flex;
}

.swiper .buttons-message-container {
  padding-right: 0;
}

.buttons-message-container {
  margin-left: 0px;
  float: left;
  display: -ms-flexbox;
  display: flex;
  overflow: visible;
}

/* ========================================
   和泰汽車輪播卡片樣式 - Toyota Carousel
   調整為與 SmartRobot default3 chat-item 一致的尺寸
   ======================================== */
.buttons-message-block {
  width: 260px;
  padding: 10px;
  border-radius: 0 16px 16px 16px;
  background-color: #ebf5ff;
  color: #333333;
  font-size: 16px;
  display: inline-block;
  box-sizing: border-box;
  vertical-align: top;
}

/* Swiper slide 基礎樣式 */
.swiper-slide {
  flex-shrink: 0;
  position: relative;
  transition-property: transform;
  display: block;
}

/* Swiper 中的 chat-item 也套用相同寬度 */
/* chat-item 的 padding 是 10px,所以 260px = 內容 240px + padding 左右各 10px */
.swiper-slide.chat-item {
  width: 100%;
  max-width: 260px;
  height: auto;
}

/* 輪播卡片固定寬度 240px (移除 RWD,所有螢幕寬度都一樣) */

/* Quick replies 需要 width: 100% */
.quickreplies-message-block {
  width: 100%;
  height: auto;
}

/* 和泰圖片容器 */
.buttons-message-block .img-wrapper {
  margin-bottom: 10px;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  border-radius: 8px;
  border: 1px solid #333333;
  overflow: hidden;
  position: relative;
}

.buttons-message-block .img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.buttons-message-block .description h4 {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6rem;
  margin: 0 0 10px 0;
  text-align: center;
  color: #333333;
}

@media screen and (min-width: 768px) {
  .buttons-message-block .description h4 {
    font-size: 1.125rem;
  }
}

.buttons-message-block .description {
  background-color: transparent;
  color: #333333;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6rem;
  margin: 0 0 10px 0;
  padding: 0;
  border: none;
  white-space: normal;
  text-align: left;
}

.buttons-message-block ul {
  list-style: none;
  padding: 0;
  background-color: transparent;
  margin: 0;
  border: none;
  border-radius: 0;
}

.buttons-message-block ul li {
  border: 1px solid #bfbfbf;
  border-radius: 8px;
  padding: 5px;
  width: 100%;
  height: auto;
  background-color: #ffffff;
  cursor: pointer;
  text-align: center;
  display: block;
  text-decoration: none;
  color: #333333;
  font-size: 1rem;
  line-height: 1.15;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
  margin-bottom: 5px;
  font-weight: 500;
  vertical-align: middle;
  user-select: none;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.buttons-message-block ul li:last-child {
  margin-bottom: 0;
}

.buttons-message-block ul li a {
  color: #333333;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.buttons-message-block ul li a:hover {
  color: #000000;
  text-decoration: none;
}

.buttons-message-block ul li:hover {
  background-color: #dbdbdb;
  color: #333333;
}

.buttons-message-block ul li.disable {
  opacity: 0.2;
  cursor: default;
}

.buttons-message-block ul li.disable:hover {
  background-color: #ffffff;
}

/* Swiper 容器需要更大的寬度來容納卡片 */
.message-row .msg.swiper-scroll-container {
  max-width: 100%;
}

/* 為包含 loyalty-rewards-swiper 的 .msg 移除背景色和寬度限制 */
.message-row .msg:has(.loyalty-rewards-swiper) {
  background-color: transparent;
  padding: 0;
  max-width: 100%;
}

/* RWD 響應式設計 - 調整 padding 和子元素 */
@media (max-width: 767.98px) {
  .buttons-message-block {
    padding: 15px;
  }

  .buttons-message-block .img-wrapper {
    margin-bottom: 15px;
  }

  .buttons-message-block .description h4 {
    margin-bottom: 15px;
  }

  .buttons-message-block ul li {
    margin-bottom: 8px;
  }
}

@media (max-width: 575.98px) {
  .buttons-message-block {
    padding: 10px;
  }

  .buttons-message-block .img-wrapper {
    margin-bottom: 10px;
  }

  .buttons-message-block .description h4 {
    font-size: 0.9rem;
    line-height: 1.3rem;
    margin-bottom: 10px;
  }

  /* 按鈕樣式保持一致，不隨螢幕大小改變 */
}

.quickreplies-container {
  padding: 0;
}

.swiper-scroll-container {
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  position: relative;
}

.swiper-scroll-container::-webkit-scrollbar {
  display: none;
}

.swiper-control-button {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background-color: #2296F3;
  position: absolute;
  top: calc(50% - 18px);
  cursor: pointer;
  z-index: 10;
}

.swiper-control-button.prev {
  left: 34px;
  background-image: url('../img/arrow.svg');
  background-repeat: no-repeat;
  background-position: 44% 50%;
  background-size: 10px 16px;
}

.swiper-control-button.next {
  right: 40px;
  background-image: url('../img/arrow.svg');
  background-repeat: no-repeat;
  background-position: 44% 50%;
  background-size: 10px 16px;
  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  filter: FlipH;
  -ms-filter: "FlipH";
}

.swiper-scroll-container {
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  -webkit-scroll-snap-type: mandatory;
  -ms-scroll-snap-type: mandatory;
  scroll-snap-type: mandatory;
  scroll-padding-left: 86px;
  float: none !important;
  background: none !important;
  box-shadow: none !important;
}

.buttons-container {
  background: none !important;
  box-shadow: none !important;
}

@-moz-document url-prefix() {
  .swiper-scroll-container {
    scroll-snap-points-x: repeat(246px);
  }
}

.swiper .buttons-message-block {
  scroll-snap-align: start;
  /* 保持淡藍色背景 #ebf5ff,不要設為 transparent */
}

/* Carousel (swiper) 內的 description 樣式 */
.swiper .buttons-message-block .description {
  color: #333333;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6rem;
  margin-bottom: 10px;
  text-align: left;
}

/* Carousel 標題 h4 保持置中 */
.swiper .buttons-message-block .description h4 {
  text-align: center;
}

.inline-msg {
  border-radius: 0.75rem;
  background-color: #ebf5ff;
  color: #4C4C4C;
  font-size: inherit;
  line-height: 1.6rem;
  word-break: break-word;
  word-wrap: break-word;
  padding: 10px;
  display: block;
  width: 100%;
  max-width: 374px;
}

.inline-msg.file-msg a {
  color: #2563eb;
  text-decoration: none;
}

.inline-msg.file-msg a:hover {
  text-decoration: underline;
}

.survey-wrapper {
  width: 100vw;
  height: 100vh;
  overflow-y: scroll;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.survey {
  width: 517px;
  min-height: 300px;
  flex: 0 0 auto;
  margin: auto;
  border-radius: 4px;
  background-color: white;
  padding: 30px 24px;
  box-shadow: 0 2px 8px 0 rgb(153, 153, 153);
}

.survey-header {
  font-size: 14px;
  color: #7F7F7F;
  position: relative;
  text-align: center;
}

.survey-header h4 {
  font-size: 18px;
  font-weight: 500;
  color: #2B93FC;
  margin: 0;
}

.survey-header .close-btn {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url('../img/close-circle.svg') 0 0 no-repeat;
  background-size: 18px 18px;
  background-position: 50% 50%;
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
}

.survey-header img {
  width: 75px;
  height: 75px;
  margin: 0 auto;
  display: block;
}

.survey-header p {
  margin-bottom: 30px;
}

.scale-label-container {
  color: #7F7F7F;
  font-size: 12px;
  position: relative;
  height: 14px;
  margin-top: 14px;
}

.scale-label-container span {
  position: absolute;
  right: 0;
}

.scale-label-container span:first-child {
  right: 210px;
}

.survey-question-container {
  display: flex;
  flex-wrap: wrap;
}

.survey-question {
  width: 45%;
  color: #4C4C4C;
  font-size: 14px;
  line-height: 1.6em;
  margin-top: 20px;
}

.survey-scale {
  display: flex;
  width: 55%;
  margin-top: 20px;
  align-items: center;
}

.survey-scale .scale-label {
  font-size: 12px;
  color: #7F7F7F;
  display: none;
}

.survey-scale .radio-button-wrapper {
  position: relative;
  padding: 1px;
  display: block;
  width: 16px;
  height: 16px;
  flex-grow: 1;
  text-align: center;
}

.survey-scale input[type="radio"] {
  position: absolute;
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.survey-scale .radio-button {
  position: absolute;
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 2px #D9D9D9;
  border: 3px solid white;
  background-color: white;
  border-radius: 50%;
  cursor: pointer;
}

.survey-scale input[type="radio"]:checked+.radio-button {
  box-shadow: 0 0 0 2px #1890FF;
  border: 3px solid white;
  background-color: #1890FF;
}

.survey .submit-button-wrapper {
  width: 100%;
  text-align: center;
}

.survey input[type="submit"] {
  border: none;
  border-radius: 4px;
  background-color: #1890FF;
  color: white;
  width: 194px;
  height: 32px;
  display: block;
  margin: 50px auto 20px auto;
  font-weight: normal;
  letter-spacing: 3px;
}

.score-rating ul {
  width: 100%;
  padding: 20px 0 0 0;
  text-align: center;
}

.score-rating li {
  width: 5vh;
  height: 5vh;
  list-style: none;
  display: inline-block;
  background: url('../img/star_on.png') 0% 0%/contain;
  margin: 5px;
}

.score-rating li:hover {
  cursor: pointer;
}

.exit-wrapper {
  width: 100vw;
  height: 100vh;
  overflow-y: scroll;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.exit {
  width: 450px;
  min-height: 300px;
  flex: 0 0 auto;
  margin: auto;
  border-radius: 4px;
  background-color: white;
  padding: 30px 24px;
  box-shadow: 0 2px 8px 0 rgb(153, 153, 153);
}

.exit-header {
  font-size: 14px;
  color: #7F7F7F;
  border-bottom: 1px solid #CCC;
  position: relative;
}

.exit-header h4 {
  font-size: 18px;
  font-weight: 500;
  color: #2B93FC;
  margin: 0;
  text-align: center;
}

.exit-header .close-btn {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url('../img/close-circle.svg') 0 0 no-repeat;
  background-size: 24px 24px;
  background-position: 50% 50%;
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
}

.exit-header p {
  margin-bottom: 30px;
}

.sticker-input-panel-btn {
  background: url('../img/sticker.svg') 50% 50% no-repeat;
  background-size: 24px 24px;
}

.sticker-input-panel-btn:hover {
  background: url('../img/sticker-hover.svg') 50% 50% no-repeat;
  background-size: 24px 24px;
}

.sticker-wrapper {
  width: 100vw;
  height: 100vh;
  overflow-y: scroll;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sticker {
  width: 700px;
  min-height: 300px;
  flex: 0 0 auto;
  margin: auto;
  border-radius: 4px;
  background-color: white;
  padding: 30px 24px;
  box-shadow: 0 2px 8px 0 rgb(153, 153, 153);
}

.sticker-header {
  font-size: 14px;
  color: #7F7F7F;
  position: relative;
}

.sticker-header .close-btn {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url('../img/close-circle.svg') 0 0 no-repeat;
  background-size: 24px 24px;
  background-position: 50% 50%;
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
}

.sticker-header p {
  margin-bottom: 30px;
}

.sticker-content div {
  position: relative;
  width: 90px;
  height: 90px;
  float: left;
  margin: 0 20px 30px 20px;
  overflow: visible;
}

.sticker-content img {
  width: 90px;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all .3s;
  cursor: pointer;
}

.form-control-round {
  margin-left: 5px;
  border: 1px solid #2d9ee0;
  border-radius: 15px;
  color: #2d9ee0;
  display: inline-block;
  width: auto;
}

/*==============================================
  MEDIA QUERIES
  =============================================*/
@media (max-width: 767.98px) {
  .top {
    height: 40px;
    min-height: 40px;
    line-height: 40px;
    padding: 0;
  }
  .top .btn_help {
    display: none;
  }
  .top .top-logo {
    text-align: center;
  }
  .top-banner.show {
    height: 0;
    min-height: 0;
  }
  .main-wrapper {
    flex-direction: column;
  }
  .chat-message-container {
    padding: 0 16px;
    width: 100vw;
    -webkit-overflow-scrolling: touch;
  }
  .chat-messages {
    margin-top: 26px;
  }
  .robot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }
  #username {
    font-size: 10px;
    max-width: 45px;
  }
  .message-row.by-robot .msg,
  .message-row.by-robot .feedback-wrapper {
    margin-left: 50px;
    margin-right: 0;
  }
  .message-row.by-robot .message-datetime {
    margin-left: 50px;
  }
  .by-user .message-datetime {
    margin-right: 5px;
  }
  .buttons-message-container {
    margin-left: 0px;
  }
  .chat-input-container {
    padding: 14px 16px;
  }
  .mobile-menu-btn {
    display: inline-block;
  }
  .mobile-menu-opened .chat-input-container,
  .voice-input-opened .chat-input-container {
    z-index: 99;
  }
  .chat-input-buttons {
    display: inline-block;
  }
  .slide-container {
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    -webkit-scroll-snap-type: mandatory;
    -ms-scroll-snap-type: mandatory;
    scroll-snap-type: mandatory;
    /* older spec implementation */
    -webkit-scroll-snap-destination: 0% 100%;
    -ms-scroll-snap-destination: 0% 100%;
    scroll-snap-destination: 0% 100%;
    -webkit-scroll-snap-points-x: repeat(100%);
    -ms-scroll-snap-points-x: repeat(100%);
    scroll-snap-points-x: repeat(100%);
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
  }
  .sidebar section {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    scroll-snap-align: start;
    padding: 0 20px;
    margin-bottom: 20px;
  }
  .slide-indicator-container {
    display: block;
  }
  .voice-input-panel {
    width: 100vw;
    height: 0;
    flex-shrink: 0;
    transition: height 0.3s;
  }
  .voice-input-opened .voice-input-panel {
    height: 330px;
    transition: height 0.3s;
    background-color: white;
  }
  .voice-input-close-btn {
    display: none;
  }
  .survey {
    width: calc(100vw - 64px);
    padding: 20px 16px;
  }
  .survey-header p {
    margin-bottom: 12px;
    line-height: 1.6em;
  }
  .survey .scale-label-container {
    display: none;
  }
  .survey-question {
    width: 100%;
  }
  .survey-scale {
    width: 100%;
    margin-top: 12px;
  }
  .survey-scale .scale-label {
    display: block;
  }
  .survey input[type="submit"] {
    height: 42px;
    margin: 30px auto 0 auto;
    letter-spacing: 3px;
  }
  .swiper-control-button {
    display: none;
  }
  button.btn_exit {
    right: 0px;
  }
  .exit {
    width: calc(100vw - 32px);
    padding: 20px 16px;
  }
  .sticker {
    width: calc(100vw - 16px);
    padding: 20px 4px;
  }
  .chat-control-stop {
    display: none !important;
  }
}

/*==============================================
  Swiper.js customized - 和泰風格
  =============================================*/
/* .swiper-slide 的 width 由 slidesPerView 自動計算,不需要設定 width: auto */

/* Swiper 外層 wrapper - 作為按鈕定位的參考點 */
.swiper-outer-wrapper {
  position: relative;
  overflow: visible;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Swiper 容器 - 限制卡片不超出 */
.swiper-container {
  overflow: hidden;
  width: 100%;
  flex: 1;
}

/* 和泰 Swiper 導航按鈕 */
.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled {
  opacity: 0.35;
  cursor: auto;
  pointer-events: none;
}

/* 當圖卡數量不足無法滑動時，隱藏導航按鈕 */
.swiper-button-lock {
  display: none !important;
}

.swiper-button-prev:after,
.swiper-button-next:after {
  content: "";
}

.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  cursor: pointer;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
  z-index: 10;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
}

.swiper-button-prev {
  left: -10px;
  background-image: url('../img/icon-arrow-left-green.svg');
}

.swiper-button-next {
  right: -10px;
  background-image: url('../img/icon-arrow-right-green.svg');
}

.body br:first-child {
    display: none;
}

.body br{
    margin-top: -1.5rem;
}

.body br:last-child {
    display: none;
}

.body br:first-child+br:last-child {
    display: block;
}

.body .row{
    margin-top: -3.5rem;
}

/* ========================================
   新版 UI 覆蓋樣式
   ======================================== */
/* 移除舊版覆蓋，使用 main.css 的藍色背景 */
body {
  background-color: #bae2ff;
  background-image: url("../img/bg-mesh.png");
  background-size: 40px;
}

/* 移除舊版容器的白色背景 */
.chat-wrapper {
  background-color: transparent;
}

.btn.btn-fontSize {
  background-image: url("../img/icon-fontSize-orange.svg");
}

.btn.btn-send {
  background-image: url("../img/icon-send-orange.svg");
}

.btn.btn-voice {
  background-image: url("../img/icon-voice-orange.svg");
}

/* ========================================
   隱私權聲明
   ======================================== */
.privacy-modal {
  display: none;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.privacy-modal.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.privacy-modal-content {
  display: none;
  width: 100%;
  max-height: 80vh;
  max-width: 560px;
  z-index: 10001;
  margin: 5px;
  background-color: #ebf5ff;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  -webkit-transform: translateY(20px);
          transform: translateY(20px);
  -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease, -webkit-transform 0.3s ease;
}

.privacy-modal.active .privacy-modal-content {
  display: inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

.privacy-modal-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 100%;
  padding: 10px;
  overflow-y: auto;
}

@media screen and (min-width: 576px) {
  .privacy-modal-inner {
    padding: 10px 20px;
  }
}

.privacy-modal-inner::-webkit-scrollbar {
  width: 3px;
}

.privacy-modal-inner::-webkit-scrollbar-track {
  background: transparent;
}

.privacy-modal-inner::-webkit-scrollbar-thumb {
  background: #5194ed;
  border-radius: 10px;
}

.privacy-modal-inner::-webkit-scrollbar-thumb:hover {
  background: #5194ed;
}

.privacy-h2 {
  margin-top: 10px;
  text-align: center;
  line-height: 1.5rem;
  color: #5194ed;
  font-size: 1.25rem;
  font-weight: 400;
  font-family: -apple-system, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

@media screen and (min-width: 768px) {
  .privacy-h2 {
    font-size: 1.25rem;
  }
}

.privacy-h4 {
  text-align: center;
  color: #5194ed;
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.75rem;
  font-family: -apple-system, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

@media screen and (min-width: 768px) {
  .privacy-h4 {
    font-size: 1.25rem;
  }
}

.privacy-modal-inner p {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.6rem;
  color: #333333;
  font-family: -apple-system, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.privacy-btn-drawer-single {
  margin-top: 10px;
}

.privacy-btn {
  margin-top: 5px;
  width: 100%;
  padding: 5px;
  min-height: 40px;
  border-width: 1px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  font-family: -apple-system, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.privacy-btn-obvious {
  border: 1px solid #5194ed;
  color: #ffffff;
  background-color: #5194ed;
}

.privacy-btn-obvious:hover {
  background-color: #7cacea;
  border-color: #7cacea;
}

.privacy-modal-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(51, 51, 51, 0.8);
  z-index: 10000;
}
/* ======================================== */
/* main.css 中實際使用到的核心樣式 */
/* 專為 chat.jsp, ChatTemplate.htm, ChatView.js 提取 */
/* ======================================== */

/* === 全局基礎樣式 === */
* {
  -webkit-overflow-scrolling: touch;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font: -apple-system-body;
}

*::before,
*::after {
  -webkit-box-sizing: inherit;
          box-sizing: inherit;
}

*:focus {
  outline: none;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul,
li,
fieldset {
  padding: 0;
  margin: 0;
}

html,
body,
.content {
  height: 100%;
}

body {
  background-color: #bae2ff;
  background-image: url("../img/bg-mesh.png");
  background-size: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  padding: 10px;
  color: #333333;
  font-weight: 500;
}
@media screen and (min-width: 768px) {
  body {
    padding: 40px 10px;
  }
}

/* === 標題樣式 === */
.h1 {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 2.55rem;
  color: #5194ed;
}
@media screen and (min-width: 768px) {
  .h1 {
    font-size: 2rem;
  }
}

.h2 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5rem;
  color: #5194ed;
}

.h4 {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.75rem;
}

.h6 {
  font-size: 1rem;
}

/* === 基礎元素樣式 === */
p {
  font-size: 1rem;
  line-height: 1.6rem;
}

a {
  color: #5194ed;
}
a:hover {
  text-decoration: none;
  font-weight: 400;
}

img {
  width: 100%;
}

button {
  cursor: pointer;
  color: #333333;
}

ul {
  list-style-type: none;
}

em {
  font-style: normal;
  color: #eb0a1e;
}

/* === 版面結構 === */
.content {
  min-height: 200px;
  width: 100%;
  max-width: 1000px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

/* Header 樣式 */
.header {
  background-color: #ffffff;
  min-height: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-bottom: 5px;
  padding-left: 5px;
  padding-right: 10px;
  border-radius: 24px;
}
@media screen and (min-width: 576px) {
  .header {
    min-height: 60px;
  }
}

.header .logo-short {
  display: block;
}
@media screen and (min-width: 576px) {
  .header .logo-short {
    display: none;
  }
}

.header .logo-long {
  display: none;
}
@media screen and (min-width: 576px) {
  .header .logo-long {
    display: block;
  }
}

.header .header-navi {
  display: inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 20px;
}

.header .header-navi .header-btn {
  border-width: 0;
  background-color: transparent;
  padding: 0;
  display: inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  width: 24px;
}
@media screen and (min-width: 576px) {
  .header .header-navi .header-btn {
    width: 30px;
  }
}

.header .header-navi .header-btn .header-icon {
  -webkit-filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
          filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
  -webkit-transition: -webkit-filter 0.3s ease;
  transition: -webkit-filter 0.3s ease;
  transition: filter 0.3s ease;
  transition: filter 0.3s ease, -webkit-filter 0.3s ease;
}
.header .header-navi .header-btn .header-icon:hover {
  -webkit-filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
          filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
}

/* 側邊欄開關圖示切換 */
.navi-open .icon-close {
  display: none;
}
.navi-open .icon-grid {
  display: block;
}
.navi-open.active .icon-grid {
  display: none;
}
.navi-open.active .icon-close {
  display: block;
}

.header .header-navi .header-divider-v {
  width: 1px;
  height: 28px;
  display: inline-block;
  background-color: #827f78;
}

/* Main 容器 */
.main {
  background-color: #ffffff;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

/* === 導航側邊欄 === */
.navi {
  height: 100%;
  width: 100%;
  right: -100%;
  background-color: #ffffff;
  position: absolute;
  z-index: 22;
  -webkit-transition: right 0.3s ease;
  transition: right 0.3s ease;
}
.navi.active {
  right: 0;
}
@media screen and (min-width: 576px) {
  .navi {
    width: 400px;
    right: -400px;
  }
}

.navi-mask {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(10, 19, 53, 0.7);
  display: none;
  z-index: 21;
  backdrop-filter: blur(6px);
}
.navi-mask.active {
  display: block;
}

/* Sidebar 內容 */
.sidebar {
  width: 100%;
  background-color: white;
  border-radius: 4px;
  padding: 20px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.sidebar .tabs {
  list-style: none;
  padding: 0;
  border-bottom: 1px solid #ccc;
  margin-bottom: 1rem;
}

.sidebar .tab {
  text-align: center;
  font-size: 1.125rem;
  color: #bfbfbf;
  height: 60px;
  line-height: 60px;
  position: relative;
  cursor: pointer;
  display: inline-block;
  margin-right: 20px;
}
.sidebar .tab:last-of-type {
  margin-right: 0;
}
.sidebar .tab.active {
  color: #d73429;
}
.sidebar .tab.active:after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  position: absolute;
  bottom: -1px;
  right: 0;
  left: 0;
  background-color: #d73429;
}

.tab-content {
  display: none;
  margin-bottom: 40px;
}
.tab-content.active {
  display: block;
}

/* Icon Block */
.icon-block-container {
  display: -ms-flexbox;
  display: -webkit-box;
  display: flex;
  gap: 18px;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  list-style: none;
  margin-bottom: 18px;
}

.icon-block {
  height: 108px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  line-height: 1em;
  cursor: pointer;
  width: 100%;
}
.icon-block.noFrame {
  border-color: white;
}
.icon-block img {
  width: 60px;
  height: 60px;
  display: block;
  margin: 0 auto;
}
.icon-block span {
  font-size: 0.85rem;
  color: #7f7f7f;
}

/* Text Link Container */
.text-link-container {
  padding-left: 26px;
  list-style-type: disc;
}

.question-clickable {
  color: #fb8b8b;
  font-size: 1rem;
  height: 24px;
  cursor: pointer;
  text-decoration: underline;
}
.question-clickable:hover {
  color: #fb8b8b;
}

/* Icon Block 內的 question-clickable 樣式覆寫 */
.icon-block.question-clickable {
  height: 108px;
  text-decoration: none;
}

/* 按鈕內的 question-clickable 樣式覆寫 */
.btn.question-clickable {
  color: #333333;
  text-decoration: none;
  height: auto;
}
.btn.question-clickable:hover {
  color: #333333;
  background-color: #dbdbdb;
}

/* === 聊天區域 === */
.communication {
  height: 100%;
  background-color: #ffffff;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 5px 5px 46px 5px;
}
.communication::-webkit-scrollbar {
  width: 5px;
}
.communication::-webkit-scrollbar-track {
  background: transparent;
}
.communication::-webkit-scrollbar-thumb {
  background: #5194ed;
  border-radius: 10px;
}

/* === Tags 標籤區 === */
.tags {
  background-color: rgba(255, 255, 255, 0.7);
  width: 100%;
  position: absolute;
  bottom: 50px;
  height: 46px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding-left: 5px;
  padding-right: 5px;
  overflow-x: auto;
  z-index: 11;
  backdrop-filter: blur(6px);
}
.tags::-webkit-scrollbar {
  height: 3px;
}
.tags::-webkit-scrollbar-track {
  background: transparent;
}
.tags::-webkit-scrollbar-thumb {
  background: #5194ed;
  border-radius: 10px;
}
@media screen and (min-width: 576px) {
  .tags {
    bottom: 62px;
  }
}

.tag {
  font-size: 0.875rem;
  min-height: 32px;
  border-width: 0;
  color: #ffffff;
  background-color: #77a243;
  border-radius: 24px;
  padding: 5px 12px;
  margin-right: 5px;
  white-space: nowrap;
}
.tag:last-child {
  margin-right: 0;
}
@media screen and (min-width: 768px) {
  .tag:hover {
    -webkit-filter: brightness(70%);
            filter: brightness(70%);
  }
}
.tag.question-clickable {
  text-decoration: none;
}

/* === Footer 底部區域 === */
.footer .footer-user {
  position: relative;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

/* === 按鈕樣式 === */
button {
  cursor: pointer;
  color: #333333;
}

.btn {
  border-width: 1px;
  border-radius: 8px;
  padding: 5px;
  width: 100%;
  background-color: #ffffff;
  color: #333333;
  font-size: 1rem;
}

.btn.btn-md {
  min-height: 40px;
}

.btn.btn-sm {
  min-height: 32px;
}

.btn.btn-base {
  border: 1px solid #5194ed;
  color: #5194ed;
}
.btn.btn-base:hover {
  background-color: #bcdaf8;
}
.btn.btn-base.disable {
  opacity: 0.2;
  cursor: default;
}

.btn.btn-obvious {
  border: 1px solid #5194ed;
  color: #ffffff;
  background-color: #5194ed;
}
.btn.btn-obvious:hover {
  background-color: #7cacea;
  border-color: #7cacea;
}
.btn.btn-obvious.disable {
  opacity: 0.2;
  cursor: default;
}

.btn.btn-harmonious {
  border: 1px solid #bfbfbf;
  color: #ffffff;
  background-color: #bfbfbf;
}
.btn.btn-harmonious:hover {
  background-color: #a2a2a2;
  border-color: #a2a2a2;
}
.btn.btn-harmonious.disable {
  opacity: 0.2;
  cursor: default;
}

.btn.btn-humble {
  border: 1px solid #bfbfbf;
  background-color: #ffffff;
}
.btn.btn-humble:hover {
  background-color: #dbdbdb;
}
.btn.btn-humble.disable {
  opacity: 0.2;
  cursor: default;
}

.btn.btn-noBorder {
  border-width: 0;
}

/* 按鈕文字顏色輔助 class */
.clr-red {
  color: #eb0a1e;
}

.btn.btn-fontSize {
  background-color: #ffffff;
  width: 40px;
  min-width: 40px;
  border-radius: 32px;
  background-image: url("../img/icon-fontSize-orange.svg");
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.3));
          filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.3));
  -webkit-transition: -webkit-filter 0.3s ease;
  transition: -webkit-filter 0.3s ease;
  transition: filter 0.3s ease;
  transition: filter 0.3s ease, -webkit-filter 0.3s ease;
}
.btn.btn-fontSize:hover {
  -webkit-filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
          filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

.btn.btn-send {
  background-color: #ffffff;
  width: 50px;
  border-radius: 32px;
  position: absolute;
  top: 0;
  right: 0;
  background-image: url("../img/icon-send-orange.svg");
  background-repeat: no-repeat;
  background-position: center center;
}

.btn.btn-voice {
  background-color: #ffffff;
  width: 40px;
  min-width: 40px;
  border-radius: 32px;
  background-image: url("../img/icon-voice-orange.svg");
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.3));
          filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.3));
  -webkit-transition: -webkit-filter 0.3s ease;
  transition: -webkit-filter 0.3s ease;
  transition: filter 0.3s ease;
  transition: filter 0.3s ease, -webkit-filter 0.3s ease;
}
.btn.btn-voice:hover {
  -webkit-filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
          filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

/* 檔案上傳按鈕 (轉接真人後顯示) */
.btn.btn-file {
  background-color: #ffffff;
  width: 40px;
  min-width: 40px;
  border-radius: 32px;
  background-image: url("../img/icon-file-orange.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 20px 20px;
  -webkit-filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.3));
          filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.3));
  -webkit-transition: -webkit-filter 0.3s ease;
  transition: -webkit-filter 0.3s ease;
  transition: filter 0.3s ease;
  transition: filter 0.3s ease, -webkit-filter 0.3s ease;
}
.btn.btn-file:hover {
  -webkit-filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
          filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

/* 語音錄音中狀態 */
.btn.btn-voice.recording {
  background-color: #ff6b38;
  background-image: url("../img/icon-voice-white.svg");
  animation: voice-pulse 1s infinite;
}

@keyframes voice-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 56, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 107, 56, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 56, 0);
  }
}

/* TTS 語音輸出按鈕 */
.voice-output-btn {
  border: 1px solid #BFBFBF;
  background-color: transparent;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  outline: none;
  vertical-align: bottom;
  background-size: 50%;
  cursor: pointer;
  margin-right: 8px;
}

.voice-output-btn.off {
  background: url('../img/volume-off.svg') 50% 50% no-repeat;
  background-size: 50%;
}

.voice-output-btn.on {
  background: url('../img/volume-on.svg') 50% 50% no-repeat;
  background-size: 50%;
}

/* === Input 輸入框樣式 === */
input,
textarea,
select {
  border: 1px solid #bfbfbf;
  width: 100%;
  font-size: 1rem;
  border-radius: 8px;
  background-color: #ffffff;
  min-height: 40px;
  color: #333333;
}

input {
  padding: 5px 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
}

input.input-noBorder {
  border-width: 0;
}

input.input-content {
  border-width: 0;
  border-radius: 32px;
  padding-right: 50px;
}

input:focus {
  border-color: #5194ed;
}

/* === Modal 彈窗樣式 === */
.modal {
  display: none;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 91;
}
.modal.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.modal .modal-content {
  display: none;
  width: 100%;
  max-height: 80vh;
  max-width: 560px;
  z-index: 93;
  margin: 5px;
  background-color: #ebf5ff;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  -webkit-transform: translateY(20px);
          transform: translateY(20px);
  -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease, -webkit-transform 0.3s ease;
}
.modal .modal-content.active {
  display: inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

.modal .modal-content .modal-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 100%;
  padding: 10px;
  overflow-y: auto;
}
@media screen and (min-width: 576px) {
  .modal .modal-content .modal-inner {
    padding: 10px 20px;
  }
}

.modal .modal-content .modal-inner::-webkit-scrollbar {
  width: 3px;
}
.modal .modal-content .modal-inner::-webkit-scrollbar-track {
  background: transparent;
}
.modal .modal-content .modal-inner::-webkit-scrollbar-thumb {
  background: #5194ed;
  border-radius: 10px;
}

.modal .modal-content .modal-inner .icon-customer {
  width: 100px;
  margin: 0 auto;
}

.modal .modal-content .modal-inner .icon-selectImage {
  width: 138px;
  margin: 20px auto;
  display: block;
}
@media screen and (min-width: 576px) {
  .modal .modal-content .modal-inner .icon-selectImage {
    width: 157px;
    margin: 40px auto;
  }
}

.modal .modal-content .modal-inner .h2 {
  margin-top: 10px;
  text-align: center;
  line-height: 2rem;
}

.modal .modal-content .modal-inner p {
  margin-top: 10px;
}

.modal .modal-content .modal-inner .btn-drawer-single {
  margin-top: 10px;
}
.modal .modal-content .modal-inner .btn-drawer-single .btn {
  margin-top: 5px;
}
.modal .modal-content .modal-inner .btn-drawer-single .btn:first-child {
  margin-top: 0;
}

.modal .modal-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(51, 51, 51, 0.8);
  z-index: 92;
}

/* === 背景動畫元素 === */
@-webkit-keyframes carMove {
  from { left: -20%; }
  to { left: 100%; }
}

@keyframes carMove {
  from { left: -20%; }
  to { left: 100%; }
}

@-webkit-keyframes cloudMove {
  from { right: -20%; }
  to { right: 100%; }
}

@keyframes cloudMove {
  from { right: -20%; }
  to { right: 100%; }
}

.bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
}

.bg .cloud-1,
.bg .cloud-2,
.bg .cloud-3,
.bg .car-blue,
.bg .car-green,
.bg .car-orange,
.bg .mountain-left,
.bg .mountain-right {
  position: absolute;
}

.bg .cloud-1 {
  width: 153px;
  top: 30%;
  right: -20%;
  -webkit-animation: cloudMove 40s linear 1s infinite;
          animation: cloudMove 40s linear 1s infinite;
}

.bg .cloud-2 {
  width: 135px;
  top: 40%;
  right: -20%;
  -webkit-animation: cloudMove 50s linear 12s infinite;
          animation: cloudMove 50s linear 12s infinite;
}

.bg .cloud-3 {
  width: 136px;
  top: 50%;
  right: -20%;
  -webkit-animation: cloudMove 60s linear 30s infinite;
          animation: cloudMove 60s linear 30s infinite;
}

.bg .car-blue {
  width: 88px;
  bottom: 0;
  left: -20%;
  -webkit-animation: carMove 20s linear 1s infinite;
          animation: carMove 20s linear 1s infinite;
}

.bg .car-green {
  width: 122px;
  bottom: 0;
  left: -20%;
  -webkit-animation: carMove 20s linear 8s infinite;
          animation: carMove 20s linear 8s infinite;
}

.bg .car-orange {
  width: 112px;
  bottom: 0;
  left: -20%;
  -webkit-animation: carMove 20s linear 16s infinite;
          animation: carMove 20s linear 16s infinite;
}

.bg .mountain-left {
  width: 153px;
  bottom: 0;
  left: 0;
}
@media screen and (min-width: 768px) {
  .bg .mountain-left {
    width: 303px;
  }
}
@media screen and (min-width: 992px) {
  .bg .mountain-left {
    width: 353px;
  }
}

.bg .mountain-right {
  width: 140px;
  bottom: 0;
  right: 0;
}
@media screen and (min-width: 768px) {
  .bg .mountain-right {
    width: 244px;
  }
}
@media screen and (min-width: 992px) {
  .bg .mountain-right {
    width: 294px;
  }
}

.bg .cloud-1,
.bg .cloud-2,
.bg .cloud-3,
.bg .car-blue,
.bg .car-green,
.bg .car-orange {
  display: none;
}
@media screen and (min-width: 768px) {
  .bg .cloud-1,
  .bg .cloud-2,
  .bg .cloud-3,
  .bg .car-blue,
  .bg .car-green,
  .bg .car-orange {
    display: block;
  }
}

/* ========================================
   noneRecord 目前尚無資料樣式 (from main.css)
   ======================================== */

/* chat-content 寬度控制 - 針對 .msg 內的結構 */
.msg .chat-content.chat-max-sm {
  width: 260px;
  max-width: 260px;
}

.msg .chat-content.chat-max-md {
  width: 300px;
  max-width: 300px;
}

/* chat-item 容器 (單一卡片用) */
.chat-item {
  padding: 10px;
  width: 100%;
  max-width: 300px;
}

/* h5 標題樣式 */
.chat-item .h5 {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6rem;
  margin-bottom: 10px;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .chat-item .h5 {
    font-size: 1.125rem;
  }
}

/* img-wrapper 圖片容器 */
.chat-item .img-wrapper {
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #333333;
  overflow: hidden;
  position: relative;
}

.chat-item .img-wrapper img {
  width: 100%;
  display: block;
}

/* chat-inner 容器 - 白色內部區塊 */
.chat-item .chat-inner {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}

.chat-item .chat-inner .chat-twin {
  margin-top: 0;
}

/* icon-noData 圖示樣式 */
.chat-item .chat-inner .icon-noData {
  width: 150px;
  margin: 20px auto;
  display: block;
}

/* chat-item 內的 h2 標題 */
.chat-item .h2 {
  margin-bottom: 10px;
}

/* chat-item 內的段落文字 */
.chat-item p {
  margin-bottom: 5px;
}

.chat-item p:last-child {
  margin-bottom: 0;
}

/* btn-drawer-single 按鈕容器 */
.chat-item .btn-drawer-single {
  margin-top: 10px;
}

.chat-item .btn-drawer-single .btn {
  margin-bottom: 5px;
}

.chat-item .btn-drawer-single .btn:last-child {
  margin-bottom: 0;
}

/* ========================================
   serviceHistory 保修紀錄 (from main.css)
   ======================================== */

.service-history.chat-item .h2 {
  margin-bottom: 10px;
}

.service-history.chat-item .h5 {
  margin-bottom: 10px;
  text-align: center;
}

.service-history.chat-item .chat-heading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}   
.service-history.chat-item .chat-heading .h5 {
  color: #eb0a1e;
  display: inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  gap: 7px;
}
.service-history.chat-item .chat-heading .h5::before {
  content: "";
  width: 42px;
  height: 26px;
  display: inline-block;
  background-image: url("../img/img-car-red.png");
  background-repeat: no-repeat;
  background-size: cover;
}
.service-history.chat-item .chat-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 5px;
}
.service-history.chat-item .chat-card .chat-twin {
  margin-top: 0;
}
.service-history.chat-item .chat-card.chat-card-blue .chat-card-title {
  background-color: #5194ed;
}
.service-history.chat-item .chat-card.chat-card-blue .chat-card-title .chat-twin-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 5px 10px;
  color: #5194ed;
}
.service-history.chat-item .chat-card.chat-card-blue .chat-card-title .chat-twin-col {
  color: #ffffff;
  line-height: 1.4rem;
}
.service-history.chat-item .chat-card.chat-card-blue .chat-card-title .chat-twin-col.icon-finish {
  display: inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.service-history.chat-item .chat-card.chat-card-blue .chat-card-title .chat-twin-col.icon-finish::before {
  content: "";
  display: inline-block;
  width: 21px;
  height: 21px;
  border-radius: 15px;
  background-color: white;
  background-image: url("../img/icon-check-blue.svg");
  background-repeat: no-repeat;
  background-size: 70%;
  background-position: 55% 55%;
  margin-right: 6px;
}
.service-history.chat-item .chat-card.chat-card-blue .chat-card-content {
  padding: 10px;
}
.service-history.chat-item .chat-card.chat-card-blue .chat-card-content .chat-twin-row .chat-twin-col:first-child {
  color: #5194ed;
}
.service-history.chat-item .chat-twin {
  margin-top: 10px;
}
.service-history.chat-item .chat-twin .chat-twin-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.service-history.chat-item .chat-twin .chat-twin-row.chat-twin-row-between {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 10px;
}
.service-history.chat-item .chat-twin .chat-twin-row.chat-twin-row-between .chat-twin-col:last-child {
  text-align: right;
}
.service-history.chat-item .chat-twin .chat-twin-row:first-child {
  margin-top: 0;
}
.service-history.chat-item .chat-twin .chat-twin-col {
  line-height: 1.6rem;
}
.service-history.chat-item .chat-twin .chat-twin-col:first-child {
  white-space: nowrap;
}
.service-history.chat-item .chat-twin .chat-twin-col.chat-twin-col-heading {
  color: #5194ed;
}
.service-history.chat-item .chat-twin.chat-twin-heading .chat-twin-row .chat-twin-col:first-child {
  color: #5194ed;
}
.service-history.chat-item .btn-drawer-single {
    margin-top: 10px;
}

/*
舊版的 css 樣式，保留以備不時之需
service-history-css from main.css
*/

.chat-item .chat-heading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}
.chat-item .chat-heading .h5 {
  color: #eb0a1e;
  display: inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  gap: 7px;
}
.chat-item .chat-heading .h5::before {
  content: "";
  width: 42px;
  height: 26px;
  display: inline-block;
  background-image: url("../img/img-car-red.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.chat-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 5px;
}
.chat-card.chat-card-blue .chat-card-title {
  background-color: #5194ed;
}
.chat-card.chat-card-blue .chat-card-title .chat-twin-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 5px 10px;
  color: #5194ed;
}
.chat-card.chat-card-blue .chat-card-title .chat-twin-col {
  color: #ffffff;
  line-height: 1.4rem;
}
.chat-card.chat-card-blue .chat-card-title .chat-twin-col.icon-finish {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.chat-card.chat-card-blue .chat-card-title .chat-twin-col.icon-finish::before {
  content: "";
  display: inline-block;
  width: 21px;
  height: 21px;
  border-radius: 15px;
  background-color: white;
  background-image: url("../img/icon-check-blue.svg");
  background-repeat: no-repeat;
  background-size: 70%;
  background-position: 55% 55%;
  margin-right: 6px;
}
.chat-card.chat-card-blue .chat-card-content {
  padding: 10px;
}
.chat-card.chat-card-blue .chat-card-content .chat-twin-row .chat-twin-col:first-child {
  color: #5194ed;
}

.chat-twin {
  margin-top: 10px;
}
.chat-twin .chat-twin-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.chat-twin .chat-twin-row.chat-twin-row-between {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 10px;
}
.chat-twin .chat-twin-row.chat-twin-row-between .chat-twin-col:last-child {
  text-align: right;
}
.chat-twin .chat-twin-row:first-child {
  margin-top: 0;
}
.chat-twin .chat-twin-col {
  line-height: 1.6rem;
}
.chat-twin .chat-twin-col:first-child {
  white-space: nowrap;
}
.chat-twin .chat-twin-col.chat-twin-col-heading {
  color: #5194ed;
}
.chat-twin.chat-twin-heading .chat-twin-row .chat-twin-col:first-child {
  color: #5194ed;
}

/* ========================================
   loyaltyRewards 優利酬賓圖卡樣式
   ======================================== */

/* loyalty-rewards 外層容器需要 position: relative 作為按鈕定位基準 */
.loyalty-rewards-swiper {
  position: relative;
}

/* loyalty-rewards-swiper 內的 chat-item 卡片背景 */
/* 260px = 內容 240px + padding 左右各 10px (繼承自 .chat-item) */
.loyalty-rewards-swiper .swiper-slide.chat-item {
  background-color: #ebf5ff;
  border-radius: 0 16px 16px 16px;
  width: auto;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* h5 標題在 flexbox 中移除 margin-bottom，避免與 chat-inner 的 margin-top 相加 */
.loyalty-rewards-swiper .swiper-slide.chat-item .h5 {
  margin-bottom: 0;
}

/* 讓 chat-inner 區域自動撐開，把按鈕推到底部 */
.loyalty-rewards-swiper .swiper-slide.chat-item .chat-inner {
  flex-grow: 1;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* 確保按鈕容器在底部，使用 margin-top: auto 將按鈕推到最下方 */
.loyalty-rewards-swiper .swiper-slide.chat-item .btn-drawer-single {
  margin-top: auto;
}

/* loyalty-rewards 卡片固定寬度 240px (不受螢幕寬度影響) */

/* loyalty-rewards 導航按鈕位置調整 */
.loyalty-rewards-button-prev,
.loyalty-rewards-button-next {
  width: 32px;
  height: 32px;
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

.loyalty-rewards-button-prev {
  background-image: url("../img/icon-arrow-left-green.svg");
}

.loyalty-rewards-button-next {
  background-image: url("../img/icon-arrow-right-green.svg");
}

.loyalty-rewards-button-prev.swiper-button-disabled,
.loyalty-rewards-button-next.swiper-button-disabled {
  opacity: 0.35;
  cursor: auto;
  pointer-events: none;
}

/* 當圖卡數量不足無法滑動時，隱藏導航按鈕 */
.loyalty-rewards-button-prev.swiper-button-lock,
.loyalty-rewards-button-next.swiper-button-lock {
  display: none !important;
}

/* ========================================
     chat-card-gray 灰色卡片樣式 (from main.css)
     ======================================== */
.chat-item .chat-card.chat-card-gray .chat-card-title {
    background-color: #868686;
}
.chat-item .chat-card.chat-card-gray .chat-card-title .chat-twin-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 5px 10px;
    color: #868686;
}
.chat-item .chat-card.chat-card-gray .chat-card-title .chat-twin-col {
    color: #ffffff;
    line-height: 1.4rem;
}
.chat-item .chat-card.chat-card-gray .chat-card-title .chat-twin-col.icon-finish {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.chat-item .chat-card.chat-card-gray .chat-card-title .chat-twin-col.icon-finish::before {
    content: "";
    display: inline-block;
    width: 21px;
    height: 21px;
    border-radius: 15px;
    background-color: white;
    background-image: url("../img/icon-check-blue.svg");
    background-repeat: no-repeat;
    background-size: 70%;
    background-position: 55% 55%;
    margin-right: 6px;
}
.chat-item .chat-card.chat-card-gray .chat-card-content {
    padding: 10px;
}
.chat-item .chat-card.chat-card-gray .chat-card-content .chat-twin-row .chat-twin-col:first-child {
    color: #868686;
}

/* ========================================
   maintenanceProgress 定保維修進度(from main.css)
   .maintenance-progress .chat-item
   ======================================== */


/* .maintenance-progress.chat-item */

.maintenance-progress .chat-item {
  background-color: #ebf5ff;
  border-radius: 0 16px 16px 16px;
}


/* 響應式卡片寬度 - 手機 */
/*
@media screen and (max-width: 767.98px) {
  .maintenance-progress .chat-item {
    max-width: 260px;
  }
}
  */

/* 響應式卡片寬度 - 平板 */
/*
@media screen and (min-width: 768px) and (max-width: 991.98px) {
  .maintenance-progress .chat-item {
    max-width: 300px;
  }
}
  */

/* 響應式卡片寬度 - 桌面 */
/*
@media screen and (min-width: 992px) {
  .maintenance-progress .chat-item {
    max-width: 560px;
  }
}
*/
.maintenance-progress .chat-item {
  padding: 10px;
  width: 100%;
}
.maintenance-progress .chat-item .h2 {
  margin-bottom: 10px;
}
.maintenance-progress .chat-item .h5 {
  margin-bottom: 10px;
  text-align: center;
}
.maintenance-progress .chat-item p,
.maintenance-progress .chat-item .btn {
  margin-bottom: 5px;
}
.maintenance-progress .chat-item p:last-child,
.maintenance-progress .chat-item .btn:last-child {
  margin-bottom: 0;
}
.maintenance-progress .chat-item img {
  position: relative;
  display: block;
}
.maintenance-progress .chat-item .img-wrapper {
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #333333;
  overflow: hidden;
  position: relative;
}
.maintenance-progress .chat-item .img-wrapper.mask::before {
  content: "";
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50%;
  background-color: rgba(51, 51, 51, 0.9);
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
}
.maintenance-progress .chat-item .img-wrapper.mask-locked::before {
  background-image: url("../img/icon-locked.png");
}
.maintenance-progress .chat-item .img-wrapper.mask-unavailable::before {
  background-image: url("../img/icon-unavailable.png");
}
.maintenance-progress .chat-item .btn-drawer-single {
  margin-top: 10px;
}
.maintenance-progress .chat-item .btn-drawer-single .btn {
  margin-bottom: 5px;
}
.maintenance-progress .chat-item .btn-drawer-single .btn:last-child {
  margin-bottom: 0;
}
.maintenance-progress .chat-item .btn-drawer-twin {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.maintenance-progress .chat-item .btn-drawer-twin .btn {
  margin-bottom: 0;
}
.maintenance-progress .chat-item .btn-drawer-triple {
  margin-top: 10px;
}
.maintenance-progress .chat-item .btn-drawer-triple .btn-drawer-twin {
  margin-top: 0;
}
.maintenance-progress .chat-item .chat-heading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}
.maintenance-progress .chat-item .chat-heading .h5 {
  color: #eb0a1e;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  gap: 7px;
}
.maintenance-progress .chat-item .chat-heading .h5::before {
  content: "";
  width: 42px;
  height: 26px;
  display: inline-block;
  background-image: url("../img/img-car-red.png");
  background-repeat: no-repeat;
  background-size: cover;
}

/* .maintenance-progress .chat-item .h2 */

/* .maintenance-progress .chat-item .h5 */

/* .maintenance-progress .chat-item .chat-inner */
.maintenance-progress .chat-item .chat-inner {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}
.maintenance-progress .chat-item .chat-inner .chat-twin {
  margin-top: 0;
}
.maintenance-progress .chat-item .chat-inner .icon-noData {
  width: 150px;
  margin: 20px auto;
}

/* .maintenance-progress .chat-item .chat-twin */
.maintenance-progress .chat-item .chat-twin {
  margin-top: 10px;
}
.maintenance-progress .chat-item .chat-twin .chat-twin-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.maintenance-progress .chat-item .chat-twin .chat-twin-row.chat-twin-row-between {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 10px;
}
.maintenance-progress .chat-item .chat-twin .chat-twin-row.chat-twin-row-between .chat-twin-col:last-child {
  text-align: right;
}
.maintenance-progress .chat-item .chat-twin .chat-twin-row:first-child {
  margin-top: 0;
}
.maintenance-progress .chat-item .chat-twin .chat-twin-col {
  line-height: 1.6rem;
}
.maintenance-progress .chat-item .chat-twin .chat-twin-col:first-child {
  white-space: nowrap;
}
.maintenance-progress .chat-item .chat-twin .chat-twin-col.chat-twin-col-heading {
  color: #5194ed;
}
.maintenance-progress .chat-item .chat-twin.chat-twin-heading .chat-twin-row .chat-twin-col:first-child {
  color: #5194ed;
}

/* .maintenance-progress .chat-item .chat-twin-heading */

/* .maintenance-progress .chat-item .chat-twin-row */
.maintenance-progress .chat-item .chat-card.chat-card-blue .chat-card-title .chat-twin-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 5px 10px;
  color: #5194ed;
}
.maintenance-progress .chat-item .chat-card.chat-card-blue .chat-card-content .chat-twin-row .chat-twin-col:first-child {
  color: #5194ed;
}
.maintenance-progress .chat-item .chat-card.chat-card-orange .chat-card-title .chat-twin-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 5px 10px;
  color: #ff6b38;
}
.maintenance-progress .chat-item .chat-card.chat-card-orange .chat-card-content .chat-twin-row .chat-twin-col:first-child {
  color: #ff6b38;
}
.maintenance-progress .chat-item .chat-card.chat-card-green .chat-card-title .chat-twin-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 5px 10px;
  color: #77a243;
}
.maintenance-progress .chat-item .chat-card.chat-card-green .chat-card-content .chat-twin-row .chat-twin-col:first-child {
  color: #77a243;
}
.maintenance-progress .chat-item .chat-card.chat-card-gray .chat-card-title .chat-twin-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 5px 10px;
  color: #868686;
}
.maintenance-progress .chat-item .chat-card.chat-card-gray .chat-card-content .chat-twin-row .chat-twin-col:first-child {
  color: #868686;
}

/* .maintenance-progress .chat-item .chat-twin-col */
.maintenance-progress .chat-item .chat-card.chat-card-blue .chat-card-title .chat-twin-col {
  color: #ffffff;
  line-height: 1.4rem;
}
.maintenance-progress .chat-item .chat-card.chat-card-blue .chat-card-title .chat-twin-col.icon-finish {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.maintenance-progress .chat-item .chat-card.chat-card-blue .chat-card-title .chat-twin-col.icon-finish::before {
  content: "";
  display: inline-block;
  width: 21px;
  height: 21px;
  border-radius: 15px;
  background-color: white;
  background-image: url("../img/icon-check-blue.svg");
  background-repeat: no-repeat;
  background-size: 70%;
  background-position: 55% 55%;
  margin-right: 6px;
}

.maintenance-progress .chat-item .chat-card.chat-card-orange .chat-card-title .chat-twin-col {
  color: #ffffff;
  line-height: 1.4rem;
}
.maintenance-progress .chat-item .chat-card.chat-card-orange .chat-card-title .chat-twin-col.icon-finish {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.maintenance-progress .chat-item .chat-card.chat-card-orange .chat-card-title .chat-twin-col.icon-finish::before {
  content: "";
  display: inline-block;
  width: 21px;
  height: 21px;
  border-radius: 15px;
  background-color: white;
  background-image: url("../img/icon-check-blue.svg");
  background-repeat: no-repeat;
  background-size: 70%;
  background-position: 55% 55%;
  margin-right: 6px;
}
.maintenance-progress .chat-item .chat-card.chat-card-green .chat-card-title .chat-twin-col {
  color: #ffffff;
  line-height: 1.4rem;
}
.maintenance-progress .chat-item .chat-card.chat-card-green .chat-card-title .chat-twin-col.icon-finish {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.maintenance-progress .chat-item .chat-card.chat-card-green .chat-card-title .chat-twin-col.icon-finish::before {
  content: "";
  display: inline-block;
  width: 21px;
  height: 21px;
  border-radius: 15px;
  background-color: white;
  background-image: url("../img/icon-check-blue.svg");
  background-repeat: no-repeat;
  background-size: 70%;
  background-position: 55% 55%;
  margin-right: 6px;
}

.maintenance-progress .chat-item .chat-card.chat-card-gray .chat-card-title .chat-twin-col {
  color: #ffffff;
  line-height: 1.4rem;
}
.maintenance-progress .chat-item .chat-card.chat-card-gray .chat-card-title .chat-twin-col.icon-finish {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.maintenance-progress .chat-item .chat-card.chat-card-gray .chat-card-title .chat-twin-col.icon-finish::before {
  content: "";
  display: inline-block;
  width: 21px;
  height: 21px;
  border-radius: 15px;
  background-color: white;
  background-image: url("../img/icon-check-blue.svg");
  background-repeat: no-repeat;
  background-size: 70%;
  background-position: 55% 55%;
  margin-right: 6px;
}

/*.maintenance-progress .chat-item .margin-t-sm*/
.maintenance-progress .chat-item .margin-t-sm {
  margin-top: 5px;
}

/* .maintenance-progress .chat-item .progress */
.maintenance-progress .chat-item progress {
  vertical-align: baseline;
}
.maintenance-progress .chat-item .progress {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  position: relative;
}
.maintenance-progress .chat-item .progress::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: calc(100% - 30px);
  position: absolute;
  top: 15px;
  left: 24px;
  background-color: #bfbfbf;
  z-index: 0;
}
.maintenance-progress .chat-item .progress .progress-item {
  height: 30px;
  padding-left: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.maintenance-progress .chat-item .progress .progress-item::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background-color: #bfbfbf;
  margin-right: 15px;
  z-index: 1;
}
.maintenance-progress .chat-item .progress .progress-item.active::before {
  background-color: #5194ed;
  background-image: url("../img/icon-check-white.svg");
  background-repeat: no-repeat;
  background-position: center center;
}
.maintenance-progress .chat-item .progress .progress-item.progress-item-header {
  color: #5194ed;
  font-size: 1.125rem;
}

/* ========================================
   paintProgress 板噴進度    (from main.css)
   .paint-progress .chat-item
   ======================================== */

   /* .paint-progress .chat-item */

.paint-progress .chat-item {
  background-color: #ebf5ff;
  border-radius: 0 16px 16px 16px;
}


/* 響應式卡片寬度 - 手機 */
/*
@media screen and (max-width: 767.98px) {
  .paint-progress .chat-item {
    max-width: 260px;
  }
}
  */

/* 響應式卡片寬度 - 平板 */
/*
@media screen and (min-width: 768px) and (max-width: 991.98px) {
  .paint-progress .chat-item {
    max-width: 300px;
  }
}
  */

/* 響應式卡片寬度 - 桌面 */
/*
@media screen and (min-width: 992px) {
  .paint-progress .chat-item {
    max-width: 560px;
  }
}
*/
.paint-progress .chat-item {
  padding: 10px;
  width: 100%;
  max-width: 260px;
}
.paint-progress .chat-item .h2 {
  margin-bottom: 10px;
}
.paint-progress .chat-item .h5 {
  margin-bottom: 10px;
  text-align: center;
}
.paint-progress .chat-item p,
.paint-progress .chat-item .btn {
  margin-bottom: 5px;
}
.paint-progress .chat-item p:last-child,
.paint-progress .chat-item .btn:last-child {
  margin-bottom: 0;
}
.paint-progress .chat-item img {
  position: relative;
  display: block;
}
.paint-progress .chat-item .img-wrapper {
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #333333;
  overflow: hidden;
  position: relative;
}
.paint-progress .chat-item .img-wrapper.mask::before {
  content: "";
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50%;
  background-color: rgba(51, 51, 51, 0.9);
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
}
.paint-progress .chat-item .img-wrapper.mask-locked::before {
  background-image: url("../img/icon-locked.png");
}
.paint-progress .chat-item .img-wrapper.mask-unavailable::before {
  background-image: url("../img/icon-unavailable.png");
}
.paint-progress .chat-item .btn-drawer-single {
  margin-top: 10px;
}
.paint-progress .chat-item .btn-drawer-single .btn {
  margin-bottom: 5px;
}
.paint-progress .chat-item .btn-drawer-single .btn:last-child {
  margin-bottom: 0;
}
.paint-progress .chat-item .btn-drawer-twin {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.paint-progress .chat-item .btn-drawer-twin .btn {
  margin-bottom: 0;
}
.paint-progress .chat-item .btn-drawer-triple {
  margin-top: 10px;
}
.paint-progress .chat-item .btn-drawer-triple .btn-drawer-twin {
  margin-top: 0;
}
.paint-progress .chat-item .chat-heading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}
.paint-progress .chat-item .chat-heading .h5 {
  color: #eb0a1e;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  gap: 7px;
}
.paint-progress .chat-item .chat-heading .h5::before {
  content: "";
  width: 42px;
  height: 26px;
  display: inline-block;
  background-image: url("../img/img-car-red.png");
  background-repeat: no-repeat;
  background-size: cover;
}

/* .paint-progress .chat-item .h2 */

/* .paint-progress .chat-item .h5 */

/* .paint-progress .chat-item .chat-inner */
.paint-progress .chat-item .chat-inner {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}
.paint-progress .chat-item .chat-inner .chat-twin {
  margin-top: 0;
}
.paint-progress .chat-item .chat-inner .icon-noData {
  width: 150px;
  margin: 20px auto;
}

/* .paint-progress .chat-item .chat-twin */
.paint-progress .chat-item .chat-twin {
  margin-top: 10px;
}
.paint-progress .chat-item .chat-twin .chat-twin-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.paint-progress .chat-item .chat-twin .chat-twin-row.chat-twin-row-between {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 10px;
}
.paint-progress .chat-item .chat-twin .chat-twin-row.chat-twin-row-between .chat-twin-col:last-child {
  text-align: right;
}
.paint-progress .chat-item .chat-twin .chat-twin-row:first-child {
  margin-top: 0;
}
.paint-progress .chat-item .chat-twin .chat-twin-col {
  line-height: 1.6rem;
}
.paint-progress .chat-item .chat-twin .chat-twin-col:first-child {
  white-space: nowrap;
}
.paint-progress .chat-item .chat-twin .chat-twin-col.chat-twin-col-heading {
  color: #5194ed;
}
.paint-progress .chat-item .chat-twin.chat-twin-heading .chat-twin-row .chat-twin-col:first-child {
  color: #5194ed;
}

/* .paint-progress .chat-item .chat-twin-heading */

/* .paint-progress .chat-item .chat-twin-row */
.paint-progress .chat-item .chat-card.chat-card-blue .chat-card-title .chat-twin-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 5px 10px;
  color: #5194ed;
}
.paint-progress .chat-item .chat-card.chat-card-blue .chat-card-content .chat-twin-row .chat-twin-col:first-child {
  color: #5194ed;
}
.paint-progress .chat-item .chat-card.chat-card-orange .chat-card-title .chat-twin-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 5px 10px;
  color: #ff6b38;
}
.paint-progress .chat-item .chat-card.chat-card-orange .chat-card-content .chat-twin-row .chat-twin-col:first-child {
  color: #ff6b38;
}
.paint-progress .chat-item .chat-card.chat-card-green .chat-card-title .chat-twin-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 5px 10px;
  color: #77a243;
}
.paint-progress .chat-item .chat-card.chat-card-green .chat-card-content .chat-twin-row .chat-twin-col:first-child {
  color: #77a243;
}
.paint-progress .chat-item .chat-card.chat-card-gray .chat-card-title .chat-twin-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 5px 10px;
  color: #868686;
}
.paint-progress .chat-item .chat-card.chat-card-gray .chat-card-content .chat-twin-row .chat-twin-col:first-child {
  color: #868686;
}

/* .paint-progress .chat-item .chat-twin-col */
.paint-progress .chat-item .chat-card.chat-card-blue .chat-card-title .chat-twin-col {
  color: #ffffff;
  line-height: 1.4rem;
}
.paint-progress .chat-item .chat-card.chat-card-blue .chat-card-title .chat-twin-col.icon-finish {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.paint-progress .chat-item .chat-card.chat-card-blue .chat-card-title .chat-twin-col.icon-finish::before {
  content: "";
  display: inline-block;
  width: 21px;
  height: 21px;
  border-radius: 15px;
  background-color: white;
  background-image: url("../img/icon-check-blue.svg");
  background-repeat: no-repeat;
  background-size: 70%;
  background-position: 55% 55%;
  margin-right: 6px;
}

.paint-progress .chat-item .chat-card.chat-card-orange .chat-card-title .chat-twin-col {
  color: #ffffff;
  line-height: 1.4rem;
}
.paint-progress .chat-item .chat-card.chat-card-orange .chat-card-title .chat-twin-col.icon-finish {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.paint-progress .chat-item .chat-card.chat-card-orange .chat-card-title .chat-twin-col.icon-finish::before {
  content: "";
  display: inline-block;
  width: 21px;
  height: 21px;
  border-radius: 15px;
  background-color: white;
  background-image: url("../img/icon-check-blue.svg");
  background-repeat: no-repeat;
  background-size: 70%;
  background-position: 55% 55%;
  margin-right: 6px;
}
.paint-progress .chat-item .chat-card.chat-card-green .chat-card-title .chat-twin-col {
  color: #ffffff;
  line-height: 1.4rem;
}
.paint-progress .chat-item .chat-card.chat-card-green .chat-card-title .chat-twin-col.icon-finish {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.paint-progress .chat-item .chat-card.chat-card-green .chat-card-title .chat-twin-col.icon-finish::before {
  content: "";
  display: inline-block;
  width: 21px;
  height: 21px;
  border-radius: 15px;
  background-color: white;
  background-image: url("../img/icon-check-blue.svg");
  background-repeat: no-repeat;
  background-size: 70%;
  background-position: 55% 55%;
  margin-right: 6px;
}

.paint-progress .chat-item .chat-card.chat-card-gray .chat-card-title .chat-twin-col {
  color: #ffffff;
  line-height: 1.4rem;
}
.paint-progress .chat-item .chat-card.chat-card-gray .chat-card-title .chat-twin-col.icon-finish {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.paint-progress .chat-item .chat-card.chat-card-gray .chat-card-title .chat-twin-col.icon-finish::before {
  content: "";
  display: inline-block;
  width: 21px;
  height: 21px;
  border-radius: 15px;
  background-color: white;
  background-image: url("../img/icon-check-blue.svg");
  background-repeat: no-repeat;
  background-size: 70%;
  background-position: 55% 55%;
  margin-right: 6px;
}

/*.paint-progress .chat-item .margin-t-sm*/
.paint-progress .chat-item .margin-t-sm {
  margin-top: 5px;
}

/* .paint-progress .chat-item .progress */
.paint-progress .chat-item progress {
  vertical-align: baseline;
}
.paint-progress .chat-item .progress {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  position: relative;
}
.paint-progress .chat-item .progress::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: calc(100% - 30px);
  position: absolute;
  top: 15px;
  left: 24px;
  background-color: #bfbfbf;
  z-index: 0;
}
.paint-progress .chat-item .progress .progress-item {
  height: 30px;
  padding-left: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.paint-progress .chat-item .progress .progress-item::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background-color: #bfbfbf;
  margin-right: 15px;
  z-index: 1;
}
.paint-progress .chat-item .progress .progress-item.active::before {
  background-color: #5194ed;
  background-image: url("../img/icon-check-white.svg");
  background-repeat: no-repeat;
  background-position: center center;
}
.paint-progress .chat-item .progress .progress-item.progress-item-header {
  color: #5194ed;
  font-size: 1.125rem;
}
/* ========================================
   maintenanceBooking
   所有 class 加上 mb- 前綴以避免衝突
   ======================================== */

/* 基礎字體設定 */
.mb-chat-item {
  font-family: -apple-system, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  padding: 10px;
  width: 100%;
  max-width: 300px;
}

/* 根據螢幕寬度調整大小 - 對應樣板的 chat-max-sm/md/lg */
@media screen and (max-width: 575.98px) {
  .mb-chat-item {
    max-width: 260px;
  }
}

@media screen and (min-width: 576px) {
  .mb-chat-item {
    max-width: 300px;
  }
}

/* 確保不被原本的 chat-item 樣式影響 */
.chat .chat-content .mb-chat-item,
.chat .chat-content.chat-max-sm .mb-chat-item,
.chat .chat-content.chat-max-md .mb-chat-item,
.chat .chat-content.chat-max-lg .mb-chat-item {
  max-width: inherit;
  width: 100%;
}

/* 標題區域 */
.mb-chat-heading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: start;
}

/* H2 標題 - 藍色 */
.mb-chat-heading .h2 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5rem;
  color: #5194ED;
  margin-bottom: 10px;
}

/* H5 車牌 - 紅色 */
.mb-chat-heading .h5.mb-chat-license-plate {
  color: #EB0A1E;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6rem;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 10px;
}

/* 車牌前的小車圖示 */
.mb-chat-heading .h5.mb-chat-license-plate::before {
  content: "";
  width: 42px;
  height: 26px;
  display: inline-block;
  background-image: url("../img/img-car-red.png");
  background-repeat: no-repeat;
  background-size: cover;
}

/* 說明文字 */
.mb-chat-item > p {
  color: #333333;  /* 套版的深灰色 */
  font-size: 1rem;
  line-height: 1.6rem;
  margin: 0 0 5px 0;
}

.mb-chat-item > p:last-child {
  margin-bottom: 0;
}

/* 輸入欄位容器 */
.mb-chat-input {
  margin-top: 10px;
  width: 100%;
}

/* 標籤樣式 */
.mb-chat-input label {
  display: inline-block;
  margin-bottom: 5px;
  color: #5194ed;
  font-size: 1rem;
  line-height: 1.6rem;
}

/* 必填星號 */
.mb-chat-input label sup,
.mb-chat-input legend sup {
  color: #333333;
}

/* 輸入框樣式 */
.mb-chat-input input[type="text"],
.mb-chat-input input[type="tel"],
.mb-chat-input input[type="email"],
.mb-chat-input input[type="date"],
.mb-chat-input select,
.mb-chat-input textarea {
  width: 100%;
  padding: 5px 10px;
  border: 1px solid #bfbfbf;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #ffffff;
  color: #333333;
  min-height: 40px;
}

/* 輸入框 focus 狀態 */
.mb-chat-input input:focus,
.mb-chat-input select:focus,
.mb-chat-input textarea:focus {
  outline: none;
  border-color: #5194ed;
}

/* 輸入框 disabled 狀態 */
.mb-chat-input input:disabled,
.mb-chat-input select:disabled,
.mb-chat-input textarea:disabled {
  background-color: #e9e9e9;
}

/* Select 下拉箭頭 */
.mb-chat-input select {
  padding-left: 10px;
  padding-right: 30px;
  background-image: url("../img/icon-arrow-down-blue.svg");
  background-repeat: no-repeat;
  background-position: right 12px center;
  margin-bottom: 5px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.mb-chat-input select:last-child {
  margin-bottom: 0;
}

/* Textarea */
.mb-chat-input textarea {
  min-height: 186px;
  padding: 10px;
}

/* Fieldset */
.mb-chat-input fieldset {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
}

.mb-chat-input fieldset legend {
  color: #5194ed;
  font-size: 1rem;
  margin-bottom: 5px;
  display: inline-block;
}

/* Radio/Checkbox 代理容器 - 繼承 input 的基礎樣式 */
.mb-input-proxy {
  border: 1px solid #bfbfbf;
  width: 100%;
  font-size: 1rem;
  border-radius: 8px;
  background-color: #ffffff;
  min-height: 40px;
  color: #333333;
  padding: 5px 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
}

/* 垂直排列 */
.mb-input-proxy.mb-input-proxy-vertical {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

.mb-input-proxy.mb-input-proxy-vertical .mb-input-proxy-item {
  margin-bottom: 5px;
}

.mb-input-proxy.mb-input-proxy-vertical .mb-input-proxy-item:last-of-type {
  margin-bottom: 0;
}

.mb-input-proxy.mb-input-proxy-vertical hr {
  margin-top: 0;
}

/* 內嵌樣式 */
.mb-input-proxy.mb-input-proxy-inner {
  padding: 10px;
}

/* Radio/Checkbox 項目 */
.mb-input-proxy-item {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  height: 100%;
  margin-right: 10px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.mb-input-proxy-item:last-of-type {
  margin-right: 0;
}

/* Radio/Checkbox 輸入框 */
.mb-input-proxy-item input[type="radio"],
.mb-input-proxy-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  accent-color: #5194ed;
  min-height: auto;
  margin-right: 8px;
}

/* Radio/Checkbox 標籤 */
.mb-input-proxy-item label {
  margin-bottom: 0;
  color: #333333;
}

/* Disabled 狀態 */
.mb-input-proxy-item input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.mb-input-proxy-item input:disabled + label {
  cursor: not-allowed;
  color: #999999;
}

/* 縮排內容 */
.mb-input-proxy-indentation-md {
  width: 100%;
  padding-left: 27px;
  margin-bottom: 5px;
}

.mb-input-proxy-indentation-md:last-child {
  margin-bottom: 0;
}

.mb-input-proxy-indentation-md p {
  color: #bfbfbf;
}

.mb-input-proxy-indentation-md .mb-chat-input:first-child {
  margin-top: 0;
}

/* 分隔線 */
hr {
  width: 100%;
  border-width: 0;
  height: 1px;
  background-color: #bfbfbf;
  margin-top: 5px;
  margin-bottom: 5px;
}

/* 日期輸入群組 */
.mb-inputDate .input-group {
  position: relative;
}

/* 日期選擇按鈕 */
.mb-inputDate .input-group .input-button {
  position: absolute;
  top: calc(50% - 13px);
  right: 1px;
  border: 0;
  background-color: transparent;
}

/* 按鈕容器 */
.mb-btn-drawer-single {
  margin-top: 10px;
}

.mb-btn-drawer-single .mb-btn {
  margin-bottom: 5px;
}

.mb-btn-drawer-single .mb-btn:last-child {
  margin-bottom: 0;
}

/* 按鈕樣式 */
.mb-btn {
  border-width: 1px;
  border-radius: 8px;
  padding: 5px;
  width: 100%;
  background-color: #ffffff;
  cursor: pointer;
  color: #333333;
}

.mb-btn.mb-btn-md {
  min-height: 40px;
}

/* 主要按鈕 (藍色) */
.mb-btn.mb-btn-obvious {
  border: 1px solid #5194ed;
  color: #ffffff;
  background-color: #5194ed;
}

.mb-btn.mb-btn-obvious:hover {
  background-color: #7cacea;
  border-color: #7cacea;
}

/* 響應式設計 */
@media screen and (min-width: 768px) {
  .mb-chat-heading .h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .mb-chat-heading .h5.mb-chat-license-plate {
    font-size: 1.125rem;
  }

  .mb-chat-item > p,
  .mb-chat-input label,
  .mb-chat-input input,
  .mb-chat-input select,
  .mb-chat-input textarea,
  .mb-input-proxy-item label,
  .mb-input-proxy-indentation-md p {
    font-size: 1rem;
  }

  .mb-btn {
    font-size: 1.05rem;
    padding: 13px 36px;
  }
}

/* Placeholder 樣式 */
.mb-chat-input input::-webkit-input-placeholder,
.mb-chat-input textarea::-webkit-input-placeholder {
  color: #bfbfbf;
}
.mb-chat-input input::-moz-placeholder,
.mb-chat-input textarea::-moz-placeholder {
  color: #bfbfbf;
}
.mb-chat-input input:-ms-input-placeholder,
.mb-chat-input textarea:-ms-input-placeholder {
  color: #bfbfbf;
}
.mb-chat-input input::placeholder,
.mb-chat-input textarea::placeholder {
  color: #bfbfbf;
}

/* 瀏覽器自動填充樣式覆蓋 */
.mb-chat-input input:-webkit-autofill,
.mb-chat-input input:-webkit-autofill:hover,
.mb-chat-input input:-webkit-autofill:focus,
.mb-chat-input input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
  box-shadow: 0 0 0 30px #ffffff inset !important;
  -webkit-text-fill-color: #333333 !important;
}

/* Flatpickr 客製化樣式 */
.flatpickr-current-month {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
      -ms-flex-direction: row-reverse;
          flex-direction: row-reverse; /* 反轉：年份會跑到左邊 */
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px; /* 控制間距 */
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: #5194ed;
}

/* ========================================
   carGuarantee 車輛保固圖卡樣式
   ======================================== */

/* 為包含 car-guarantee-swiper 的 .msg 移除背景色和寬度限制 */
.message-row .msg:has(.car-guarantee-swiper) {
    background-color: transparent;
    padding: 0;
    max-width: 100%;
}

/* car-guarantee 外層容器需要 position: relative 作為按鈕定位基準 */
.car-guarantee-swiper {
    position: relative;
}

/* car-guarantee-swiper 內的 chat-item 卡片背景 */
.car-guarantee-swiper .swiper-slide.chat-item {
    background-color: #ebf5ff;
    border-radius: 0 16px 16px 16px;
    width: auto;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* h5 標題在 flexbox 中移除 margin-bottom，避免與 chat-inner 的 margin-top 相加 */
.car-guarantee-swiper .swiper-slide.chat-item .h5 {
    margin-bottom: 0;
}

/* 讓 chat-inner 區域自動撐開，把按鈕推到底部 */
.car-guarantee-swiper .swiper-slide.chat-item .chat-inner {
    flex-grow: 1;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* 確保按鈕容器在底部，使用 margin-top: auto 將按鈕推到最下方 */
.car-guarantee-swiper .swiper-slide.chat-item .btn-drawer-single {
    margin-top: auto;
}

/* 圖片容器基礎樣式 */
.car-guarantee-swiper .img-wrapper {
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #333333;
    overflow: hidden;
    position: relative;
}

/* 遮罩基礎樣式 */
.car-guarantee-swiper .img-wrapper.mask::before {
    content: "";
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50%;
    background-color: rgba(51, 51, 51, 0.9);
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
}

/* 鎖定圖標 */
.car-guarantee-swiper .img-wrapper.mask-locked::before {
    background-image: url("../img/icon-locked.png");
}

/* 導航按鈕 */
.car-guarantee-button-prev,
.car-guarantee-button-next {
    width: 32px;
    height: 32px;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

.car-guarantee-button-prev {
    background-image: url("../img/icon-arrow-left-green.svg");
}

.car-guarantee-button-next {
    background-image: url("../img/icon-arrow-right-green.svg");
}

.car-guarantee-button-prev.swiper-button-disabled,
.car-guarantee-button-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

.car-guarantee-button-prev.swiper-button-lock,
.car-guarantee-button-next.swiper-button-lock {
    display: none !important;
}

/* mask-locked 樣式 - 用於 e、f 卡片的鎖定遮罩 */
.car-guarantee-swiper .img-wrapper.mask.mask-locked {
    position: relative;
    overflow: hidden;
}

.car-guarantee-swiper .img-wrapper.mask.mask-locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.car-guarantee-swiper .img-wrapper.mask.mask-locked::before {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    z-index: 10;
    pointer-events: none;
}

/* ========================================
   prepaidProduct 預付商品圖卡樣式
   ======================================== */

/* 為包含 prepaid-product-swiper 的 .msg 移除背景色和寬度限制 */
.message-row .msg:has(.prepaid-product-swiper) {
    background-color: transparent;
    padding: 0;
    max-width: 100%;
}

/* prepaid-product 外層容器需要 position: relative 作為按鈕定位基準 */
.prepaid-product-swiper {
    position: relative;
}

/* prepaid-product-swiper 內的 chat-item 卡片背景 */
.prepaid-product-swiper .swiper-slide.chat-item {
    background-color: #ebf5ff;
    border-radius: 0 16px 16px 16px;
    width: auto;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* h5 標題在 flexbox 中移除 margin-bottom，避免與 chat-inner 的 margin-top 相加 */
.prepaid-product-swiper .swiper-slide.chat-item .h5 {
    margin-bottom: 0;
}

/* 讓 chat-inner 區域自動撐開，把按鈕推到底部 */
.prepaid-product-swiper .swiper-slide.chat-item .chat-inner {
    flex-grow: 1;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* 確保按鈕容器在底部，使用 margin-top: auto 將按鈕推到最下方 */
.prepaid-product-swiper .swiper-slide.chat-item .btn-drawer-single {
    margin-top: auto;
}

/* 圖片容器基礎樣式 */
.prepaid-product-swiper .img-wrapper {
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #333333;
    overflow: hidden;
    position: relative;
}

/* 導航按鈕 */
.prepaid-product-button-prev,
.prepaid-product-button-next {
    width: 32px;
    height: 32px;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

.prepaid-product-button-prev {
    background-image: url("../img/icon-arrow-left-green.svg");
}

.prepaid-product-button-next {
    background-image: url("../img/icon-arrow-right-green.svg");
}

.prepaid-product-button-prev.swiper-button-disabled,
.prepaid-product-button-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

.prepaid-product-button-prev.swiper-button-lock,
.prepaid-product-button-next.swiper-button-lock {
    display: none !important;
}
ul.ul-disc {
    list-style-type: disc;
    padding-left: 35px;
    margin-top: 10px;
}

ul.ul-disc li {
    color: #4c4c4c;
    line-height: 1.6rem;
}

ul.ul-disc li::marker {
    color: #5194ed;
    font-size: 1.1em;
}

.swiper.prepaid-product-swiper .cardNoIsB .chat-inner {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;	
	margin-bottom: 0px;
}

.swiper.prepaid-product-swiper .cardNoIsB .chat-twin .chat-twin-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.prepaid-product-swiper .swiper-slide.chat-item.cardNoIsB .btn-drawer-single {
    margin-top: 10px;
}

.swiper.prepaid-product-swiper .cardNoIsD .chat-inner {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;	
	  margin-bottom: 0px;
}

.swiper.prepaid-product-swiper .cardNoIsD .chat-twin .chat-twin-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.prepaid-product-swiper .swiper-slide.chat-item.cardNoIsD .btn-drawer-single {
    margin-top: 10px;
}

/* ========================================
   usedProductHistory 預付商品使用紀錄 (from main.css)
   ======================================== */

.used-product-history .chat-item .h2 {
  margin-bottom: 10px;
}

.used-product-history .chat-item .h5 {
  margin-bottom: 10px;
  text-align: center;
}

.used-product-history .chat-item .chat-heading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}   
.used-product-history .chat-item .chat-heading .h5 {
  color: #eb0a1e;
  display: inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  gap: 7px;
}
.used-product-history .chat-item .chat-heading .h5::before {
  content: "";
  width: 42px;
  height: 26px;
  display: inline-block;
  background-image: url("../img/img-car-red.png");
  background-repeat: no-repeat;
  background-size: cover;
}
.used-product-history .chat-item .chat-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 5px;
}
.used-product-history .chat-item .chat-card .chat-twin {
  margin-top: 0;
}
.used-product-history .chat-item .chat-card.chat-card-blue .chat-card-title {
  background-color: #5194ed;
}
.used-product-history .chat-item .chat-card.chat-card-blue .chat-card-title .chat-twin-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 5px 10px;
  color: #5194ed;
}
.used-product-history .chat-item .chat-card.chat-card-blue .chat-card-title .chat-twin-col {
  color: #ffffff;
  line-height: 1.4rem;
}
.used-product-history .chat-item .chat-card.chat-card-blue .chat-card-title .chat-twin-col.icon-finish {
  display: inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.used-product-history .chat-item .chat-card.chat-card-blue .chat-card-title .chat-twin-col.icon-finish::before {
  content: "";
  display: inline-block;
  width: 21px;
  height: 21px;
  border-radius: 15px;
  background-color: white;
  background-image: url("../img/icon-check-blue.svg");
  background-repeat: no-repeat;
  background-size: 70%;
  background-position: 55% 55%;
  margin-right: 6px;
}
.used-product-history .chat-item .chat-card.chat-card-blue .chat-card-content {
  padding: 10px;
}
.used-product-history .chat-item .chat-card.chat-card-blue .chat-card-content .chat-twin-row .chat-twin-col:first-child {
  color: #5194ed;
}
.used-product-history .chat-item .chat-twin {
  margin-top: 10px;
}
.used-product-history .chat-item .chat-twin .chat-twin-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.used-product-history .chat-item .chat-twin .chat-twin-row.chat-twin-row-between {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 10px;
}
.used-product-history .chat-item .chat-twin .chat-twin-row.chat-twin-row-between .chat-twin-col:last-child {
  text-align: right;
}
.used-product-history .chat-item .chat-twin .chat-twin-row:first-child {
  margin-top: 0;
}
.used-product-history .chat-item .chat-twin .chat-twin-col {
  line-height: 1.6rem;
}
.used-product-history .chat-item .chat-twin .chat-twin-col:first-child {
  white-space: nowrap;
}
.used-product-history .chat-item .chat-twin .chat-twin-col.chat-twin-col-heading {
  color: #5194ed;
}
.used-product-history .chat-item .chat-twin.chat-twin-heading .chat-twin-row .chat-twin-col:first-child {
  color: #5194ed;
}
.used-product-history .chat-item .btn-drawer-single {
    margin-top: 10px;
}

/* ========================================
   welcome 歡迎語1 for 有車車主    (from main.css)
   .welcome .chat-item
   ======================================== */

/* .welcome.chat-item */
.welcome .chat-item {
  background-color: #ebf5ff;
  border-radius: 0 16px 16px 16px;
}

.welcome .chat-item {
  padding: 10px;
  width: 100%;
  max-width: 300px;
}
.welcome .chat-item .h2 {
  margin-bottom: 10px;
}
.welcome .chat-item .h5 {
  margin-bottom: 10px;
  text-align: center;
}
.welcome .chat-item p,
.welcome .chat-item .btn {
  margin-bottom: 5px;
}
.welcome .chat-item p:last-child,
.welcome .chat-item .btn:last-child {
  margin-bottom: 0;
}
.welcome .chat-item img {
  position: relative;
  display: block;
}
.welcome .chat-item .img-wrapper {
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #333333;
  overflow: hidden;
  position: relative;
}
.welcome .chat-item .img-wrapper.mask::before {
  content: "";
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50%;
  background-color: rgba(51, 51, 51, 0.9);
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
}
.welcome .chat-item .img-wrapper.mask-locked::before {
  background-image: url("../img/icon-locked.png");
}
.welcome .chat-item .img-wrapper.mask-unavailable::before {
  background-image: url("../img/icon-unavailable.png");
}
.welcome .chat-item .btn-drawer-single {
  margin-top: 10px;
}
.welcome .chat-item .btn-drawer-single .btn {
  margin-bottom: 5px;
}
.welcome .chat-item .btn-drawer-single .btn:last-child {
  margin-bottom: 0;
}
.welcome .chat-item .btn-drawer-twin {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.welcome .chat-item .btn-drawer-twin .btn {
  margin-bottom: 0;
}
.welcome .chat-item .btn-drawer-triple {
  margin-top: 10px;
}
.welcome .chat-item .btn-drawer-triple .btn-drawer-twin {
  margin-top: 0;
}
.welcome .chat-item .chat-heading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}
.welcome .chat-item .chat-heading .h5 {
  color: #eb0a1e;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  gap: 7px;
}
.welcome .chat-item .chat-heading .h5::before {
  content: "";
  width: 42px;
  height: 26px;
  display: inline-block;
  background-image: url("../img/img-car-red.png");
  background-repeat: no-repeat;
  background-size: cover;
}

/* .welcome em */
.welcome em {
    font-style: normal;
    color: #eb0a1e;
}

/* .welcome .btn */

.welcome .btn {
  border-width: 1px;
  border-radius: 8px;
  padding: 5px;
  width: 100%;
  background-color: #ffffff;
}
.welcome .btn.btn-nm {
  min-height: 32px;
}
.welcome .btn.btn-md {
  min-height: 40px;
}
.welcome .btn.btn-lg {
  min-height: 48px;
}
.welcome .btn.btn-base {
  border: 1px solid #5194ed;
  color: #5194ed;
}
.welcome .btn.btn-base:hover {
  background-color: #bcdaf8;
}
.welcome .btn.btn-base.disable {
  opacity: 0.2;
  cursor: default;
}
.welcome .btn.btn-base.disable:hover {
  background-color: #ffffff;
}
.welcome .btn.btn-obvious {
  border: 1px solid #5194ed;
  color: #ffffff;
  background-color: #5194ed;
}
.welcome .btn.btn-obvious:hover {
  background-color: #7cacea;
  border-color: #7cacea;
}
.welcome .btn.btn-obvious.disable {
  opacity: 0.2;
  cursor: default;
}
.welcome .btn.btn-obvious.disable:hover {
  background-color: #5194ed;
}
.welcome .btn.btn-harmonious {
  border: 1px solid #bfbfbf;
  color: #ffffff;
  background-color: #bfbfbf;
}
.welcome .btn.btn-harmonious:hover {
  background-color: #a2a2a2;
  border-color: #a2a2a2;
}
.welcome .btn.btn-harmonious.disable {
  opacity: 0.2;
  cursor: default;
}
.welcome .btn.btn-harmonious.disable:hover {
  background-color: #bfbfbf;
}
.welcome .btn.btn-humble {
  border: 1px solid #bfbfbf;
}
.welcome .btn.btn-humble:hover {
  background-color: #dbdbdb;
}
.welcome .btn.btn-humble.disable {
  opacity: 0.2;
  cursor: default;
}
.welcome .btn.btn-humble.disable:hover {
  background-color: #ffffff;
}
.welcome .btn.btn-noBorder {
  border-width: 0;
}
.welcome .btn.btn-fontSize {
  background-color: #ffffff;
  width: 40px;
  min-width: 40px;
  border-radius: 32px;
  background-image: url("../img/icon-fontSize-orange.svg");
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.3));
          filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.3));
  -webkit-transition: -webkit-filter 0.3s ease;
  transition: -webkit-filter 0.3s ease;
  transition: filter 0.3s ease;
  transition: filter 0.3s ease, -webkit-filter 0.3s ease;
}
.welcome .btn.btn-fontSize:hover {
  -webkit-filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
          filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}
.welcome .btn.btn-send {
  background-color: #ffffff;
  width: 50px;
  border-radius: 32px;
  position: absolute;
  top: 0;
  right: 0;
  background-image: url("../img/icon-send-orange.svg");
  background-repeat: no-repeat;
  background-position: center center;
}
.welcome .btn.btn-voice {
  background-color: #ffffff;
  width: 40px;
  min-width: 40px;
  border-radius: 32px;
  background-image: url("../img/icon-voice-orange.svg");
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.3));
          filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.3));
  -webkit-transition: -webkit-filter 0.3s ease;
  transition: -webkit-filter 0.3s ease;
  transition: filter 0.3s ease;
  transition: filter 0.3s ease, -webkit-filter 0.3s ease;
}
.welcome .btn.btn-voice:hover {
  -webkit-filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
          filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

/* adjustment for welcome */

.welcome .chat-item {
    max-width: 300px;
}

.welcome button {
    height: 30px;
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

/* 保險資訊 (insuranceInfo) - 小幅調整 */
.chat-content .chat-item .h2.mt-md {
  margin-top: 10px;
}

/* ========================================
   bookingFailed 預約失敗
   ======================================== */

.booking-failed .chat-item {
  background-color: #ebf5ff;
  border-radius: 0 16px 16px 16px;
  padding: 10px;
  max-width: 300px;
}

.booking-failed .chat-item .h2 {
  color: #5194ED;
  font-size: 20px;
  font-weight: normal;
  margin: 0 0 10px 0;
}

.booking-failed .chat-item .chat-inner {
  margin-bottom: 10px;
}

.booking-failed .chat-item .chat-inner p {
  color: #4c4c4c;
  line-height: 1.6rem;
}

.booking-failed .chat-item .btn-drawer-single {
  margin-top: 10px;
}

.booking-failed .chat-item .btn-drawer-single .btn {
  margin-bottom: 5px;
}

.booking-failed .chat-item .btn-drawer-single .btn:last-child {
  margin-bottom: 0;
}

/* ========================================
   bookingConfirmed 確認預約
   ======================================== */

.h3 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5rem;
  color: #5194ed;
}

.booking-confirmed .chat-content.chat-max-sm .chat-item {
  max-width: 260px;
}

.booking-confirmed .chat-item {
  background-color: #ebf5ff;
  border-radius: 0 16px 16px 16px;
  padding: 10px;
}

.booking-confirmed .chat-item .img-wrapper {
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #333333;
  overflow: hidden;
}

.booking-confirmed .chat-item .img-wrapper img {
  display: block;
  width: 100%;
}

.booking-confirmed .chat-item .h2 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5rem;
  color: #5194ed;
  margin-bottom: 10px;
}

.booking-confirmed .chat-item p {
  margin-bottom: 5px;
}

.booking-confirmed .chat-item .chat-inner {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}

.booking-confirmed .chat-item .chat-inner.text-center {
  text-align: center;
}

.booking-confirmed .chat-item .chat-twin {
  margin-top: 10px;
}

.booking-confirmed .chat-item .chat-twin .chat-twin-row {
  display: flex;
}

.booking-confirmed .chat-item .chat-twin .chat-twin-col {
  line-height: 1.6rem;
}

.booking-confirmed .chat-item .chat-twin .chat-twin-col:first-child {
  white-space: nowrap;
}

.booking-confirmed .chat-item .chat-twin.chat-twin-heading .chat-twin-row .chat-twin-col:first-child {
  color: #5194ed;
}

.booking-confirmed .chat-item .btn-drawer-twin {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.booking-confirmed .chat-item .btn-drawer-twin .btn {
  margin-bottom: 0;
}

/* ========================================
   bookingCancelled 取消預約樣式
   ======================================== */

.booking-cancelled .chat-content.chat-max-md .chat-item {
  max-width: 300px;
}

.booking-cancelled .chat-item {
  background-color: #ebf5ff;
  border-radius: 0 16px 16px 16px;
  padding: 10px;
}

.booking-cancelled .chat-item .h2 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5rem;
  color: #5194ed;
  margin-bottom: 10px;
}

.booking-cancelled .chat-item .chat-inner {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}

.booking-cancelled .chat-item .chat-inner p {
  margin-bottom: 0;
}

.booking-cancelled .chat-item .btn-drawer-twin {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.booking-cancelled .chat-item .btn-drawer-twin .btn {
  margin-bottom: 0;
}

/* ========================================
   bookingReserved 預約保養仍保留樣式
   ======================================== */

.booking-reserved .chat-content.chat-max-md .chat-item {
  max-width: 300px;
}

.booking-reserved .chat-item {
  background-color: #ebf5ff;
  border-radius: 0 16px 16px 16px;
  padding: 10px;
}

.booking-reserved .chat-item .h2 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5rem;
  color: #5194ed;
  margin-bottom: 10px;
}

.booking-reserved .chat-item .chat-inner {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}

.booking-reserved .chat-item .chat-inner p {
  margin-bottom: 0;
}

.booking-reserved .chat-item .btn-drawer-single {
  margin-top: 10px;
}

.booking-reserved .chat-item .btn-drawer-single .btn {
  margin-bottom: 5px;
}

.booking-reserved .chat-item .btn-drawer-single .btn:last-child {
  margin-bottom: 0;
}

/* ========================================
   pointsRedemption 1-3 圖卡1-和泰Point查詢    (from main.css)
   .points-redemption .chat-item
   ======================================== */

/* .points-redemption.chat-item */
.points-redemption .chat-item {
  background-color: #ebf5ff;
  border-radius: 0 16px 16px 16px;
}

.points-redemption .chat-item {
  padding: 10px;
  width: 100%;
}
.points-redemption .chat-item .h2 {
  margin-bottom: 10px;
}
.points-redemption .chat-item .h5 {
  margin-bottom: 10px;
  text-align: center;
}
.points-redemption .chat-item p,
.points-redemption .chat-item .btn {
  margin-bottom: 5px;
}
.points-redemption .chat-item p:last-child,
.points-redemption .chat-item .btn:last-child {
  margin-bottom: 0;
}
.points-redemption .chat-item img {
  position: relative;
  display: block;
}
.points-redemption .chat-item .img-wrapper {
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #333333;
  overflow: hidden;
  position: relative;
}
.points-redemption .chat-item .img-wrapper.mask::before {
  content: "";
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50%;
  background-color: rgba(51, 51, 51, 0.9);
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
}
.points-redemption .chat-item .img-wrapper.mask-locked::before {
  background-image: url("../img/icon-locked.png");
}
.points-redemption .chat-item .img-wrapper.mask-unavailable::before {
  background-image: url("../img/icon-unavailable.png");
}
.points-redemption .chat-item .btn-drawer-single {
  margin-top: 10px;
}
.points-redemption .chat-item .btn-drawer-single .btn {
  margin-bottom: 5px;
}
.points-redemption .chat-item .btn-drawer-single .btn:last-child {
  margin-bottom: 0;
}
.points-redemption .chat-item .btn-drawer-twin {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.points-redemption .chat-item .btn-drawer-twin .btn {
  margin-bottom: 0;
}
.points-redemption .chat-item .btn-drawer-triple {
  margin-top: 10px;
}
.points-redemption .chat-item .btn-drawer-triple .btn-drawer-twin {
  margin-top: 0;
}
.points-redemption .chat-item .chat-heading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}
.points-redemption .chat-item .chat-heading .h5 {
  color: #eb0a1e;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  gap: 7px;
}
.points-redemption .chat-item .chat-heading .h5::before {
  content: "";
  width: 42px;
  height: 26px;
  display: inline-block;
  background-image: url("../img/img-car-red.png");
  background-repeat: no-repeat;
  background-size: cover;
}

/* .points-redemption em */
.points-redemption em {
    font-style: normal;
    color: #eb0a1e;
}

/* .points-redemption .btn */

.points-redemption .btn {
  border-width: 1px;
  border-radius: 8px;
  padding: 5px;
  width: 100%;
  background-color: #ffffff;
}
.points-redemption .btn.btn-nm {
  min-height: 32px;
}
.points-redemption .btn.btn-md {
  min-height: 40px;
}
.points-redemption .btn.btn-lg {
  min-height: 48px;
}
.points-redemption .btn.btn-base {
  border: 1px solid #5194ed;
  color: #5194ed;
}
.points-redemption .btn.btn-base:hover {
  background-color: #bcdaf8;
}
.points-redemption .btn.btn-base.disable {
  opacity: 0.2;
  cursor: default;
}
.points-redemption .btn.btn-base.disable:hover {
  background-color: #ffffff;
}
.points-redemption .btn.btn-obvious {
  border: 1px solid #5194ed;
  color: #ffffff;
  background-color: #5194ed;
}
.points-redemption .btn.btn-obvious:hover {
  background-color: #7cacea;
  border-color: #7cacea;
}
.points-redemption .btn.btn-obvious.disable {
  opacity: 0.2;
  cursor: default;
}
.points-redemption .btn.btn-obvious.disable:hover {
  background-color: #5194ed;
}
.points-redemption .btn.btn-harmonious {
  border: 1px solid #bfbfbf;
  color: #ffffff;
  background-color: #bfbfbf;
}
.points-redemption .btn.btn-harmonious:hover {
  background-color: #a2a2a2;
  border-color: #a2a2a2;
}
.points-redemption .btn.btn-harmonious.disable {
  opacity: 0.2;
  cursor: default;
}
.points-redemption .btn.btn-harmonious.disable:hover {
  background-color: #bfbfbf;
}
.points-redemption .btn.btn-humble {
  border: 1px solid #bfbfbf;
}
.points-redemption .btn.btn-humble:hover {
  background-color: #dbdbdb;
}
.points-redemption .btn.btn-humble.disable {
  opacity: 0.2;
  cursor: default;
}
.points-redemption .btn.btn-humble.disable:hover {
  background-color: #ffffff;
}
.points-redemption .btn.btn-noBorder {
  border-width: 0;
}
.points-redemption .btn.btn-fontSize {
  background-color: #ffffff;
  width: 40px;
  min-width: 40px;
  border-radius: 32px;
  background-image: url("../img/icon-fontSize-orange.svg");
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.3));
          filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.3));
  -webkit-transition: -webkit-filter 0.3s ease;
  transition: -webkit-filter 0.3s ease;
  transition: filter 0.3s ease;
  transition: filter 0.3s ease, -webkit-filter 0.3s ease;
}
.points-redemption .btn.btn-fontSize:hover {
  -webkit-filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
          filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}
.points-redemption .btn.btn-send {
  background-color: #ffffff;
  width: 50px;
  border-radius: 32px;
  position: absolute;
  top: 0;
  right: 0;
  background-image: url("../img/icon-send-orange.svg");
  background-repeat: no-repeat;
  background-position: center center;
}
.points-redemption .btn.btn-voice {
  background-color: #ffffff;
  width: 40px;
  min-width: 40px;
  border-radius: 32px;
  background-image: url("../img/icon-voice-orange.svg");
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.3));
          filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.3));
  -webkit-transition: -webkit-filter 0.3s ease;
  transition: -webkit-filter 0.3s ease;
  transition: filter 0.3s ease;
  transition: filter 0.3s ease, -webkit-filter 0.3s ease;
}
.points-redemption .btn.btn-voice:hover {
  -webkit-filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
          filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

/* .points-redemption adjustment */

.points-redemption .chat-item {
    max-width: 300px;
}

.points-redemption button {
    height: 30px;
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

.points-redemption .btn.btn-obvious {
    border: 1px solid #5194ed;
    color: #ffffff;
    background-color: #5194ed;
}

/* ========================================
   maintenanceAdvice 定保與待修建議1~3
   ======================================== */

.maintenance-advice .chat-content.chat-max-sm .chat-item {
  max-width: 260px;
}

.maintenance-advice .chat-item {
  background-color: #ebf5ff;
  border-radius: 0 16px 16px 16px;
  padding: 10px;
}

.maintenance-advice .chat-item .img-wrapper {
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #333333;
  overflow: hidden;
}

.maintenance-advice .chat-item .img-wrapper img {
  display: block;
  width: 100%;
}

.maintenance-advice .chat-item .chat-heading {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.maintenance-advice .chat-item .chat-heading .h2 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5rem;
  color: #5194ed;
  margin-bottom: 10px;
}

.maintenance-advice .chat-item .chat-heading .h5 {
  color: #eb0a1e;
  display: inline-flex;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 400;
}

.maintenance-advice .chat-item .chat-heading .h5::before {
  content: "";
  width: 42px;
  height: 26px;
  display: inline-block;
  background-image: url("../img/img-car-red.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.maintenance-advice .chat-item .chat-twin {
  margin-top: 10px;
}

.maintenance-advice .chat-item .chat-twin .chat-twin-row {
  display: flex;
}

.maintenance-advice .chat-item .chat-twin .chat-twin-col {
  line-height: 1.6rem;
}

.maintenance-advice .chat-item .chat-twin .chat-twin-col:first-child {
  white-space: nowrap;
}

.maintenance-advice .chat-item .chat-twin.chat-twin-heading .chat-twin-row .chat-twin-col:first-child {
  color: #5194ed;
}

.maintenance-advice .chat-item .chat-inner {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}

.maintenance-advice .chat-item .chat-inner p {
  margin-bottom: 0;
}

.maintenance-advice .chat-item p em {
  color: #eb0a1e;
  font-style: normal;
}

.maintenance-advice .chat-item .btn-drawer-single {
  margin-top: 10px;
}

.maintenance-advice .chat-item .btn-drawer-single .btn {
  margin-bottom: 5px;
}

.maintenance-advice .chat-item .btn-drawer-single .btn:last-child {
  margin-bottom: 0;
}

.maintenance-advice .chat-item .btn-drawer-twin {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.maintenance-advice .chat-item .btn-drawer-twin .btn {
  margin-bottom: 0;
}

/**========================================
   uploadModal 上傳圖片彈跳視窗
   ======================================== */
.upload-modal .modal {
  display: none;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}
.upload-modal .modal.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.upload-modal .modal .modal-content {
  display: none;
  width: 100%;
  max-height: 80vh;
  max-width: 560px;
  z-index: 93;
  margin: 5px;
  background-color: #ebf5ff;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  -webkit-transform: translateY(20px);
          transform: translateY(20px);
  -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease, -webkit-transform 0.3s ease;
}
.upload-modal .modal .modal-content.active {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}
.upload-modal .modal .modal-content .modal-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 100%;
  padding: 10px;
  overflow-y: auto;
}
@media screen and (min-width: 576px) {
  .upload-modal .modal .modal-content .modal-inner {
    padding: 10px 20px;
  }
}
.upload-modal .modal .modal-content .modal-inner::-webkit-scrollbar {
  width: 3px;
}
.upload-modal .modal .modal-content .modal-inner::-webkit-scrollbar-track {
  background: transparent;
}
.upload-modal .modal .modal-content .modal-inner::-webkit-scrollbar-thumb {
  background: #5194ed;
  border-radius: 10px;
}
.upload-modal .modal .modal-content .modal-inner::-webkit-scrollbar-thumb:hover {
  background: #5194ed;
}
.upload-modal .modal .modal-content .modal-inner .modal-wrapper {
  background-color: #ffffff;
  border-radius: 8px;
}
.upload-modal .modal .modal-content .modal-inner .icon-customer {
  width: 100px;
  margin: 0 auto;
}
.upload-modal .modal .modal-content .modal-inner .icon-selectImage {
  width: 138px;
  margin: 20px auto;
  display: block;
}
@media screen and (min-width: 576px) {
  .upload-modal .modal .modal-content .modal-inner .icon-selectImage {
    width: 157px;
    margin: 40px auto;
  }
}
.upload-modal .modal .modal-content .modal-inner .h2 {
  margin-top: 10px;
  text-align: center;
  margin-top: 10px;
  line-height: 2rem;
}
.upload-modal .modal .modal-content .modal-inner .h4 {
  text-align: center;
  color: #5194ed;
  margin-top: 10px;
}
.upload-modal .modal .modal-content .modal-inner p {
  margin-top: 10px;
}
.upload-modal .modal .modal-content .modal-inner .chat-input {
  margin-top: 10px;
}
.upload-modal .modal .modal-content .modal-inner .chat-input.input-validation {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 10px;
}
.upload-modal .modal .modal-content .modal-inner .chat-input.input-validation .img-validation {
  width: auto;
}
.upload-modal .modal .modal-content .modal-inner .chat-input.input-validation .img-reload {
  min-width: 24px;
  min-height: 24px;
  padding: 0px;
  margin: 0px;
  background-image: url("../images/icon-reload-blue.svg");
  background-repeat: no-repeat;
  border-width: 0;
  background-color: transparent;
  margin-right: 10px;
}
.upload-modal .modal .modal-content .modal-inner .btn-drawer-single {
  margin-top: 10px;
}
.upload-modal .modal .modal-content .modal-inner .btn-drawer-single .btn {
  margin-top: 5px;
}
.upload-modal .modal .modal-content .modal-inner .btn-drawer-single .btn.btn:first-child {
  margin-top: 0;
}
.upload-modal .modal .modal-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(51, 51, 51, 0.8);
  z-index: 92;
}

/* ========================================
   RichMenu 動態選單樣式
   ======================================== */

/* RichMenu 容器 */
.rich-menu-container {
  padding: 10px 0;
}

.rich-menu-loading {
  text-align: center;
  padding: 20px;
  color: #7f7f7f;
  font-size: 0.9rem;
}

/* 單一 RichMenu 項目 */
.rich-menu-item {
  margin-bottom: 15px;
}

/* 圖片地圖容器 */
.rich-menu-image-map {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* RichMenu 圖片 */
.rich-menu-image {
  width: 100%;
  height: auto;
  display: block;
}

/* 點擊區域 */
.rich-menu-area {
  position: absolute;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.rich-menu-area:hover {
  background-color: rgba(81, 148, 237, 0.2);
}

.rich-menu-area:active {
  background-color: rgba(81, 148, 237, 0.4);
}

/* 不同 action 類型的點擊區域視覺提示（可選） */
.rich-menu-action-message:hover,
.rich-menu-action-postback:hover {
  background-color: rgba(81, 148, 237, 0.2);
}

.rich-menu-action-uri:hover {
  background-color: rgba(119, 162, 67, 0.2);
}

/* 響應式調整 */
@media screen and (max-width: 575.98px) {
  .rich-menu-container {
    padding: 5px 0;
  }

  .rich-menu-item {
    margin-bottom: 10px;
  }

  .rich-menu-image-map {
    border-radius: 6px;
  }
}