@charset "UTF-8";

/* 챗봇 아이콘 */
.chatbotIcon {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 3px 10px 14px rgba(0,0,0,16%);
    z-index: 1000;
    border-radius: 100%;
}
.chatbotWrap {
    position: fixed;
    bottom: 124px;
    right: 40px;
    width: 360px;
    height: 640px;
    background: #fff;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 3px 10px 14px rgba(0,0,0,16%);
    overflow: hidden;
    z-index: 1000;
}
.hidden { display: none !important; }
.chatbotHeader {
    background: #4365EA;
    padding: 0 16px;
    height: 58px;
    display: flex;
    justify-content: right;
    align-items: center;
}
.chatbotHeader .closeBtn{
    width: 32px;
    height: 32px;
}
.chatbotHeader .closeBtn img{
    width: 100%;
}
.chatbotContent {
    flex: 1;
    padding: 24px 16px;
    background: #fff;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
}
.chatbotContent .chatNotice{
    font-size: 12px;
    color: #9e9e9e;
    text-align: center;
    line-height: 1.3;
}

.botMsg, .sendMsg{
    max-width: 95%;
    display: flex;
    align-items: flex-end;
}
.botMsg::before{
    content: '';
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-block;
    align-self: flex-start; 
    margin-bottom: auto; 
    margin-right: 8px;
    background: url("../images/ico_bot.png") no-repeat center / 32px auto;
}
.botMsg .msgBox{
    width: calc(100% - 70px);
    padding:12px 16px;
    background-color:#F5F6F8;
    border-radius: 0 20px 20px 20px;
}
.botMsg .msgBox span{
    font-size: 14px;
    letter-spacing: -0.05rem;
    font-weight: 500;
    line-height: 1.3;
}
.botMsg .chatTime{
    font-size: 10px;
    color: #9e9e9e;
    margin-left: 4px;
}
.suggestBtnGroup {
    margin-top: 10px;
}
.suggestBtnGroup .suggestBtn {
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    transition: 0.2s;
    margin-bottom: 4px;
    box-shadow:0 1px 2px rgba(0,0,0,12%);
}
.suggestBtnGroup .suggestBtn:last-child{
    margin-bottom: 0 !important;
}
.suggestBtn:hover {
    background: #4365EA;
    color: #fff;
}
.sendMsg{
    justify-content: right;
    flex-direction: row-reverse;
}
.sendMsg .msgBox{
    background-color: #4365EA;
    border-radius: 20px 0 20px 20px;
    padding: 12px 16px;
    width: calc(100% - 40px);
}
.sendMsg .msgBox span{
    color: #fff;
    font-size: 14px;
    letter-spacing: -0.05rem;
    font-weight: 500;
    line-height: 1.3;
}
.sendMsg .chatTime{
    font-size: 10px;
    color: #9e9e9e;
    margin-right: 4px;
}

/* 입력창 영역 */
.chatbotInputArea {
    padding: 13px 16px;
    display: flex;
    align-items: center;
    background: #EEF4FF;
    gap: 8px;
}
.chatbotInputArea .chatInput {
    width: 100%;
    height: 42px;
    border-radius: 50px;
    border: none;
}
.chatbotInputArea .chatInput:focus{
    outline: none;
}
.chatbotInputArea .sendBtn {
    cursor: pointer;
    width: 42px;
    height: 42px;
}

@media screen and (max-width: 480px) {
    .chatbotIcon {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .chatbotWrap {
        bottom: 80px;
        right: 5%;
        width: 90%; 
        height: 70vh;
    }
    
}