.custom_Bg_box {
    width: inherit;
}

.custom_Bg_box.active {
    transform: scale(1)
}

.custom_Bg {
    box-shadow: rgba(0,0,0,.24) 0 3px 8px
}

.custom_title_area {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #a38153;
    color: #fff;
    font-size: 1.25em;
    padding: 15px 0;
}

.custom_close {
    position: absolute;
    right: 10px;
    cursor: pointer
}

.page.custom_page {
    background-color: #fff;
    height: 100%;
    
}

.main.main_custom::after {
    display: none
}

.main.main_custom::before {
    display: none
}

.main_custom .pageContent {
    padding: 0
}

.custom_bottom {
    background-color: var(--primary_color)
}

.custom_wrap {
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 10px 20px
}

.custom_left {
    width: calc(100%);
    position: relative;
    max-height: 500px;
    overflow-y: auto;
}

.custom_right {
    width: 18.75rem;
    background-color: #f9f2e7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap
}

.message_list {
    display: flex;
    min-height: 2.875rem;
    overflow: hidden;
    padding-bottom: .625rem;
    margin-top: 1.25rem;
}

.chat_avatar {
    margin-right: .9375rem;
}

.robot_img {
    width: 2.5em;
    height: 2.5em;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: rgba(99,99,99,.2) 0 2px 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .3125rem;
    background-color: #fff
}

.robot_img img {
    width: 100%;
    height: auto
}

.datetime {
    margin-top: auto;
    font-size: 1em;
}

.message_content {
    border-radius: 0 1.25em 1.25em 1.25em;
    margin-right: .9375rem;
    width: fit-content;
    border: 1px solid #ccc;
    color: #4c4c4c;
    font-size: 1.125em;
    padding: clamp(.3125rem,0.5208vw,.625rem) clamp(.4375rem,.7813vw,.9375rem);
    line-height: 1.5em;
    word-break: break-word;
    word-wrap: break-word;
    background: #fff
}

.message_list.user {
    justify-content: flex-end
}

.message_list.user .chat_avatar {
    display: none
}

.message_list.user .message_content {
    border-radius: 1.25em 1.25em 0 1.25em;
    background: var(--primary_color);
    color: #fff;
    order: 2;
    margin-right: 0
}

.message_list.user .datetime {
    margin-right: 15px
}

.message_card {
    text-align: center;
    border-radius: 20px;
    overflow: hidden;
    border: .5px solid #8d8d8d;
    margin-right: 1px;
}

.message_card_img {
    border-bottom: .5px solid #8d8d8d
}

.message_title {
    padding: 10px 20px;
    border-bottom: .5px solid #8d8d8d;
    color: #fff;
    font-weight: 500;
    font-size: 1.125em;
}

ul.options {
    padding-left: 0
}

ul.options li {
    list-style-type: none
}

ul.options li a {
    display: block;
    text-decoration: none;
    padding: 7px;
    color: #000;
    line-height: 1.2;
    border-bottom: .5px solid #8d8d8d;
    background-color: #fff;
    font-size: 1.125em;
}

ul.options li:last-of-type a {
    border-bottom: none
}

.message_robot_answer_btn {
    font-size: inherit;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px
}

.message_robot_answer_btn button {
    font-size: inherit;
    line-height: 1.7;
    border: none;
    background: var(--primary_color);
    color: #fff;
    border-radius: 3px;
    width: 50px;
    cursor: pointer
}

.message_robot_answer_btn button:nth-child(2n) {
    color: #515354;
    background-color: #ccc
}

.message_robot_answer_btn button:hover {
    opacity: .5
}

.message_swiper {
    position: relative
}

.swiper_message {
    width: 85%
}

.message_swiper .swiper-button-next,.message_swiper .swiper-button-prev {
    position: absolute;
    top: 50%;
    margin: 0;
    width: 60px;
    height: 60px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 2!important
}

.message_swiper .swiper-button-next:after,.message_swiper .swiper-button-prev:after {
    display: none
}

.message_swiper .swiper-button-prev {
    background-image: url(../../../images/prev_arrow.svg);
    left: 0
}

.message_swiper .swiper-button-next {
    background-image: url(../../../images/next_arrow.svg);
    right: 0
}

.message_swiper .swiper-button-next,.message_swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
    background-size: 40px
}

.custom_link {
    margin-bottom: 25px
}

.custom_link:last-of-type {
    margin-bottom: 0
}

.custom_link input {
    width: 190px;
    border-radius: 2.1875em
}

.custom_footer {
    padding-top: 14px;
    padding-bottom: 14px;
    background-color: var(--primary_color)
}

.custom_inArea {
    -webkit-transition: top .2s;
    transition: top .2s;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    background: #fff
}

.custom_inBox {
    position: relative;
    width: 100%;
    padding: 0 45px 0 0;
    box-sizing: border-box
}

