/*@import url('font/noto-sans/font.css');*/
/*@import url('font/kyooshi-gothic/font.css');*/
/*@import url('font/anisa-sans/font.css');*/
/*@import url('font/motoya/font.css');*/
/*@import url('font/meiryo/font.css');*/

html{
    font-size: 1.125em;
}

a {
    color: #00859d;
}

a:hover {
    color: #004d5b;
}

.icon-block a {
    display: block;
}
body {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    touch-action: manipulation;
    font-size: 1.125em;
}

body {
    background-color: #F4F5F6;
    background-color: white;
    color: #000000;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.ui-widget-content {
    position: absolute;
    bottom: 59px;
    width: calc(100% - 512px) !important;
    background: rgb(255 255 255 / 90%);
    border-radius: 5px 5px 0 0;
    margin-left: 170px;
    padding: 0.5rem;
    height: auto;
    max-height: 18rem;
    font-size: 1rem;
    overflow: auto;
    list-style: none;
    line-height: 1.5rem;
    z-index: 11;
    top: auto !important;
}
.ui-widget-content a {
    color: #00859d;
    display: block;
    padding: 5px;
}

.ui-widget-content a:hover {
    color: #004d5b;
    text-decoration: none;
}

.ui-menu-item:hover {
    border: none;
    border-radius: 5px;
    background: rgb(0 133 157 / 20%);
    cursor: pointer;
}

.ui-state-active,
.ui-widget-content .ui-state-active {
    border: none;
    background: none;
    outline: none;
    color: #00859d;
}

#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: #f9f2e7;
    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: auto;
}

.chat-messages {
    margin-top: 40px;
}

.chat-input-container {
    width: 100%;
    padding: 14px 40px 28px 40px;
    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: #dedede;
    color: #4c4c4c;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    outline: none;
    padding: 0;
}

.chat-input-buttons button:focus {
    border: 2px solid #000;
}

.ChatMessageFeedback {
    float: left;
    margin-top: 5px;
    margin-left: 106px;
    clear: both;
    font-size: 0.85rem;
}

.chat-input-buttons button.word-size-focus {
    background-color: #cccccc;
}
.btn.focus, .btn:focus {
    box-shadow: 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: 1.125rem;
    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;
    display: grid;
    grid-template-columns: 130px 1fr 60px;
    align-items: center;
}

.chat-input-form>input {
    vertical-align: middle;
}

.chat-input-form .txt_input {
    resize: none;
    height: 48px;
    width: 100%;
    flex-grow: 1;
    flex-shrink: 1;
    padding: 0 16px;
    font-size: 1rem;
    border: 1px solid #BFBFBF;
    border-radius: 4px 0 0 4px;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    overflow: hidden;
    /*border-right: none;*/
    line-height: 46px
}

.txt-input-area {
    height: 48px;
    margin-right: 8px;
}

.chat-input-form .btn_send {
    height: 48px;
    width: 60px;
    border-radius: 0 4px 4px 0;
    outline: none;
    background: #FFFFFF url('../img/send.svg') center center no-repeat;
    background-size: 24px;
    margin-left: -8px;
    border: 1px solid #BFBFBF;
    border-left: 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: 20px;
    background: #00a8c6;
    z-index: 97;
}

.top .left {
    display: inline-block;
}
.top .right {
    display: inline-block;
    float: right;
}

