@charset "UTF-8";

/* TTS 喇叭圖示字體 */
@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'),
         url('../fonts/glyphicons-halflings-regular.woff') format('woff'),
         url('../fonts/glyphicons-halflings-regular.ttf') format('truetype');
}

.glyphicon {
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    vertical-align: middle;
}

.glyphicon-volume-off:before { content: "\e036"; } /* 喇叭關閉圖案 */
.glyphicon-volume-up:before { content: "\e038"; }  /* 喇叭開啟圖案 */

html,
body {
    font-size: 100%;
    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;
    /* line-height: 30px; */
    background-color: #F4F5F6;
    background-color: white;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

a, a:hover, a:focus, a:active{
    color: #007a96;
}

#lhc_livechat {
    height: 100%;
    overflow: hidden;
    /* height: 100%; */
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
}

:focus-visible {
  outline: #EEC552 dotted 5px !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.sr-only:active,
.sr-only:focus-visible {
    outline: #EEC552 dotted 5px !important;
    opacity: 1;
    position: absolute;
    width: auto;
    height: auto;
    margin: 5px;
    overflow: visible;
    clip: auto;
    z-index: 10;
}

.sr-only.to-main {
    margin: 5px;
    color: #fff;
}

#accU, 
#accC,
#accR {
    color: transparent !important;
    position: absolute;
    z-index: 1000;
    outline: none !important;
    min-width: 24px;
    min-height: 24px;
    text-align: center;
}

#overlayMain {
    top: 0;
}

#accU:focus-visible {
    color: #fff !important;
    scroll-margin-top: 10em;
    outline: #EEC552 dotted 5px !important;
}

#accC:focus-visible,
#accR:focus-visible {
    color: #535456 !important;
    scroll-margin-top: 10em;
    outline: #EEC552 dotted 5px !important;
}

.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: #eef6f7;
    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: #eef6f7;
    width: 100%;
    padding: 0px 28px 16px;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-shrink: 0;
    position: relative;
}

.chat-input-buttons {
    display: inline-flex;
    align-items: center;
    /* display: none; */
    flex-shrink: 0;
    margin-right: 8px;
}

.chat-input-buttons button {
    border: 1px solid #007a96;
    background-color: transparent;
    width: 32px;
    height: 32px;
    margin: 2px;
    padding: 0;
    border-radius: 50%;
    outline: none;
}

.chat-input-buttons button:first-child {
    margin-left: 0;   
}

.chat-input-buttons .chat-word-size-buttons {
    background: transparent;
    color: #007a96;
    margin: 2px;
}

.chat-input-buttons .chat-word-size-buttons.active,
.chat-input-buttons .chat-word-size-buttons:hover {
    background: #007a96;
    color: #fff;
}

.chat-control-restart, .chat-control-stop {
    margin-bottom: 5px;
}

.chat-control-restart,
.chat-control-restart:hover,
.chat-control-restart:active,
.chat-control-restart:focus {
    background-color: #007a96 !important;
    border-color: #007a96 !important;
    color: #fff !important;
}

.mobile-menu-btn {
    background: url('../img/mobile-menu.svg') 50% 50% no-repeat;
    background-size: 32px;
    display: none;
}

.mobile-menu-btn:hover,
.mobile-menu-opened .mobile-menu-btn {
    background: #007a96 url('../img/mobile-menu-active.svg') 50% 50% no-repeat;
    background-size: 32px;
}

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;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

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;
    border: none;
    cursor: pointer;
}

.voice-input-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

.voice-input-txt {
    position: absolute;
    text-align: center;
    top: 54px;
    left: 0;
    color: #BFBFBF;
    font-size: 1.125rem;
    width: 100%;
    padding: 0 20px;
}

.voice-input-error {
    color: #F57F17;
}

.voice-input-panel-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #007a96;
    outline: none;
    background: url(../img/voice-input.svg) 50% 50% no-repeat;
    background-size: 24px;
    margin-left: 5px;
    flex: none;
}

.voice-input-opened .voice-input-panel-btn {
    background: url('../img/voice-input-active.svg') 50% 50% no-repeat;
    background-size: 24px;
}

.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-elm {
    display: flex;
    width: 100%;
    align-items: center;
}

.chat-input-form>input {
    vertical-align: middle;
}

.chat-input-form .txt_input {
    height: 48px;
    width: calc(100% - 96px);
    padding: 12px 16px;
    font-size: 1rem;
    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: #007a96;
    margin-left: -6px;
    border: none;
    color: white;
    letter-spacing: 3px;
    -webkit-appearance: none;
}

