html {
    background-color: #eee;
}

body {
    overflow: visible;
    background-color: #eee;
}

body.fixed {
    overflow: hidden;
}

/* 전체 컨텐츠 넓이 */
.chat_container {
    width: 94%;
    margin: 0 auto;
}

/* 스타일 코리안 채팅 넓이 필수 값 */
.chat_row {
    display: inline-block;
    margin-left: 52px;
}

/* 채팅 타이틀 */
.chatbot header {
    z-index: 1;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid #666;
    padding: 6px 0;
    background-color: #fff;
}

.chatbot header button {
    float: left;
    display: block;
    width: 22px;
    height: 17px;
    margin-top: 8px;
    margin-left: 10px;
    background: url(../images/back_btn.png) no-repeat top center;
    background-size: cover;
}

.chatbot header h1 {
    float: left;
    font-size: 18px;
    height: 30px;
    line-height: 30px;
    margin-left: 20px;
}

/* 채팅 탭 메뉴 */
.chatbot_nav {
    padding-top: 8px;
}

.chatbot_nav .nav {
    z-index: 1;
    position: fixed;
    left: 0;
    top: 43px;
    width: 100%;
    overflow: hidden;
    background-color: #fff;
}

.chatbot_nav .nav .nav_tab {
    float: left;
    width: 50%;
    text-align: center;
}

.chatbot_nav .nav .nav_tab a {
    display: inline-block;
    height: 54px;
    line-height: 54px;
    padding: 0 4px;
    color: #222;
    font-size: 16px;
}

.chatbot_nav .nav .nav_tab.on a {
    position: relative;
    font-weight: bold;
}

.chatbot_nav .nav .nav_tab.on a:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #ff0000;
}

.nav_tab_wrap {
    padding-bottom: 20px;
}

.tab_cont {
    display: none;
}

.tab_cont.on {
    display: block;
    padding-bottom: 46px;
}

/* 스타일코리안 채팅 */
#tab_customer {
    padding-top: 106px;
}

.bot_chat.first {

}

.bot_chat {
    margin-top: 3px;
}

.bot_chat > img {
    display: inline-block;
    position: absolute;
    width: 40px;
}

.bot_chat h4.admin_name {
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
}

.bot_chat.first p {
    border-radius: 0px 15px 15px 15px;
}

.bot_chat p {
    max-width: 370px;
    padding: 11px 15px;
    font-size: 15px;
    border: 1px solid #f3f3f3;
    border-radius: 15px;
    box-shadow: 1px 1px 1px #bcbcbc;
    color: #333;
    background-color: #fff;
    white-space: pre-line;
    word-break: break-all;
}

.bot_chat > .chat_row > p > a {
    font-size: 14px;
    text-decoration: underline;
    color: blue;
}

.bot_chat .select_menu {
    margin-top: 12px;
}

.bot_chat .select_menu a {
    display: inline-block;
    max-width: 370px;
    padding: 12px 41px;
    margin-bottom: 5px;
    font-size: 15px;
    border: 1px solid #ef2e49;
    border-radius: 15px;
    color: #ef2e49;
    background-color: #fff;
}

/* 유저 채팅 */
.user_chat {
    text-align: right;
    margin-bottom: 4px;
}

.user_chat.first {
    margin-top: 10px;
}

.user_chat.first p {
    border-radius: 15px 0px 15px 15px;
}

.user_chat > p {
    display: inline-block;
    max-width: 370px;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ef2e49;
    border-radius: 15px;
    box-shadow: 1px 1px 1px #bdbdbd;
    color: #fff;
    background-color: #ef2e49;
    white-space: pre-line;
    word-break: break-all;
}

/* 오더 리스트 */
.chat_order_item {
    margin-top: 12px;
}

.chat_order_item ul {
    position: relative;
    overflow: hidden;
    padding-bottom: 43px;
    max-height: 317px;
    border-radius: 5px;
    box-shadow: 1px 1px 1px #bcbcbc;
    background-color: #fff;
}

.chat_order_item ul.on {
    max-height: max-content;
    padding-bottom: 0;
}

.chat_order_item ul.on li:nth-child(5) {
    border-bottom: 1px solid #dadada;
}

.chat_order_item ul.on li:last-child {
    border-bottom: 0;
}

.chat_order_item li {
    overflow: hidden;
    width: 240px;
    height: 62px;
    max-height: 62px;
    border-bottom: 1px solid #dadada;
}

.chat_order_item li:nth-child(5) {
    border-bottom: 0;
}

.chat_order_item div {
    float: right;
    width: 77%;
    height: 63px;
    max-height: 63px;
}

.chat_order_item label {
    overflow: hidden;
    display: inline-block;
    position: absolute;
    width: 100%;
    height: 63px;
}

.chat_order_item label input[type=checkbox],
.order_item_list label input[type=checkbox] {
    display: none;
}

.chat_order_item label input[type=checkbox]:checked + i,
.order_item_list label input[type=checkbox]:checked + i {
    background-image: url(../images/check.png);
}