.accessibility{
    position: relative;
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top .top-logo {
    text-align: left;
    padding: 0 0 0 20px;
    display: inline-flex;
    align-items: center; /* 垂直置中 */
    justify-content: center; /* 水平置中 */
}
.top-logo img {
    max-height: 35px;
}

.top-logo a {
    display: inline-flex;
    text-decoration:none;
}

.top-logo span {
    margin-left: 12px;
    font-size: 1.125rem;
    color: white;
    vertical-align: middle;
}

.top button.btn_notice:focus {
    border:2px solid #000;
}

.top button.btn_notice {
    width: 36px;
    height: 36px;
    padding: 12px 0;
    border: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    background: url('../img/notice.svg') 0 0 no-repeat;
    background-position: 50% 50%;
    background-size: 24px 24px;
}

.top button.btn_exit:focus{
    border:2px solid #000;
}

.top button.btn_exit {
    width: 36px;
    height: 36px;
    padding: 12px 0;
    border: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    background: url('../img/cancel.svg') 0 0 no-repeat;
    background-position: 50% 50%;
    background-size: 24px 24px;
}

.menu{
    position: absolute;
    right: 100px;
    margin: auto;
    padding: 11px 0;
    background: transparent;
    z-index: 97;
    border: none;
}
.menu button{
    width: 100px;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    background-color: #40c0cb;
    border: 2px solid #fff;
    color: #fff;
    font-weight: normal;
    border-radius: 5px;
    padding: 5px 10px;
    line-height: normal;
    margin: 0 5px;
}
.menu button.btn_notice {
    width: 36px;
    height: 36px;
    padding: 12px 0;
    border: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    background: url('../img/notice.svg') 0 0 no-repeat;
    background-position: 50% 50%;
    background-size: 24px 24px;
}
.menu button.btn_font-size{
    display: none;
}

.menu .left{
    display: none;
}
.menu .left button {
    background: #CBB68E;
}
.menu .left button.active{
    font-weight: bold;
    background: #f9f2e7;
    color: #688a00;
    border: 2px solid #85b100;
    border-bottom: none;
    margin-bottom: -2px;
}

.menu .right{
    display: inline-block;
    position: relative;
}

.top-banner {
    position: absolute;
    width: 90%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background-color: white;
    line-height: 1.5em;
    font-size: 0.875rem;
    color: #7F7F7F;
    border: 1px solid #CCC;
    border-radius: 8px;
    padding: 0;
    height: 0;
    transition: height 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
    z-index: 98;
    overflow: auto;
    opacity: 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
}

.top-banner.show {
    height: max-content;
    max-width: 600px;
    padding: 35px;
    opacity: 1;
    transition: height 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
    overflow: visible;
}
.exit-msg {
    position: absolute;
    width: 90%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background-color: white;
    line-height: 1.5em;
    font-size: 0.875rem;
    color: #7F7F7F;
    border: 1px solid #CCC;
    border-radius: 8px;
    padding: 0;
    height: 0;
    transition: height 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
    z-index: 98;
    overflow: auto;
    opacity: 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
}

.exit-msg.show {
    height: max-content;
    max-width: 400px;
    padding: 20px;
    opacity: 1;
    transition: height 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
    overflow: visible;
}

.exit-msg p {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 1.25em;
    color: #000;
}

.exit-msg button {
    margin: 0 10px;
}

.btn_exit-msg-close {
    background-color: #bbbbbb !important;
}

.timeout-msg {
    position: absolute;
    width: 98%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background-color: white;
    line-height: 1.5em;
    font-size: 0.875rem;
    color: #7F7F7F;
    border: 1px solid #CCC;
    border-radius: 8px;
    padding: 0;
    height: 0;
    transition: height 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
    z-index: 98;
    overflow: auto;
    opacity: 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
}
.timeout-msg.show {
    height: max-content;
    max-width: 600px;
    padding: 35px;
    opacity: 1;
    transition: height 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
    overflow: visible;
}

.timeout-msg p {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 1.25em;
    color: #000;
}

.top-banner a {
    color: #00a8c6;
    cursor: pointer;
}
.top-banner a:hover {
    color: #00a8c6;
}

.top-banner img {
    margin-right: 14px;
}

.top-banner + .overlay {
    opacity: 0;
    visibility: hidden;
    z-index: 97;
}
.top-banner.show + .overlay {
    opacity: 1;
    visibility: visible;
}
.exit-msg + .overlay {
    opacity: 0;
    visibility: hidden;
    z-index: 97;
}

.exit-msg.show + .overlay {
    opacity: 1;
    visibility: visible;
}
.top-banner-close{
    text-align: center;
}

.top-banner-close button,
.btn_exit-msg-sure,
.btn_exit-msg-close {
    width: 100%;
    max-width: 500px;
    background-color: #40c0cb;
    color: #fff;
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid transparent; /* 初始時框線透明 */
    outline: none; /* 清除預設的 focus 樣式 */
    transition: border 0.3s ease; /* 添加過渡效果 */

    &:focus {
        border-color: #000; /* focus 時顯示框線顏色 */
    }
}

.btn_exit-msg-sure:focus {
    border-color: #000; /* focus 時顯示框線顏色 */
}

.btn_exit-msg-close:focus {
    border-color: #000; /* focus 時顯示框線顏色 */
}


.top-banner-color{
    width: 100%;
    background-color: #40c0cb;
    color: #fff;
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
}
.top-banner-close button:focus {
    outline: none;
}

.top-banner ul {
    margin-left: -1em;
    margin-bottom: 2em;
    list-style: upper-latin;
    padding-inline-start: 0;
}
.top-banner li {
    margin-bottom: 0.5em;
    margin-left: 2em;
    font-size: 1rem;
    line-height: 1.5rem;
}


/*==============================================
    MENU STYLES    
    =============================================*/

.sidebar-wrapper {
    background-color: #f9f2e7;
    overflow-y: overlay;
    -ms-overflow-y: auto;
    position: inherit;
    margin: 0px;
    flex-shrink: 0;
}

.sidebar {
    margin: 0;
    width: 300px;
    box-sizing: content-box;
    background-color: transparent;
    border-radius: 4px;
    padding: 0;
    box-sizing: border-box;
}

.sidebar .tabs {
    list-style: none;
    padding: 20px 20px 0 20px;
    margin-bottom: 0;
    background: #ecdfc9;
}

.sidebar .tab {
    text-align: center;
    font-size: 1.125rem;
    color: #000000;
    background: #dedede;
    border-radius: 10px 10px 0 0;
    border: 1px solid #85b100;
    border-bottom: none;
    position: relative;
    cursor: pointer;
    display: inline-block;
    margin-right: 5px;
    padding: 10px 0;
    width: 123px;
}

.sidebar .tab:last-of-type {
    margin-right: 0;
}

.sidebar .tab.active {
    background: #85b100;
    color: #ffffff;
    font-weight: bold;
    border: 1px solid transparent;
    border-bottom: none;
}

/*.sidebar .tab.active:after {*/
/*    content: '';*/
/*    display: block;*/
/*    height: 2px;*/
/*    width: 100%;*/
/*    position: absolute;*/
/*    bottom: -1px;*/
/*    right: 0;*/
/*    left: 0;*/
/*    background-color: #2B93FC;*/
/*}*/

.sidebar .tab-content-container {
    overflow: hidden;
    background: transparent;
    border: none;
    border-top: 1px solid #85b100;
    padding: 10px 20px;
    margin-top: 0;
}

.tab-content {
    display: none;
    margin-bottom: 40px;
}

.tab-content.active {
    display: block;
}

.tab-content section {
    margin-bottom: -18px;
    position: relative;
}

.tab-content section .title {
    position: relative;
    font-size: 1rem;
    font-weight: bold;
    margin: 20px 0 0 0;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #85b100;
    color: #fff;
}
.tab-content section .title:after{
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15px;
    margin: auto;
    width: 16px;
    height: 16px;
    background: url('../img/arrow-down.svg') no-repeat center center;
    background-size: 100% 100%;
    transition: all .5s;
}
.tab-content section .title.show {
    border-radius: 8px 8px 0 0;
}
.tab-content section .title.show:after{
    transform: rotate(180deg);
}

.icon-block-container {
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 0 !important;
    text-align: center;
}

.icon-block-container a {
    outline: none;
}

.icon-block-container a:hover,
.icon-block-container a:focus {
    text-decoration: none;
}

.icon-block {
    width: 117px;
    height: 110px;
    margin-left: 10px;
    margin-bottom: 10px;
    padding: 10px 10px;
    border: 1px solid #CCC;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    line-height: 1rem;
    vertical-align: top;
    background: #fff;
}

.icon-block:nth-child(3n+1) {
    margin-left: 10px;
}

.icon-block img {
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto;
}

.icon-block span {
    font-size: 0.85rem;
    color: #000000;
    line-height: 0em;
}

.tab-content .title + ul {
    padding-left: 1em;
    display: none;
}

.tab-content .title.show + ul {
    display: block;
    padding: 10px;
    border: 1px solid #85b100;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #fff;
}
.tab-content .title.show + ul.text-link-container{
    padding: 15px;
}

.tab-content .question-clickable {
    color: #688a00;
}

.tab-content .question-clickable:hover {
    color: #3e5100;
}

#tab-content_QA .mobile{
    display: none;
}
#tab-content_QA .web{
    display: block;
}