.chat-disclaimer {
    display: inline-block;
    width: 100%;
    font-size: 13px;
    color: #7F7F7F;
    text-align: center;
    margin-top: 8px;
}

.top {
    position: relative;
    height: 60px;
    min-height: 60px;
    line-height: 60px;
    padding-right: 20px;
    padding-left: 40px;
    background: #007a96;
}

.top-logo img {
    width: 30px;
    height: 30px;
}

.top-logo h1 {
    display: inline-block;
    margin-left: 12px;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0;
}

.top-logo span {
    margin-left: 12px;
    font-size: 1.25rem;
    color: white;
    vertical-align: middle;
}

.top-banner {
    position: relative;
    background-color: white;
    line-height: 1.5em;
    font-size: 1rem;
    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);
    display: none;
}

.top-banner.show {
    height: auto;
    padding: 10px 40px;
    transition: height 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
    display: block;
}

.top-banner a {
    font-size: 1rem;
    color: #007a96;
}

.top-banner img {
    margin-right: 14px;
}

/*==============================================
  SITEMAP STYLES
  =============================================*/

.sitemap-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: auto;
}

.sitemap-content {
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sitemap-content .title{
    font-size: 1.25rem;
    font-weight: bold;
    color: #007a96;
    margin-bottom: 1rem;
}

.sitemap-content .guide-item {
    margin-bottom: 1rem;
}

.sitemap-content .guide-item p {
    margin: 0;
}

.sitemap-content .guide-item img {
    max-width: 100%;
    height: auto;
}

.sitemap-content .btn-row {
    text-align: center;
}

.sitemap-content .back-btn {
    display: inline-block;
    color: #fff;
    background-color: #007a96;
    margin: 10px 0;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    outline: none;
}

.sitemap-content .back-btn:hover {
    color: #fff;
    text-decoration: none;
}

/*==============================================
  MENU STYLES
  =============================================*/
.sidebar-wrapper {
    position: relative;
    background-color: #eef6f7;
    overflow-x: hidden;
    overflow-y: auto;
    position: inherit;
    margin: 0px;
    flex-shrink: 0;
    display: none;
}

.sidebar {
    margin: 20px;
    margin-left: 19px;
    width: 400px;
    background-color: white;
    border-radius: 4px;
    padding: 0 20px;
    box-sizing: border-box;
}

.sidebar .tabs {
    list-style: none;
    padding: 0;
    border-bottom: 1px solid #aaa;
}

.sidebar .tab {
    text-align: center;
    font-size: 1.125rem;
    color: #aaa;
    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: #007a96;
}

.sidebar .tab.active:after {
    content: '';
    display: block;
    height: 2px;
    width: 100%;
    position: absolute;
    bottom: -1px;
    right: 0;
    left: 0;
    background-color: #007a96;
}

.sidebar .tab-content-container {
    overflow: hidden;
}

.tab-content {
    display: none;
    margin-bottom: 40px;
}

.tab-content.active {
    display: block;
}

.tab-content section {
    margin-bottom: -18px;
    position: relative;
}

.tab-content section h4 {
    font-size: 1rem;
    font-weight: 400;
    margin: 20px 0;
}

.icon-block-container {
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

.icon-block-container a {
    display: block;
    outline: none;
}

.icon-block-container a:hover,
.icon-block-container a:focus {
    text-decoration: none;
}

.icon-block {
    width: 108px;
    height: 108px;
    margin-left: 18px;
    margin-bottom: 18px;
    padding: 10px;
    border: 1px solid #CCC;
    border-radius: 4px;
    text-align: center;
    line-height: 1em;
    cursor: pointer;
}

.icon-block:nth-child(3n+1) {
    margin-left: 0;
}

.icon-block img, .icon-block svg {
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto;
}

.icon-block:nth-child(7) svg,
.icon-block:nth-child(8) svg{
    transform: translateY(-10%);
}

.icon-block span {
    display: flex;
    font-size: 0.875rem;
    color: #757575;
    height: 2em;
    justify-content: center;
    align-items: center;
}

.text-link-container {
    padding-left: 26px;
}

.question-clickable {
    color: #007a96;
    font-size: 1rem;
    cursor: pointer;
}

.text-link-container .question-clickable {
    margin-right: 4px;
}

.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: 1rem;
    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: #007a96;
    width: 100%;
    color: #fff;
    padding: 20px 50px 20px 50px;
    padding-left: 20px;
}

.footer>a,
.footer>a:hover {
    color: #fff;
}

.avatar-wrapper {
    position: absolute;
}

.robot-avatar {
    width: 72px;
    height: 72px;
    padding: 10px;
}

.message-datetime {
    margin-left: 106px;
    float: left;
    color: #666;
    font-size: 0.875rem;
    margin-top: 8px;
    line-height: 14px;
    clear: both;
}

.by-user .message-datetime {
    margin-right: 5px;
    float: right;
}

.message-row .msg {
    border-radius: 12px;
    background-color: #fff;
    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;
    margin-left: 86px;
    float: left;
}

.message-row .msg>div+div {
    margin-top: 10px;
}

.message-row .msg img {
    display: block;
    max-width: 100%;
    height: auto;
}

.message-row.by-user {
    float: right;
}

.message-row.by-user .msg {
    background-color: #40c4c6;
    float: right;
}

.message-row.by-user .msg .inline-msg {
    background-color: #40C4C6;
    /* color: #fff; */
}

.col-lg-12 {
    padding-left: 0px;
    padding-right: 0px;
}

button.btn_sitemap {
    width: auto;
    height: max-content;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 20px;
    margin: auto;
    background: url(../img/help.svg) 10px center no-repeat;
    background-size: 18px;
    border-radius: 5px;
    border: 2px solid #fff;
    color: #fff;
    font-size: 1rem;
    line-height: 1rem;
    padding: 8px 15px 8px 33px;
}
button.btn_sitemap:hover {
    color: #fff;
    text-decoration: none;
}

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;
    /* float: right; */
    background: url(../img/help.svg) 0 0 no-repeat;
    background-position: 50% 50%;
    background-size: 24px 24px;
    display: none;
}

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: 20px 20px;
    display: none;
}

