/* HEADER */
header .logo{
  width: auto;
  max-height: 100%;
}
header .logo img{
  max-height: 100%;
  max-width: inherit;
}
header #primary-menu ul li a{
  width:auto;
  min-width: 75px;
}
header #primary-menu ul li span {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.regular.change-width .slick-track {
  width: 100% !important;
}
.header .menu-list{
  float: right;
  /* height: 86px; */
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  text-align: right;
  margin: 0;
  width: 100%;
}
header #primary-menu ul.menu-list::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #F5F5F5;
}
header #primary-menu ul.menu-list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  border-radius: 10px;
  background-color: #F5F5F5;
}
header #primary-menu ul.menu-list::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 1px #555;
  background-color: rgba(0, 0, 0, .3);
}

/* 跑馬燈字reset */
.marquee marquee {
  font-size: unset;
  line-height: unset;
}

/* 宣傳圖 */
.advertising-graphic {
  display: -webkit-box;
  display: -ms-flexbox;
  overflow: auto;
}
.advertising-graphic img {
  max-width: 100%;
  max-height: 100%;
}
.main-wrap .side-menu {
  min-width: auto;
}

/* 常見問題 */
.accordion {
  padding: 0;
}
.accordion .el-tree {
  color: #282828;
}
.el-submenu__title i {
  font-style: normal;
}
.el-icon-caret-right:before {
  content: "" !important;
}
.accordion .is-expanded>.el-tree-node__content>span>.icon-folder:before{
  content: '\e83e' !important;
}
.accordion .el-tree-node__content{
  height: auto;    
}
.accordion .span-ellipsis{
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: start;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: start;
  line-height: 1.4em;
  padding-top: 5px;
  padding-bottom: 5px;
}
.accordion .span-ellipsis i{
  height: 1.4em;
  line-height: 1.4em;
  display: inline-block;
  vertical-align: top;
  padding-right: 5px;
}
.accordion span.q_txt{
  white-space: normal;
  word-break: break-word;
  /* display: inline-block; */
  width: calc(100% - 30px);
  color: unset;
  font-size: unset;
}
.accordion span.q_txt:hover {
  color: unset;
  opacity: 0.9;
}
.accordion span.q_txt p{
  margin-block-start: 0;
  margin-block-end: 0;
  margin: 0;
}
.accordion .el-tree-node__content:hover ,.accordion .el-tree-node:focus>.el-tree-node__content {
  background-color: unset;
}
.accordion .el-tree-node__content>.el-tree-node__expand-icon {
  padding: 0;
}

