@import url(font-montserrat.css);
@import url(font-notosanstc.css);

* {
    font-family: 'Montserrat', 'Roboto', 'Noto Sans TC', sans-serif;
    font-weight: 400;
}

html,
body {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    touch-action: manipulation;
    font-size: 16px;
}

body {
    background-color: #F4F5F6;
    background-color: white;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

a{
    color: #04327a;
}
a:hover, a:active, a:visited, a:focus{
    color: #041c43;
    text-decoration: none;
}

button:focus, input:focus, a:focus{
    box-shadow:  none !important;
}

button[type="submit"]:active, button[type="submit"].active,
input[type="submit"]:active, input[type="submit"].active{
    border-color: #B7B7B7 !important;
    background-color: #B7B7B7 !important;
    color: #fff !important;
    transition: none;
}

#lhc_livechat {
    height: 100%;
    overflow: hidden;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
}

.loading {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background: url(../img/loading.png) center center no-repeat;
    width: 100%;
    height: 100%;
    max-width: 370px;
    max-height: 320px;
    z-index: 99;
}

.main-wrapper {
    position: relative;
    width: 100%;
    flex-grow: 1;
    overflow: hidden;
    display: -ms-flexbox;
    display: flex;
}

.chat-wrapper {
    flex-grow: 1;
    overflow: hidden;
    border-right: 1px solid #D9D9D9;
    position: relative;
    background-color: #F0F4F7;
    display: flex;
    flex-direction: column;
}

.chat-message-container {
    flex-grow: 1;
    width: 100%;
    padding: 0 22px 0 40px;
    overflow-y: auto;
    /* overflow-y: overlay; */
    -ms-overflow-y: auto;
}

.chat-messages {
    margin-top: 40px;
}

.chat-input-container {
    background-color: #fff;
    width: 100%;
    padding: 10px 40px 15px 40px;
    border-radius: 0;
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    position: relative;
}

.chat-input-buttons {
    /* display: flex;
    flex-shrink: 0;
    margin-right: 8px; */
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.chat-input-buttons button {
    border: 1px solid #04327a;
    background-color: #fff;
    color: #04327a;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    outline: none;
    margin: 5px 2.5px;
    padding: 0;
    font-weight: 500;
}

.chat-input-buttons button:hover {
    background-color: #04327a;
    color: #fff;
}

.chat-input-buttons button:first-child{
    margin-left: 0;
}
.chat-input-buttons button:last-child{
    margin-right: 0;
}

.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;
    background-color: rgb(4 50 122) !important;
} */

.chat-word-size-buttons{
    display: none;
    position: absolute;
    top: 17px;
    right: 180px;
    margin: auto;
    width: 94px;
    height: 26px;
    background: #fff;
    z-index: 0;
}
.chat-word-size-buttons.show{
    display: block;
}

.chat-word-size-btn {
    position: absolute;
    line-height: 1em;
    margin: 2px;
    cursor: pointer;
    background: #F0F4F7;
    font-size: 16px;
    font-weight: 500;
    color: #04327a;
    padding: 2px;
    border-radius: 5px;
}

.chat-word-size-btn.big-word {
    left: 2px;
}
.chat-word-size-btn.middle-word {
    left: 28px;
}
.chat-word-size-btn.small-word {
    left: 54px;
}
.word-size-focus{
    color: #fff !important;
    background-color: #04327a;
}

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: 0;
    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.svg') no-repeat;
    width: 24px;
    height: 24px;
    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: #ff6231;
}

.voice-input-panel-btn {
    background: url('../img/voice-input.svg') 50% 50% no-repeat;
}

.voice-input-panel-btn:hover,
.voice-input-opened .voice-input-panel-btn {
    background: url('../img/voice-input-active.svg') 50% 50% no-repeat;
    background-color: #04327a !important;
}

.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 {
    position: relative;
    flex-grow: 1;
}

.chat-input-form>input {
    vertical-align: middle;
}

.chat-input-form .txt_input {
    height: 40px;
    width: calc(100% - 134px);
    padding: 12px 90px 12px 16px;
    font-size: 1rem;
    border: 1px solid #BFBFBF;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
}

.chat-input-form .btn_sticker {
    position: absolute;
    background: url(../img/sticker.svg) 50% 50% no-repeat;
    background-size: 25px 25px;
    width: 35px;
    height: 40px;
    top: auto;
    bottom: 5px;
    right: 95px;
    cursor: pointer;
}
.chat-input-form .btn_sticker:hover {
    background: url(../img/sticker-active.svg) 50% 50% no-repeat;
    background-size: 25px 25px;
    width: 35px;
    height: 48px;
}

.chat-input-form .btn_upload {
    position: absolute;
    background: url(../img/upload.svg) 50% 50% no-repeat;
    background-size: 25px 25px;
    width: 35px;
    height: 40px;
    top: auto;
    bottom: 5px;
    right: 135px;
    cursor: pointer;
}
.chat-input-form .btn_upload:hover {
    background: url(../img/upload-active.svg) 50% 50% no-repeat;
    background-size: 25px 25px;
    width: 35px;
    height: 40px;
}

/* 檔案上傳START */
.upload-wrapper {
    width: 100vw;
    height: 100vh;
    overflow-y: scroll;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload {
    width: 300px;
    min-height: 200px;
    flex: 0 0 auto;
    margin: auto;
    background-color: white;
    padding: 30px 24px;
    box-shadow: 0 2px 8px 0 rgb(153 153 153);
}

.upload-header {
    font-size: 1rem;
    color: #041c43;
    position: relative;
}

.upload-header h4 {
    font-size: 1.45rem;
}

.upload-header .close-btn {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url(../img/close.svg) 0 0 no-repeat;
    background-size: 24px 24px;
    background-position: 50% 50%;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
}

.upload-content {
    margin-top: 15px;
}

.upload-msg {
    color: #ff6231;
    padding-bottom: 10px;
}

.upload-preview {
    max-width: 250px;
    max-height: 200px;
}

.upload-name {
    padding-bottom: 10px;
}

.upload-input {
    width: 100%;
    padding: 35px 0;
}

.upload-choose-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background: url(../img/file-btn.svg) 0 0 no-repeat;
    vertical-align: middle;
}

.upload-choose-txt {
    line-height: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.upload-ok-btn {
    float: right;
}

.upload-ok-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background: url(../img/upload-btn.svg) 0 0 no-repeat;
    vertical-align: middle;
}