/* 新增 TTS 按鈕樣式 (比照 JSP 位置) */
.btnTts.btn_ai_voice {
    width: 36px;
    height: 36px;
    position: absolute;
    top: 50%;
    right: 220px; /* 放在 exit 和 help 之間 */
    margin-top: -18px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #fff;
    font-size: 1.25rem;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* TTS Tooltip */
.itri-tooltip-voice {
    position: absolute;
    display: none;
    background: rgba(64, 64, 64, 0.9);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    top: 50px;
    right: 205px;
    font-size: 0.875rem;
    line-height: 1.5em;
    white-space: nowrap;
    z-index: 101;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2)
}

.btnTts:hover + .itri-tooltip-voice {
    display: block;
}

button.btn-survey {
    position: absolute;
    right: 120px;
    width: 32px;
    height: 32px;
    background: url(../img/btn-survey.png) center center no-repeat;
    background-size: 32px;
    padding: 0;
    margin: 2px 8px;
}

.accessibility-mark {
    width: 88px;
    height: 31px;
    position: absolute;
    top: 50%;
    right: 265px;
    margin-top: -18px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.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: 0.875rem;
    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: 425px;
}

.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 {
    bottom: 75px;
    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% - 56px);
    height: 50px;
    top: auto !important;
    bottom: 15px !important;
}

.tip-content {
    background-color: #4C4C4C;
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    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: 1.25rem;
    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: 0.875rem;
    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: 40px;
    overflow: hidden;
    clear: both;
}

.message-row a {
    color: #007a96;
    font-size: inherit;
    cursor: pointer;
}

.message-row a:hover {
    color: #007a96;
    text-decoration: none;
}

.message-row.by-robot {
    min-height: 96px;
}

.message-row.by-robot .msg {
    margin-right: 80px;
}

.message-row.by-robot.swiper {
    margin-right: -40px;
}

.swiper .buttons-message-container {
    /* padding-right: 84px; */
    padding-right: 316px;
}

.buttons-message-container {
    margin-left: 0px;
    float: left;
    display: -ms-flexbox;
    display: flex;
    overflow: visible;
}

.buttons-message-container.swiper-wrapper {
    padding: 0 5px 5px 5px;
}

.buttons-message-block {
    width: 232px !important;
    min-width: 232px;
    padding: 10px 20px;
    border-radius: 12px;
    /* background-color: #F0F0F0; */
    color: #4C4C4C;
    font-size: 1rem;
    display: inline-block;
    margin-right: 14px;
}

.buttons-message-block:last-of-type {
    margin-right: 0;
}