.custom_inBox input[type=text] {
    background: 0 0;
    border: 0;
    color: #333;
    font-size: 1.125em;
    font-weight: 500;
    line-height: 1.375em;
    height: 40px;
    padding: 0;
    border-radius: 0;
    width: 100%
}

.custom_inBox button,.custom_inBox button[type=button] {
    position: absolute;
    right: -15px;
    bottom: -5px;
    width: 50px;
    height: 50px;
    border-color: #fff0;
    text-align: center;
    cursor: pointer;
    background: #fff
}

.custom_inBox button img,.custom_inBox button[type=button] img {
    width: 25px;
    height: 25px;
    display: inline-block
}

ul.qaKeywordHintArea {
    padding: 0;
    margin: 0;
    display: block;
    list-style-type: none;
    background: #fff;
    position: absolute;
    overflow: hidden;
    color: #515354;
    border-radius: 7px;
    z-index: 5;
    bottom: 141px;
    left: 210px;
    box-shadow: rgba(50,50,93,.25) 0 6px 12px -2px,rgba(0,0,0,.3) 0 3px 7px -3px;
    font-size: .9375em;
    line-height: 1;
    max-height: calc((15px + (5px * 2)) * 15);
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    
}

ul.qaKeywordHintArea::-webkit-scrollbar {
    width: 5px;
    height: 1px
}

ul.qaKeywordHintArea::-webkit-scrollbar-thumb {
    border-radius: 5px;
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,.2);
    background-image: linear-gradient(to top,#b59073,#b59073 100%)
}

ul.qaKeywordHintArea::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,.2);
    border-radius: 5px;
    background: #ededed
}

ul.qaKeywordHintArea li {
    padding: 0;
    margin: 0;
    display: block;
    list-style-type: none;
    width: 100%;
    color: inherit;
    cursor: pointer
}

ul.qaKeywordHintArea li a {
    position: relative;
    padding: 10px;
    display: block;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #c5c5c5
}

ul.qaKeywordHintArea li a:hover {
    opacity: .5
}

ul.qaKeywordHintArea li.qaKeywordHint_item span {
    color: var(--primary_color);
    display: inline
}

.custom_footer_left {
    width: calc(100% - 300px)
}

.custom_footer_right {
    width: 300px
}
/* 在螢幕放大150%且寬度大於991時，套用這裡的特定樣式 */ 
@media screen and (min-width: 991px) and (min-height: 500px) and 
(max-height: 1000px) and (-webkit-min-device-pixel-ratio: 1.5) and 
(-webkit-max-device-pixel-ratio: 1.74), only screen and (min-resolution: 150dpi) and 
(max-resolution: 174dpi) { 
    .page.custom_page {
        background-color: #fff;
        height: 100%;
        max-width: 960px;
        margin: 0 auto;
        
    }
    .swiper_message {
        /* width: 60% */
        width: 59%;
    }
    .custom_bottom {
        max-width: 960px;
        margin: 0 auto;
    }
    
}
@media (max-width: 1440px) {
    .custom_Bg {
        transform:scale(.8);
        transform-origin: bottom
    }
}

@media (max-width: 990px) {
    .page.custom_page {
        display:flex;
        flex-direction: column
    }

    .custom_left {
        width: 100%
    }

    .custom_right {
        order: -1;
        width: 100%;
        flex-direction: row;
        padding: 25px 0;
        justify-content: space-around
    }

    .custom_link {
        margin-bottom: 0;
        box-sizing: border-box;
        width: 25%;
        padding: 12px 15px 12px
    }

    .custom_link input {
        width: 100%;
        padding: 0 15px
    }

    .custom_footer_left {
        width: 100%
    }

    .custom_footer_right {
        display: none
    }

    .custom_footer {
        position: fixed;
        bottom: 0;
        width: 100%;
        z-index: 2
    }
}

@media (max-width: 640px) {
    .custom_Bg_box {
        position:fixed;
        right: 0;
        bottom: 0;
        top: 0;
        width: 100%
    }

    .custom_Bg {
        width: 100%;
        transform: scale(1);
        transform-origin: unset
    }

   

    .message_content {
        font-size: .8125em;
    }

    .message_list {
        margin-top: 10px
    }
}

@media (max-width: 540px) {
    .custom_link {
        width:50%
    }

    .robot_img {
        width: 35px;
        height: 35px
    }

    .chat_avatar {
        margin-right: 15px
    }

    .message_content {
        margin-right: 15px
    }

    .message_list.robot {
        flex-direction: column
    }

    .message_list.robot .datetime {
        order: 3
    }

    .message_list.robot .chat_avatar {
        order: 0
    }

    .message_list.robot .message_content {
        order: 2;
        margin: 10px 0
    }
}