.upload-ok-txt {
    line-height: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.fileinput-button {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.fileinput-button input {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    opacity: 0;
    -ms-filter: 'alpha(opacity=0)';
    font-size: 200px !important;
    direction: ltr;
    cursor: pointer;
}

.buttons-message-block ul.inline li.normal a {
    color: #04327a;
}

/* Fixes for IE < 8 */
@media screen\9 {
    .fileinput-button input {
        filter: alpha(opacity=0);
        font-size: 100%;
        height: 100%;
    }
}

.upload .btn-primary{
    background-color: #04327a;
    color: #fff;
    border-color: transparent;
    border-radius: 0;
    font-weight: 500;
    transition: all .5s;
    box-shadow: none;
}
.upload .btn-primary:not(:disabled):not(.disabled):hover,
.upload .btn-primary:not(:disabled):not(.disabled):active,
.upload .btn-primary:not(:disabled):not(.disabled):visited,
.upload .btn-primary:not(:disabled):not(.disabled):focus,
.upload .btn-primary:not(:disabled):not(.disabled):hover span,
.upload .btn-primary:not(:disabled):not(.disabled):active span,
.upload .btn-primary:not(:disabled):not(.disabled):visited span,
.upload .btn-primary:not(:disabled):not(.disabled):focus span{
    background-color: #041c43;
    box-shadow: none;
}

.upload .btn-primary.disabled, 
.upload .btn-primary:disabled {
    color: #fff;
    background-color: #BFBFBF;
    border-color: #BFBFBF;
    cursor: not-allowed;
}

.fileupload-buttonbar .btn,
.fileupload-buttonbar .toggle {
    margin-bottom: 5px;
}

.progress-animated .progress-bar,
.progress-animated .bar {
    background: url("../img/progressbar.gif") !important;
    filter: none;
}

.fileupload-process {
    float: right;
    display: none;
}

.fileupload-processing .fileupload-process,
.files .processing .preview {
    display: block;
    width: 32px;
    height: 32px;
    background: url("../img/loading.gif") center no-repeat;
    background-size: contain;
}

.files audio,
.files video {
    max-width: 300px;
}
/* 檔案上傳END */

.chat-input-form .btn_send {
    height: 40px;
    width: 86px;
    border-radius: 0;
    outline: none;
    background-color: #04327a;
    margin-left: -8px;
    border: none;
    color: white;
    font-weight: 500;
    letter-spacing: 3px;
    -webkit-appearance: none;
}
.chat-input-form .btn_send:hover {
    background-color: #041c43;
}

.chat-input-form .btn_send[disabled]{
    background-color: #BFBFBF;
    cursor: not-allowed;
}

.top {
    position: relative;
    height: 60px;
    min-height: 60px;
    line-height: 60px;
    padding-right: 20px;
    padding-left: 40px;
    background: #fff;
    color: #000;
    box-shadow: 0 4px 4px rgb(0 0 0 / 5%);
}

.top-logo img {
    max-height: 35px;
}

.top-logo span {
    margin-left: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color:#04327A;
    vertical-align: middle;
}

.top-banner {
    background-color: #68c89e;
    line-height: 1.5em;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    border-bottom: 1px solid #CCC;
    padding: 0 40px;
    height: 0;
    transition: height 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.top-banner.show {
    padding: 10px 40px;
    height: max-content;
    transition: height 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.top-banner a {
    color: #ffffff;
    cursor: pointer;
}
.top-banner a:hover {
    color: #ebf7fe;
}

.top-banner img {
    width: 18px;
    height: 18px;
    vertical-align: text-top;
}

.top-banner span{
    margin: 0 14px;
}

.top-banner .close-btn{
    display: none;
    float: right;
    padding: 0;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    min-width: 3rem;
    max-height: 1.5rem;
    cursor: pointer;
}
.top-banner .close-btn:hover,
.top-banner .close-btn:focus{
    background: #fff;
    color: #041c43;
    outline: none;
}

.top-banner.show .close-btn{
    display: block;
}

/*==============================================
    MENU STYLES    
    =============================================*/
.sidebar-control-wrapper {
    background: #f3f4f5;
    z-index: 98;
}
.sidebar-control-wrapper .menu_control {
    position: relative;
    width: 16px;
    height: 100%;
    background: transparent;
    border-left: 1px solid #04327a;
    border-right: none;
    z-index: 99;
}
.sidebar-control-wrapper .menu_control.close {
    border-right: 1px solid #04327a;
    border-left: none;
    opacity: 1;
}
.sidebar-control-wrapper .menu_control.close:not(:disabled):not(.disabled):focus, 
.sidebar-control-wrapper .menu_control.close:not(:disabled):not(.disabled):hover {
    opacity: 1;
}

.sidebar-control-wrapper .menu_control .btn_close{
    display: block;
    position: absolute;
    top: 45%;
    left: -1px;
    margin: auto;
    width: 16px;
    height: 70px;
    border-radius: 5px 0 0 5px;
    color: #fff;
    background: #04327a url(../img/menu-arrow.svg) no-repeat;
    background-position: 50% 45%;
    background-size: 10px 10px;
    transform: scaleX(-1);
    cursor: pointer;
}

.sidebar-control-wrapper .menu_control .btn_open {
    display: none;
    position: absolute;
    top: 45%;
    margin: auto;
    width: 16px;
    height: 70px;
    border-radius: 5px 0 0 5px;
    color: #fff;
    background: #04327a url(../img/menu-arrow.svg) no-repeat;
    background-position: 50% 45%;
    background-size: 10px 10px;
    transform: scaleX(1);
    cursor: pointer;
}

.sidebar-control-wrapper .mobile-menu-btn {
    width: 100%;
    background: #f3f4f5;
    color: #04327a;
    border: none;
    /* border-top: 1px solid #B7B7B7;
    border-bottom: 1px solid #B7B7B7; */
    outline: none;
}

.sidebar-control-wrapper .mobile-menu-btn .arrow {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../img/mobile-menu-arrow.svg) no-repeat;
    background-position: 50% 45%;
    background-size: 10px 10px;
    transform: scaleY(-1);
}

.mobile-menu-opened .sidebar-control-wrapper .mobile-menu-btn .arrow {
    transform: scaleY(1);
}

.sidebar-wrapper {
    position: relative;
    background-color: #f3f4f5;
    overflow-y: auto;
    overflow-y: overlay;
    -ms-overflow-y: auto;
    /* position: inherit; */
    margin: 0px;
    flex-shrink: 0;
}

.sidebar {
    margin: 20px;
    margin-left: 4px;
    width: 400px;
    box-sizing: content-box;
    background-color: white;
    border-radius: 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.sidebar .tabs {
    list-style: none;
    padding: 0;
    border-bottom: 1px solid #ccc;
}

.sidebar .tab {
    text-align: center;
    font-size: 1.125rem;
    color: #BFBFBF;
    height: 60px;
    line-height: 60px;
    position: relative;
    cursor: pointer;
    display: inline-block;
    margin-right: 20px;
    font-weight: 500;
}

.sidebar .tab:last-of-type {
    margin-right: 0;
}

.sidebar .tab.active {
    color: #04327a;
}

.sidebar .tab.active:after {
    content: '';
    display: block;
    height: 2px;
    width: 100%;
    position: absolute;
    bottom: -1px;
    right: 0;
    left: 0;
    background-color: #04327a;
}

.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: 500;
    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 {
    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: 0;
    text-align: center;
    cursor: pointer;
}

.icon-block:nth-child(3n+1) {
    margin-left: 0;
}

.icon-block img {
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto;
}

.icon-block span {
    font-size: 0.85rem;
    color: #7F7F7F;
    font-weight: 500;
}

.text-link-container {
    padding-left: 26px;
}

.reenter,
.question-clickable {
    color: #2296F3;
    font-size: 1rem;
    cursor: pointer;
}
.reenter:hover,
.question-clickable:hover {
    color: #2296F3;
}

.slide-indicator-container {
    position: absolute;
    display: none;
    height: 20px;
    width: 100%;
    text-align: center;
    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 {
    pointer-events: none;
    height: 60%;
}

.quick-menu {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.quick-menu ul {
    list-style: none;
    padding-inline-start: 0;
    margin-bottom: 10px;
}

.quick-menu-btn {
    display: inline-block;
    border: 1px solid #04327a;
    margin: 0 2px 0 0;
    padding: 2px 5px;
    color: #04327a;
    text-align: center;
    vertical-align: text-top;
}

.quick-menu-btn:hover{
    cursor: pointer;
    color: #fff;
    background-color: #04327a;
}

.gate{
    margin-bottom: 0px;
}

.exit-btn{
    display: inline-block;
    border: 1px solid #04327a;
    margin: 3px;
    padding: 5px 10px;
    background: #fff;
    color: #04327a;
    text-align: center;
    min-width: 86px;
    height: 36px;
}
.exit-btn:hover{
    color: #fff;
    background-color: #04327a;
}
.exit-btn:focus{
    outline: none;
}

.restart-btn{
    display: inline-block;
    border: 1px solid #04327a;
    margin: 3px;
    padding: 5px 10px;
    color: #fff;
    background-color: #04327a;
    text-align: center;
    min-width: 86px;
    height: 36px;
}
.restart-btn:hover{
    background-color: #041c43;
}
.restart-btn:focus{
    outline: none;
}

/*==============================================
    DASHBOARD STYLES    
    =============================================*/

.div-square {
    padding: 5px;
    border: 3px double #e1e1e1;
    border-radius: 0;
    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;
}

.avatar-name {
    position: absolute;
    width: 100%;
    text-align: center;
    margin-top: 0.2em;
    font-size: 0.75rem;
}

.message-datetime {
    margin-left: 106px;
    float: left;
    color: #BFBFBF;
    font-size: 0.9375rem;
    margin-top: 8px;
    line-height: 14px;
    clear: both;
}

.by-user .message-datetime {
    margin-right: 20px;
    float: right;
}

/* 對話按讚 START */
.ChatMessageFeedback {
    font-size: 1rem;
    float: left;
    margin-left: 86px;
    margin-top: 10px;
    clear: both;
}

.helpful_font {
    display: inline-block;
    background-color: #04327a;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 4px 12px;
    margin-right: 8px;
    cursor: pointer;
}
.helpful_font:hover{
    background-color: #041c43;
}

.helpful_font + .helpful_font{
    margin-top: 4px;
    margin-right: 0;
}

.helpful_font span {
    display: inline-block;
    padding-left: 0.15rem;
    font-size: 1rem;
}

.icon-feedback {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.icon-feedback.good {
    background: url(../img/feedback-good.svg) center center no-repeat;
}

.icon-feedback.bad {
    background: url(../img/feedback-bad.svg) center center no-repeat;
}

.msg-content {
    margin-left: 20px;
}
/* 對話按讚 END */

.message-row .msg {
    border-radius: 12px;
    background-color: #fff;
    color: #000;
    font-size: 1rem;
    padding: 10px 20px;
    line-height: 1.5em;
    word-break: break-word;
    word-wrap: break-word;
    margin-left: 86px;
    float: left;
}

.message-row .msg + .msg,
.swiper-scroll-container + .msg{
    margin-top: 10px;
    clear: both;
}

.message-row .msg img {
    vertical-align: text-top;
    margin-right: 0.5rem;
}

.message-row.by-user .msg {
    background-color: #04327a;
    color: #fff;
    float: right;
}

.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 {
    display: none;
    width: 36px;
    height: 36px;
    position: absolute;
    top: 50%;
    right: 120px;
    margin-top: -18px;
    border: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    background-position: 50% 50%;
    background-size: 110px 110px;
}

button.btn_help,
button.btn_survey {
    width: 36px;
    height: 36px;
    position: absolute;
    top: 50%;
    right: 80px;
    margin-top: -18px;
    border: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    background: url(../img/help.svg) 0 0 no-repeat;
    background-position: 50% 50%;
    background-size: 26px 26px;
}

button.btn_survey {
    right: 40px;
    background-image: url(../img/star.svg);
}

button.websocket_close {
    width: 36px;
    height: 36px;
    position: absolute;
    top: 50%;
    right: 240px;
    margin-top: -18px;
    border: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    background: url(../img/help.svg) 0 0 no-repeat;
    background-position: 50% 50%;
    background-size: 26px 26px;
}

button.websocket_open {
    width: 36px;
    height: 36px;
    position: absolute;
    top: 50%;
    right: 200px;
    margin-top: -18px;
    border: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    background: url(../img/help.svg) 0 0 no-repeat;
    background-position: 50% 50%;
    background-size: 26px 26px;
}

button.btn_speaker {
    background: url(../img/speaker.svg) 0 0 no-repeat;
}

button.btn_speaker-mute {
    background: url(../img/speaker-mute.svg) 0 0 no-repeat;
}

button.btn_speaker, button.btn_speaker-mute {
    width: 36px;
    height: 36px;
    position: absolute;
    top: 50%;
    right: 120px;
    margin-top: -18px;
    border: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    background-position: 50% 50%;
    background-size: 26px 26px;
}

button.btn_font-size {
    width: 36px;
    height: 36px;
    position: absolute;
    top: 50%;
    right: 160px;
    margin-top: -18px;
    border: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    background: url(../img/font-size.svg) 0 0 no-repeat;
    background-position: 50% 50%;
    background-size: 26px 26px;
    z-index: 1;
}

.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-width: 6px;
}

.inputbox-tip {
    bottom: 70px;
    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% - 130px);
    height: 40px;
    left: 88px;
    bottom: 20px;
}

.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,
.itri-tooltip-survey {
    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.85rem;
    line-height: 20px;
    color: #FFFFFF;
    text-align: center;
    top: 50%;
    margin-top: 24px;
    right: 70px;
    padding: 10px 15px;
    z-index: 1;
}

.itri-tooltip-survey {
    right: 30px;
}

button.btn_help:hover+.itri-tooltip,
button.btn_survey:hover+.itri-tooltip-survey {
    display: inline-block;
}

button.btn_open:hover+.itri-tooltip-open,
button.btn_close:hover+.itri-tooltip-close {
    display: inline-block;
}

.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.85rem;
    line-height: 20px;
    color: #FFFFFF;
    text-align: center;
    top: 50%;
    margin-top: 24px;
    right: 96px;
    padding: 10px 15px;
    z-index: 1;
}

button.btn_speaker:hover+.itri-tooltip-speaker,
button.btn_speaker-mute:hover+.itri-tooltip-speaker-mute {
    display: inline-block;
}

.itri-tooltip-speaker,
.itri-tooltip-speaker-mute {
    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.85rem;
    line-height: 20px;
    color: #FFFFFF;
    text-align: center;
    top: 50%;
    margin-top: 24px;
    right: 98px;
    padding: 10px 15px;
    z-index: 1;
}

.itri-tooltip:after, .itri-tooltip-survey:after,
.itri-tooltip-open:after, .itri-tooltip-close:after,
.itri-tooltip-speaker:after, .itri-tooltip-speaker-mute: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;
}

.itri-tooltip-open:after, .itri-tooltip-close:after {
    right: 36px;
}

.itri-tooltip-speaker:after, .itri-tooltip-speaker-mute:after {
    right: 36px;
}

.message-row {
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
    clear: both;
}

.message-row .buttons-message-block a {
    color: #04327a;
    font-size: 1rem;
    cursor: pointer;
}

.message-row .buttons-message-block a:not(.disabled):hover {
    color: #fff;
    text-decoration: none;
}

.message-row .buttons-message-block a.disabled {
    cursor: default;
}

.message-row.by-robot {
    min-height: 92px;
    overflow-x: auto;
}

.message-row.by-robot .msg {
    margin-right: 80px;
    box-shadow: 5px 5px 5px rgb(0 18 40 / 8%);
}
.message-row.by-robot .msg.medium {
    width: 328px;
}

.message-row.by-user .msg {
    box-shadow: -5px 5px 5px rgb(0 18 40 / 8%);
}
.message-row.by-robot .msg.sticker,
.message-row.by-user .msg.sticker {
    background-color: transparent;
    box-shadow: none;
    max-width: none;
    min-height: 0;
    width: auto;
}

.message-row.by-robot.swiper {
    margin-right: -22px;
}

.swiper .buttons-message-container {
    padding-right: 316px;
}

.buttons-message-container {
    margin-left: 86px;
    float: left;
    display: -ms-flexbox;
    display: flex;
    overflow: visible;
}

.buttons-message-block {
    width: 232px;
    min-width: 232px;
    padding: 10px 20px;
    border-radius: 12px;
    background-color: #fff;
    color: #04327a;
    font-size: 1rem;
    display: inline-block;
    margin-right: 14px;
    margin-bottom: 10px;
}

.buttons-message-block:last-of-type {
    margin-right: 0;
}

.buttons-message-block.image-map{
	width: auto;
	max-width: 300px;
	padding: 0;
}

.msg + .message-row .image-map {
    margin-top: 10px;
}

.buttons-message-block .img-wrapper {
    background-color: #fff;
    margin: -10px -20px;
    margin-bottom: 0;
    height: 128px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    text-align: center;
    box-shadow: 5px 5px 5px rgb(0 18 40 / 8%);
}

.buttons-message-block .img-wrapper img {
    width: auto;
    height: 100%;
    padding: 10px;
}

.buttons-message-block .description {
    background-color: #fff;
    color: #000;
    font-weight: normal;font-size: 0.875rem;
    margin: 0 -20px;
    padding: 5px 0 10px 0;
    white-space: normal;
    text-align: center;
    box-shadow: 5px 5px 5px rgb(0 18 40 / 8%);
}

.buttons-message-block .description h4 {
    color: #000;
    font-size: 1.25rem;
    line-height: 1.5em;
    margin: 0;
    font-weight: 500;
}

.buttons-message-block ul {
    list-style: none;
    padding: 0;
    background-color: #fff;
    margin: 0 -20px -10px -20px;
    border: 1px solid #ccc;
    border-top: transparent;
    border-left: none;
    border-right: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: 5px 5px 5px rgb(0 18 40 / 8%);
}

.buttons-message-block ul li {
    border-top: 1px solid #ccc;
    min-height: 40px;
    text-align: center;
    line-height: 1.5em;
}

.buttons-message-block ul li:not(.disabled):hover {
    background-color: #04327a;
    color: #fff;
}

.buttons-message-block ul li a {
    display: block;
    padding: 7px;
}

.buttons-message-block ul.inline {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
}

.buttons-message-block ul.inline li {
    flex: auto;
    color: #aaa;
}
.buttons-message-block ul.inline li a {
    color: #aaa;
}

.buttons-message-block ul.inline li.highlight a {
    color: #ff6231;
}
.buttons-message-block ul.inline li.highlight:hover a {
    color: #fff;
}

.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: #04327a;
    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: 22px;
    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;
    -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;
    flex: 0 0 auto;
    margin: auto;
    border-radius: 0;
    background-color: white;
    box-shadow: 0 2px 8px 0 rgb(153, 153, 153);
}

.survey-header {
    font-size: 1rem;
    color: #7F7F7F;
    position: relative;
}

.survey-title {
    background-color: #04327a;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

.survey-header h4 {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
}

.survey-header .close-btn {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('../img/close_white.svg') 0 0 no-repeat;
    background-size: 24px 24px;
    background-position: 50% 50%;
    position: absolute;
    top: 0.85rem;
    right: 1.5rem;
    cursor: pointer;
}

.survey-header img {
    width: 75px;
    height: 75px;
    margin: 0 auto;
    display: block;
}

.survey-header img.survey-done {
    width: 170px;
    height: auto;
    padding: 1rem 0 2rem 0;
}

.survey-header p {
    margin: 0;
    padding: 1rem;
}

.survey-header p.survey-done {
    text-align: center;
}

.survey-content {
    padding: 1rem;
}

.surveys-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.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-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.survey-question {
    font-size: 1rem;
    line-height: 1.6em;
    margin: 0;
    overflow-wrap: anywhere;
    color: #7F7F7F;
}

.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 #04327a;
    border: 3px solid white;
    background-color: #04327a;
}

.survey .submit-button-wrapper {
    width: 100%;
    text-align: center;
}

.survey-text-area {
    border-radius: 12px;
    border: 1.5px solid #7F7F7F;
    color: #7F7F7F;
    resize: none;
    width: 100%;
    padding: 0.5rem;
}

/* Sticker */
.sticker-wrapper {
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.sticker {
    width: 100%;
    max-width: 720px;
    min-height: 300px;
    flex: 0 0 auto;
    margin: auto;
    background-color: white;
    padding: 30px 24px;
    box-shadow: 0 2px 8px 0 rgb(153, 153, 153);
}

.sticker-header {
    font-size: 14px;
    color: #7F7F7F;
    position: relative;
}

.sticker-header .close-btn {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('../img/close.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;
}

/* Modal */

.modal{
    overflow: auto;
}

.modal-dialog{
    pointer-events: auto;
}

.modal-content {
    border-radius: 0;
}

.modal-container{
    min-width: 350px;
    background: #fff;
    box-shadow: 1px 5px 10px rgba(0, 0, 0, .5);
    margin: 0 auto;
}

.modal-header{
    background: #fff;
    color: #04327a;
    border-bottom: none;
}

.modal-header button.close{
    opacity: .5;
}

.modal-title{
    width: 100%;
    color: #041c43;
    font-size: 1.45rem;
    font-weight: 500;
    text-align: left;
}

.modal-title.column-2 {
    width: 90%;
}

.modal-header .close {
    position: absolute;
    right: 1.5rem;
    color: #000 !important;
    opacity: 1 !important;
    outline: none;
}

.modal-body p{
    margin: 0 0 0.5rem 0;
    line-height: 1.5em;
}

.subtitle{
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 15px;
}

.modal-body {
    padding: 0.5rem 1.5rem;
}

.modal-body label{
    font-weight: 500;
    color: #041c43;
}
.form-group.err label{
    color: #FF623E;
}

.modal-body input, .modal-body textarea, .modal-body select,
.message-row .msg input, .message-row .msg textarea, .message-row .msg select{
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 0;
    border: 1px solid #ccc;
}
.modal-body input:last-of-type, .modal-body textarea:last-of-type, .modal-body select:last-of-type,
.message-row .msg input:last-of-type, .message-row .msg textarea:last-of-type, .message-row .msg select:last-of-type{
    margin-bottom: 0px;
}
.form-group.err input, .form-group.err select{
    border: 1px solid #FF623E;
}

.modal-body input.inline, .modal-body textarea.inline, .modal-body select.inline{
    display: inline-block;
    width: auto;
}

.modal-body input:not([type="radio"]):focus, .modal-body textarea:focus, .modal-body select:focus {
    background-color: #F0F4F7;
    border-color: transparent;
    outline: 2px solid #04327a;
}

.modal-body input[type="radio"] + label{
    margin-left: 5px;
    cursor: pointer;
    font-weight: 400;
}

::placeholder { /* CSS 3 標準 */
    color: #b7b7b7 !important;
}
::-webkit-input-placeholder { /* Chrome, Safari */
    color: #b7b7b7 !important;
}
:-ms-input-placeholder { /* IE 10+ */
    color: #b7b7b7 !important;
}
::-moz-placeholder { /* Firefox 19+ */
    color: #b7b7b7 !important;
    opacity: 1;
}

.column-2{
    display: flex;
    justify-content: space-between;
    position: relative;
}

.modal-body .captcha-block{
    display: flex;
    flex-direction: column;
}

.modal-body .captcha{
    margin: 8px 0;
    vertical-align: middle;
}

.modal-body button{
    width: auto;
    min-width: 100px;
    background-color: #04327a;
    border-color: transparent;
    color: #fff;
    padding: 5px 10px;
    border-radius: 0;
}
.modal-body button:hover{
    color: #fff;
}

.modal-footer{
    display: block;
    text-align: center;
    border-top: none;
    padding: 1rem 1.5rem;
}

.modal-footer>*{
    margin: auto;
}

.modal-footer button{
    background-color: #04327a;
    border-color: transparent;
    color: #fff;
    font-weight: 500;
    padding: 10px;
    border-radius: 0;
    transition: all .5s;
}
.modal-footer button:hover,
.modal-footer button:active,
.modal-footer button:visited,
.modal-footer button:focus{
    background-color: #041c43;
}

.modal-footer button a,
.modal-footer button a:hover,
.modal-footer button a:active,
.modal-footer button a:visited,
.modal-footer button a:focus,
.message-row .msg button a,
.message-row .msg button a:hover,
.message-row .msg button a:active,
.message-row .msg button a:visited,
.message-row .msg button a:focus{
    color: #fff;
}

button.btn-primary{
    background-color: #04327a;
    color: #fff;
    border-color: transparent;
    border-radius: 0;
    font-weight: 500;
    transition: all .5s;
}
button.btn-primary:not(:disabled):not(.disabled):hover,
button.btn-primary:not(:disabled):not(.disabled):active,
button.btn-primary:not(:disabled):not(.disabled):visited,
button.btn-primary:not(:disabled):not(.disabled):focus{
    background-color: #041c43;
    box-shadow: none;
}

button.btn-secondary{
    background-color: transparent;
    color: #04327a;
    border: 1px solid #04327a;
    border-radius: 0;
    font-weight: 500;
    transition: all .5s;
}

button.btn-secondary:not(:disabled):not(.disabled):hover,
button.btn-secondary:not(:disabled):not(.disabled):active,
button.btn-secondary:not(:disabled):not(.disabled):visited,
button.btn-secondary:not(:disabled):not(.disabled):focus{
    background-color: #04327a;
    color: #fff;
}

button.btn-tertiary{
    background-color: #fff;
    color: #04327a;
    border: 1px solid #fff;
    border-radius: 0;
    font-weight: 500;
    transition: all .5s;
}

button.btn-tertiary:not(:disabled):not(.disabled):hover,
button.btn-tertiary:not(:disabled):not(.disabled):active,
button.btn-tertiary:not(:disabled):not(.disabled):visited,
button.btn-tertiary:not(:disabled):not(.disabled):focus{
    background-color: #04327a;
    color: #fff;
}

button + button{
    margin: 8px 4px;
}

.modal-footer .btn-inline-group{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
}

.modal-footer .btn-inline-group button{
    width: calc(50% - 10px);
    
}
.modal-footer .btn-inline-group button:first-child{
    margin-left: 0;
}
.modal-footer .btn-inline-group button:last-child{
    margin-right: 0;
}

.form-group{
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}
.form-group.inline{
    display: flex;
    align-items: center;
    flex-direction: row;
    align-content: space-between;
}

.form-group:last-child{
    margin-bottom: 0;
}

.form-group label{
    word-break: keep-all;
    margin-right: 10px;
}

.form-group .err-msg{
    display: none;
}
.form-group.err .err-msg{
    display: block;
    color: #FF623E;
    font-size: smaller;
    margin-top: 4px;
}

.form-group .group {
    display: inline-flex;
    align-items: center;
}

.form-group .group div {
    font-weight: bold;
}

.bold{
    font-weight: 500;
    color: #04327a;
}

.highlight{
    color: #ff6231;
}

.highlight.large{
    font-size: large;
}

.refresh a{
    color: #04327a;
}

.required{
    color: red;
}

/* 對話框-倒數日期 */
.countdown-block{
    display: flex;
    align-items: center;
    padding: 10px 0;
}
.countdown-block .number{
    font-size: 3rem;
    color: #ff623e;
    font-weight: 600;
    padding: 0 1rem;
    word-break: keep-all;
}

.countdown-block .txt{
    font-size: 1.25rem;
    padding-top: 1.2rem;
    word-break: keep-all;
}

/* 對話框-信用卡帳單明細 */
.message-row .msg .title{
    background-color: #04327a;
    color: #fff;
    text-align: center;
    padding: 5px;
    margin-bottom: 5px;
}

.modal-body .title{
    background-color: #04327a;
    color: #fff;
    text-align: center;
    padding: 10px;
    margin: 1.25rem 0;
}

.modal-body .title div{
    margin-bottom: 0;
}

.message-row .msg .sub-title{
    background-color: #4f607B;
    color: #fff;
    text-align: center;
    padding: 0 5px;
    margin-bottom: 5px;
}
.message-row .msg .title ~ .sub-title{
    margin-top: -5px;
}

.message-row .msg .detail{
    padding-right: 23px;
}

.message-row .msg .total{
    color: #04327a;
    padding-right: 23px;
}

.message-row .msg .data-list:not(:last-of-type),
.modal-body .data-list:not(:last-of-type){
    border-bottom: 1px solid #ccc;
}

#TWD_deposit_detail_modal .transaction-detail-list .sub-title,
#foreign_currency_deposit_detail_modal .transaction-detail-list .sub-title{
    width: fit-content;
}
#TWD_deposit_detail_modal .transaction-detail-list-item .data-list,
#foreign_currency_deposit_detail_modal .transaction-detail-list-item .data-list{
    width: fit-content;
}

#TWD_deposit_detail_modal .transaction-detail-list .sub-title .data-list .list-item .data,
#TWD_deposit_detail_modal .transaction-detail-list .data-list .list-item .data,
#foreign_currency_deposit_detail_modal .transaction-detail-list .sub-title .data-list .list-item .data,
#foreign_currency_deposit_detail_modal .transaction-detail-list .data-list .list-item .data{
    min-width: 6rem;
    word-break: break-word;
}

#TWD_deposit_detail_modal .transaction-detail-list .title .data-list .list-item .data,
#foreign_currency_deposit_detail_modal .transaction-detail-list .title .data-list .list-item .data{
    min-width: max-content;
}

