/*-----------------------------------------
    layout
-------------------------------------------*/
.container {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    font-size: 100%;
    vertical-align: baseline;
}

.chat-wrap {
    width: 100%;
    height: 100%;
    padding-top: 46px;
    padding-bottom: 51px;
    position: absolute;
}

/*.foot { background: url(../img/bg04.png) no-repeat bottom; height: 61px;}*/
/*-----------------------------------------
    chat-header
-------------------------------------------*/
.chat-header {
    width: 100%;
    margin: 0 auto;
    font-size: 100%;
    vertical-align: baseline;
    background: #e3edfa;
    padding: 10px 10px;
    border-bottom: 2px solid white;
    position: absolute;
    z-index: 10;
}

.chat-header .chat-about {
    margin-top: 0;
    float: left;
    padding-left: 0;
}

.chat-header .chat-with {
    font-weight: bold;
    font-size: 16px;
    height: 25px;
    background: url(/images/citizen/i-chat.png) no-repeat 0 5px;
    padding-left: 25px;
    padding-top: 3px;
    color: #333;
}

.chat_userinfo {
    font-weight: normal;
    font-size: 10pt;
}


/** 20240806 사이트점검 **/
.chat-header .layer_close {
    -webkit-appearance: none;
    padding: 0;
    cursor: pointer;
    background: 0 0;
    border: 0;
    float: right;
    font-size: 24px;
    font-weight: 700;
    line-height: 0.8;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .6;
    margin-top: -2px;
    height: 26px;
    width: 26px;
    display: block;
    position: absolute;
    right: 5px;
    top: 0;
}

.chat-header .layer_close:hover {
    opacity: .9;
}

.chat-header .layer_close:before {
	content: 'x';
	font-size: 16px;
	font-weight: 500;
	line-height: .7;
}




/*-----------------------------------------
    container
-------------------------------------------*/
.chat-wrap .chat {
    background: #f2f5f9;
    padding: 20px 15px 10px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
    text-align: left;
}

.message li {
    -webkit-transition: all .5s;
    transition: all .5s;
    position: relative;
    display: block;
}

.message li:after, .message li:before {
    content: "";
    clear: both;
    display: block;
}

/*.message li.bot { float: left;}*/
/*.message li.user { float: right;}*/
.message li.bot .avata {
    width: 47px;
    height: 47px;
    background: url(/images/citizen/chat/admin.png) no-repeat;
    float: left;
    position: absolute;
    top: 0;
    left: 0;
}

.message li.bot .name {
    font-size: 12px;
    font-weight: bold;
    margin-left: 56px;
    padding-top: 3px;
}

.message li .bubble {
    clear: both;
    border-radius: 10px;
    font-size: 14px;
    padding: 12px;
    position: relative;
    max-width: 300px;
    line-height: 1.4;
}

/* .message li.bot .bubble { margin: 11px 0 20px 56px; border: 1px solid #d8d6d6;  background: #fff; float: left; position: relative; } */
.message li.bot .bubble {
    margin: 11px 0 40px 56px;
    border: 1px solid #d8d6d6;
    background: #fff;
    float: left;
    position: relative;
}

.message li.bot .bubble .b-tail {
    background: url(/images/citizen/chat/bubbletail_white.png) no-repeat;
    width: 18px;
    height: 20px;
    position: absolute;
    top: -8px;
    left: -5px;
    z-index: 10;
}

/* .message li.bot .time {font-size: 11px;color: #999898;position: absolute;bottom: 0;right: -10px;bottom: -30px;} */
.message li.bot .time {
    font-size: 11px;
    color: #999898;
    position: absolute;
    /* bottom: 0; */
    right: 0px;
    bottom: -30px;
}

.message li.user .bubble {
    background: #ec565e;
    color: #fff;
    float: right;
    margin-bottom: 20px;
}

.message li.user .bubble .b-tail {
    background: url(/images/citizen/chat/bubbletail_red.png) no-repeat;
    width: 18px;
    height: 20px;
    position: absolute;
    top: -7px;
    right: -4px;
    z-index: 10;
}

/** 20240805 사이트점검 **/
.message li.user .time {
    font-size: 11px;
    color: var(--color-gray);
    position: absolute;
    bottom: 0;
    left: -60px;
}


.write-form {
    box-sizing: border-box;
    height: 51px;
    border-top: 1px solid #e3edfa;
    background: #fff;
    margin: 0;
    width: 100%;
    padding-right: 70px;
    position: relative;
}

.write-form textarea {
    box-sizing: border-box;
    margin: 5px 0 5px 5px;
    width: 100%;
    height: 41px;
    outline: none;
    padding: 10px;
    border: none;
    resize: none;
    line-height: 1.4;
    font-size: 13px;
    overflow: hidden;
}

#textarea-b::-webkit-input-placeholder {
    color: #825e68;
    font-size: 13px;
    font-weight: 200;
}

#textarea-b::-moz-input-placeholder {
    color: #825e68;
    font-size: 13px;
    font-weight: 200;
}

#textarea-b:-moz-input-placeholder {
    color: #825e68;
    font-size: 13px;
    font-weight: 200;
}

#textarea-b:-ms-input-placeholder {
    color: #825e68;
    font-size: 13px;
    font-weight: 200;
}

#textarea-b:focus::-webkit-input-placeholder {
    color: transparent;
}

#textarea-b:focus::-moz-input-placeholder {
    color: transparent;
}

#textarea-b:focus:-moz-input-placeholder {
    color: transparent;
}

#textarea-b:focus:-ms-input-placeholder {
    color: transparent;
}

.write-form .send {
    width: 62px;
    height: 39px;
    background: #544f4f;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: normal;
    text-align: center;
    line-height: 39px;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 5px;
}

.message li.bot .bubble img {
    max-width: 270px!important;
}

.message li.bot .bubble table {
    border-collapse: collapse;
    width: 100%;
    margin: 5px 0;
}

.message li.bot .bubble table th, .message li.bot .bubble table td {
    border: 1px solid black;
    text-align: center;
    font-size: 12px;
}

.message li.bot .bubble table th {
    font-weight: 400;
    background: #eaeaea;
}