.buttons-message-block .img-wrapper {
    margin: -10px -20px;
    margin-bottom: 0;
    height: 128px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.buttons-message-block .img-wrapper img {
    width: 100%;
}

.buttons-message-block .description {
    background-color: white;
    color: #7F7F7F;
    font-size: 0.875rem;
    margin: 0 -20px;
    padding: 10px 20px;
    border-radius: 12px 12px 0 0;
    border: 1px solid #CCCCCC;
    border-bottom: transparent;
    white-space: normal;
}

.buttons-message-block .img-wrapper + .description {
    border-radius: 0;
}

.buttons-message-block .description h4 {
    color: #4C4C4C;
    font-size: 1rem;
    line-height: 22px;
    margin: 0;
}

.buttons-message-block .description .title {
    color: #000;
    font-size: 1rem;
    line-height: 22px;
    margin: 0;
}

.buttons-message-block ul {
    list-style: none;
    padding: 0;
    background-color: white;
    margin: 0 -20px -10px -20px;
    border: 1px solid #CCCCCC;
    border-top: transparent;
    border-radius: 0 0 12px 12px;
}

.buttons-message-block ul li {
    border-top: 1px solid #CCCCCC;
    /* height: 40px; */
    text-align: center;
    line-height: 1.5em;
    /* text-overflow: ellipsis; */
    /* overflow: hidden; */
    padding: 8px 12px;
    white-space: normal;
}

.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: #007a96;
    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;
    background-color: transparent;
}

.inline-msg {
    border-radius: 12px;
    background-color: #fff;
    color: #000;
    line-height: 1.5em;
    word-break: break-word;
    word-wrap: break-word;
    white-space: normal;
    padding: 10px 20px;
    display: table;
    clear: both;
}

.survey-wrapper {
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    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: 0.875rem;
    color: #7F7F7F;
    position: relative;
    text-align: center;
}

.survey-header h4 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #007a96;
    margin: 0;
}

.survey-header #survey-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #007a96;
    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;
    border: none;
    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: 0.75rem;
    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: 0.875rem;
    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: 0.75rem;
    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 #007a96;
    border: 3px solid white;
    background-color: #007a96;
}

.survey .submit-button-wrapper {
    width: 100%;
    text-align: center;
}

.survey input[type="submit"] {
    border: none;
    border-radius: 4px;
    background-color: #007a96;
    color: white;
    width: 194px;
    height: 42px;
    display: block;
    margin: 20px auto 0 auto;
    font-weight: normal;
    letter-spacing: 3px;
}

.score-rating ul {
    width: 100%;
    padding: 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: auto;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.exit {
    width: 450px;
    min-height: auto;
    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: 0.875rem;
    color: #7F7F7F;
    border-bottom: 1px solid #CCC;
    position: relative;
}

.exit-header h4 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #007a96;
    margin: 0;
    margin-bottom: 10px;
    text-align: center;
}

.exit-header #exit-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #007a96;
    margin: 0;
    margin-bottom: 10px;
    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: -5px;
    right: 0;
    border: none;
    cursor: pointer;
}

.exit-header p {
    margin-bottom: 30px;
}