.message-row .msg .data-list .list-item,
.modal-body .data-list .list-item{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0.5rem 0;
}
.message-row .msg .title .data-list .list-item,
.modal-body .title .data-list .list-item{
    margin: 0;
}

@media (max-width: 160px) {
    .message-row .msg .data-list .list-item, .modal-body .data-list .list-item {
        flex-direction: column;
        min-width: 150px;
    }
}

.message-row .msg .data-list .list-item.more-info {
    margin: 10px 0;
    cursor: pointer;
}

.message-row .msg .data-list .list-item .data,
.modal-body .data-list .list-item .data{
    text-align: right;
    word-break: keep-all;
}

.modal-body .card-list-item .data-list .list-item .data{
    font-size: smaller;
    line-height: 2rem;
}

.message-row .msg .data-list .list-item .name,
.modal-body .data-list .list-item .name{
    min-width: max-content;
    margin-right: 0.5rem;
    text-align: left;
}
.modal-body .data-list .list-item .name{
    line-height: 2rem;
}

.more-btn{
    position: relative;
    width: 16px;
    height: 16px;
    display: inline-block;
    background: url(../img/plus.svg);
    background-size: 100% 100%;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.message-row .msg .more-info-content{
    display: none;
    transition: all 1s;
}
.message-row .msg .more-info-content.open{
    display: block;
}

.message-row .msg div + button{
   margin-top: 15px;
}

.btn-block {
    margin: 0 auto;
    margin-bottom: 0.5rem;
}

.btn-block + .btn-block {
    margin: 0.5rem auto;
}

.card-list {
    max-height: calc(100vh - 400px);
    overflow-y: auto;
    margin-bottom: 1rem;
}

.card-list .card-list-item .title{
    margin: 0;
}

.card-list .consumption-list {
    background: #f0f4f7;
    padding: 0.5rem;
    margin-bottom: 1px;
}

.card-list .consumption-list .list-item {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 0;
}
.card-list .consumption-list .list-item div {
    width: 50%;
    margin-bottom: 0.5rem;
    text-align: left;
}
.card-list .consumption-list .list-item div:nth-of-type(even) {
    text-align: right;
}

.card-list .consumption-list .list-item .amount {
    font-size: larger;
}
.card-list .consumption-list .list-item .date {
    font-size: x-small;
}

.card-list .consumption-list .list-item .installment select {
    width: 110px !important;
    font-size: smaller;
}

.installment-list {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

.installment-list .installment-list-item{
    border: 1px solid #04327a;
    margin-bottom: 10px;
}
.installment-list .installment-list-item:last-child{
    margin-bottom: 1px;
}

.installment-list .title {
    background-color: #04327a;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0 10px;
}

.installment-list .sub-title {
    background-color: #f0f4f7;
    color: #04327a;
}

.installment-list .sub-title .data-list .list-item{
    margin: 0 0 0.5rem 0;
    padding: 0.3rem 0;
}

.installment-list .data-list .list-item .data{
    font-size: smaller;
    flex: 1;
    min-width: max-content;
    text-align: center;
    margin: 0 5px;
}

.billing-detail-list {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

.billing-detail-list .installment-list-item{
    border: 1px solid #04327a;
    margin-bottom: 10px;
}

.billing-detail-list .list-item .title{
    margin: 0;
    padding: 0;
}

.billing-detail-list .data-list{
    border: 1px solid #04327a;
    border-top: none;
    padding: 10px;
}

.billing-detail-list .data-list .list-item{
    display: block;
}

.billing-detail-list .title .data-list .list-item{
    display: flex;
}

.billing-detail-list .data-list .list-item .right{
    text-align: right;
}

/* 靈活卡*/
.transaction-detail-list {
    max-height: calc(100vh - 500px);
    overflow-y: auto;
}

.transaction-detail-list .transaction-detail-list-item{
    border: 1px solid #04327a;
    margin-bottom: 10px;
    overflow: auto;
}
.transaction-detail-list .transaction-detail-list-item:last-child{
    margin-bottom: 1px;
}

.transaction-detail-list .title {
    background-color: #04327a;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 5px 0;
}

.transaction-detail-list .sub-title {
    background-color: #f0f4f7;
    color: #04327a;
}

.transaction-detail-list .sub-title .data-list .list-item{
    margin: 0 0 0.5rem 0;
    padding: 0.3rem 0;
}

.transaction-detail-list .data-list .list-item .data{
    flex: 1;
    min-width: max-content;
    text-align: center;
    margin: 0 5px;
}

.transaction-detail-list  .title .data-list .list-item .data{
    flex: 0;
}

.transaction-detail-list .title .data-list .list-item .data br{
    display: none;
}

.period-list{
    margin-bottom: 0;
}

.line-feed {
    display: flex !important;
    align-items: stretch !important;
    flex-direction: column !important;
}

/* 信貸 */
.rate-tab {
    display: inline-block;
}

.rate-tab input[type="radio"] {
    width: auto;
    display: none;
}

.rate-tab+.tab {
    margin-left: 5px;
}

.rate-tab input[type="radio"]+label {
    background-color: #f7f7f8;
    padding: 12px 16px;
    margin: 0;
}

.rate-tab.active input[type="radio"]+label {
    color: #04327a;
    background-color: #f0f4f7;
}

.rate-tab-content {
    margin-bottom: 15px;
    display: none;
}

.rate-tab-content.active {
    display: block;
}

.label-notice {
    margin-left: 5px;
    font-size: 0.9rem;
    font-weight: normal;
    color: #7F7F7F;
}

.group.add-words {
    position: relative;
}

.group.add-words input:not([type="radio"]):not([type="checkbox"]) {
    padding-right: 55px;
}

.group.add-words div {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 1px;
    margin: auto;
    padding: 10px 5px;
    width: 50px;
    text-align: center;
    color: #04327a;
    font-weight: normal;
}

.group.add-words div.remark {
    top: -40px;
}

/* 年利率拉bar */
.range-slider-container {
    width: 100%;
}
.range-slider-container p{
    position: relative;
    font-size: 0.85rem;
    color: #04327a;
    margin-bottom: 20px;
}
.range-slider-container .r1{
    position: absolute;
    left: 0;
}
.range-slider-container .r2{
    position: absolute;
    right: 0;
}

.modal-body input.range-slider,
.modal-body input.range-slider:focus {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: #f7f7f8;
    outline: none;
    border-radius: 50px;
    border: 0;
    padding: 0;
    opacity: 1;
}

.modal-body input.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #68c89e;
    cursor: pointer;
}

.modal-body input.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #68c89e;
    cursor: pointer;
}

/* 虛擬鍵盤 */
.keyboard-block{
    background: url(../img/keyboard.svg) center center no-repeat;
    background-size: 32px;
    width: 32px;
    height: 32px;
    margin: 10px;
    margin-right: 0;
    cursor: pointer;
    display: none;
}

.keypad {
    display: none;
}

/* 對話框自訂輸入框 */
.custom-amount{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

.custom-amount label{
    width: 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #04327a;
    line-height: 1.2em;
    margin-right: 5px;
    margin-bottom: 0;
}

.custom-amount div{
    width: calc(100% - 2.5rem);
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.custom-amount input{
    width: calc(100% - 4rem) !important;
    padding: 0.375rem !important;
}
.custom-amount input:focus {
    background-color: #F0F4F7;
    border-color: transparent;
    outline: 2px solid #04327a;
}

.custom-amount button {
    width: 4rem;
    margin-bottom: 0;
}

/* 個資同意選單 */
.terms-block {
    padding: 0.5rem 1.5rem 0 1.5rem;
}

.terms-description {
    width: 100%;
    padding: 0.5rem;
    margin: 0;
    background: #F0F4F7;
    font-size: 0.85rem;
    color: #000;
    text-align: justify;
    border-radius: 0px;
    border: 1px solid #ccc;
    min-height: 70px;
    max-height: calc(100vh - 480px);
    width: calc(100% - 30px);
    margin-left: 30px;
    overflow-y: auto;
}
.terms-description a {
    font-weight: normal;
    color: #000;
    text-decoration: underline;
}
.terms-description p:last-of-type {
    margin-bottom: 0;
}

.terms-block .err-msg {
    width: calc(100% - 30px);
    margin-left: 30px;
    margin-bottom: 0.5rem;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 2px;
    margin: 3px 5px 0 0;
    display: inline-block;
}

input[type="checkbox"] + label {
    position: relative;
    font-size: 1rem;
    font-weight: normal;
    color: #000;
    text-align: left;
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    margin-bottom: 0;
    margin-right: auto;
}
input[type="checkbox"] + label span.checkbox {
    position: absolute;
    left: -29px;
    top: 3px;
    width: 20px;
    height: 20px;
    margin: 0 5px 0 0;
    vertical-align: top;
    display: inline-block;
    cursor: pointer;
}
input[type="checkbox"]:checked + label span.checkbox {
    background: url('../img/checked.png') center center no-repeat;
    background-size: 14px;
}

input[type="checkbox"],
input[type="checkbox"]:focus,
input[type="checkbox"]:checked
{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

#id_by_user_modal .modal-dialog {
    max-width: 400px;
}

#id_by_user_modal .modal-content {
    max-height: 450px;
}

#id_by_user_modal .terms-description {
    max-height: 100px;
}

#id_by_user_modal .form-group {
    margin-bottom: 0;
}