.chat_order_item label i {
    position: absolute;
    display: inline-block;
    left: 27px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 27px;
    background: url(../images/check2.png) left center no-repeat;
    vertical-align: middle;
    transition-duration: 0.3s;
}

.order_content h4 {
    margin-top: 11px;
    margin-bottom: 2px;
    font-size: 12px;
    color: #888;
}

.order_content p {
    margin: 0;
    padding: 0;
    color: #333;
    font-size: 15px;
    border: 0;
    box-shadow: none;
    white-space: normal;
}

.order_seeall {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100% !important;
    height: 45px !important;
    line-height: 45px;
    background-color: #fff;
}

.order_seeall.off {
    display: none;
}

.order_seeall button {
    display: block;
    width: 100%;
    height: 100%;
    font-size: 15px;
    border-top: 1px dashed #dadada;
    border-radius: 0 0 5px 5px;
    color: #333;
    background-color: #fff;
    text-align: center;
    outline: none;
}

/* 오더 아이템 리스트 */
.order_item_list {
    z-index: 999;
    position: fixed;
    left: 0;
    bottom: -100%;
    width: 100%;
    height: 80vh;
    border-radius: 16px 16px 0 0;
    background-color: #fff;
    transition: bottom .2s ease;
}

.order_item_list_bg {
    z-index: 1;
    position: fixed;
    left: 0;
    top: 100%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    transition: top .05s ease;
}

.order_item_list.on {
    bottom: 0;
    transition: bottom .6s ease;
}

.order_item_list_bg.on {
    top: 0;
    transition: top .05s ease;
}

.order_item_list_wrap {
    z-index: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    padding-top: 27px;
    border-radius: 16px 16px 0 0;
    background-color: #fff;
}

.close_item_list_btn {
    position: absolute;
    right: 16px;
    top: 25px;
}

.close_item_list_btn button {
    display: block;
    width: 30px;
    height: 30px;
    background: url(../images/close_item_list_btn.png) no-repeat center;
}

.order_item_list h2 {
    max-width: 90%;
    font-size: 17px;
    font-weight: bold;
}

.order_item_list .order_number {
    margin-top: 30px;
    margin-bottom: 19px;
    font-size: 17px;
    color: #888;
}

.order_item_list ul {
    overflow: scroll;
    width: 98%;
    height: 53vh;
    margin: 0 auto;
}

.order_item_list li {
    overflow: hidden;
    position: relative;
    height: 100px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 6px;
}

.order_item_list label {
    z-index: 0;
    overflow: hidden;
    display: inline-block;
    position: absolute;
    width: 100%;
    height: 102px;
}

.order_item_list label i {
    position: absolute;
    display: inline-block;
    left: 24px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 27px;
    background: url(../images/check2.png) left center no-repeat;
    vertical-align: middle;
    transition-duration: 0.3s;
}

.item_list_submitbtn {
    display: block;
    width: 100%;
    height: 44px;
    background-color: #ef2e49;
    color: #fff;
    font-size: 15px;
}

.item_list_submitbtn_no {
    background-color: #dedede;
}

.list_img {
    float: left;;
    width: 93px;
    height: 93px;
    margin-top: 3px;
    margin-left: 50px;
}

.list_img img {
    max-width: 93px;
    max-height: 93px;
}

.list_content {
    float: left;;
    width: 53%;
    margin-top: 19px;
    margin-left: 4px;
}

.list_content h4 {
    overflow: hidden;
    max-height: 51px;
    line-height: 17px;
    margin: 0;
    font-size: 15px;
    color: #333;
}

.list_content p {
    margin-top: 3px;
    font-size: 13px;
    color: #666;
}

/* 오더 리스트 아이템 문의 */
.user_item_wrap {
    display: inline-block;
    width: 300px;
    margin-top: 12px;
    border-radius: 10px;
    box-shadow: 1px 1px 1px #bcbcbc;
    background-color: #fcfcfc;
}

.user_item > h4 {
    height: 39px;
    line-height: 39px;
    margin: 0 auto;
    font-size: 15px;
    border-bottom: 1px solid #eee;
    border-radius: 10px 10px 0 0;
    color: #888;
    background-color: #fcfcfc;
    text-align: center;
}

.user_item_content {
    padding: 12px 0;
    border-bottom: 1px solid #dadada;
}

.user_item_content:last-child {
    border-bottom: 0;
}

.user_item_row {
    overflow: hidden;
    width: 96%;
    margin: 0 auto;
}

.user_item_name {
    float: left;
    width: 191px;
    margin-top: 17px;
    text-align: left;
}

.user_item_name h4 {
    overflow: hidden;
    max-height: 60px;
    font-size: 15px;
    color: #333;
}

.user_item_name p {
    font-size: 13px;
    color: #666;
}

.user_item_img {
    float: left;
    width: 95px;
    border: 1px solid #f3f3f3;
}

.item_edit {
    border-top: 1px dashed #dadada;
}

.item_edit button {
    display: block;
    width: 100%;
    height: 45px;
    line-height: 45px;
    font-size: 15px;
    border-radius: 10px;
    background-color: #fff;
    text-align: center;
    outline: none;
    color: #333;
}