.question-clickable {
    color: #00859d;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
}
.question-clickable:hover {
    color: #004d5b;
}

.quickreplies-message-block {
    margin-left: 88px;
}

.quickreplies-message-block ul{
    margin-bottom: 0;
}

.quickreplies-message-block .question-clickable {
    color: #6f9300;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    margin: 5px;
    display: inline-block;
    width: auto;
    border-radius: 50px;
}

.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: #3891F9;
    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;
    /*border: 2px solid #ddd;*/
    /*border-radius: 50%;*/
}

.avatar-name {
    position: absolute;
    width: 100%;
    text-align: center;
    margin-top: 0.5em;
    line-height: 0.8rem;
    font-size: 0.75rem;
}

.message-datetime {
    margin-left: 106px;
    float: left;
    color: #999999;
    font-size: 0.85rem;
    margin-top: 8px;
    line-height: 14px;
    clear: both;
}

.by-user .message-datetime {
    margin-right: 20px;
    float: right;
}

.back-to-top {
    display: none;
    position: fixed;
    bottom: 8em;
    right: 30em;
    text-decoration: none;
    color: #000000;
    background-color: #ffffffcc !important;
    font-size: 0.75em;
    padding: 1.5em;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
    background: url(../img/arrow-up.svg) center center no-repeat;
    background-size: 16px 16px;
}
.back-to-top:hover {
    background-color: #ffffff !important;
    text-decoration: none;
}

