@charset "utf-8";
/*-------------------------------------------------------------------
    챗봇 (독립 팝업 화면 전용)
-------------------------------------------------------------------*/
html, body {height:100%;}
body {line-height:1.4; padding:0; margin:0; font-family:'Pretendard', sans-serif;}
*, *::before, *::after {box-sizing:border-box; font-family:'Pretendard', sans-serif;}
ul, ol, li {list-style:none; padding:0; margin:0;}
p {margin:0.5em 0;}
.blind {position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0,0,0,0);}

#chat {display:flex; align-items:center; justify-content:center; height:100%; font-size:16px;}
#chat > .in {position:relative; display:flex; flex-direction:column; width:100%; height:100%; overflow:hidden; background-color:#F1F1F1;}

/* 상단 */
#chat > .in > .head {flex-shrink:0; display:flex; align-items:center; height:55px; padding:0 20px; background-color:#1B3145; overflow: hidden;}
#chat > .in > .head > h1 {position:relative; padding-left:80px; margin:0; font-size:18px; font-weight:600; color:#fff;}
#chat > .in > .head > h1::before {
    content:""; position:absolute; top:-20px; left:0; width:70px; height:70px; background-repeat:no-repeat; background-position:center center; background-size:contain;
    background-image:url("../../../images/site/kor/sub/chatbot2.svg");
}

/* 대화 영역 */
#chat > .in > .midd {flex:1 1 0; min-height:0; overflow-y:auto; padding:20px 20px 32px; font-size:15px;}
#chat > .in > .midd::-webkit-scrollbar {width: 5px; border-radius: 100px; background: #ddd;}
#chat > .in > .midd::-webkit-scrollbar-thumb {width:5px; border-radius: 100px; background: #1B3145;}
#chat > .in > .midd > [class*="line-"] {display:flex; align-items:flex-start; gap:1rem; width:100%;}
#chat > .in > .midd > [class*="line-"] + [class*="line-"] {margin-top:20px;}
#chat > .in > .midd > [class*="line-"] > .head {display:flex; align-items:center; text-indent: -999px;}
#chat > .in > .midd > [class*="line-"] > .head::before {
    content:""; width:40px; height:40px; background-repeat:no-repeat; background-position:center center; background-size:contain;
    background-image:url("../../../images/site/kor/sub/chatbot1.svg");
}
#chat > .in > .midd > [class*="line-"] > .midd {
    max-width:100%; padding:16px 20px; border:1px solid #DDD; color:#111; background-color:#fff; border-radius:0 10px 10px 10px;
    box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.06);
}
#chat > .in > .midd > [class*="line-"] > .midd > .contents > p:first-child {margin-top:0;}
#chat > .in > .midd > [class*="line-"] > .midd > .contents > p:last-child {margin-bottom:0;}
#chat > .in > .midd > [class*="line-"] > .midd > .contents > strong{color:#0076A3; font-weight:500;}
#chat > .in > .midd > [class*="line-"] > .midd img {max-width:100%; height:auto;}
#chat > .in > .midd > [class*="line-"] > .midd table{width:100%; font-size:14px; font-weight:600; line-height:1.2; border-collapse:separate; border-spacing: 2px;}
#chat > .in > .midd > [class*="line-"] > .midd table tr{border-color:#fff;}
#chat > .in > .midd > [class*="line-"] > .midd table tbody{}
#chat > .in > .midd > [class*="line-"] > .midd table tbody th{padding:4px; background:#0076A3; color:#fff;}
#chat > .in > .midd > [class*="line-"] > .midd table tbody td{padding:6px 10px; background:#F1F1F1;}
#chat > .in > .midd > [class*="line-"] > .foot {display:none; width:100%; font-size:12px; color:rgba(17, 17, 17, 0.6);}

#chat > .in > .midd > .line-l > .midd{width:calc(100% - 50px);}
#chat > .in > .midd > .line-l > .foot{padding-left:50px;}