.customAmounts::placeholder {
    font-size: smaller;
}

/* 右側訊息框 */
.msg-container {
    padding: 20px 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.msg-container > .msg-img {
    width: 70px;
    height: auto;
}

.msg-container > .msg-img img {
    max-width: 100%;
    max-height: 100%;
}

.msg-container > .msg-txt {
    margin-left: 15px;
    font-size: 1rem;
    font-weight: 500;
    color: #04327a;
    animation: neon 2s ease-in-out infinite alternate;
}

@keyframes neon {
    from {
        color: #04327a;
    }
    to {
        color: #f26021;
    }
}

/* 信用卡調額 */
.modal-body .form-group .item.inline + .item.inline {
    margin-left: 1rem;
}

.modal-body .form-group .item.inline input + label {
    margin-bottom: 0;
}

/* 必填標示 */
.modal-body .form-group label.required::before {
    content: '*';
    font-size: 1rem;
    color: #FF623E;
    margin-left: -0.45rem;
    margin-right: 1px;
}

/* 退溢繳款 */
.currency-section {
    display: inline-flex;
    align-items: center;
}

.modal-body .form-group.refund-section table td {
    font-weight: 500;
    color: #041c43;
    text-align: center;
    min-width: 2rem;
}
.modal-body .form-group.refund-section table td:first-child {
    width: 4.2rem;
    min-width: auto;
}

.modal-body .form-group .search {
    position: relative;
}
.modal-body .form-group .search.inline {
    display: inline-block;
}

.modal-body .form-group .search + .search {
    margin-left: 10px;
}

.modal-body .form-group .select2-container {
    width: 100% !important;
}

.modal-title .select2-container .select2-selection--single,
.modal-body .form-group .select2-container .select2-selection--single {
    border: 1px solid #ccc;
    border-radius: 0;
    height: 45px;
    line-height: 45px;
}

.modal-body .form-group.err .select2-container .select2-selection--single {
    border: 1px solid #FF623E;
}

.modal-title .select2-container--default .select2-selection--single .select2-selection__rendered,
.modal-body .form-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #041c43;
    line-height: 45px;
}