.message-row .msg {
    border-radius: 12px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    color: #4C4C4C;
    font-size: 1rem;
    padding: 10px 20px;
    line-height: 1.5em;
    word-break: break-word;
    word-wrap: break-word;
    margin-left: 86px;
    margin-bottom: 0;
    float: none;
}

.message-row .msg img {
    display: block;
    max-width: 100%;
}

.message-row.by-user {
    float: right;
}

.message-row.by-user .msg {
    background-color: #40c0cb;
    color: #fff;
    float: right;
    white-space: pre-wrap;
    border-radius: 20px 20px 0 20px;
}

.col-lg-12 {
    padding-left: 0px;
    padding-right: 0px;
}

button.btn_open {
    background: url('../img/menu-open.png') 0 0 no-repeat;
}

button.btn_close {
    background: url('../img/menu-close.png') 0 0 no-repeat;
}

button.btn_open, button.btn_close {
    width: 36px;
    height: 36px;
    position: absolute;
    top: 50%;
    right: 80px;
    margin-top: -18px;
    border: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    background-position: 50% 50%;
    background-size: 110px 110px;
}

button.btn_help {
    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/help.svg') 0 0 no-repeat;
    background-position: 50% 50%;
    background-size: 24px 24px;
}

button.speaker {
    background: url('../img/speaker.svg');
    background-size: 100% 16px !important;
    width: 16px !important;
    height: 16px !important;
    height: 16px;
    border: none;
    outline: none;
    vertical-align: middle;
    margin: 5px;
}

button.speaker:focus {
    border: 2px solid #000;
}

.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.9375rem;
    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% - 80px);
    height: 50px;
    left: 40px;
}

.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.125rem;
    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.9375rem;
    line-height: 20px;
    color: #FFFFFF;
    text-align: center;
    top: 50%;
    margin-top: 24px;
    right: 30px;
    padding: 10px 15px;
    z-index: 1;
}

button.btn_help:hover+.itri-tooltip {
    display: inline-block;
}

