/* chatbot */
.frm-chatbot.chatbot .frm-chatbot-header {border-top-left-radius:3.2rem;border-top-right-radius:3.2rem;background-color:#5D5FEF;color:#fff;display:flex;padding:0 4rem;height:9.6rem;align-items:center;gap:3.2rem;}
.frm-chatbot.chatbot .frm-chatbot-header h1 {width:9rem;margin-top:0;}
.frm-chatbot.chatbot .frm-chatbot-header p {font-size:1.6rem;font-weight:600;line-height:1.3;}

@supports (-webkit-touch-callout: none) {.frm-chatbot.chatbot {height: -webkit-fill-available;min-height: -webkit-fill-available;}}
.frm-chatbot.chatbot .frm-chatbot-footer {background-color:#F9F9FF;height:auto;border-top: 0.1rem solid #E3E2F2;padding: 1.6rem 1.8rem 2rem 2.8rem;gap: 1.2rem;z-index: 100;}

/* 3. 입력창 영역 수정 */
.frm-chatbot.chatbot .frm-chatbot-footer {
    
    /* 수정되는 속성 */
    position: fixed; /* sticky 대신 fixed 사용 */
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    min-height: 7.2rem; /* 최소 높이 설정 */
    padding-bottom: calc(1.6rem + env(safe-area-inset-bottom)); /* iOS 안전영역 고려 */    
}

.frm-chatbot.chatbot .frm-chatbot-footer input {background-color: #ffffff;outline: 0;font-size: 1.8rem;width: calc(100% - 5.6rem);border: 1px solid #ccc;border-radius: 5px;height: 4rem;padding-left: 0.5rem;padding-right: 0.5rem;line-height: 1.5;font-size: 16px;}
.frm-chatbot.chatbot {display: flex;flex-direction: column;height: 100vh;height: -webkit-fill-available;}
.frm-chatbot.chatbot .frm-chatbot-content {flex: 1;overflow-y: auto;-webkit-overflow-scrolling: touch;}
  
.frm-chatbot.chatbot .frm-chatbot-body {padding:2.8rem;display:flex;flex-direction:column;/*gap:3.4rem;*/max-height:calc(100vh - 18rem);min-height: calc(100vh - 18rem);}

.frm-chatbot.chatbot .frm-chatbot-body::-webkit-scrollbar {position:absolute;width:1.2rem;height:1.2rem;background-color:transparent;}
.frm-chatbot.chatbot .frm-chatbot-body::-webkit-scrollbar-track {background-color:transparent;}
.frm-chatbot.chatbot .frm-chatbot-body::-webkit-scrollbar-thumb {background-color:rgba(0, 0, 0, 0.2);border-radius:.8rem;background-clip:padding-box;border:.3rem solid transparent;}
.frm-chatbot.chatbot .frm-chatbot-body::-webkit-scrollbar-corner {background-color:transparent;}

.frm-chatbot.chatbot .btn-chat {max-width:4.4rem;max-height:4.4rem;min-width:4.4rem;min-height:4.4rem;background:#111 url(../images/common/btn-chat.svg) no-repeat 50% 50% / 2.4rem;padding:2.4rem;border-radius:50%;}


.frm-chatbot {position:fixed;width:100%;height:100%;top:0;left:0;z-index:100;align-items:center;justify-content:center;display:none;overflow:hidden;padding:1.6rem;}
.frm-chatbot[data-layer-current=false] .frm-chatbot-dim {opacity:0;}
.frm-chatbot[data-state=show] {display:flex;}
.frm-chatbot[data-state=hide] {display:flex;}
.frm-chatbot-dim {position:absolute;width:100%;height:100%;z-index:0;background-color:rgba(0, 0, 0, 0.8);animation-name:dim_show;animation-delay:0.1s;animation-duration:0.3s;animation-iteration-count:1;animation-fill-mode:backwards;}
.frm-chatbot-wrap {position:relative;display:flex;flex-direction:column;padding:0;background-color:#fff;border-radius:3.2rem;z-index:1;max-width:100%;border:1px solid #E3E2F2}
.frm-chatbot-header {position:relative;min-height:8.4rem;width:100%;padding:1.6rem 2.4rem;display:flex;align-items:center;border-bottom:.1rem solid #E3E2F2;font-size:2.4rem;font-weight:600;color:#343434;}
.frm-chatbot-header h1 {font-size:2.4rem; width:100%; text-align:center;}
.frm-chatbot-body {position:relative;width:100%;padding:1.6rem 0;max-height:calc(100vh - 20rem);overflow-y:auto;-webkit-overflow-scrolling:touch;}
.frm-chatbot-body::-webkit-scrollbar {height:1.2rem;width:1.2rem;}
.frm-chatbot-body::-webkit-scrollbar-track {border-radius:999em;background-color:transparent}
.frm-chatbot-body::-webkit-scrollbar-thumb {width:.4rem;border-radius:999em;background-color:#D9D9D9;border:.4rem solid transparent;background-clip:content-box;}
.frm-chatbot-body::-webkit-scrollbar-button:vertical:end:decrement {display:block;width:3rem;}
.frm-chatbot-footer {position:relative;width:100%;display:flex;align-items:center;justify-content:center;height:6.4rem;gap:0;overflow:hidden;border-bottom-left-radius:3.2rem;border-bottom-right-radius:3.2rem;}
.frm-chatbot-footer button {flex:1;height:6.4rem;font-size:2rem;font-weight:700;border-radius:0;border:0;}
.frm-chatbot-footer .btn-color-gray ~ .btn-color-gray {border-left:1px solid #E3E2F2}
.frm-chatbot-close {position:absolute;top:50%;right:1.6rem;display:flex;justify-content:center;align-items:center;width:3rem;height:3rem;transform:translate(0,-50%);}
.frm-chatbot-last {width:3rem;height:3rem;position:fixed;bottom:-4rem;left:50%;margin-left:-1.5rem;background-color:var(--gray_100);color:var(--gray_0);border-radius:50%;transition:bottom 0.2s ease-in, opacity 0.2s ease;opacity:0;}
.frm-chatbot-last:focus {bottom:0.8rem;opacity:1;}

.chat-bot {margin-top: 3rem;}
.chat-user {margin-top: 3rem}

.chat-bot.loader{display: none;}
.chat-bot.loader.on{display: block;}

.frm-chatbot.chatbot .header-logo {
    font-family:'ASDNeo';
    font-size:3.2rem;
    font-weight:900;
    color:transparent;
    width:9.4rem;
    height:4.2rem;
    letter-spacing:-0.11rem;
    background-repeat:no-repeat;
    background-image:url(../images/common/logo-h.png);
    background-size: 6.8rem;
    background-position: center;
    line-height:1;
    margin-top:2.4rem;
    text-decoration:none;
    border-radius: 6rem;
    background-color: #3F3F3F;
}

.frm-chatbot.theme-dark .frm-chatbot-header {background-color: #2f2f2f;}
.frm-chatbot.theme-dark .frm-chatbot-header p {color: #c0c0c0;}
.frm-chatbot.theme-dark .frm-chatbot-body {background-color: #424242; border-color: #2f2f2f}
.frm-chatbot.theme-dark .chat-bot .chat-balloon {color:#e1e1e1; background-color: #2f2f2f; border : 1px solid #2f2f2f;}
.frm-chatbot.theme-dark .chat-user .chat-balloon {color:#e1e1e1; background-color: #5F6499; border : 1px solid #5F6499;}
.frm-chatbot.theme-dark .chat-bot .chat-balloon::before { background: url(../images/common/ico_pointer.png) no-repeat 0 0 / 2.6rem;}
.frm-chatbot.theme-dark .chat-user .chat-balloon::before { background: url(../images/common/ico_pointer_blue.png) no-repeat 0 0 / 2.6rem;}
.frm-chatbot.theme-dark .chat-date {color:#E1E1E1;}
.frm-chatbot.theme-dark .frm-chatbot-header {border-bottom: none;}
.frm-chatbot.theme-dark .frm-chatbot-wrap {border: none;}
.frm-chatbot.theme-dark .frm-chatbot-footer {background-color: #2F2F2F;border-top: .1rem solid #2F2F2F;}
.frm-chatbot.theme-dark .frm-chatbot-footer input {color: #E1E1E1}
.frm-chatbot.theme-dark .notification-text {color:#c0c0c0;}
.frm-chatbot.theme-dark .chat-bot::before {background: #F4F3F8 url(../images/common/ico_chatbot_blue.png) no-repeat 50% 50% / 4rem;}

.frm-chatbot.theme-orange .frm-chatbot-header {background-color: #FFAE38;}
.frm-chatbot.theme-orange .chat-bot::before {background: #F4F3F8 url(../images/common/ico_chatbot_orange.png) no-repeat 50% 50% / 4rem;}

.frm-chatbot.theme-purple .frm-chatbot-header {background-color: #B95FDF;}
.frm-chatbot.theme-purple .chat-bot::before {background: #F4F3F8 url(../images/common/ico_chatbot_purple.png) no-repeat 50% 50% / 4rem;}

.frm-chatbot.theme-green .frm-chatbot-header {background-color: #23CCDB;}
.frm-chatbot.theme-green .chat-bot::before {background: #F4F3F8 url(../images/common/ico_chatbot_green.png) no-repeat 50% 50% / 4rem;}

.frm-chatbot.theme-tree .frm-chatbot-header {
    background-color: #2E8B57;
    background-image: url(../html/img/backgroundTree.jpeg); 
    background-repeat: no-repeat;
    background-position: center;
}
.frm-chatbot.theme-tree .chat-bot::before {background: #F4F3F8 url(../images/common/ico_chatbot_tree.png) no-repeat 50% 50% / 4rem;}

.frm-chatbot.chatbot .frm-chatbot-body {padding: 2rem 2.8rem calc(6.4rem + env(safe-area-inset-bottom)) 2.8rem;max-height: calc(100vh - 15rem);min-height: calc(100vh - 15rem);overflow-y: auto;-webkit-overflow-scrolling: touch;}
.chat-bot, .chat-user {margin-bottom: 2rem;}
.frm-chatbot.chatbot {padding-bottom: env(safe-area-inset-bottom);}
.chat-bot:last-child, 
.chat-user:last-child {margin-bottom: calc(1.6rem + env(safe-area-inset-bottom));}


@supports (-webkit-touch-callout: none) {
.frm-chatbot.chatbot {min-height: -webkit-fill-available;}
.frm-chatbot.chatbot .frm-chatbot-body {padding-bottom: calc(11rem + env(safe-area-inset-bottom));}}

.notification-text{
    margin-top: -10px;
    margin-bottom: -30px;
}