/* 채팅창에 업로드 이미지 */
.upload_img {
    display: inline-block;
    overflow: hidden;
    width: 280px;
    height: 280px;
    margin-top: 12px;
    border-radius: 10px;
}

.upload_img {
    width: 280px;
    height: 100%;
}

.upload_img.three {
    width: auto;
    max-width: 280px;
    height: auto;
}

.upload_img.three img { /* 이미지 2개이상 3개 미만 addClass = 'three */
    float: left;
    display: inline-block;
    width: 91px;
    height: 91px;
    margin-right: 3px;
}

.upload_img.three img:last-child {
    margin-right: 0;
}

.upload_img.max {
    height: auto;
}

.upload_img.max img { /* 이미지 4개이상 7개미만 addClass = 'max' */
    float: left;
    display: inline-block;
    width: 138px;
    height: 138px;
    margin-right: 3px;
    margin-bottom: 3px;
}

.upload_img.max img:nth-child(2n) {
    margin-right: 0;
}

/* 업로드 파일 미리보기 */
.upload_file_view {
    z-index: 99;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #fff;
}

.upload_file_top {
    display: none;
    overflow: hidden;
    width: 94%;
    height: 54px;
    line-height: 54px;
    margin: 0 auto;
}

.upload_file_top.on {
    display: block;
}

.upload_file_top div {
    width: 25px;
    height: 25px;
    margin-top: 16px;
}

.upload_file_close {
    float: left;
}

.upload_file_send {
    float: right;
    margin-right: 6px;
}

.upload_file_top img {
    display: block;
}

.file_view_scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.file_view_scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

.file_view_scroll ul {
    overflow: hidden;
    width: 100%;
}

.file_view_scroll ul.long {
    width: max-content;
}

.file_view_scroll li {
    position: relative;
    float: left;
    width: 49.5%;
    height: 179px;
    margin-right: 3px;
}

.file_view_scroll li:last-child {
    margin-right: 0;
}

.file_view_scroll li.on {
    width: 48%;
    height: 173px;
    border: 3px solid #ef2e49;
}

.file_view_scroll li.small {
    width: 140px;
    height: 140px;
}

.file_view_scroll li.small.on {
    width: 134px;
    height: 134px;
}

.file_view_scroll li span {
    display: none;
    position: absolute;
    right: 6px;
    top: 6px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    background-color: #ff0000;
    color: #fff;
    border-radius: 50%;
    text-align: center;
}

.file_view_scroll li.on span {
    display: block;
}

.file_view_scroll li img {
    width: 100%;
    height: 100%;
}

/* 채팅 입력창 */
.chatbot_bottom {
    z-index: 1;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    min-height: 41px;
    padding-top: 4px;
    background-color: #fff;
}

.chatbot_submit form {
    overflow: hidden;
    display: block;
    width: 94%;
    margin: 0 auto;
}

.chatbot_submit label {
    float: left;
    display: inline-block;
    width: 25px;
    height: 25px;
    margin-top: 9px;
    margin-right: 6px;
    cursor: pointer;
    background: url('../images/plus_btn.png') no-repeat top center;
    background-size: cover;
}

.chatbot_submit input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.chatbot_submit div {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #dadada;
    border-radius: 20px;
    margin-top: 3px;
}

.chatbot_submit textarea {
    display: block;
    width: 84%;
    height: 31px;
    max-height: 110px;
    padding: 5px 20px 1px 4px;
    margin-left: 10px;
    font-size: 20px;
    border: 0;
    outline: 0;
    resize: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.chatbot_submit button {
    width: 30px;
    height: 30px;
    position: absolute;
    right: 4px;
    bottom: 8%;
    background: url('../images/Send_btn.png') no-repeat top center;
    background-size: cover;
    outline: none;
}

/* 히스토리 */
#tab_history {
    min-height: 72vh;
    max-height: auto;
    margin-bottom: 40px;
    padding-top: 84px;
}

.history_wrap {
    padding-bottom: 20px;
}

.history {
    position: relative;
    margin-bottom: 8px;
    padding: 18px 0;
    box-shadow: 3px 3px 3px #dadada;
    border-radius: 5px;
    background-color: #fff;
    font-size: 15px;
}

.history_row {
    width: 92%;
    margin: 0 auto;
}

.history_detail {
    position: absolute;
    right: 16px;
    top: 64px;
    width: 25px;
}

.history_date {
    margin-bottom: 10px;
    color: #ee2f49;
}

.history_date span {

}

.history ul li {
    overflow: hidden;
    line-height: 22px;
    color: #333;
}

.history ul li span {
    overflow: hidden;
    display: inline-block;
    float: left;
}

.history ul li span:last-child {
    display: inline-block;
    width: 230px;
    margin-left: 6px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .chatbot_submit button {
        top: 7%;
    }

    .chatbot_submit textarea {
        width: 89%;
    }
}

@media (max-width: 414px) {
    .chatbot_submit textarea {
        width: 79%;
    }
}

@media (max-width: 380px) {
    .chatbot_submit button {
        top: 9%;
    }

    .bot_chat .select_menu a {
        padding: 12px 32px;
    }
}