.exit-content {
    margin-top: 25px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exit-yes-btn,
.exit-yes-btn:hover,
.exit-yes-btn:active,
.exit-yes-btn:focus {
    width: calc(50% - 10px);
    padding: 10px;
    background: #007a96 !important;
    border: 1px solid #007a96 !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
}

.exit-no-btn,
.exit-no-btn:hover,
.exit-no-btn:active,
.exit-no-btn:focus {
    width: calc(50% - 10px);
    padding: 10px;
    background: #fff !important;
    border: 1px solid #007a96 !important;
    color: #007a96 !important;
    box-shadow: none !important;
    outline: none !important;
}

.exit-yes-btn:focus-visible, 
.exit-no-btn:focus-visible {
  outline: #EEC552 dotted 5px !important;
}


.notice-wrapper {
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.notice-wrapper > .notice {
    width: calc(100% - 30px);
    max-width: 800px;
    max-height: max-content;
    flex: 0 0 auto;
    margin: 15px auto;
    border-radius: 8px;
    background-color: white;
    padding: 24px;
    box-shadow: 0 2px 8px 0 rgb(153, 153, 153);
}

.notice-txt {
    max-height: calc(80dvh - 60px);
    overflow: auto;
    margin-bottom: 1em;
}

.notice-txt ul {
    padding-inline-start: 50px;
}

.notice-txt ul:last-child {
    margin-bottom: 0;
}

.notice-txt .title {
    font-weight: bold;
    margin-bottom: 8px;
}

.notice-list::marker {
    content: "※ ";
}

.notice-txt .highlight {
    color: #FF6161;
}

.notice-btn,
.notice-btn:hover,
.notice-btn:active,
.notice-btn:focus {
    width: 100%;
    padding: 10px;
    background: #007a96 !important;
    border: 1px solid #007a96 !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
}

.notice-btn:focus-visible {
    outline: #EEC552 dotted 5px !important;
}

.notice-txt > .title img {
    height: 28px;
    margin-right: 8px;
    vertical-align: middle;
}

.notice-section {
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    background-color: #fff;
}

.notice-section:nth-of-type(2) {
    background-color: #FFF6DE;
    border-color: #F0DFAE;
}

.notice-section:last-of-type {
    margin-bottom: 0;
}

.notice-section .title {
    margin-bottom: 8px;
}

.notice-section ul {
    padding-inline-start: 26px;
    margin-bottom: 0;
}

/* 右上浮動資訊  */
.guide-float {
  position: fixed;
  top: 80px;
  right: 40px;
  z-index: 98;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.guide-bubble {
  position: relative;
  max-width: 320px;
  background: #b9cccb;
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
  padding: 12px 18px;
  border-radius: 10px;
  margin-right: 10px;
  white-space: nowrap;
}
.guide-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 9px 0 9px 13px;
  border-color: transparent transparent transparent #b9cccb;
}

.guide-portrait-wrap {
  position: relative;
  flex-shrink: 0;
}
.guide-portrait {
  width: auto;
  width: 138.18px;
  height: 120px;
}
.guide-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guide-close {
  position: absolute;
  top: -4px;
  right: -12px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #555;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0;
}
.guide-close:hover { 
  background: #f0f0f0;
  color: #222;
}

.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: 0.875rem;
    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 #007a96;
    border-radius: 15px !important;
    color: #007a96;
    display: inline-block;
    width: auto;
}

.ChatMessageFeedback {
    float: left;
    margin-top: 8px;
    margin-left: 106px;
    clear: both;
}

.helpful_msg, .thank-msg {
    display: inline-block;
    color: #666;
    font-size: 1rem;
    line-height: 1.7em;
}

.btn-fb-y, .btn-fb-n {
    display: inline-block;
    margin-bottom: 5px;
    cursor: pointer;
}

.btn-fb-y {
    margin-left: 0.5rem;
    margin-right: 0.8rem;
}

.btn-fb-y span, .btn-fb-n span {
    color: #007a96;
    margin-left: 5px;
}

.btn-fb-y img, .btn-fb-n img {
    width: 18px;
    height: 18px;
}

.ui-autocomplete {
	padding: 6px;
	border-radius: 8px 8px 0 0;
}

.ui-autocomplete .ui-menu-item-wrapper {
    position: relative;
    padding: 0 6px;
    display: block;
}

.ui-autocomplete .ui-state-active,
.ui-autocomplete .ui-widget-content .ui-state-active,
.ui-autocomplete .ui-widget-header .ui-state-active,
.ui-autocomplete a.ui-button:active,
.ui-autocomplete .ui-button:active,
.ui-autocomplete .ui-button.ui-state-active:hover {
	border: none;
	background: #40c4c6;
	font-weight: normal;
	color: #fff;
	text-decoration: none;
}

.ui-autocomplete .ui-icon-background,
.ui-autocomplete .ui-state-active .ui-icon-background {
	border: none;
	background-color: #ffffff;
}

/*==============================================
  MEDIA QUERIES
  =============================================*/
@media (min-width: 801px) {
    .voice-input-panel {
        position: fixed;
        opacity: 0;
        visibility: hidden;
    }
}

@media (max-width: 800px) {		
    .top {
        height: 40px;
        min-height: 40px;
        line-height: 40px;
        padding: 0;
    }

    .top .btn_help {
        display: none;
    }

    .top .top-logo {
        text-align: left;
        padding-left: 20px;
    }

    .top-banner.show {
        height: auto;
        padding: 10px 20px;
    }

    .main-wrapper {
        flex-direction: column;
    }

    .chat-message-container {
        padding: 0 16px;
        width: 100vw;
        -webkit-overflow-scrolling: touch;
    }

    .chat-messages {
        margin-top: 26px;
    }

    .guide-float {
        top: 12px;
        right: 12px;
    }

    .guide-bubble {
        max-width: 180px;
        margin-right: 14px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .guide-portrait {
        width: 88px;
        height: 88px;
    }

    .robot-avatar {
        width: 48px;
        height: 48px;
        padding: 5px;
    }

    .message-row.by-robot {
        /* margin-right: 62px; */
    }

    .message-row .msg {
        margin-left: 62px;

    }

    .message-row.by-robot .msg {
        margin-right: 62px;
    }

    .message-row .inline-msg {
        padding: 5px 10px;
    }

    .message-datetime {
        margin-left: 72px;
    }
    
    .ChatMessageFeedback {
        margin-left: 72px;
    }

    .buttons-message-container {
        margin-left: 0px;
    }

    .chat-input-container {
        padding: 14px 16px;
    }

    .mobile-menu-btn {
        display: none;
    }

    .mobile-menu-opened .chat-input-container,
    .voice-input-opened .chat-input-container {
        z-index: 99;
    }

    .chat-input-buttons {
        display: inline-flex;
        align-items: center;
        float: left;
    }

    .sidebar-wrapper {
        width: 100vw;
        height: 0;
        flex-shrink: 0;
        transition: height 0.3s;
        position: relative;
    }

    .mobile-menu-opened .sidebar-wrapper {
        height: 275px;
        transition: height 0.3s;
        background-color: white;
        z-index: 99;
    }

    .sidebar {
        margin: 0;
        width: 100%;
        padding: 0;
    }

    .sidebar .tabs {
        padding: 0 20px;
        display: block;
        margin: 0;
    }

    .sidebar .tab {
        height: 40px;
        line-height: 40px;
        display: inline-block;
        margin-right: 10px;
        margin-top: 5px;
    }

    .tab-content {
        margin-top: 15px;
        margin-bottom: 0;
    }

    .slide-container {
        overflow-x: auto;
        overflow-y: auto;
        /* 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;
    }

    .icon-block-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-flow: row;
        grid-gap: 14px;
    }

    .icon-block {
        margin: 0;
        width: auto;
        height: 90px;
        padding: 4px;
    }

    .icon-block img, .icon-block svg {
        width: 50px;
        height: 50px;
        display: block;
        margin: 0 auto;
    }

    .slide-indicator-container {
        display: none;
    }

    .voice-input-panel {
        position: relative;
        width: 100%;
        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;
    }
    .voice-input-opened .voice-input-close-btn {
        display: block;
    }

    .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: 20px auto 0 auto;
        letter-spacing: 3px;
    } */

    .swiper-control-button {
        display: none;
    }

    .message-row.by-robot.swiper {
        margin-right: -16px;
    }

    .swiper .buttons-message-container {
        padding-right: 16px;
    }

    button.btn_exit {
        right: 0px;
        display: none;
    }
    
    button.btn-survey {
        right: 110px;
    }

    button.btn_sitemap {
        right: 20px;
        width: 16px;
        height: 16px;
        padding: 9.2px;
        border: none;
        border-radius: 50%;
        background-position: left top;
    }
     button.btn_sitemap span {
        display: none;
    }
    
    .exit {
        width: calc(100vw - 32px);
        padding: 20px 16px;
    }

    .sticker {
        width: calc(100vw - 16px);
        padding: 20px 4px;
    }

    .btnTts.btn_ai_voice {
        right: 40px;
    }

    .itri-tooltip-voice {
        top: 35px;
        right: 30px;
    }

    .accessibility-mark {
        right: 75px;
    }

    /* .chat-control-stop {
        display: none !important;
    } */

    .guide-float {
        display: none;
    }
}

/*==============================================
  Swiper.js customized
  =============================================*/
.swiper-slide {
    width: auto;
}

.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled {
    opacity: 0 !important;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    content: none;
}

.swiper-button {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    background-color: #007a96;
    cursor: pointer;
    z-index: 10;
    background-image: url('../img/arrow.svg');
}

.swiper-button-prev {
    background-repeat: no-repeat;
    background-position: 44% 50%;
    background-size: 10px 16px;
}

.swiper-button-next {
    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";
}

/*==============================================
  RichMessage: CSP-safe replacements for inline styles
  =============================================*/
.rm-image-container { width: 500px !important; }
.rm-image-block { width: 500px !important; }
.rm-no-padding { padding: 0; }
.rm-imagemap-block {
    padding: 0;
    width: calc(100vw - 94px) !important;
    min-width: 226px;
    max-width: 460px;
}
.rm-actions-top { margin-top: 5px; }
.rm-swiper-clear { clear: both; }