/* 폰트 */
/* body, a, h1, h2, h3, h4, h5, h6, p, div, dd, dt, li, select, input, textarea, button { font-family: "Pretendard Variable", Pretendard, sans-serif; } */

/* 채팅창 열기 버튼 */
.sidetalk-side-panel-btn { position: fixed; top: 80%; right: 0px; transform: translateY(-50%); width: 93px; height: 140px; padding: 0px; background: url('../images/bg_open_chat.png') no-repeat; border: none; cursor: pointer; z-index: 9999999999; }
.sidetalk-side-panel-btn:hover { background-color:transparent; }
.sidetalk-side-panel-btn span { display: inline-block; padding-left: 15px; background: url('../images/icon_arrow.png') no-repeat; background-size: 7px 13px; background-position: 0% 50%; font-size: 14px; font-weight: 500; line-height: 1.4; color: #fff; }
.sidetalk-hide-btn { position: fixed; top: 70%; right: 5px; width: 30px; height: 30px; background-color: #00ccf8; border-radius: 20px; padding: 0px; border: none; cursor: pointer; color: #fff; z-index: 9999999999; }

/* 패널 */

.sidetalk-side-panel { position: fixed; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; top: 0; right: -380px; width: 380px; height: 100%; border: 1px solid #ededed; border-radius: 45px 0px 0px 45px; background: #f7f7f7; transition: all 0.3s ease-in-out; z-index: 9999999999; }
.sidetalk-side-panel.view { right: 0; }
.sidetalk-side-panel p { margin: 0px; }
.sidetalk-side-panel-chatbox { position: fixed; display: flex; flex-direction: column; width: 100%; height: 100% }

/* 패널 헤더 */
.sidetalk-panel-header { position: relative; display: flex; align-items: center; box-sizing: border-box; height: auto; min-height: 65px; padding: 10px 20px; border-bottom: 1px solid #ededed; background: #f7f7f7; text-align: center; }
.sidetalk-panel-header .sidetalk-title-header { width: 100%; font-size: 16px; font-weight: 700; line-height: 1.4; color: #00a8ea; }
.sidetalk-panel-header .sidetalk-close-btn { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); cursor: pointer; padding: 0px; background: none; border: none; outline: none; }
.sidetalk-panel-header .sidetalk-close-btn img { width: 45px; height: 45px; }

/* 채팅창 */
.sidetalk-chat-history { display: flex; flex-direction: column-reverse; overflow-y: auto; width: 100%; height: 100%; padding: 10px 20px 140px; box-sizing: border-box; }
.sidetalk-chat-history .sidetalk-message { max-width: 95%; font-size: 15px; font-weight: 500; line-height: 21px; }
.sidetalk-chat-history .sidetalk-message .sidetalk-message-name { display: flex; align-items: center; margin-bottom: 10px; font-size: 16px; font-weight: 600; line-height: 1; color: #777; }
.sidetalk-chat-history .sidetalk-message .sidetalk-message-name img { width: 25px; height: 25px; margin-right: 7px; }
.sidetalk-chat-history .sidetalk-message .sidetalk-bubble { display: inline-block; min-width: 100px; min-height: 53px; padding: 15px 25px; box-sizing: border-box; word-break: keep-all; -webkit-animation: fade-bubble 1s; animation: fade-bubble 1s; }

@keyframes fade-bubble {
 0% { opacity: 70%; transform: translateY(8px); }
100% { opacity: 100%; transform: translateY(0); }
 }

@keyframes ready-animation {
 0% { opacity: 20%; }
100% { opacity: 80%; }
 }

.sidetalk-chat-history .sidetalk-message.sidetalk-user-message { align-self: flex-end; }
.sidetalk-chat-history .sidetalk-message.sidetalk-user-message .sidetalk-bubble { margin-top: 10px; border-radius: 45px 45px 0px 45px; background-color: #00a8ea; color: #fff; }
.sidetalk-chat-history .sidetalk-message.sidetalk-other-message { align-self: flex-start; white-space: pre-wrap; margin-top: 10px; margin-bottom: 20px; }
.sidetalk-chat-history .sidetalk-message.sidetalk-other-message .sidetalk-bubble { border: 1px solid #ededed; border-radius: 0px 45px 45px 45px; background-color: #fff; color: #666; }


/* 메세지 로딩*/
#loading-message { margin-bottom: 15px; text-align: center; bottom: 101px; padding-left: 75px; position: absolute;}
#loading-message p { display: inline-block; padding: 15px 20px; background-color: #e7e7e7; border: 1px solid #ededed; border-radius: 45px; font-size: 13px; font-weight: 500; color: #666; }
#loading-message p span { display: inline-block; }
#loading-message p span:last-child { padding-left: 10px; }
#loading-message p span.dot { width: 8px; height: 8px; background-color: #00a8ea; border-radius: 4px; -webkit-animation: loding-animation 1s infinite alternate; animation: loding-animation 1s infinite alternate; animation-delay: 0s; }
#loading-message p span.dot:nth-child(2) { -webkit-animation: loding-animation 1s infinite alternate; animation: loding-animation 1s infinite alternate; animation-delay: 0.5s; }
#loading-message p span.dot:nth-child(3) { -webkit-animation: loding-animation 1s infinite alternate; animation: loding-animation 1s infinite alternate; animation-delay: 1s; }

@keyframes loding-animation {
 0% { opacity: 100%; transform: scale(1); }
100% { opacity: 20%; transform: scale(.7); }
 }

/* 패널 풋터 */
.sidetalk-panel-footer { width: 100%; height: auto; padding: 17px 20px; box-sizing: border-box; background: #ededed; position: absolute; bottom: 0; }
.sidetalk-panel-footer .sidetalk-chat-input {position: relative;display: flex;overflow: hidden;width: 100%;border: 1px solid #ccc;border-radius: 45px;box-sizing: border-box;align-items: center;}
.sidetalk-panel-footer .sidetalk-chat-input textarea { overflow: hidden; width: 100%; padding: 20px 50px 20px 25px; box-sizing: border-box; border: none; border-radius: 45px; outline: none; resize: none; font-size: 14px; font-weight: 500; line-height: 1.6; }
.sidetalk-panel-footer .sidetalk-chat-input #sidetalk-send-message-btn {position: absolute;right: 0px;bottom: unset;cursor: pointer;background: none;border: none;outline: none;}
.sidetalk-panel-footer .sidetalk-chat-input #sidetalk-send-message-btn img { width: 45px; width: 45px; }
.sidetalk-panel-footer .sidetalk-powered-by { text-align: center; }
.sidetalk-panel-footer .sidetalk-powered-by a { display: inline-block; padding-top: 15px; font-size: 13px; font-weight: 600; color: #999; text-decoration: none; }
.sidetalk-panel-footer .sidetalk-powered-by a:hover { color: #777; }

/**********************
* Tablet Area Under
* Max width : 768px
***********************/
@media screen and (max-width: 768px) { /* 채팅창 열기 버튼*/
.sidetalk-hide-btn { position: fixed; top: 36%; }

/* 패널 */
.sidetalk-side-panel { right: -100%; width: 100%; height: 100%; border-radius: 45px 0px 0px 45px; }
.sidetalk-panel-header .sidetalk-close-btn { right: 20px; }
.sidetalk-chat-history .sidetalk-message { font-size: 14px; }

/* 패널 풋터 */
.sidetalk-panel-footer { height: auto; padding: 10px 20px; }
 }