@import url('https://fonts.googleapis.com/css?family=Noto+Sans+TC:100,300,400,500,700&display=swap');

html {
    --primaryGradient: linear-gradient(93.12deg, #581B98 0.52%, #9C1DE7 100%);
    --secondaryGradient: linear-gradient(268.91deg, #581B98 -2.14%, #9C1DE7 99.69%);
    --primaryBoxShadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    --secondaryBoxShadow: 0px -10px 15px rgba(0, 0, 0, 0.1);
    --primary: #C43C3D;
}
body .chatbox {
    font-family: 'Noto Sans TC', Roboto, Arial, Helvetica, serif;
}
.grecaptcha-badge {
  display: none !important;
}
/* CHATBOX
=============== 
*/
.chatbox {
    
    z-index: 99;   
    outline: inherit;
    position: fixed;
    bottom: 110px;
    right: 30px;
    border-radius: 20px;
    color:#333;
}
.chatbox a {
    color: #0000EE;
}
.chatbox a:visited {
    color: #551A8B;
}
/* CONTENT IS CLOSE */
.chatbox__support {
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 350px;
    z-index: -123456;
    opacity: 0;
    transition: all .5s ease-in-out;
}

/* CONTENT ISOPEN */
.chatbox--active {
    z-index: 123456;
    opacity: 1;

}

.chatbox--hidden {
    display: none;

}

/* BUTTON */
.chatbox__button {
    text-align: right;
}

.send__button {
    padding: 6px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}


/* HEADER */
.chatbox__header {
    position: sticky;
    top: 0;
    background: orange;
}

/* MESSAGES */
.chatbox__messages {
    margin-top: 0;
    display: flex;
    overflow-y: scroll;
    flex-direction: column-reverse;
    margin-bottom:30px;
}

.messages__item {
    background: orange;
    max-width: 60.6%;
    width: fit-content;
}

.messages__item--operator {
    margin-left: auto;
}

.messages__item--visitor ,
.messages__item--typing {
    margin-right: auto;
}
.chatbox__content--header {
    display:flex;
    width:100%;
    justify-content: space-between;;
    align-items: center;
}
.fa-solid.fa-x {
  color: #fff;
  cursor:pointer;
}
.profile {
    width:15%;
    margin-top:10px;
}
.profile img{
    width:100%;

}
.messages__item.messages__item--visitor {
    width:90%;
    margin-left:10px;
}
/* FOOTER */
.chatbox__footer {
    position: sticky;
    bottom: 0;
    margin-top:auto;
}

.chatbox__support {
    background: #fff;
    height: 65vh;
    width: 30vw;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* HEADER */
.chatbox__header {
    background: var(--primary);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.chatbox__image--header {
    margin-right: 10px;
}

.chatbox__heading--header {
    font-size: 1rem;
    color: white;
    font-weight:600;
}

.chatbox__description--header {
    font-size: .9rem;
    color: white;
}

/* Messages */
.chatbox__messages {
    padding: 0 20px;
}

.messages__item {
    margin-top: 10px;
    background: #e9e9e9;
    padding: 8px 12px;
    max-width: 90%;
}

.messages__item--visitor,
.messages__item--typing {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    word-wrap:break-word;
}

.messages__item--typing {
    display: inline-flex;
}

.messages__item--operator {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    background: var(--primary);
    color: white;
    word-wrap:break-word;
}

/* FOOTER */
.chatbox__footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 15px;
    border-top: 1px solid #d5d0d0;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.chatbox__footer input {
    width: 100%;
    border: none;
    padding: 0px 10px;
    border-radius: 30px;
    text-align: left;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    height:40px;
    background:#f6f6f6;
    font-size:1rem;
}

.chatbox__send--footer {
    color: white;
    background: var(--primary);
    border-radius: 12px;
    height: 40px;
    width: 60px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-size:0.8rem;
}

.chatbox__button button,
.chatbox__button button:focus,
.chatbox__button button:visited {
    padding: 10px;
    background: white;
    border: none;
    outline: none;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/*Typing Dots*/
.typing-animation {
    display: inline-flex;
    background: #f1f1f1;
    padding: 13px 10px;
    border-radius: 50px;
    width: 45px;
}

.typing-animation .dot {
    height: 10px;
    width: 10px;
    opacity: 0.7;
    margin: 0 3px;
    border-radius: 50%;
    background: #6c757d;
    animation: animateDots 1.8s var(--delay) ease-in-out infinite;
}

.messages__item--typing .dot {
    height: 10px;
    width: 10px;
    opacity: 0.7;
    margin: 0 3px;
    border-radius: 50%;
    background: #6c757d;
    animation: animateDots 1.8s var(--delay) ease-in-out infinite;
}

@keyframes animateDots {

    0%,
    44% {
        transform: translateY(0px);
    }

    28% {
        opacity: 0.4;
        transform: translateV(-9px);
    }

    44% {
        opacity: 0.2;
    }
}

.btn {
    border: none;
    color: white;    
    background: var(--primary);
    border-radius: 12px;
    text-align: center;
    padding: 10px;
    margin-right: 5px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    /* 按鈕之間的間距 */
}

/* 內容區域，可以放置要左右滑動的內容 */
.content {
    padding: 5px 0;
    overflow-y: hidden;
    white-space: nowrap;
}

/* 設定外部容器，用來顯示內容，並限制寬度以顯示水平滾動條  */
.scroll-container {
    margin-top: 20px;
    border-top: 1px solid #d5d0d0;
    padding: 10px 15px;
    /* 設定容器寬度，可以根據您的需求調整 */
    overflow-y: visible;
    overflow-x: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    height: 60px;
}

#chatbox_button {
    /*display: none!important;*/
    position: fixed;
    text-align: center;
    cursor: pointer;
    z-index: 99;
    color: #fff;
    border-radius: 2px;            
    outline: inherit
}

#chatbox_button .ast-icon.icon-arrow svg {
    margin-left: 0;
    vertical-align: middle;
    transform: translate(0, -20%) rotate(180deg);
    width: 1.6em
}

.ast-scroll-to-top-right {
    right: 30px;
    bottom: 20px
}
.chatbox__footer input:focus-within {
    outline:none;
}
#chatbox_button {
    font-size: 50px;
    font-size: 2rem;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 50px;
    width:auto;
    right:2%;
    bottom:3%;
}
#chatbox_button img {
    width:4.5rem;
}
.messages_lib{
    display: inline-flex;
}