button.btn_open:hover+.itri-tooltip-open, button.btn_close:hover+.itri-tooltip-close {
    display: inline-block;
    right: 70px;
}

.itri-tooltip-open, .itri-tooltip-close {
    position: absolute;
    display: none;
    width: 86px;
    height: auto;
    background: #4C4C4C;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.20);
    border-radius: 4px;
    font-size: 0.9375rem;
    line-height: 20px;
    color: #FFFFFF;
    text-align: center;
    top: 50%;
    margin-top: 24px;
    right: 30px;
    padding: 10px 15px;
    z-index: 1;
}

.itri-tooltip:after, .itri-tooltip-open:after, .itri-tooltip-close: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: hidden;
    clear: both;
}

.message-row a {
    color: #00859d;
    font-size: 1rem;
    cursor: pointer;
}

.message-row a:hover {
    color: #004d5b;
    text-decoration: none;
}

.message-row.by-robot {
    min-height: 46px;
    overflow: hidden;
}
.message-row.by-robot:first-child {
    overflow: visible;
}

.message-row.by-robot .msg {
    border-radius: 0 20px 20px 20px;
    margin-right: 80px;
    width: fit-content;
}

.message-row.by-robot .msg br + p {
    margin-top: -1.5rem;
}

.message-row.by-robot .msg p + br:last-child {
    display: none;
}

.message-row.by-robot .msg p:last-child {
    margin-bottom: 0;
}

.message-row.by-robot.swiper {
    margin-right: -40px;
}

.message-row.by-robot + .message-row.by-robot{
    margin-top: 10px;
}

.message-row.by-robot + .message-row.by-user{
    margin-top: 20px;
    margin-bottom: 30px;
}

.message-row.by-user + .message-row.by-robot{
    margin-top: 20px;
}

.swiper .buttons-message-container {
    /* padding-right: 84px; */
    padding-right: 316px;
}

.buttons-message-container {
    max-width: 282px;
    margin-left: 86px;
    float: left;
    display: -ms-flexbox;
    display: flex;
    overflow: visible;
}

.buttons-message-block {
    width: fit-content;
    min-width: 232px;
    padding: 10px 20px;
    border-radius: 12px;
    background-color: #FFFFFF;
    color: #4C4C4C;
    font-size: 1rem;
    display: inline-block;
    margin-right: 14px;
    margin-bottom: 1px;
}

.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: #666666;
    font-size: 0.875rem;
    margin: 0 -20px;
    padding: 10px 20px;
    border: none;
    white-space: normal;
}

/*todo delete it?*/
/*.buttons-message-block .description:last-child {*/
/*    background-color: #F0F0F0;*/
/*    color: #7F7F7F;*/
/*    margin: -10px -20px 0 -20px;*/
/*    padding: 6px 12px;*/
/*    border: 1px solid #F0F0F0;*/
/*    border-radius: 12px 12px 12px 12px;*/
/*    word-wrap: break-word;*/
/*}*/

.buttons-message-block .description h4 {
    color: #000000;
    font-size: 1rem;
    line-height: 22px;
    margin: 0;
}

.msg-content .description h4 {
    color: #000000;
    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;
    min-height: 40px;
    text-align: center;
    line-height: 1.5em;
    padding: 7px;
}

.btn_survey {
    width: 100px;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    background-color: #40c0cb;
    border: 2px solid #fff;
    color: #fff;
    font-weight: normal;
    border-radius: 5px;
    padding: 5px 10px;
    line-height: normal;
    margin: 0 10px;
}


.swiper-scroll-container {
    overflow-x: hidden;
    -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: #00a8c6;
    position: absolute;
    top: calc(50% - 18px);
    cursor: pointer;
    z-index: 10;
}

.swiper-control-button.prev {
    margin-top: 20px;
    left: 34px;
    background-image: url('../img/arrow.svg');
    background-repeat: no-repeat;
    background-position: 44% 50%;
    background-size: 10px 16px;
}

.swiper-control-button.next {
    margin-top: 20px;
    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: hidden;
    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;
}