.modal-title .select2-container--default .select2-selection--single .select2-selection__arrow,
.modal-body .form-group .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 45px;
}

/* 約定分期 */
.form-group .item > select{
    margin-left: 1rem;
    width: calc(100% - 1rem);
}

input[type="radio"] + label.campaign-item{
    width: calc(100% - 3rem);
    border: 1px solid #04327a;
    vertical-align: top;
}
input[type="radio"] + label.campaign-item .title{
    margin: 0;
    text-align: left;
}
input[type="radio"] + label.campaign-item .content{
    padding: 10px;
    display: flex;
    flex-direction: column;
}
input[type="radio"] + label.campaign-item .content .list-item{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.label-notice.block {
    margin-left: 0;
    display: block;
}

.modal-body input[type="radio"]:disabled + label{
    cursor: default;
}

.modal-footer button.disabled,
.modal-footer button:disabled {
    color: #fff;
    background-color: #BFBFBF;
    border-color: #BFBFBF;
    cursor: not-allowed;
}

/* 信用卡活動登錄 */
#credit_card_activity_apply_modal form{
    display: contents;
}

#credit_card_activity_apply_modal .modal-content{
    height: 80vh;
    max-height: 600px;
    overflow-y: auto;
}

.credit-card-activity-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-bottom: 15px;
    border-bottom: 2px solid #efefef;
}