/* 對話訊息 */
.dialogue-service-head{
  color: inherit;
  font-size: inherit;
}
.dialog-wrap .dialog-name{
  word-break: break-all;
}
.dialog-wrap .dialog-time{
  color: inherit;
  padding-bottom: 10px;
}
.dialog-wrap.bot .dialog-time{
  float: left;
  margin-right: 10px;
}
.dialog-wrap.bot .parent-id{
  float: left;
  padding: 8.5px 2px;
}
.bot-select-items p{
  margin: 0 !important;
  /* display: inline-block; */
}
.bot .dialog_content p ,.bot .dialog_content p+p{
  margin: 0;
}
.bot-auto-msg{
  margin: -5px 0 -7px;
}
.bot-auto-msg p{
  margin: 0 !important;
}
.bot-auto-msg hr{
  margin: 10px 0 15px 0;
}
.dialog-wrap .dialog-box span p {
  /* display: inline; */
}
.dialog-wrap .dialog-box p a img { /* 圖片另開新頁 */
  margin-top: 6px;
}
.dialogue-area {
  border-right: 1px solid #e0e0e0;
}
.dialog-wrap .dialog-portrait {
  text-align: center;
}
.dialog-wrap .dialog-portrait img {
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  width: 100%;
}
.dialog-wrap .dialog-box ul a {
  margin: 0;
}
.dialog-wrap .dialog-box ol li::marker {
  color: unset;
}
.dialog-wrap.bot .dialog-box a ,.dialog-wrap.bot .dialog-box img {
  display: inline-block;
}
.dialog-wrap .no_html a {
  display: inline-block;
  -webkit-transform: translate(0);
  transform: translate(0);
}
.dialog-wrap .dialog-box a.bot-select-items {
  /* display: block; */
  display: flex;
  align-items: center;
}
.dialog-wrap .dialog-box .change-to-service {
  /* margin-top: 10px; */
}
.dialog-wrap .dialog-box {
  word-break: break-all;
}
.dialog-wrap .dialog-box video {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  max-height: 480px;
}
.dialog-wrap .dialog-box audio {
  width: 300px;
  height: 35px;
  border-radius: 10px;
}
.dialog-wrap .dialog-box img {
  display: inline-block;
  cursor: pointer;
}
.dialog-wrap .dialog-box .media {
  display: block;
  margin: 0;
  -webkit-transform: unset;
  transform: unset;
  padding: 0;
  line-height: 0;
  text-align: center;
}
.dialog-wrap .dialog-box .media img{
  max-height: 480px;
}
.dialog-content-client{
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.readed{
  font-size: 14px;
  margin-right: 10px;
  min-width: 30px;
  opacity: 0;
}
.show-img .el-image-viewer__canvas img{
  border-radius: 0;
  max-width: 95% !important;
}
.show-img .el-icon-circle-close{
  color: #fff;
}
.emojionearea, .emojionearea.form-control {
  background-color: transparent;
  border: 0;
}
.emojionearea.focused ,.emojionearea, .emojionearea.form-control {
  border: 2px solid #fff0;
  box-shadow: unset;
  
}
.emojionearea .emojionearea-button>div {
  /* background-image: url('../img/happy.svg')!important; */
  background-image: none!important;
}
.emojionearea .emojionearea-button {
  left: -42px;
  top: 0px;
  bottom: 0px;
  width: 40px;
  height: 40px;  
  margin: auto 0;
}
.emojionearea .emojionearea-picker.emojionearea-picker-position-top {
  left: 0%;
  margin-top: -285px!important;
}
.emojionearea .emojionearea-picker.emojionearea-picker-position-top .emojionearea-wrapper:after {
  display: none;
}
.emojione {
  width: 24px !important;
  height: 24px !important;
  background-image: unset !important;
  margin: 0 2px !important;
}
.emojionearea,
.emojionearea.form-control {
  border: 2px solid #fff0;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
  background: unset;
}
.emojionearea .emojionearea-editor {
  min-height: 100%;
  max-height: 5em;
  height: 100%;  
  word-break: break-all;
  padding: 0;
  overflow-y: auto;
  color: inherit;
}
#drag_frame {
  border: 2px solid #fff;
}
#drag_frame.focused {
  border-color: #ccc;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(117, 117, 117, 0.6);
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.dialog-input-wrap .dialog-input-field {
  /* width: 100%; */
}
.dialog-input-wrap .dialog-input-field .input-field {
  overflow: visible;
}
.dialog-input-wrap .dialog-input-field .input-field .textarea {
  overflow-y: visible;
  overflow-x: visible;
  max-height: none;
  font-size: inherit;
}
.dialog-input-wrap .dialog-input-field .input-field .emoticons {
  width: auto;
  height: auto;
}
.welcome_text { /* 歡迎語 */
  margin: 15px 10px;
}
.n_text { /* 系統訊息 */
  text-align: center;
  margin: 0px auto 10px;
  /* color: #999; */
  -webkit-animation: message--show 458ms cubic-bezier(.785, .135, .15, .86);
  animation: message--show 458ms cubic-bezier(.785, .135, .15, .86);
  word-wrap: break-word;
  font-size: inherit;
}

/* 工具欄 */
.dialog-input-wrap .dialog-upload-image .icon:before ,.dialog-input-wrap .dialog-upload-image .icon:before ,.dialog-input-wrap .dialog-input-field .send .icon:before ,.dialog-input-wrap .dialog-setting .icon:before,.dialog-input-wrap .dialog-input-field .input-field .emoticons .icon:before,.dialog-input-wrap .dialog-go-away .icon:before {
  font-size: inherit;
}
.dialog-input-wrap .dialog-input-field .input-field .emoticons .icon:before{
  color: inherit;
}
.dialog-input-wrap .dialog-setting .icon ,.dialog-input-wrap .dialog-setting .switch-item{
  width: inherit;
  height: inherit;
}
.dialog-input-wrap .dialog-input-field .send .icon-mic:before ,.dialog-input-wrap .dialog-input-field .send .icon-phone:before {
  -webkit-transform:none;
          transform:none;
}

/* 轉接人工客服按鈕 */
.float-switch-service .show-panel-switch-service span{
  /* width: 25px; */
}