@-moz-document url-prefix() {
    .swiper-scroll-container {
        scroll-snap-points-x: repeat(246px);
    }
}

.swiper .buttons-message-block {
    scroll-snap-align: start;
    background-color: transparent;
}

.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.9375rem;
    color: #7F7F7F;
    border-bottom: 1px solid #CCC;
    position: relative;
}

.survey-header h1 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #00a8c6;
    margin: 0;
}

.survey-header .close-btn {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: url('../img/close-circle.svg') 0 0 no-repeat;
    background-size: 36px 36px;
    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: 0.9375rem;
    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: 100%;
    color: #4C4C4C;
    font-size: 0.9375rem;
    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.9375rem;
    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 #00a8c6;
    border: 3px solid white;
    background-color: #00a8c6;
}

.survey .submit-button-wrapper {
    width: 100%;
    text-align: center;
}

.survey input[type="submit"] {
    border: none;
    border-radius: 4px;
    background-color: #00a8c6;
    color: white;
    width: 194px;
    height: 32px;
    display: block;
    margin: 50px auto 20px auto;
    font-weight: normal;
    letter-spacing: 3px;
}

.survey input[type="button"]:focus {
    border: 2px solid #000;
}

.survey input[type="button"] {
    border: none;
    border-radius: 4px;
    background-color: #00a8c6;
    color: white;
    width: 194px;
    height: 32px;
    display: block;
    margin: 50px auto 20px auto;
    font-weight: normal;
    letter-spacing: 3px;
}

.submit-area{
    height:48px;
}

.helpful_font {
    display: inline-block;
    margin-right: 5px;
    cursor: pointer;
}

.helpful_font span {
    padding-left: 30px;
    color: #2296F3;
}

.icon-feedback {
    width: 20px;
    height: 20px;
    position: absolute;
}

#tab-content_QA .mobile .title.show + .icon-block-container {
    display: flex;
    justify-content: space-evenly;
}

#tab-content_QA .mobile .title.show + .icon-block-container .icon-block span {
    display: flex;
    justify-content: space-around;
    white-space: nowrap;
    /* margin-left: -100%; */
    /* margin-right: -100%; */
    padding: 10px;
}

/*==============================================
    MEDIA QUERIES     
    =============================================*/

@media (min-width: 801px){
    .voice-input-panel {
        position: fixed;
        opacity: 0;
        visibility: hidden;
    }
}