.credit-card-activity-tabs .credit-card-activity-tab{
    min-width: 4rem;
    font-weight: bold;
    color: #666;
    background: #efefef;
    border: 2px solid #efefef;
    border-bottom: none;
    padding: 10px 15px;
    margin-right: 5px;
    margin-bottom: -2px;
    cursor: pointer;
}

.credit-card-activity-tabs .credit-card-activity-tab.active{
    color: #000;
    background: #fff;
    border-top: 2px solid #ff6231;
    cursor: default;
}

#credit_card_activity_apply_modal .tab1-content{
    height: calc(80vh - 200px);
    max-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#credit_card_activity_apply_modal .tab2-content{
    height: calc(80vh - 140px);
    max-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.credit-card-activity-list{
    height: calc(80vh - 230px);
    max-height: 370px;
    overflow-y: auto;
}
.credit-card-activity-list.record{
    height: calc(80vh - 140px);
    max-height: 460px;
}

.empty-data{
    padding: 0.5rem;
}

.credit-card-activity-list .data-list .list-item .name{
    line-height: normal;
    color: #04327a;
    display: flex;
    flex-wrap: nowrap;
}

.credit-card-activity-list .data-list .list-item .name input[type="checkbox"] + label{
    color: #04327a;
}
.credit-card-activity-list .data-list .list-item .name input[type="checkbox"] + label span.checkbox {
    position: absolute;
    left: -26px;
    top: 4px;
}
.credit-card-activity-list input:not([type="radio"]):focus,
.credit-card-activity-list ~ .terms-block .terms_check input:not([type="radio"]):focus{
    background-color: unset;
    border-color: unset;
    outline: none;
}

