#ai_chat__wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.5);
    z-index: 9999999;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

#ai_chat__wrap .ai_chat__content {
    width: 800px;
    height: 90%;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 20px 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between
}

@media screen and (max-width: 768px) {
    #ai_chat__wrap .ai_chat__content {
        width:100%;
        margin: 0 5px;
        height: 75%
    }
}

#ai_chat__wrap .ai_chat__content i.xi-close {
    display: block;
    margin-left: auto;
    margin-bottom: 10px;
    margin-right: 10px
}

@media screen and (max-width: 768px) {
    #ai_chat__wrap .ai_chat__content i.xi-close {
        font-size:25px
    }
}

#ai_chat__wrap .ai_chat__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 50px
}

@media screen and (max-width: 768px) {
    #ai_chat__wrap .ai_chat__list {
        -webkit-box-flex:1;
        -ms-flex: 1;
        flex: 1;
        overflow-y: scroll
    }
}

#ai_chat__wrap .ai_chat__list .chat-box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex
}

#ai_chat__wrap .ai_chat__list .chat-box .chat-item {
    position: relative;
    max-width: 100%
}

#ai_chat__wrap .ai_chat__list .chat-box .chat-item__img {
    position: absolute;
    top: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #26b65f;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    overflow: hidden;
    -o-border-radius: 50%;
    border: 1px solid #eee
}

#ai_chat__wrap .ai_chat__list .chat-box .chat-item__img img {
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    height: 100%
}

#ai_chat__wrap .ai_chat__list .chat-box .chat-item__content {
    margin-top: 30px;
    padding: 12px;
    border-radius: inherit;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px
}

#ai_chat__wrap .ai_chat__list .chat-box .chat-item__content p {
    margin: 0 0 20px;
    line-height: 1.5
}

#ai_chat__wrap .ai_chat__list .chat-box .chat-item__content p:first-child {
    margin: 0
}

#ai_chat__wrap .ai_chat__list .chat-box .chat-item__content p:nth-child(2) {
    margin-top: 20px
}

#ai_chat__wrap .ai_chat__list .chat-box .chat-item__content * {
    font-size: 15px;
    font-family: sans-serif
}

#ai_chat__wrap .ai_chat__list .chat-box .chat-item__content .hljs-copy-button {
    font-size: 12px;
    font-weight: bold
}

#ai_chat__wrap .ai_chat__list .chat-box--user {
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end
}

#ai_chat__wrap .ai_chat__list .chat-box--user .chat-item__img {
    right: 0
}

#ai_chat__wrap .ai_chat__list .chat-box--user .chat-item__content {
    background-color: #fefefe;
    margin-right: 35px;
    border: 2px solid #eee;
    margin-left: 35px
}

#ai_chat__wrap .ai_chat__list .chat-box--ai {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    justify-content: flex-start
}

#ai_chat__wrap .ai_chat__list .chat-box--ai .chat-item__img {
    left: 0
}

#ai_chat__wrap .ai_chat__list .chat-box--ai .chat-item__content {
    background-color: #ecf0f9;
    color: #333;
    margin-left: 35px;
    border: 2px solid #ecf0f9;
    margin-right: 35px
}

#ai_chat__wrap.off {
    display: none
}

.ai_chat__content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 12px
}

.ai_chat__content::-webkit-scrollbar {
    width: 8px;
    background: #eee;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px
}

.reply_form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    position: relative;
    margin: 0 auto
}

.reply_form>.reply_text_box {
    width: 100%;
    border: 2px solid #26b65f;
    border-radius: 10px;
    padding: 10px 15px
}

.reply_form>.reply_text_box>textarea {
    border: none !important;
    resize: none;
    font-size: 15px;
    line-height: 1.1;
    font-family: Noto Sans KR;
    font-weight: 700;
    width: 100%;
    padding-right: 40px;
    display: inline;
    overflow: hidden;
    vertical-align: middle
}

.reply_form>.reply_text_box>textarea::-webkit-input-placeholder {
    line-height: 100px;
    text-align: center;
    padding-right: 0;
    font-size: 18px;
    color: #26b65f
}

@media screen and (max-width: 768px) {
    .reply_form>.reply_text_box>textarea::-webkit-input-placeholder {
        line-height:90px;
        position: relative;
        left: 10px
    }
}

.reply_form>.reply_text_box>textarea:focus {
    outline: none
}

.reply_form>.reply_text_box>textarea:disabled {
    background-color: inherit
}

.reply_form>#reply::-webkit-scrollbar {
    display: none
}

.reply_form #reply_ai_icon {
    position: absolute;
    right: 10px;
    bottom: 7px;
    cursor: pointer
}

.reply_form .list_top#reply_ai_icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 0 5px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border: 1px solid #26b65f;
    color: #757575;
    font-weight: 700;
    border-radius: 12px;
    padding: 3px 5px
}

.hljs-copy-wrapper {
    position: relative;
    margin-top: 33px;
    border-radius: 5px
}

.hljs-copy-wrapper .hljs-copy-button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: absolute;
    border: none;
    width: 100%;
    top: -25px;
    left: 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    text-align: right;
    height: 25px;
    background: #343541;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding-right: 15px;
    border-bottom: 1px solid #555;
    color: #fff;
    cursor: pointer
}

.hljs-copy-wrapper .hljs-copy-alert {
    display: none
}

.hljs-copy-wrapper .hljs::-webkit-scrollbar {
    width: 7px;
    height: 8px
}

.hljs-copy-wrapper .hljs::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: #282c34
}

.hljs-copy-wrapper .hljs::-webkit-scrollbar-thumb {
    border-radius: 12px;
    background: #aaa
}

.hljs-copy-wrapper .hljs::-webkit-scrollbar-thumb:hover {
    background: #ccc
}

.anonymous_checkbox {
    position: absolute;
    bottom: 7px;
    left: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0 5px
}

.secret_checkbox {
    position: absolute;
    bottom: 7px;
    left: 90px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0 5px
}

#ai_chat__modal_close { cursor:pointer; }