@media (max-width: 800px) {
    .top {
        height: auto;
        min-height: auto;
        line-height: 40px;
        padding: 0;
    }
    .top .right{
        margin-right: 10px;
    }
    .top-logo img {
        max-height: 25px;
    }
    .top .btn_help {
        display: none;
    }
    .top .btn_open {
        display: none;
    }
    .top .btn_close {
        display: none;
    }
    .top .top-logo {
        text-align: left;
        padding: 0 0 0 10px;
    }
    .top-logo span {
        margin-left: 5px;
    }
    .top button.btn_exit{
        width: 24px;
        height: 36px;
    }

    .top button.btn_notice {
        width: 24px;
        height: 36px;
    }

    #header-menu .right .menu button{
        width: 75px;
    }

    .ui-widget-content {
        width: calc(100% - 34px) !important;
        margin-left: 16px;
        bottom: 45px;
        top: auto !important;
        max-height: 11.5rem;
        z-index: 99;
    }

    #main-header .top-logo span{
        font-size:1.0rem;
    }
    #main-header .top button.btn_notice{
        width: 25px;
    }
    #main-header .top button.btn_exit{
        width: 25px;
    }

    .menu {
        position: relative;
        display: block;
        width: 100%;
        padding: 10px 10px 0 10px;
        background: #ecdfc9;
        border: none;
        border-bottom: 2px solid #85b100;
        right: 0;
        margin: auto;
        z-index: 97;
    }
    .menu button {
        width: 84px;
        padding: 5px;
        vertical-align: middle;
        border: none;
        box-shadow: none;
        outline: none;
        cursor: pointer;
        background-color: #40c0cb;
        color: #fff;
        font-size: 0.85rem;
        font-weight: normal;
        border-radius: 5px;
        line-height: normal;
        margin: 0;
    }
    .menu button.btn_survey{
        width: 56px;
    }
    .menu button.btn_font-size{
        display: inline-block;
        width: 65px;
    }

    .menu .left {
        display: inline-block;
        margin-top: 5px;
    }
    .menu .left button {
        color: #4c4c4c;
        background: transparent;
        font-weight: normal;
        border-radius: 5px 5px 0 0;
        border: none;
        border-bottom: none;
        margin-bottom: 0;
    }
    .menu .right{
        float: right;
    }
    .top-banner.show {
        top: 0;
        padding: 20px;
    }
    .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: 48px;
        height: 48px;
    }
    .message-row.by-robot {
        /* margin-right: 62px; */
        min-height: 72px;
    }
    .message-row .msg {
        margin-left: 62px;
        padding: 5px 10px;
        color: #000000;
    }
    .message-row.by-robot .msg {
        margin-right: 5%;
    }
    .message-row.by-user .msg {
        margin-right: 10px;
    }
    .message-row.by-robot .msg-text {
        color: #000000 !important;
    }
    .message-datetime {
        margin-left: 72px;
        font-size: 0.85rem;
    }
    .buttons-message-container {
        margin-left: 62px;
    }
    .chat-input-container {
        width: 100%;
        padding: 14px 16px;
        border-radius: 12px 12px 0 0;
        display: flex;
        flex-shrink: 0;
        position: relative;
    }
    .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: none;
    }
    .chat-input-form {
        grid-template-columns: 1fr 60px;
    }
    .sidebar-wrapper {
        width: 100vw;
        height: 0;
        flex-shrink: 0;
        /*transition: height 0.3s;*/
        position: relative;
    }
    .mobile-menu-opened .sidebar-wrapper {
        height: 100%;
        background-color: #f9f2e7;
    }
    .sidebar {
        margin: 0;
        margin-left: 0;
        width: 100%;
        background-color: transparent;
        border-radius: 4px;
        padding: 0;
        box-sizing: border-box;
    }
    .sidebar .tabs {
        padding: 0 20px;
        display: none;
        margin: 0;
    }
    .sidebar .tab {
        height: auto;
        line-height: normal;
        display: inline-block;
        margin-right: 10px;
        padding: 5px 8px;
        margin: 5px 2px 0 2px;
        font-size: 0.9375rem;
    }
    .tab-content {
        margin-bottom: 0;
    }

    .back-to-top {
        bottom: 6em;
        right: 3em;
    }

    #tab-content_QA .mobile{
        display: block;
    }
    #tab-content_QA .web{
        display: none;
    }
    #tab-content_QA .icon-block{
        width: 105px;
        height: 105px;
        border: none;
        padding: 15px 0;
    }
    #tab-content_QA .icon-block img{
        margin-bottom: 10px;
    }
    .slide-container {
        overflow-x: hidden;
        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 .tab-content-container {
        overflow: hidden;
        background: transparent;
        padding: 10px 20px;
        border-top: none;
    }
    .sidebar section {
        display: inline-block;
        width: 100%;
        vertical-align: top;
        scroll-snap-align: start;
        padding: 0;
        margin-bottom: 20px;
    }
    .icon-block-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-flow: row;
        grid-gap: 14px;
    }
    .icon-block img {
        width: 50px;
        height: 50px;
        display: block;
        margin: 0 auto;
    }
    .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%;
        text-align: center;
    }
    .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;
    }
    .message-row.by-robot.swiper {
        margin-right: -16px;
    }
    .swiper .buttons-message-container {
        padding-right: 16px;
    }
    .swiper-scroll-container {
        overflow-x: auto;
    }
    .ChatMessageFeedback {
        margin-left: 72px;
        font-size: 0.85rem;
        margin-top: 5px;
    }
    .quickreplies-message-block {
        margin-left: 60px;
    }
    .btn_survey{
        width: auto;
        margin: 2px;
        padding: 2px 5px;
        font-size: 0.85rem;
    }
}