.credit-card-activity-list .data-list{
    padding: 0.5rem;
}

.credit-card-activity-list .data-list .list-item{
    margin-top: 0;
    margin-bottom: 0;
}
.credit-card-activity-list .data-list .list-item.info{
    font-size: small;
    margin-left: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.credit-card-activity-list.record .data-list .list-item.info{
    margin-left: 0;
    color: #68c89e;
}

.credit-card-activity-list .data-list .more-btn{
    position: relative;
    width: 16px;
    height: 16px;
    display: inline-block;
    background: url(../img/plus.svg);
    background-size: 16px;
    vertical-align: middle;
    margin-left: 0.5rem;
    margin-top: 4px;
    cursor: pointer;
}
.credit-card-activity-list .data-list .more-btn.active{
    background: url(../img/minus.svg);
    background-size: 16px;
}

.credit-card-activity-list .data-list .more-info-content{
    display: none;
    transition: all 1s;
    font-size: small;
    margin-left: 28px;
    margin-top: 0;
}
.credit-card-activity-list .data-list .more-info-content.open{
    display: block;
}

.credit-card-activity-list.record .data-list .more-info-content{
    margin-left: 0;
}

.credit-card-activity-list .data-list .description{
    color: #04327a;
}

#credit_card_activity_apply_modal .terms-block{
    padding: 0 2rem;
    margin-bottom: -1rem;
}

/*==============================================
    MEDIA QUERIES     
    =============================================*/

	