/* 사용자 말풍선 */
#chat > .in > .midd > .line-r {flex-direction: column; align-items:flex-end;}
#chat > .in > .midd > .line-r > .midd {max-width:100%; padding:6.34px 20px; margin:0; border-color:#0076A3; color:#fff; background-color:#0076A3; border-radius:10px 0 10px 10px;}
#chat > .in > .midd > .line-r > .foot {text-align:right;}

/* 답변 상세 - 버튼 */
#chat > .in > .midd .btn-wrap{display:flex; flex-wrap:wrap; gap:6px; margin-top:12px;}
#chat > .in > .midd .btn {
    display:inline-flex; align-items:center; justify-content:center; width:100%; height:38px; line-height:1; padding:0 8px; margin:0; cursor:pointer; text-align:center;
    text-decoration:none; font-weight:600; font-size:14px; border:1px solid #B5C8D8; color:#151515; background-color:#F2F9FF; border-radius:3px; word-break: keep-all;
}
/* #chat > .in > .midd .btn::after {content:""; width:24px; height:24px; margin-left:auto; background-repeat:no-repeat; background-position:center center; background-size:contain;}
#chat > .in > .midd .btn.icon-arrow::after {
    background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230076A3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
}
#chat > .in > .midd .btn.icon-link::after {
    background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230076A3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3C/svg%3E");
} */
#chat > .in > .midd .btn.icon-arrow{width:calc((100% - 6px) / 2);}
#chat > .in > .midd .btn-wrap:has(.btn.icon-arrow:nth-child(9)) .btn.icon-arrow{width:calc((100% - 12px) / 3);}
#chat > .in > .midd .btn.icon-link{height:40px; border-color:#0076A3; background:#fff;}
#chat > .in > .midd .btn + p {margin-top:1.5em;}

/* 답변 상세 - 셀렉트박스 */
#chat > .in > .midd select {
    display:block; width:100%; height:40px; padding:0 50px 0 20px; cursor:pointer; font-weight:500; font-size:14px;
    border:1px solid #ddd; background-color:#f9f9f9; border-radius:2px;
    background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%23151515' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 16px center;
    appearance:none; -webkit-appearance:none; -moz-appearance:none;
}
#chat > .in > .midd select::-ms-expand {display:none;}
#chat > .in > .midd select + p {margin-top:1.5em;}

/* 입력 영역 */
#chat > .in > .foot {flex-shrink:0; width:100%; padding:14px 20px; border-radius: 14px 14px 0 0; background-color:#fff; box-shadow: 0 -2px 4px 0 rgba(0, 131, 206, 0.06);}
#chat > .in > .foot .chatting{display:flex; align-items:center; height:47px; border-radius: 100px; border: 1.5px solid #EC6D3E; background:#fff; overflow: hidden;}
#chat > .in > .foot .chatting > input[type="text"] {width:100%; height:100%; padding:0 20px; margin:0; font-size:15px; border:none; outline:none;}
#chat > .in > .foot .chatting > button {
    flex-shrink:0; width:37px; height:37px; margin-right:5px;  padding:0; cursor:pointer; border:none; background-color:#EC6D3E; border-radius:50%;
    background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='M22 2 15 22l-4-9-9-4z'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:center center;
}
#chat > .in > .foot .chatting > button > span {position:absolute; opacity:0; font-size:0;}

#chat > .in .close{position:absolute; top:16px; right:20px; width:24px; height:24px; background-repeat:no-repeat; background-position:center center; background-size:contain; background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");}

/* 자동완성 - 입력줄(.foot 60px) 바로 위에 고정 */
.ui-autocomplete {
    position:absolute !important; top:auto !important; left:0 !important; width:100% !important; bottom:60px;
    max-height:220px; overflow-y:auto; font-size:14px; font-family:'Pretendard', sans-serif;
}