/* 彈窗 */
.lightbox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}
.show {
  opacity:1;
  filter:alpha(opacity=1);
}
.lightbox, #lightbox-apply ,#lightbox_lightboxbg {
  display: block;
}
.lightbox-prompt {
  z-index: 1003 !important;
}
.lightbox-prompt-bg {
  z-index: 1002 !important;
}
.lightbox .el-select {
  width: 100%;
}
.lightbox .el-select .el-input__inner {
  border: 1px solid #e0e0e0;
  padding-left: 10px;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lightbox .el-select .el-input__inner::placeholder {
  color: #aaaaaa;
}
.lightbox .el-select .el-input.is-focus .el-input__inner {
  border: 1px solid #2f61df;
  padding: 12px 30px 12px 12px;
}
.lightbox .el-select .el-input__inner:focus {
  border: 1px solid #2f61df;
}
.el-popper[x-placement^=bottom] {
  margin-top: 5px !important;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}
.el-popper[x-placement^=bottom] .popper__arrow {
  border-bottom-color:#e0e0e0;
}
.el-select-dropdown {
  max-width: 95%;
}
.el-select-dropdown__item {
  color: #000;
  height: auto !important;
  line-height: 20px !important;
  padding: 7px 20px !important;
  white-space: normal !important;
  word-break: break-all;
}
.el-select-dropdown__item.selected {
  color: #2f61df !important;
}

/* 測試站點提示 */
.warning-bar {
  height: 90px;
}

/* 錄製語音計時 */
.recording-box{
  font-size: 18px;
  margin: 0 auto;
}
.recording-box .el-icon-close{
  padding: 5px;
  border: 2px solid #f44336;
  border-radius: 100%;
  color: #f44336;
  font-weight: bold;
  cursor: pointer;
}
.recording-box .el-icon-close:hover{
  color: #fff;
  background-color: #f44336;
}
.recording-box span{
  font-size: 20px;
  margin: 0 10px;
}
.recording-box .el-icon-check{
  padding: 5px;
  border: 2px solid #009688;
  border-radius: 100%;
  color: #009688;
  font-weight: bold;
  cursor: pointer;
}
.recording-box .el-icon-check:hover{
  color: #fff;
  background-color: #009688;
}
.icon-recording{
  display: inline-block;
  right: 10px;
  position: absolute;

  animation-iteration-count: infinite;
  animation-direction: alternate;

  -webkit-animation-name: blink;
  -webkit-animation-duration: 0.8s;
  animation-name: blink;
  animation-duration: 0.8s;
  color: red !important;
}

.lightbox4 .lightbox_form{
  margin-top: 15px;
}
.lightbox4 .lightbox_form video{
  width: 100%;
}
.record-over-btn{
  background-color: #9e9e9e;
}
.recording-video{
  text-align: center;
  margin: 0 auto;
  width: 100%;
  display: inline-block;
  margin-top: 10px;
}
.recording-video i{
  animation-iteration-count: infinite;
  animation-direction: alternate;
  -webkit-animation-name: blink;
  -webkit-animation-duration: 0.8s;
  animation-name: blink;
  animation-duration: 0.8s;
  color: red !important;
  border: 1.5px solid red;
  border-radius: 100%;
  padding: 0.5px;
}
@-webkit-keyframes blink {
  from {opacity: 1;}
  to {opacity: 0;}
}

@keyframes blink {
  from {opacity: 1;}
  to {opacity: 0;}
}

/* 語音、視訊通話 */
#call-service{
  /* background: rgb(0 0 0 / 80%); */
  width: calc(50% - 6px);
  display: inline-block;
  vertical-align: top;
  text-align: center;
  overflow: auto;
  color: #000 !important;
}
#call-service img{
  max-width: 200px;
}
#call-service video{
  max-width: 90%;
}
.calling-time {
  padding: 5px 0;
}
.tools-box {
  margin-top: 10px;
}
.tools-item {
  font-size: 12px;
  display: inline-block;
  margin: 0 1vw;
  text-align: center;
  cursor: pointer;
}
.tools-item i {
  font-size: 20px;  
}
.call-type{
  display: inline-block;
  width: 100px;
  cursor: pointer;
}
.lightbox-call{
  text-align: center;
  z-index: 1002 !important;
}
.lightbox-call img{
  display: block;
  margin: 20px auto;
  max-width: 100px;
}
.lightbox-call-bg{
  display: none;
  z-index: 1001 !important;
}
.answer-type{
  display: inline-block;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: #fff;
  padding: 10px;
  border-radius: 100%;
}
.answer-type.reject{
  border: 1px solid #f44336;  
  background-color: #f44336;
}
.answer-type.reject i{
  transform: rotate(135deg);
}
.answer-type.in{
  border: 1px solid #009688;  
  background-color: #009688;
  margin-left: 15px;
}

.preview-file{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
}
.preview-file .mask{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: .85;
  background: #000;
}

.preview-file .canvas{
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 80%;
  margin-top: 20px;
}

.preview-file .canvas img ,.preview-file .canvas video{
  transform: scale(1) rotate(0deg);
  margin-left: 0px;
  margin-top: 0px;
  max-height: 100%;
  max-width: 90%;
}

.preview-file .canvas video , .preview-file .canvas audio{
  z-index: 0;
}

.preview-file .close-btn {
  top: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  font-size: 40px;
  position: absolute;
  z-index: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 50%;
  opacity: .8;
  cursor: pointer;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  user-select: none;
}

.preview-file i{
  color: #fff;
}

[v-cloak] {
  display: none !important;
}