@media (min-width: 1001px){
    .voice-input-panel {
        position: fixed;
        opacity: 0;
        visibility: hidden;
    }

    /* 虛擬鍵盤 */
    .keyboard-block{
        display: block;
    }

    .keypad{
        position: absolute;
        left: calc(50% - 20px);
        bottom: 76px;
        width: 460px;
        z-index: 1051;
    }
    
    .keypadCloseBtn {
        position: absolute;
        right: -15px;
        top: -15px;
        background: rgba(50,50,50,.95);
        padding: 5px;
        color: #fff;
        border-radius: 15px;
    }
    
    .keypadCloseBtn .close {
        color: #fff;
        opacity: .75;
    }
    
    .keypadCloseBtn .close:hover {
        color: #fff;
        opacity: 1;
    }
    
    .uppercase {
        text-transform: uppercase !important;
    }
    
    .keyboard-full-set {
        width: 100%;
        margin: 0 auto 0;
        display: block;
        padding: 10px 10px 0;
        text-align: center;
        background: #04327a;
        border-radius: 10px;
    }

    .keyboard-set {
        display: inline-block;
        margin: 0 10px;
    }
    
    .btn-keyboard {
        margin: 0 3px 6px 0 !important;
        width: 36px !important;
        min-width: auto !important;
        height: 36px !important;
        padding: 0 !important;
        line-height: 32px !important;
        text-align: center !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        color: #565656 !important;
        border-color: #dedede !important;
        text-transform: lowercase;
        background-color: #fff !important;
        border: 1px solid transparent !important;
        border-radius: 4px !important;
    }
    
    .btn-keyboard:hover, .btn-keyboard:focus, .btn-keyboard:active, .btn-keyboard.active {
        color: #252525 !important;
        border-color: #999 !important;
        background-color: #fff!important;
        text-decoration: none!important;
        box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.31) !important;
    }
    
    .btn-case-change.upper {
        border-top: 4px solid #ff623e !important;
    }
    
    .btn-back, .btn-clear, .btn-refresh {
        width: 108px !important;
    }
    
    .btn-num {
        background: #f0f4f7 !important;
        color: #04327a !important;
    }
    
    .btn-case-change {
        width: 80px !important;
        border-top: 4px solid #dedede !important;
    }
    
    .btn-keyboard {
        color: #000 !important;
    }
    
    .btn-keyboard.btn-function {
        color: #04327a !important;
    }
}

@media (max-width: 1000px) {
    .top {
        height: 40px;
        min-height: 40px;
        line-height: 40px;
        padding: 0;
    }
    .top-logo img {
        max-height: 25px;
    }
    .top .btn_help {
        display: none;
    }
    .top .btn_font-size{
        right: 100px;
    }
    .top .btn_open {
        display: none;
    }
    .top .btn_close {
        display: none;
    }
    .top .btn_survey {
        right: 20px;
    }
    .top .btn_speaker,
    .top .btn_speaker-mute {
        right: 60px;
    }
    button.btn_survey:hover+.itri-tooltip-survey,
    button.btn_speaker:hover+.itri-tooltip-speaker,
    button.btn_speaker-mute:hover+.itri-tooltip-speaker-mute{
        display: none;
    }

    .top .top-logo {
        text-align: left;
        margin-left: 20px;
    }
    .top-banner.show {
        padding: 8px 20px;
        display: flex;
        flex-direction: row;
        min-height: max-content;
    }
    .main-wrapper {
        flex-direction: column;
    }
    .chat-message-container {
        padding: 0 16px;
        width: 100vw;
        -webkit-overflow-scrolling: toFuch;
    }
    .chat-messages {
        margin-top: 26px;
    }
    .robot-avatar {
        width: 48px;
        height: 48px;
    }

    .message-row .msg {
        margin-left: 62px;
        padding: 5px 10px;
    }

    .message-row.by-robot .msg {
        margin-right: 32px;
    }
    .message-row.by-robot .msg.medium {
        width: auto;
        min-width: 228px;
    }
    .message-row.by-user .msg {
        margin-right: 10px;
    }
    .message-datetime {
        margin-left: 72px;
    }
    .ChatMessageFeedback {
        margin-left: 62px;
    }
    .msg-content {
        margin-left: 10px;
    }
    .buttons-message-container {
        margin-left: 62px;
    }
    .chat-input-container {
        padding: 10px 16px;
    }
    .mobile-menu-btn {
        display: block;
    }
    .mobile-menu-opened .chat-input-container,
    .voice-input-opened .chat-input-container {
        z-index: 99;
        display: none;
    }
    /* .chat-input-buttons {
        display: flex;
    } */
    .sidebar-control-wrapper .menu_control{
        display: none;
    }
    .sidebar-wrapper {
        width: 100vw;
        height: 0;
        flex-shrink: 0;
        transition: height 0.3s;
        position: relative;
        z-index: 99;
    }
    .mobile-menu-opened .sidebar-wrapper {
        height: 50vh;
        max-height: 250px;
        transition: height 0.3s;
        background-color: #fff;
        overflow-x: hidden;
    }
    .sidebar {
        margin: 0;
        width: 100vw;
        padding: 0;
    }
    .sidebar .tabs {
        padding: 0 20px;
        display: block;
        margin: 0;
    }
    .sidebar .tab {
        height: 40px;
        line-height: 40px;
        display: inline-block;
        margin-right: 10px;
    }
    .msg-container {
        padding: 20px;
    }
    .tab-content {
        margin-bottom: 0;
    }
    
    .sidebar-control-wrapper {
        z-index: 99;
    }
    .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 section {
        display: inline-block;
        width: 100%;
        vertical-align: top;
        scroll-snap-align: start;
        padding: 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 {
        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;
        z-index: 99;
    }
    .voice-input-close-btn {
        display: none;
    }
    .chat-word-size-buttons {
        top: 7px;
        right: 117px;
        height: 27px;
    }
    .survey {
        width: calc(100vw - 64px);
    }
    .survey .scale-label-container {
        display: none;
    }
    .survey-scale {
        width: 100%;
        margin-top: 12px;
    }
    .survey-scale .scale-label {
        display: block;
    }
    .chat-input-form .btn_sticker{
        top: auto;
        bottom: 0;
        right: 100px;
    }
    .chat-input-form .btn_upload{
        top: auto;
        bottom: 0;
        right: 140px;
    }
    #sticker-overlay{
        z-index: 100;
    }
    #upload-overlay {
        z-index: 100;
    }
    .fileupload-buttonbar .toggle,
    .files .toggle,
    .files .btn span {
      display: none;
    }
    .files .name {
      width: 80px;
      word-wrap: break-word;
    }
    .files audio,
    .files video {
      max-width: 80px;
    }
    .files img,
    .files canvas {
      max-width: 100%;
    }
    /* .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;
    }
    .gate{
        display: none;
    }

    .card-list {
        max-height: max-content !important;
    }
    .installment-list {
        max-height: max-content !important;
    }
    .billing-detail-list {
        max-height: max-content !important;
    }
    .transaction-detail-list {
        max-height: max-content !important;
    }

    #liveForm .kpl_builder{
        max-width: 100%;
    }

    /* 手機版scrollbar */
    .modal-content ::-webkit-scrollbar {
        -webkit-appearance: none;
    }

    .modal-content ::-webkit-scrollbar:vertical {
        width: 10px;
    }

    .modal-content ::-webkit-scrollbar:horizontal {
        height: 10px;
    }

    .modal-content ::-webkit-scrollbar-thumb {
        background-color: #04327a;
        border-radius: 10px;
        border: 2px solid transparent;
        background-clip: padding-box;
    }

    .modal-content ::-webkit-scrollbar-track {
        border-radius: 10px;
        background-color: rgba(0, 0, 0, 0.06);
    }

    .keypad{
        display: none !important;
    }
}

@media (max-width: 500px){
	.message-row .msg img {
		max-width: 100%;
		height: auto !important;
	}
	.message-row.by-robot .msg {
		margin-right: auto;
	}
}

@media (max-width: 400px) {
    /* ::placeholder {
        font-size: 12px;
    }
    ::-webkit-input-placeholder {
        font-size: 12px;
    }
    :-ms-input-placeholder {
        font-size: 12px;
    }
    ::-moz-placeholder {
        font-size: 12px;
    } */

    .transaction-detail-list .title .data-list .list-item .data br{
        display: inline-block;
    }

    .message-row .msg .data-list .list-item .name,
    .modal-body .data-list .list-item .name{
        min-width: auto;
    }
}

/*手機版隱藏麥克風*/
@media (max-width: 1000px) {
    .chat-input-buttons{
        display: none;
    }
    .chat-input-form .txt_input{
        width: calc(100% - 85px);
        margin-left: 0;
    }
}