@charset "UTF-8";
/*
    [제목] 핀업 채팅 CSS (front-freechat 이식)
    [생성일] 2026-03-26
    [내용] front-freechat의 view.css, popup.css, common.css에서
           채팅 관련 스타일만 추출하여 .finup-chat 네임스페이스로 격리
    [비고] finance 기존 CSS와 충돌 방지를 위해 모든 선택자에 .finup-chat 접두 적용
*/

/* ============================================================
   1. 공통 유틸리티 (common.css 에서 채팅 컴포넌트가 사용하는 것만)
   ============================================================ */

/* 마진 유틸리티 */
.finup-chat .mt0 { margin-top:0px !important; }
.finup-chat .mt5 { margin-top:5px !important; }
.finup-chat .mt10 { margin-top:10px !important; }
.finup-chat .mt15 { margin-top:15px !important; }
.finup-chat .mt20 { margin-top:20px !important; }
.finup-chat .mt25 { margin-top:25px !important; }
.finup-chat .mt30 { margin-top:30px !important; }
.finup-chat .mt40 { margin-top:40px !important; }
.finup-chat .mb10 { margin-bottom:10px !important; }
.finup-chat .mb20 { margin-bottom:20px !important; }
.finup-chat .mb40 { margin-bottom:40px !important; }

/* 텍스트 */
.finup-chat .cm_txt { font:500 15px/22px 'Noto Sans KR'; }
.finup-chat .cm_color_navy { color:#2e2e72 !important; }
.finup-chat .txt_center { text-align:center !important; }

/* 썸네일 래퍼 */
.finup-chat .cm_thumb_wrap { display:block; position:relative; background:#f1f2f4; overflow:hidden; }
.finup-chat .cm_thumb_wrap img { display:block; width:100%; height:100%; }

/* 버튼 — 라인 */
.finup-chat .cm_btn_line { display:block; background:#fff; border:1px solid #ddd; color:#222; font:600 20px/50px 'Noto Sans KR'; text-align:center; cursor:pointer; }
.finup-chat .cm_btn_line.gray { border:1px solid #ddd; }
.finup-chat .cm_btn_line .im { margin:-4px 0 0 5px; font-size:95%; vertical-align:middle; }

/* 버튼 — 배경 */
.finup-chat .cm_btn_bg { display:block; border:0; background:#ff7500; color:#fff; font:600 20px/50px 'Noto Sans KR'; text-align:center; cursor:pointer; }
.finup-chat .cm_btn_bg .im { margin:-4px 0 0 5px; font-size:95%; vertical-align:middle; }
.finup-chat .cm_btn_bg.black { background:#222; }
.finup-chat .cm_btn_bg.gray { background:#ededed; color:#999; }
.finup-chat .cm_btn_bg.navy { background:#2e2e72; color:#fff; }
.finup-chat .cm_btn_bg.gr_or { background:#ff7500; background-image:linear-gradient(to right, #ff7500, #e8373d); }

/* no-select */
.finup-chat .no-select {
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
}

/* 스크롤바 숨김 (채팅 내부) */
.finup-chat { -ms-overflow-style:none; scrollbar-width:none; }
.finup-chat ::-webkit-scrollbar { display:none; }


/* ============================================================
   2. 팝업 공통 (common.css → cm_popup_wrap, cm_popup_webchat)
   ============================================================ */

.finup-chat .cm_popup_wrap { position:fixed; top:0; left:0; width:100%; height:100%; padding:0 15px; z-index:1001; word-break:keep-all; }
.finup-chat .cm_popup_wrap.bg { background:rgba(0,0,0,0.8); }
.finup-chat .cm_popup_wrap.bg > .btn_close { position:absolute; right:15px; top:15px; width:32px; height:32px; color:#fff; text-align:center; }
.finup-chat .cm_popup_wrap.bg > .btn_close .im { font-size:24px; line-height:32px; }

.finup-chat .cm_popup_wrap .popup_wrap { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:420px; height:auto; padding:12px 20px 30px 20px; background:#fff; border-radius:8px; overflow:hidden; }
.finup-chat .cm_popup_wrap .popup_wrap .popup_top { position:relative; height:auto; padding:0 3px 10px 0; border-bottom:2px solid #222; font-size:25px; line-height:36px; font-weight:600; }
.finup-chat .cm_popup_wrap .popup_wrap .popup_top .btn_close { position:absolute; right:0 !important; top:50% !important; transform:translateY(-50%) !important; -webkit-transform:translateY(-50%) !important; width:32px; height:32px; border:0; background:url('/Images/common/ic_close_b.png') no-repeat center / 16px !important; text-align:center; cursor:pointer; font-size:0; color:transparent; overflow:hidden; }
.finup-chat .cm_popup_wrap .popup_wrap .popup_top .btn_close .im { font-size:24px; line-height:32px; }
.finup-chat .cm_popup_wrap .popup_wrap .popup_desc { overflow:hidden; overflow-y:auto; }
.finup-chat .cm_popup_wrap .popup_wrap .popup_desc .txt { font-size:15px; line-height:22px; word-break:keep-all; }
.finup-chat .cm_popup_wrap .popup_wrap .popup_btn { width:100%; overflow:hidden; text-align:center; }
.finup-chat .cm_popup_wrap .popup_wrap .popup_btn .cm_btn_bg { float:left; }
.finup-chat .cm_popup_wrap .popup_wrap .popup_btn.center .cm_btn_bg { float:none !important; width:100% !important; height:45px; margin:0 !important; }
.finup-chat .cm_popup_wrap .popup_wrap .cm_btn_line { border-radius:5px; font-size:18px; text-align:center; }
.finup-chat .cm_popup_wrap .popup_wrap .cm_btn_bg { border-radius:5px; font-size:18px; text-align:center; }
.finup-chat .cm_popup_wrap .popup_wrap .btn_reset { width:calc(50% - 5px); height:45px; margin-right:10px; border:1px solid #ddd; background-color:#fff; color:#222; font-weight:600; font-size:18px; line-height:44px; }
.finup-chat .cm_popup_wrap .popup_wrap .btn_submit { width:calc(50% - 5px); height:45px; font-weight:600; font-size:18px; line-height:45px; }

/* 웹챗 전용 팝업 */
.finup-chat .cm_popup_webchat { position:fixed; top:0; left:0; width:100%; height:100%; padding:0 15px; z-index:1001; word-break:keep-all; }
.finup-chat .cm_popup_webchat.bg { background:rgba(0,0,0,0.4); }
.finup-chat .cm_popup_webchat .popup_wrap { position:relative; top:50%; left:50%; transform:translate(-50%,-50%); width:360px; height:auto; padding:25px; border-radius:15px; background:#fff; box-shadow:2px 2px 5px rgba(0,0,0,0.2); }
.finup-chat .cm_popup_webchat .popup_wrap > h2 { font-weight:bold; }
.finup-chat .cm_popup_webchat .btn_close { position:absolute; right:0; top:-42px; width:32px; height:32px; color:#fff; text-align:center; }
.finup-chat .cm_popup_webchat .btn_close .im { font-size:24px; line-height:32px; }
.finup-chat .cm_popup_webchat .box_btn .cm_btn_bg { display:block; max-width:260px; height:40px; padding:9px; margin:0 auto; border-radius:20px; font-size:15px; font-weight:600; line-height:22px; text-align:center; }
.finup-chat .cm_popup_webchat .box_btn .btn_move { background:#f4f5fa; font-weight:600; }

@media all and (max-width:767px) {
    .finup-chat .cm_popup_wrap .popup_wrap { position:relative; width:100%; max-width:360px; }
    .finup-chat .cm_popup_webchat .popup_wrap { position:relative; width:100%; max-width:360px; }
}


/* ============================================================
   3. 이미지 팝업 (popup.css → popup_img_modal)
   ============================================================ */

.finup-chat .popup_img_modal .popup_wrap { position:relative; width:60%; max-width:760px; padding:65px; text-align:center; }
.finup-chat .popup_img_modal .popup_wrap .btn_close { top:15px; right:15px; color:#777; }
.finup-chat .popup_img_modal .popup_wrap .box_img { position:relative; width:calc(100% - 84px); max-width:420px; height:420px; margin:0 auto; border:1px solid #ededed; overflow:hidden; }
.finup-chat .popup_img_modal .popup_wrap .box_img img { display:block; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); max-width:100%; max-height:100%; }
.finup-chat .popup_img_modal .popup_wrap .box_count { display:inline-block; width:75px; margin-top:-50px; border:1px solid #ddd; border-radius:20px; background:rgba(0,0,0,0.7); color:#fff; font-size:13px; line-height:40px; text-align:center; position:absolute; bottom:10px; left:calc(50% - 37.5px); }
.finup-chat .popup_img_modal .popup_wrap .btn_arrow { position:absolute; top:50%; transform:translateY(-50%); width:32px; height:32px; text-align:center; line-height:30px; }
.finup-chat .popup_img_modal .popup_wrap .btn_arrow.btn_left { left:65px; }
.finup-chat .popup_img_modal .popup_wrap .btn_arrow.btn_right { right:65px; }
.finup-chat .popup_img_modal .popup_wrap .btn_arrow .im { font-size:24px; color:#777; vertical-align:middle; line-height:32px; }

@media all and (max-width:1023px) {
    .finup-chat .popup_img_modal .popup_wrap { padding:65px; }
}
@media all and (max-width:767px) {
    .finup-chat .popup_img_modal .popup_wrap { width:100%; padding:15px; }
    .finup-chat .popup_img_modal .popup_wrap .box_img { width:calc(100% - 94px); height:40vh; max-height:none; max-width:none; }
    .finup-chat .popup_img_modal .popup_wrap .btn_arrow.btn_left { left:15px; }
    .finup-chat .popup_img_modal .popup_wrap .btn_arrow.btn_right { right:15px; }
    .finup-chat .popup_img_modal .popup_wrap .box_count { width:60px; margin-top:-40px; border-radius:15px; font-size:75%; line-height:30px; }
}


/* ============================================================
   4. 타이머/종료 팝업 (popup.css → popup_chat_finish)
   ============================================================ */

.finup-chat .popup_chat_finish .btn_download { width:100%; }
.finup-chat .popup_chat_finish .box_btn.wide .btn_move { width:100%; }


/* ============================================================
   5. 채팅 뷰 레이아웃 (view.css → webchat_view)
      finance의 themelog에서는 330px 패널 안에 단일 채팅방이므로
      .box_list(왼쪽 목록)는 사용하지 않고 .box_cont만 사용
   ============================================================ */

.finup-chat .webchat_view { position:relative; flex:1 1 auto; min-height:0; height:100%; overflow:hidden; display:flex; flex-direction:column; }

/* 채팅 영역 — flex 레이아웃 */
.finup-chat .webchat_view .box_cont { display:flex; flex-direction:column; position:relative; width:100%; height:100%; background:#ebf1f7 !important; overflow:hidden; }
.finup-chat .webchat_view .box_cont.on { display:flex; }
.finup-chat .webchat_view .box_cont .img_intro { display:block; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:80%; max-width:650px; height:auto; }

/* 채팅 메시지 영역 */
.finup-chat .webchat_view .box_cont .chat_wrap { position:relative; flex:1 1 auto; min-height:0; padding:15px 15px 0 !important; box-sizing:border-box; overflow-y:auto; }
.finup-chat .webchat_view .box_cont.hide_input .chat_wrap { height:100% !important; }

/* 개별 메시지 */
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat { position:relative; min-height:48px; padding-left:55px !important; margin-bottom:6px; overflow:hidden; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat + .box_chat { margin-top:0 !important; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .cm_thumb_wrap { position:absolute; top:0 !important; left:0; width:40px !important; height:40px !important; border:solid 1px #ededed !important; border-radius:12px !important; background:#fff; color:#fff; font-size:15px; font-family:'BMJUA'; line-height:38px; text-align:center; box-sizing:border-box; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .cm_thumb_wrap img { display:block; width:100%; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_name { display:block; font-size:13px; font-weight:700; line-height:20px; }

/* 댓글/메시지 버블 */
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment { margin-top:8px; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment > li { position:relative; margin-top:5px; overflow:hidden; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment > li.message { position:relative; overflow:hidden; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment > li p { display:inline-block; max-width:calc(100% - 55px) !important; padding:8px 15px; border-radius:15px; background:#fff; font-size:13px !important; line-height:20px; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment > li .txt_comment { display:inline-block; max-width:calc(100% - 55px) !important; padding:8px 15px; border-radius:15px; background:#fff; font-size:13px !important; line-height:20px; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment > li .txt_comment img { display:block; max-width:100%; height:auto; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment > li .time { display:inline-block; margin-left:8px; color:#777 !important; font-size:11px !important; line-height:16px; vertical-align:bottom; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment > li:first-child { margin-top:0; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment > li:first-child p { border-radius:0 15px 15px 15px; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment > li:first-child .txt_comment { border-radius:0 15px 15px 15px; }

/* 멘토 메시지 */
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat.mentor .box_comment > li p { background:#fff; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat.mentor .box_comment > li .txt_comment { background:#fff; }

/* 이미지 메시지 그리드 */
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img { max-width:200px !important; width:calc(100% - 60px); height:auto; padding:10px; border-radius:0 15px 15px 15px; background:#fff; overflow:hidden; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img li { float:left; width:54px; height:50px; margin-top:4px; margin-left:4px; border:1px solid #ededed; border-radius:5px; background:#fff; overflow:hidden; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img li:nth-child(1) { margin-top:0; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img li:nth-child(2) { margin-top:0; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img li:nth-child(3) { margin-top:0; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img li:nth-child(3n-2) { margin-left:0; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img li a { display:block; position:relative; width:100%; height:100%; overflow:hidden; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img li a img { display:block; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); max-width:100%; max-height:100%; }

.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img.width3n_2 li { width:calc(50% - 6px); margin-top:4px; margin-left:4px; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img.width3n_2 li:nth-child(1) { margin-top:0; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img.width3n_2 li:nth-child(2) { margin-top:0; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img.width3n_2 li:nth-child(2n-1) { margin-left:0; }

.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img.width3n_1 li:nth-last-child(1) { width:calc(50% - 6px); }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img.width3n_1 li:nth-last-child(2) { width:calc(50% - 6px); }

.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img.width7 li:nth-last-child(1) { width:calc(50% - 6px); margin-left:4px; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img.width7 li:nth-last-child(2) { width:calc(50% - 6px); margin-left:0; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img.width7 li:nth-last-child(3) { width:calc(50% - 6px); margin-left:4px; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_chat .box_comment.box_img.width7 li:nth-last-child(4) { width:calc(50% - 6px); margin-left:0; }

/* 날짜 구분선 */
.finup-chat .webchat_view .box_cont .chat_wrap .box_division { position:relative; height:16px; color:#bbb; font-size:11px; line-height:16px; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_division:before { display:block; content:''; position:absolute; top:8px; left:0; width:100%; height:1px; background:#ddd; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_division span { position:absolute; top:0; left:50%; transform:translateX(-50%); padding:0 15px; background:#ebf1f7; }

/* 날짜 뱃지 */
.finup-chat .webchat_view .box_cont .chat_wrap .box_date { position:relative; height:24px; margin:12px 0; color:#fff; font-size:12px; line-height:24px; text-align:center; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_date span { display:inline-block; height:24px; padding:0 12px; border-radius:12px; background-color:rgba(34,34,34,0.3); white-space:nowrap; }
.finup-chat .webchat_view .box_cont .chat_wrap .box_date:first-child { margin-top:0 !important; }

/* 입력 영역 */
.finup-chat .webchat_view .box_cont .input_wrap { flex:0 0 auto; width:100%; padding:6px 10px; overflow:visible; }
.finup-chat .webchat_view .box_cont .input_wrap .box_textarea { position:relative; width:100%; height:40px; padding:10px; border-radius:5px; border:1px solid #ddd; background:#fff; overflow:hidden; }
.finup-chat .webchat_view .box_cont .input_wrap .box_textarea textarea { display:block; position:relative; width:100%; height:100%; padding:0; border:0; background-color:transparent; color:#222; font-size:13px; line-height:20px; resize:none; outline:none; z-index:1; }
.finup-chat .webchat_view .box_cont .input_wrap .box_textarea .cm_smtxt { position:absolute; top:10px; left:10px; display:block; line-height:20px; z-index:0; pointer-events:none; white-space:nowrap; font-size:13px; }
.finup-chat .webchat_view .box_cont .input_wrap .box_textarea .cm_smtxt strong { font-weight:700; }
.finup-chat .webchat_view .box_cont .input_wrap .box_btn { position:relative; height:26px; margin-top:4px; padding-right:0; text-align:right; }
.finup-chat .webchat_view .box_cont .input_wrap .box_btn .btn_popup_noti { position:absolute; top:7px; left:0; color:#777; font-size:11px; line-height:16px; background:none; border:none; cursor:pointer; }
.finup-chat .webchat_view .box_cont .input_wrap .box_btn .btn_popup_noti:hover { color:#555; }
.finup-chat .webchat_view .box_cont .input_wrap .box_btn .btn_file { display:inline-block; width:18px; height:26px; margin-top:2px; margin-right:10px; background:url('/Images/sub/lab/ic_theme_file.png') no-repeat; cursor:pointer; vertical-align:middle; }
.finup-chat .webchat_view .box_cont .input_wrap .box_btn .btn_emoji { display:inline-block; width:18px; height:26px; margin-top:2px; margin-right:0; background:url('/Images/sub/lab/ic_theme_emoji.png') no-repeat; vertical-align:middle; border:none; cursor:pointer; }
.finup-chat .webchat_view .box_cont .input_wrap .box_btn .btn_keyboard { display:inline-block; width:18px; height:26px; margin-top:2px; margin-right:0; background:url('/Images/sub/lab/ic_theme_keyboard.png') no-repeat; vertical-align:middle; border:none; cursor:pointer; }
.finup-chat .webchat_view .box_cont .input_wrap .box_btn .btn_submit { width:75px; height:30px; margin-left:10px; border:none; border-radius:5px; background:#ededed; color:#ccc; font-size:13px; line-height:30px; text-align:center; vertical-align:middle; cursor:pointer; }
.finup-chat .webchat_view .box_cont .input_wrap .box_btn .btn_submit.on { background:#222; color:#fff; }

/* 비로그인 안내 */
.finup-chat .webchat_view .box_cont .input_wrap .chat_input_unauth { display:flex; align-items:center; justify-content:center; height:38px; border:1px solid #ddd; border-radius:5px; background:#f8f9fa; cursor:pointer; }
.finup-chat .webchat_view .box_cont .input_wrap .chat_input_unauth:hover { background:#eef1f5; }
.finup-chat .webchat_view .box_cont .input_wrap .chat_input_unauth span { color:#8a94a0; font-size:12px; }

/* 우클릭 컨텍스트 메뉴 (차단/신고) */
.finup-chat .webchat_view .box_cont .chat_wrap .chat_context_menu { position:absolute; margin:0; padding:4px 0; list-style:none; min-width:80px; border:1px solid #ddd; border-radius:6px; background:#fff; box-shadow:0 4px 12px rgba(0,0,0,0.15); z-index:20; }
.finup-chat .webchat_view .box_cont .chat_wrap .chat_context_menu li { padding:8px 16px; font-size:13px; color:#222; cursor:pointer; white-space:nowrap; }
.finup-chat .webchat_view .box_cont .chat_wrap .chat_context_menu li:hover { background:#f5f5f5; }

/* 신고 사유 라디오 */
.finup-chat .chat_report_reason { display:block; margin-top:8px; cursor:pointer; font-size:13px; color:#222; }
.finup-chat .chat_report_reason:first-child { margin-top:0; }
.finup-chat .chat_report_reason input[type=radio] { margin-right:8px; vertical-align:middle; }
.finup-chat .chat_report_reason span { vertical-align:middle; }

/* 파일 첨부 기능 */
.finup-chat .webchat_view .box_cont .input_wrap.file_enabled { position:relative; overflow:visible; }
.finup-chat .webchat_view .box_cont .input_wrap.file_enabled .file_toggle_btn { border:0; cursor:pointer; }
.finup-chat .webchat_view .box_cont .input_wrap.file_enabled .file_toggle_btn:disabled { opacity:0.45; cursor:not-allowed; }
.finup-chat .webchat_view .box_cont .input_wrap.file_enabled .chat_file_panel { position:absolute; left:15px; right:15px; bottom:46px; max-height:230px; padding:12px 15px; border:1px solid #ddd; border-radius:12px; background:#fff; box-shadow:0 8px 20px rgba(0,0,0,0.08); z-index:5; }
.finup-chat .webchat_view .box_cont .input_wrap.file_enabled .chat_file_panel .chat_file_panel_head { display:flex; justify-content:space-between; align-items:center; }
.finup-chat .webchat_view .box_cont .input_wrap.file_enabled .chat_file_panel .chat_file_panel_head strong { color:#222; font-size:13px; font-weight:700; }
.finup-chat .webchat_view .box_cont .input_wrap.file_enabled .chat_file_panel .chat_file_panel_head .btn_refresh { min-width:72px; height:28px; margin-left:8px; font-size:11px; }
.finup-chat .webchat_view .box_cont .input_wrap.file_enabled .chat_file_panel .chat_file_panel_list { margin-top:10px; max-height:150px; overflow-y:auto; }
.finup-chat .webchat_view .box_cont .input_wrap.file_enabled .chat_file_panel .chat_file_panel_list > li { display:flex; align-items:center; gap:8px; min-height:30px; margin-top:4px; }
.finup-chat .webchat_view .box_cont .input_wrap.file_enabled .chat_file_panel .chat_file_panel_list > li:first-child { margin-top:0; }
.finup-chat .webchat_view .box_cont .input_wrap.file_enabled .chat_file_panel .chat_file_panel_list > li.empty { display:block; margin-top:0; color:#666; font-size:12px; line-height:18px; text-align:center; }
.finup-chat .webchat_view .box_cont .input_wrap.file_enabled .chat_file_panel .chat_file_panel_list .file_name { flex:1; color:#222; font-size:12px; line-height:18px; text-align:left; text-decoration:underline; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.finup-chat .webchat_view .box_cont .input_wrap.file_enabled .chat_file_panel .chat_file_panel_list .btn_download { min-width:78px; height:28px; font-size:11px; line-height:26px; }


/* ============================================================
   6. 기본 리셋 (채팅 영역 내부만 적용)
   ============================================================ */

.finup-chat {
    font-family:'Noto Sans KR', sans-serif;
    font-size:15px;
    font-weight:500;
    line-height:1.47;
    color:#222;
    letter-spacing:-0.5px;
    word-wrap:break-word;
    word-break:break-all;
    box-sizing:border-box;
}

.finup-chat *,
.finup-chat *::before,
.finup-chat *::after {
    box-sizing:border-box;
}

.finup-chat ul,
.finup-chat ol,
.finup-chat li { list-style:none; margin:0; padding:0; }

.finup-chat a { text-decoration:none; color:inherit; cursor:pointer; outline:0; }

.finup-chat button {
    background:inherit;
    border:none;
    box-shadow:none;
    border-radius:0;
    padding:0;
    cursor:pointer;
    outline:0;
    -webkit-appearance:none;
    font-family:inherit;
}

.finup-chat input { outline:0; -webkit-border-radius:0; font-family:inherit; }

.finup-chat img { border-style:none; }
