@charset "utf-8";
/* =========================================================
   국립낙동강생물자원관 AI 담이봇 (chatbot.css)
   - 모든 선택자는 .chatbot_ 접두어 안에서만 동작 (기존 스타일 충돌 방지)
   - 상태 class: .open / .full / .on / .active (홈페이지 규칙과 동일)
   - body 상태 class: .chatbot_on(열림) .chatbot_push(밀어내기) .chatbot_full(최대보기)
   ========================================================= */

/* ---------- 공통 ---------- */
.chatbot_wrap, .chatbot_launcher{font-family:'pretendard-gov', sans-serif; color:#1E2124; letter-spacing:-0.01em;}
.chatbot_wrap *, .chatbot_launcher *{box-sizing:border-box;}
.chatbot_wrap button, .chatbot_launcher{font-family:inherit; cursor:pointer;}
.chatbot_wrap .hidden{position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;}
.chatbot_wrap ul{margin:0; padding:0; list-style:none;}
.chatbot_wrap p{margin:0;}
.chatbot_wrap svg{display:block; flex-shrink:0;}
/* 포커스: 홈페이지와 동일하게 브라우저 기본 표시 사용 (outline 제거 금지) */

/* ---------- 런처 ---------- */
.chatbot_launcher{position:fixed; right:50%; top:var(--chatbot_cta_top, min(700px, calc(100vh - 272px))); margin-right:-930px; z-index:50; width:100px; height:100px; padding:6px 0 0; border:0; border-radius:12px; background:#0070B8; color:#fff; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:2px; box-shadow:3px 10px 10px rgba(0,0,0,0.2); transition:background .2s;}
.chatbot_launcher .img{display:block; width:68px; height:68px; border-radius:50%; background:#fff; overflow:hidden; display:flex; align-items:center; justify-content:center;}
.chatbot_launcher .img img{width:76px; height:76px; max-width:none;}
.chatbot_launcher .txt{font-size:13px; font-weight:700; line-height:1.2;}
.chatbot_launcher:hover{background:#005A96;}

/* ---------- 패널 ---------- */
.chatbot_wrap{position:fixed; top:0; right:0; bottom:0; z-index:1100; width:var(--chatbot_w, clamp(400px, 31.25vw, 600px)); display:flex; flex-direction:column; background:linear-gradient(180deg, #F9FDFF 0%, #D8EDFF 100%); box-shadow:-6px 0 20px rgba(0,0,0,0.08); transform:translateX(100%); visibility:hidden; transition:transform .3s ease-out, visibility .3s, width .3s ease-in-out;}
.chatbot_wrap.open{transform:translateX(0); visibility:visible;}
.chatbot_inner{display:flex; flex-direction:column; width:100%; height:100%; margin:0 auto;}

/* 헤더 */
.chatbot_head{display:flex; align-items:center; justify-content:space-between; height:68px; padding:0 20px; flex-shrink:0; background:#fff;}
.chatbot_head .tit{margin:0; font-size:18px; font-weight:700; color:#111;}
.chatbot_head .head_btn{display:flex; align-items:center; gap:4px;}
.chatbot_head .btn_ico svg{width:24px; height:24px;}
.chatbot_head .btn_ico{width:32px; height:32px; padding:0; border:0; border-radius:6px; background:none; display:flex; align-items:center; justify-content:center; color:#55636F; transition:background .2s, color .2s;}
.chatbot_head .btn_ico:hover{background:#EEF4FA; color:#1D56BC;}
.chatbot_head .btn_close{height:32px; padding:0 4px; border:0; background:none; font-size:15px; font-weight:500; letter-spacing:-0.06em; color:#1D56BC;}
.chatbot_head .btn_close:hover{text-decoration:underline;}
.chatbot_head .btn_full .ico_panel{display:none;}

/* 본문 스크롤 영역 */
.chatbot_body{flex:1 1 auto; overflow-y:auto; padding:24px 20px 24px; scroll-behavior:smooth;}

/* 첫 화면 */
.chatbot_intro{display:flex; flex-direction:column; padding-top:min(18vh, 176px);}
.chatbot_intro .char{width:120px; margin:0 auto;} /* PC 120px, 최대보기 140px, 모바일 84px */
.chatbot_intro .char img{display:block; width:100%; height:auto;}
.chatbot_intro .intro_tit{margin:10px 0 0; font-size:22px; font-weight:800; line-height:31px; color:#1D1D1D; text-align:center;}
.chatbot_intro .intro_txt{margin-top:10px; font-size:16px; font-weight:500; line-height:22px; color:#1D1D1D; text-align:center;}
.chatbot_intro .intro_input{display:none;}
.chatbot_intro .lst_tit{margin:24px 0 13px; font-size:14px; font-weight:600; color:#666;}
.chatbot_intro .lst_tit#chatbot_ex_tit{margin-bottom:6px;}
.chatbot_menu_lst{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px;}
.chatbot_menu_lst .btn_menu{width:100%; height:60px; padding:0 16px; border:1px solid #D8D8D8; border-radius:10px; background:#fff; display:flex; align-items:center; gap:10px; font-size:15px; font-weight:500; color:#333; text-align:left; transition:background .2s, border-color .2s;}
.chatbot_menu_lst .btn_menu:hover{background:#EEF4FA; border-color:#1D56BC;}
.chatbot_menu_lst .btn_menu:active{background:#DCEBFA;}
.chatbot_menu_lst .ico{width:20px; height:20px; color:#1D56BC;}
.chatbot_chip_lst{display:flex; flex-wrap:wrap; gap:8px;}
.chatbot_chip_lst .btn_chip{min-height:40px; padding:9px 16px; border:1px solid #D8D8D8; border-radius:20px; text-align:left; word-break:keep-all; background:#fff; font-size:15px; font-weight:500; letter-spacing:-0.02em; line-height:20px; color:#1655AC; transition:background .2s, color .2s, border-color .2s;}
.chatbot_chip_lst .btn_chip:hover{background:#0070B8; border-color:#0070B8; color:#fff;}

/* 대화 */
.chatbot_msg_lst{display:flex; flex-direction:column; gap:12px; padding-top:16px;}
.chatbot_msg_lst .msg{display:flex; flex-direction:column; gap:6px;}
.chatbot_msg_lst .msg.user{align-items:flex-end;}
.chatbot_msg_lst .msg.user .bubble{max-width:85%; padding:10px 16px; border-radius:12px; background:#EDF1F5; font-size:16px; line-height:1.5; word-break:keep-all;}
.chatbot_msg_lst .time{font-size:13px; color:#55636F;}
.chatbot_msg_lst .bot_name{display:flex; align-items:center; gap:6px; font-size:14px; font-weight:700;}
.chatbot_msg_lst .bot_name img{width:36px; height:36px; margin:-4px -2px -4px -4px;}
.chatbot_msg_lst .msg.bot{align-items:flex-start;}

/* 답변 카드 */
.chatbot_card{width:100%; max-width:500px; border-radius:16px; background:#fff; overflow:hidden;}
.chatbot_card .card_body{padding:16px 16px 14px; font-size:16px; line-height:1.6; display:flex; flex-direction:column; gap:12px;}
.chatbot_card .card_body strong{font-weight:700;}
.chatbot_card .sub_tit{font-weight:700;}
.chatbot_card .dot_lst li{position:relative; padding-left:10px;}
.chatbot_card .dot_lst li:before{content:"·"; position:absolute; left:0;}
.chatbot_card .card_tbl{width:100%; border-collapse:collapse; font-size:15px;}
.chatbot_card .card_tbl th, .chatbot_card .card_tbl td{padding:9px 0; border-top:1px solid #E3E7EB; text-align:left; vertical-align:top;}
.chatbot_card .card_tbl tr:last-child th, .chatbot_card .card_tbl tr:last-child td{border-bottom:1px solid #E3E7EB;}
.chatbot_card .card_tbl th{width:30%; font-weight:700;}
.chatbot_card .tbl_scroll{overflow-x:auto;}
.chatbot_card a{color:#1D56BC;}
.chatbot_card .card_src{padding-top:10px; border-top:1px solid #E3E7EB; font-size:14px;}
.chatbot_card .card_src .src_tit{font-weight:700; margin-bottom:4px;}
.chatbot_card .card_src a{display:inline-flex; align-items:center; gap:4px; text-decoration:none;}
.chatbot_card .card_src a:hover{text-decoration:underline;}
.chatbot_card .btn_card{display:block; padding:14px 16px; background:linear-gradient(90deg, #1555AC 0%, #0176B6 100%); color:#fff; font-size:15px; font-weight:700; text-align:center; text-decoration:none; transition:filter .2s;}
.chatbot_card .btn_card:hover{filter:brightness(0.88);}
.chatbot_card .sub_menu_lst{display:flex; flex-direction:column; gap:8px;}
.chatbot_card .btn_sub_menu{width:100%; height:48px; padding:0 16px; border:0; border-radius:10px; background:#EDF1F5; display:flex; align-items:center; justify-content:space-between; font-size:15px; color:#333; transition:background .2s;}
.chatbot_card .btn_sub_menu:hover{background:#DDE5EE;}
/* 메뉴 레벨 전환(뒤로가기 포함): 같은 카드 안에서 내용만 슬라이드로 바꿔치기 */
.chatbot_card .card_body{transition:transform .18s ease, opacity .18s ease;}
.chatbot_card .card_body.menu_out{transform:translateX(-14px); opacity:0;}
.chatbot_card .card_body.menu_in{transition:none; transform:translateX(14px); opacity:0;}
.chatbot_card .btn_menu_back{align-self:flex-start; display:inline-flex; align-items:center; gap:4px; height:32px; margin-bottom:-4px; padding:0 10px 0 6px; border:0; border-radius:8px; background:none; color:#55636F; font-size:14px; font-weight:500; transition:background .2s;}
.chatbot_card .btn_menu_back:hover{background:#EDF1F5;}
.chatbot_card .btn_menu_back svg{transform:rotate(180deg);}
.chatbot_card .guide_lst{display:flex; flex-direction:column; gap:10px;}
.chatbot_card .guide_lst li{display:flex; gap:8px;}
.chatbot_card .guide_lst .num{flex-shrink:0; width:18px; height:18px; margin-top:3px; border-radius:50%; background:#1D56BC; color:#fff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center;}
.chatbot_card .guide_lst .g_tit{font-weight:700;}
.chatbot_card .guide_lst .g_txt{font-size:15px; color:#555;}
.chatbot_card .notice_box{padding:12px 14px; border-radius:8px; background:#EDF1F5; font-size:14px; color:#555;}
.chatbot_card .notice_box .n_tit{font-size:15px; font-weight:700; color:#1E2124; margin-bottom:4px;}
.chatbot_card .info_ico{display:flex; gap:6px;}
.chatbot_card .info_ico svg{margin-top:4px; color:#1E2124;}
.chatbot_card .btn_retry{width:100%; padding:13px 16px; border:0; background:#CDDEEE; font-size:15px; color:#1E2124; display:flex; align-items:center; justify-content:center; gap:6px; transition:background .2s;}
.chatbot_card .btn_retry:hover{background:#BACFE4;}
.chatbot_msg_lst .btn_sub{display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:0 16px; border:1px solid #1655AC; border-radius:8px; background:#fff; color:#1655AC; font-size:15px; font-weight:500; letter-spacing:-0.02em; line-height:20px; text-decoration:none; transition:background .2s;}
.chatbot_msg_lst .btn_sub:hover{background:#EEF4FA;}

/* 로딩 */
.chatbot_card.loading .card_body{gap:6px;}
.chatbot_card.loading .loading_img{width:96px; height:auto;}

/* 이어서 물어보기 */
.chatbot_msg_lst .next_tit{margin-top:4px; font-size:14px;}

/* 평가 */
.chatbot_rate{display:flex; gap:6px;}
.chatbot_rate .btn_rate{width:32px; height:32px; padding:0; border:0; border-radius:50%; background:#fff; color:#55636F; display:flex; align-items:center; justify-content:center; transition:background .2s, color .2s;}
.chatbot_rate .btn_rate:hover{color:#1D56BC; box-shadow:inset 0 0 0 1px #1D56BC;}
.chatbot_rate .btn_rate.on{background:#1D56BC; color:#fff;}

/* 의견 입력 */
.chatbot_fb{width:100%; max-width:500px; padding:16px; border-radius:16px; background:#fff; display:flex; flex-direction:column; gap:8px;}
.chatbot_fb .fb_tit{font-size:16px; font-weight:700;}
.chatbot_fb .fb_txt{font-size:14px; color:#555; margin-bottom:4px;}
.chatbot_fb .btn_fb{width:100%; padding:11px 16px; border:0; border-radius:8px; background:#EDF1F5; font-size:15px; color:#333; text-align:left; transition:background .2s;}
.chatbot_fb .btn_fb:hover{background:#DDE5EE;}
.chatbot_fb .btn_fb.on{background:#CDDEEE; color:#1E2124; font-weight:700;}
.chatbot_fb .fb_etc{display:none; padding:12px; border-radius:8px; background:#CDDEEE;}
.chatbot_fb .fb_etc.open{display:block;}
.chatbot_fb .fb_etc textarea{width:100%; height:44px; padding:10px 14px; border:0; border-radius:8px; background:#fff; font:inherit; font-size:16px; resize:none;}
.chatbot_fb .btn_submit{margin-top:8px; padding:9px 20px; border:0; border-radius:6px; background:#696969; color:#fff; font-size:15px;}
.chatbot_fb .btn_submit:hover{background:#4F4F4F;}
.chatbot_fb.done{flex-direction:row; align-items:center; gap:12px;}
.chatbot_fb .done_ico{width:32px; height:32px; border-radius:50%; background:#E7F4FF; color:#1D56BC; display:flex; align-items:center; justify-content:center; flex-shrink:0;}

/* AI 안내 문구 */
.chatbot_ai_notice{margin-top:8px; font-size:14px; color:#55636F;}

/* 하단 입력창 */
.chatbot_foot{flex-shrink:0; padding:12px 20px; background:#fff;}
.chatbot_form{display:flex; align-items:center; gap:8px; height:43px; padding:0 4px 0 16px; border-radius:10px; background:#EDF1F5;}
.chatbot_form input{flex:1 1 auto; min-width:0; height:100%; border:0; background:none; font:inherit; font-size:16px; color:#1E2124;}
.chatbot_form input::placeholder{color:#55636F;}
.chatbot_form .btn_send{width:35px; height:35px; padding:0; border:0; border-radius:50%; background:linear-gradient(135deg, #1D56BC 35%, #137A85 68%, #6B8060 100%); color:#fff; display:flex; align-items:center; justify-content:center; transition:box-shadow .2s, transform .1s;}
/* 마우스 오버: 색은 그대로, 버튼이 살짝 떠오르고(그림자) 비행기가 오른쪽 위로 살짝 날아가는 느낌 */
.chatbot_form .btn_send:hover{box-shadow:0 0 0 3px rgba(29,86,188,0.15), 0 3px 8px rgba(19,122,133,0.35);}
.chatbot_form .btn_send .ico_send{transition:transform .2s ease-out;}
.chatbot_form .btn_send:hover .ico_send{transform:translate(2px, -2px);}
.chatbot_form .btn_send:active{transform:scale(0.94);}
.chatbot_form .btn_send .ico_stop{display:none;}
.chatbot_form .btn_send.stop{background:#1E2124;}
.chatbot_form .btn_send.stop .ico_send{display:none;}
.chatbot_form .btn_send.stop .ico_stop{display:block;}
.chatbot_form .btn_mic{flex:0 0 auto; width:35px; height:35px; padding:0; border:0; border-radius:50%; background:#fff; color:#1D56BC; display:flex; align-items:center; justify-content:center;}
.chatbot_form .btn_mic:hover{box-shadow:0 0 0 3px rgba(29,86,188,0.15);}
.chatbot_form .btn_mic.rec{background:#D92D20; color:#fff;}
.chatbot_form .btn_mic:disabled{opacity:.4;}

/* 새 대화 팝업 */
.chatbot_pop{position:absolute; inset:0; z-index:10; display:none; align-items:center; justify-content:center; padding:20px; background:rgba(30,33,36,0.45);}
.chatbot_pop.open{display:flex;}
.chatbot_pop .pop_box{width:100%; max-width:420px; border-radius:12px; background:#fff; overflow:hidden;}
.chatbot_pop .pop_cont{padding:24px 20px 20px;}
.chatbot_pop .pop_tit{margin:0; font-size:17px; font-weight:700;}
.chatbot_pop .pop_txt{margin-top:6px; font-size:15px;}
.chatbot_pop .btn_area{display:flex;}
.chatbot_pop .btn_area button{flex:1 1 0; height:48px; border:0; font-size:15px;}
.chatbot_pop .btn_cancel{background:#CDDEEE; color:#1E2124;}
.chatbot_pop .btn_cancel:hover{background:#BACFE4;}
.chatbot_pop .btn_ok{background:linear-gradient(90deg, #0A6DBC 0%, #0176B6 100%); color:#fff; font-weight:700;}
.chatbot_pop .btn_ok:hover{filter:brightness(0.88);}

/* ---------- 최대보기 ---------- */
.chatbot_wrap.full{width:100%; box-shadow:none;}
.chatbot_wrap.full .chatbot_head{padding:0 36px;}
.chatbot_wrap.full .btn_full .ico_full{display:none;}
.chatbot_wrap.full .btn_full .ico_panel{display:block;}
/* 스크롤 영역은 화면 전체 폭으로 두어 스크롤바가 화면 오른쪽 끝에 붙게 하고, 내용만 가운데 800px로 모음 */
.chatbot_wrap.full .chatbot_body{width:100%; padding-left:max(24px, calc((100% - 800px) / 2)); padding-right:max(24px, calc((100% - 800px) / 2));}
.chatbot_wrap.full .chatbot_foot .chatbot_form{max-width:800px; margin:0 auto;}
.chatbot_wrap.full .chatbot_card, .chatbot_wrap.full .chatbot_fb{max-width:600px;}
.chatbot_wrap.full.intro .chatbot_foot{display:none;}
.chatbot_wrap.full .chatbot_intro .char{width:140px;}
.chatbot_wrap.full.intro .chatbot_intro .intro_input{display:block; margin-top:32px;}
.chatbot_wrap.full .chatbot_intro .intro_input .chatbot_form{height:62px; padding:0 10px 0 28px; border:1px solid #1D56BC; border-radius:999px; background:#fff;}
.chatbot_wrap.full .chatbot_intro .intro_input .btn_send,
.chatbot_wrap.full .chatbot_intro .intro_input .btn_mic{width:42px; height:42px;}
.chatbot_wrap.full .chatbot_menu_lst{grid-template-columns:repeat(4, minmax(0, 1fr));} /* 대분류 8개: 4열 2줄 */
.chatbot_wrap.full .chatbot_menu_lst .btn_menu{height:76px; flex-direction:column; justify-content:center; gap:6px; padding:0 6px; text-align:center; font-size:14px;}

/* ---------- 밀어내기 (넓은 PC: 홈페이지 콘텐츠 1200 + 패널 너비 + 여백 40 이상, 판단은 chatbot.js) ---------- */
@media all and (min-width:1024px){
	body.chatbot_push #wrap{margin-right:var(--chatbot_w, 600px); transition:margin-right .3s ease-out;}
	body.chatbot_push .resve_link_cir{right:calc(var(--chatbot_w, 600px) + 20px); margin-right:0;}
	body.chatbot_push .chatbot_launcher{right:calc(var(--chatbot_w, 600px) + 20px); margin-right:0;}
}

/* ---------- 런처 · 통합예약 버튼 세로 위치 (PC) ----------
   메인 슬라이더 아래 24px에 런처, 그 아래 38px에 통합예약 버튼 (두 버튼 묶음 높이 238px)
   화면 높이가 낮아 묶음이 잘리면 화면 아래 24px에 맞춰 위로 올림 → 값은 chatbot.js가 --chatbot_cta_top으로 전달 */
@media all and (min-width:1024px){
	.resve_link_cir{top:calc(var(--chatbot_cta_top, min(700px, calc(100vh - 272px))) + 138px);}
}

/* ---------- 통합예약 버튼 기본 모양 ----------
   메인은 main_2024.css에 같은 규칙이 있음. 서브페이지(layout.jsp)는 main_2024.css를 쓰지 않아 여기서 같은 값으로 지정 */
.resve_link_cir{position:fixed; right:50%; margin-right:-930px; z-index:50;}
.resve_link_cir a{display:block; filter:drop-shadow(3px 10px 10px rgba(0,0,0,0.2));}
.resve_link_cir .mobile{display:none;}
@media all and (max-width:1900px){
	.resve_link_cir{right:20px; margin-right:0;}
}
@media all and (max-width:1023px){
	.resve_link_cir{top:initial; bottom:0; right:0; width:100%;}
	.resve_link_cir a{width:100%; height:40px; background:linear-gradient(to right, #f68b1e 0%, #77a02e 50%, #0083cb 100%) !important;}
	.resve_link_cir .pc{display:none;}
	.resve_link_cir .mobile{position:relative; display:flex; align-items:center; color:#fff; height:100%; font-size:16px; padding:0 16px;}
	.resve_link_cir .mobile:before{content:""; display:block; position:absolute; right:16px; top:50%; margin-top:-13px; width:26px; height:26px; background:#fff; border-radius:50%;}
	.resve_link_cir .mobile:after{content:""; display:block; position:absolute; right:26px; top:16px; width:6px; height:6px; border-top:2px solid #111; border-right:2px solid #111; transform:rotate(45deg); margin:0 0 -1px 8px;}
	#footer{padding-bottom:60px;} /* 아래 고정 버튼에 푸터가 가리지 않게 (메인과 같은 값) */
}

/* ---------- 홈페이지 브레이크포인트에 맞춘 런처 위치 ---------- */
@media all and (max-width:1900px){
	.chatbot_launcher{right:20px; margin-right:0;}
}

/* ---------- 태블릿 · 모바일: 전체화면 (1023px 이하) ---------- */
@media all and (max-width:1023px){
	.chatbot_wrap{width:100%; box-shadow:none;}
	.chatbot_head .btn_full{display:none;}
	.chatbot_head{padding:0 12px 0 20px;}
	.chatbot_body{padding:24px 20px 20px;}
	.chatbot_intro{padding-top:36px;}
	.chatbot_intro .char{width:84px;}
	.chatbot_launcher{top:auto; bottom:52px; right:12px; width:64px; height:64px; padding:0; border-radius:50%; justify-content:center;}
	.chatbot_launcher .img{width:56px; height:56px;}
	.chatbot_launcher .img img{width:62px; height:62px;}
	/* 작은 원형 버튼 옆 말풍선: 버튼 이름(AI 챗봇 담이)을 그대로 보여 줌 */
	.chatbot_launcher{overflow:visible;}
	.chatbot_launcher .txt{position:absolute; right:calc(100% + 10px); top:50%; transform:translateY(-50%); padding:7px 12px; border:1px solid #0070B8; border-radius:16px; background:#fff; box-shadow:0 4px 10px rgba(0,0,0,0.12); font-size:13px; font-weight:700; line-height:1.2; color:#0070B8; white-space:nowrap; animation:chatbotBubble .4s ease-out .6s both;}
	/* 꼬리: 테두리색 삼각형(::before) 위에 흰 삼각형(::after)을 1px 안쪽으로 겹쳐, 말풍선 둥근 끝과 이어지게 */
	.chatbot_launcher .txt::before, .chatbot_launcher .txt::after{content:''; position:absolute; top:50%; width:0; height:0; border-style:solid; border-color:transparent;}
	.chatbot_launcher .txt::before{right:-8px; margin-top:-7px; border-width:7px 0 7px 9px; border-left-color:#0070B8;}
	.chatbot_launcher .txt::after{right:-6px; margin-top:-6px; border-width:6px 0 6px 8px; border-left-color:#fff;}
	.chatbot_launcher:hover .txt{background:#0070B8; color:#fff;}
	.chatbot_launcher:hover .txt::after{border-left-color:#0070B8;}
	body.chatbot_on .chatbot_launcher .txt{display:none;}
	.chatbot_card .card_tbl th{width:38%;}
}

/* 최대보기 · 모바일 전체화면: 뒤 홈페이지 스크롤 잠금 (chatbot.js가 html에 chatbot_lock 부여) */
html.chatbot_lock, html.chatbot_lock body{overflow:hidden !important;}
html.chatbot_lock body{position:fixed; left:0; right:0; width:100%;}
/* 패널 안 스크롤이 끝까지 가도 뒤 페이지로 넘어가지 않게 */
.chatbot_body{overscroll-behavior:contain;}

/* ---------- 모션 ---------- */
@keyframes chatbotFloat{0%,100%{transform:translateY(0);}50%{transform:translateY(-4px);}}
@keyframes chatbotBubble{from{opacity:0; transform:translate(8px, -50%);}to{opacity:1; transform:translateY(-50%);}}
@keyframes chatbotIn{from{opacity:0; transform:translateY(8px);}to{opacity:1; transform:none;}}
.chatbot_msg_lst .msg{animation:chatbotIn .2s ease-out;}
@media (prefers-reduced-motion: reduce){
	.chatbot_wrap, body.chatbot_push #wrap, .chatbot_resize::before, .chatbot_form .btn_send, .chatbot_form .btn_send .ico_send{transition:none !important;}
	.chatbot_form .btn_send:hover .ico_send, .chatbot_form .btn_send:active{transform:none;}
	.chatbot_intro .char, .chatbot_msg_lst .msg, .chatbot_launcher .txt{animation:none !important;}
	.chatbot_body{scroll-behavior:auto;}
	.chatbot_card .card_body{transition:none;}
	.chatbot_card .card_body.menu_out, .chatbot_card .card_body.menu_in{transform:none;}
}

/* ---------- 홈페이지 공통 스타일 영향 차단 ---------- */
.chatbot_intro[hidden]{display:none;}
.chatbot_card .card_tbl{border:0; border-spacing:0; margin:0; table-layout:auto;}
.chatbot_card .card_tbl th, .chatbot_card .card_tbl td{border-left:0; border-right:0; border-bottom:0; background:none; font-size:15px; color:#1E2124; line-height:1.5;}
.chatbot_card .card_tbl caption{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);}
/* 입력창 포커스: 입력 상자 전체에 브라우저 기본 포커스 표시 */
.chatbot_form input:focus{outline:none;}
.chatbot_form:focus-within{outline:auto 1px; outline:-webkit-focus-ring-color auto 1px;}

/* 디자인 아이콘 적용 (img/ico 원본, 단색 아이콘은 currentColor) */
.chatbot_head .btn_full .ico_panel{transform:scaleX(-1);}
.chatbot_menu_lst .ico{width:20px; height:20px;}
.chatbot_form .btn_send .ico_send{margin-left:-1px;}

/* ---------- 패널 너비 조절 (PC 패널 모드에서만, 360~800px, 최대·최소에서 멈춤) ---------- */
.chatbot_resize{position:absolute; top:0; bottom:0; left:-6px; z-index:5; width:12px; cursor:col-resize; touch-action:none;}
.chatbot_resize::before{content:''; position:absolute; top:0; bottom:0; left:5px; width:2px; background:transparent; transition:background .2s;}
.chatbot_resize .grip{position:absolute; top:50%; left:2px; width:8px; height:40px; margin-top:-20px; border-radius:4px; background:#fff; border:1px solid #C3CED9; opacity:0; transition:opacity .2s;}
.chatbot_resize:hover::before, .chatbot_resize:focus-visible::before, body.chatbot_resizing .chatbot_resize::before{background:#0070B8;}
.chatbot_resize:hover .grip, .chatbot_resize:focus-visible .grip, body.chatbot_resizing .chatbot_resize .grip{opacity:1; border-color:#0070B8;}
.chatbot_wrap.full .chatbot_resize{display:none;}
/* 끄는 동안: 애니메이션·글자 선택 끄기 */
body.chatbot_resizing, body.chatbot_resizing *{cursor:col-resize !important; user-select:none !important;}
body.chatbot_resizing .chatbot_wrap, body.chatbot_resizing #wrap{transition:none !important;}
@media all and (max-width:1023px){
	.chatbot_resize{display:none;}
}

/* =========================================================
   답변 카드 확장 구성 (답변 카드 디자인 의뢰 v0.1 · 예시 6종)
   - 카드 틀(도입 문장 → 내용 → 출처 → 하단 주 버튼)은 기본 답변과 동일
   - 카드 폭에 따라 배치 전환: container query (카드 폭 기준, 패널 너비 조절·모바일 모두 대응)
   ========================================================= */
.chatbot_card{container-type:inline-size;}
.chatbot_card.rich{max-width:100%;}
.chatbot_wrap.full .chatbot_card.rich{max-width:720px;}
.chatbot_card .card_note{font-size:14px; color:#55636F; line-height:1.6;}
.chatbot_card .card_note a{color:#1D56BC;}
.chatbot_card .card_copy{font-size:13px; color:#55636F; line-height:1.5;}
.chatbot_card .card_sec{display:flex; flex-direction:column; gap:8px;}
.chatbot_card .sec_tit{font-size:15px; font-weight:700; color:#1E2124;}
.chatbot_card .card_tbl caption{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);}
.chatbot_card a{text-underline-offset:3px;}
.chatbot_card a svg, .chatbot_card .more_link svg{display:inline-block; vertical-align:-1px; margin-left:3px;}

/* 항목 목록 표 (예시 1·2): 항목명 굵게, 줄마다 옅은 배경 번갈아 */
.chatbot_card .row_tbl th, .chatbot_card .row_tbl td{padding:9px 12px; border-top:1px solid #E3E7EB;}
.chatbot_card .row_tbl tr:nth-child(odd) th, .chatbot_card .row_tbl tr:nth-child(odd) td{background:#F5F8FB;}
.chatbot_card .row_tbl th{width:96px; white-space:nowrap;}
/* 머리행 표 (예시 4·6) */
.chatbot_card .head_tbl{font-size:14px;}
.chatbot_card .head_tbl th, .chatbot_card .head_tbl td{padding:8px 10px; border-top:1px solid #E3E7EB; white-space:nowrap; width:auto; font-size:14px;}
.chatbot_card .head_tbl thead th{background:#EEF4FA; color:#003675; font-weight:700; border-top:0;}
.chatbot_card .head_tbl tbody th{font-weight:700;}
.chatbot_card .head_tbl tr.on th, .chatbot_card .head_tbl tr.on td{background:#E1EEFB; font-weight:700; color:#003675;}
.chatbot_card .head_tbl .num_on{font-weight:700; color:#1655AC;}
.chatbot_card .head_tbl tr.closed th, .chatbot_card .head_tbl tr.closed td{color:#55636F; background:#F5F6F7;}
.chatbot_card tr.closed th, .chatbot_card .head_tbl tr.closed th{color:#C62828;}
.chatbot_card .tag_closed{display:inline-block; padding:1px 7px; border-radius:4px; background:#FCE4EC; color:#AD1457; font-size:12px; font-weight:700; margin-right:4px;}
@container (max-width: 420px){
	.chatbot_card .row_tbl, .chatbot_card .row_tbl tbody, .chatbot_card .row_tbl tr, .chatbot_card .row_tbl th, .chatbot_card .row_tbl td{display:block; width:auto;}
	.chatbot_card .row_tbl th{padding-bottom:0; border-top:1px solid #E3E7EB;}
	.chatbot_card .row_tbl td{padding-top:2px; border-top:0;}
}

/* 출처 여러 개: 번호 목록 */
.chatbot_card .src_lst{list-style:decimal; padding-left:20px; display:flex; flex-direction:column; gap:2px;}
.chatbot_card .src_lst li::marker{color:#55636F; font-size:13px;}

/* 이미지 + 정보 (예시 2) */
.chatbot_card .card_media{display:grid; grid-template-columns:1fr; gap:14px;}
@container (min-width: 520px){ .chatbot_card .card_media{grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr); align-items:start;} }
.chatbot_card .info_tit{font-size:17px; font-weight:700; margin-bottom:6px;}
.chatbot_card .card_gal{display:flex; flex-direction:column; gap:8px; min-width:0;}
.chatbot_card .gal_view{position:relative; border-radius:10px; overflow:hidden;}
.chatbot_card .gal_track{display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; margin:0; padding:0; list-style:none;}
.chatbot_card .gal_track::-webkit-scrollbar{display:none;}
.chatbot_card .gal_track:focus-visible{outline:2px solid #1D56BC; outline-offset:-2px;}
.chatbot_card .gal_item{flex:0 0 100%; scroll-snap-align:start;}
.chatbot_card .ph_img{aspect-ratio:4 / 3; background:#E9EEF3 repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,0.45) 12px 24px); display:flex; align-items:center; justify-content:center; color:#55636F; font-size:13px; font-weight:500; overflow:hidden;}
.chatbot_card .ph_img.sq{aspect-ratio:1 / 1; border-radius:8px;}
.chatbot_card .ph_img span{padding:4px 10px; border-radius:4px; background:rgba(255,255,255,0.85);}
.chatbot_card .ph_img.has_img{background:#E9EEF3;}
.chatbot_card .ph_img img{width:100%; height:100%; object-fit:cover; display:block;}
.chatbot_card .gal_count{position:absolute; right:10px; top:10px; padding:2px 10px; border-radius:12px; background:rgba(30,33,36,0.75); color:#fff; font-size:12px; font-weight:700;}
.chatbot_card .gal_prev, .chatbot_card .gal_next{position:absolute; top:50%; width:36px; height:36px; margin-top:-18px; border:0; border-radius:50%; background:rgba(255,255,255,0.92); box-shadow:0 2px 6px rgba(0,0,0,0.18); color:#1D56BC; display:flex; align-items:center; justify-content:center; padding:0; transition:background .2s;}
.chatbot_card .gal_prev{left:8px;} .chatbot_card .gal_prev svg{transform:rotate(180deg);}
.chatbot_card .gal_next{right:8px;}
.chatbot_card .gal_prev:hover, .chatbot_card .gal_next:hover{background:#fff;}
.chatbot_card .gal_prev:disabled, .chatbot_card .gal_next:disabled{opacity:0; pointer-events:none;}
.chatbot_card .gal_dots{display:flex; justify-content:center; gap:2px;}
.chatbot_card .gal_dot{width:20px; height:20px; padding:0; border:0; background:none; position:relative;}
.chatbot_card .gal_dot::before{content:''; position:absolute; left:6px; top:6px; width:8px; height:8px; border-radius:50%; background:#C3CED9;}
.chatbot_card .gal_dot.on::before{left:3px; width:14px; border-radius:4px; background:#1D56BC;}
.chatbot_card .gal_cap{font-size:13px; color:#3F4A54; line-height:1.5;}
.chatbot_card .gal_cap .bar{margin:0 6px; color:#C3CED9;}

/* 카드 목록 (예시 3): 넓으면 3열, 좁으면 옆으로 넘겨 보기 */
.chatbot_card .card_items{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; margin:0; padding:0; list-style:none;}
.chatbot_card .card_items > li{display:flex; flex-direction:column; gap:6px; padding:10px; border:1px solid #E3E7EB; border-radius:10px; min-width:0;}
.chatbot_card .it_tit{font-size:15px; font-weight:700; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.chatbot_card .it_attr{font-size:13px; color:#55636F; line-height:1.5;}
.chatbot_card .it_attr div{display:flex; gap:4px;} .chatbot_card .it_attr dt::after{content:' :';}
.chatbot_card .it_link{margin-top:auto; font-size:14px; font-weight:500;}
.chatbot_card .more_link{align-self:flex-start; font-size:14px; font-weight:500;}
.chatbot_card .more_link svg{width:14px; height:14px;}
@container (max-width: 480px){
	.chatbot_card .card_items{display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:thin; padding-bottom:6px;}
	.chatbot_card .card_items > li{flex:0 0 68%; scroll-snap-align:start;}
}

/* 절차 단계 (예시 4): 넓으면 가로, 좁으면 세로 */
.chatbot_card .card_steps{display:flex; margin:0; padding:0; list-style:none; gap:18px; counter-reset:none;}
.chatbot_card .card_steps li{flex:1 1 0; position:relative; padding:8px 4px; border-radius:8px; background:#EDF1F5; display:flex; flex-direction:column; align-items:center; gap:2px; text-align:center; min-width:0;}
.chatbot_card .card_steps li + li::before{content:''; position:absolute; left:-12px; top:50%; width:6px; height:6px; margin-top:-3px; border-top:1.5px solid #8C98A4; border-right:1.5px solid #8C98A4; transform:rotate(45deg);}
.chatbot_card .st_num{width:20px; height:20px; border-radius:50%; background:#1D56BC; color:#fff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center;}
.chatbot_card .st_txt{font-size:13px; font-weight:500; line-height:1.3; word-break:keep-all;}
@container (max-width: 480px){
	.chatbot_card .card_steps{flex-direction:column; gap:6px;}
	.chatbot_card .card_steps li{flex-direction:row; justify-content:flex-start; gap:10px; padding:8px 12px; text-align:left;}
	.chatbot_card .card_steps li + li::before{display:none;}
	.chatbot_card .st_txt{font-size:14px;}
}

/* 관련 목록 (예시 5) */
.chatbot_card .rel_lst{display:flex; flex-direction:column; gap:6px; margin:0; padding:0; list-style:none; font-size:15px;}
.chatbot_card .rel_lst li{display:flex; gap:10px; line-height:1.5;}
.chatbot_card .rel_date{flex-shrink:0; width:86px; font-size:13px; color:#55636F; padding-top:2px;}
.chatbot_card .rel_txt{color:#1E2124;}
@container (max-width: 420px){ .chatbot_card .rel_lst li{flex-direction:column; gap:0;} .chatbot_card .rel_date{width:auto;} }
.chatbot_msg_lst .sub_btns{display:flex; flex-wrap:wrap; gap:8px;}

/* 실시간 조회 (예시 6) */
.chatbot_card .live_sec{padding:12px; border:1px solid #CFE3D6; border-radius:10px; background:#F6FBF8;}
.chatbot_card .live_head{display:flex; flex-wrap:wrap; align-items:center; gap:8px;}
.chatbot_card .badge_live{display:inline-flex; align-items:center; gap:5px; padding:2px 9px; border-radius:4px; background:#1F7A4D; color:#fff; font-size:12px; font-weight:700;}
.chatbot_card .badge_live::before{content:''; width:6px; height:6px; border-radius:50%; background:#fff;}
.chatbot_card .live_time{font-size:13px; color:#3F4A54;}
.chatbot_card .live_sec .head_tbl thead th{background:#E3F1E8; color:#1B5E3C;}
.chatbot_card .live_fail{display:flex; flex-direction:column; gap:8px; font-size:15px;}
.chatbot_card .btn_inline{align-self:flex-start; display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 14px; border:1px solid #1655AC; border-radius:8px; background:#fff; color:#1655AC; font-size:14px; font-weight:500;}
.chatbot_card .btn_inline:hover{background:#EEF4FA;}
.chatbot_card .doc_sec{padding-top:2px;}
@media (prefers-reduced-motion: reduce){ .chatbot_card .gal_track{scroll-behavior:auto;} }

/* 목록 번호가 홈페이지 공통 reset에 가려지지 않게 */
.chatbot_card .src_lst li{list-style:decimal;}
.chatbot_card .src_lst a{display:inline;}
.chatbot_card .src_lst a svg{vertical-align:-1px;}
/* 출처 접기·펼치기, 본문 출처 번호 */
.chatbot_card .card_src .btn_src{display:inline-flex; align-items:center; gap:6px; min-height:32px; padding:0; border:0; background:none; color:#1E2124; font-size:14px;}
.chatbot_card .card_src .btn_src .src_tit{margin:0;}
.chatbot_card .card_src .src_cnt{color:#55636F; font-size:13px;}
.chatbot_card .card_src .btn_src .ico_arrow{transform:rotate(90deg); transition:transform .2s;}
.chatbot_card .card_src .btn_src[aria-expanded="true"] .ico_arrow{transform:rotate(-90deg);}
.chatbot_card .card_src .btn_src:focus-visible{outline:2px solid #1D56BC; outline-offset:2px;}
.chatbot_card .cite_lst{display:flex; flex-direction:column; gap:4px; margin-top:4px;}
.chatbot_card .cite_lst[hidden]{display:none;}
.chatbot_card .cite_lst li{display:flex; gap:6px; list-style:none;}
.chatbot_card .cite_lst .cite_no{flex:none; color:#55636F; font-size:13px; line-height:inherit;}
.chatbot_card .card_src .cite_lst a{display:inline;}
.chatbot_card .cite_lst a svg{vertical-align:-1px;}
.chatbot_card a.cite_ref{margin-left:1px; font-size:12px; line-height:0; vertical-align:super; text-decoration:none;}
.chatbot_card a.cite_ref:hover{text-decoration:underline;}
@media (prefers-reduced-motion: reduce){ .chatbot_card .card_src .btn_src .ico_arrow{transition:none;} }
.chatbot_card .nnibr-live ul li{list-style:disc;}
.chatbot_card .nnibr-live ol li{list-style:decimal;}
/* 머리행 표: 좁은 카드에서는 행마다 세로 목록으로 */
@container (max-width: 420px){
	.chatbot_card .head_tbl.stack thead{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);}
	.chatbot_card .head_tbl.stack, .chatbot_card .head_tbl.stack tbody, .chatbot_card .head_tbl.stack tr{display:block; width:auto;}
	.chatbot_card .head_tbl.stack tr{padding:8px 10px; border-top:1px solid #E3E7EB;}
	.chatbot_card .head_tbl.stack tr:last-child{border-bottom:1px solid #E3E7EB;}
	.chatbot_card .head_tbl.stack th, .chatbot_card .head_tbl.stack td{display:flex; gap:8px; padding:1px 0; border:0; white-space:normal; background:none !important;}
	.chatbot_card .head_tbl.stack th{font-size:15px; margin-bottom:2px;}
	.chatbot_card .head_tbl.stack td::before{content:attr(data-label); flex-shrink:0; width:56px; color:#55636F; font-weight:400;}
	.chatbot_card .head_tbl.stack tr.on{background:#E1EEFB;}
	.chatbot_card .head_tbl.stack tr.closed{background:#F5F6F7;}
	.chatbot_card .tbl_scroll{overflow:visible;}
	.chatbot_card .head_tbl.stack tr:last-child th, .chatbot_card .head_tbl.stack tr:last-child td{border-bottom:0;}
}

/* =========================================================
   챗봇 종료 시 만족도 설문 (.chatbot_wrap.survey: 대화 영역 대신 표시)
   ========================================================= */
.chatbot_survey[hidden], .chatbot_survey [hidden]{display:none !important;}
.chatbot_wrap.survey .chatbot_body, .chatbot_wrap.survey .chatbot_foot, .chatbot_wrap.survey .chatbot_head .btn_ico{display:none;}
.chatbot_survey{flex:1 1 auto; overflow-y:auto; overscroll-behavior:contain; padding:24px 20px 28px;}
.chatbot_survey .sv_form, .chatbot_survey .sv_done{max-width:560px; margin:0 auto; padding:28px 24px 24px; border-radius:20px; background:#fff; box-shadow:0 4px 16px rgba(29,86,188,0.08);}
.chatbot_survey .sv_form{display:flex; flex-direction:column; gap:24px;}
.chatbot_survey .sv_head{display:flex; align-items:center; gap:14px;}
.chatbot_survey .sv_head .char{width:72px; height:72px; flex-shrink:0; border-radius:50%; background:#EAF6FF; overflow:hidden; display:flex; align-items:center; justify-content:center;}
.chatbot_survey .sv_head .char img{width:76px; height:76px; max-width:none;}
.chatbot_survey .sv_tit{margin:0; font-size:20px; font-weight:700; line-height:1.4; color:#003675;}
.chatbot_survey .sv_tit:focus{outline:none;}
.chatbot_survey .sv_tit:focus-visible{outline:auto;}
.chatbot_survey .sv_desc{margin-top:4px; font-size:14px; line-height:1.5; color:#55636F;}
.chatbot_survey fieldset{margin:0; padding:0; border:0; min-width:0;}

.chatbot_survey legend{position:static; width:auto; height:auto; overflow:visible; clip:auto; clip-path:none; text-indent:0; font-size:16px; line-height:1.5; visibility:visible;}
.chatbot_survey legend, .chatbot_survey .sv_lbl{display:block; padding:0; margin-bottom:10px; font-size:16px; font-weight:700; color:#1E2124;}
.chatbot_survey .req{color:#C0392B; margin-left:2px;}
.chatbot_survey .opt{font-size:14px; font-weight:400; color:#55636F;}

.chatbot_survey .sv_stars{display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:4px;}
.chatbot_survey .sv_star{display:flex; flex-direction:column; align-items:center; gap:4px; padding:6px 0 4px; border-radius:10px; cursor:pointer; text-align:center; transition:background .15s;}
.chatbot_survey .sv_star .star{display:flex; width:44px; height:44px; align-items:center; justify-content:center;}
.chatbot_survey .ico_star{fill:none; stroke:#8C98A4; stroke-width:1.5; stroke-linejoin:round; transition:fill .15s, stroke .15s, transform .15s;}
.chatbot_survey .sv_star .lbl{font-size:13px; line-height:1.3; color:#55636F; word-break:keep-all;}
.chatbot_survey .sv_star.hover .ico_star{stroke:#1D56BC; fill:#DCEBFA;}
.chatbot_survey .sv_star.on .ico_star{stroke:#1D56BC; fill:#1D56BC;}
.chatbot_survey .sv_star input:checked ~ .lbl{font-weight:700; color:#1D56BC;}
.chatbot_survey .sv_star:hover .ico_star{transform:scale(1.08);}
.chatbot_survey .sv_star:has(input:focus-visible){outline:auto 1px; outline:-webkit-focus-ring-color auto 1px;}

.chatbot_survey .sv_opts{display:flex; gap:8px;}
.chatbot_survey .sv_opt{flex:1 1 0; min-height:44px; padding:0 8px; border:1px solid #D8D8D8; border-radius:22px; background:#fff; display:flex; align-items:center; justify-content:center; gap:6px; font-size:15px; font-weight:500; color:#333; text-align:center; cursor:pointer; transition:background .15s, border-color .15s;}
.chatbot_survey .sv_opt:hover{border-color:#1655AC; background:#F5F9FD;}
.chatbot_survey .sv_opt.on{border-color:#1655AC; background:#EEF4FA; color:#1655AC; font-weight:700;}
.chatbot_survey .sv_opt.on span::before{content:''; display:inline-block; width:10px; height:6px; margin:0 7px 3px 0; border-left:2px solid #1655AC; border-bottom:2px solid #1655AC; transform:rotate(-45deg);}
.chatbot_survey .sv_opt:has(input:focus-visible){outline:auto 1px; outline:-webkit-focus-ring-color auto 1px;}

.chatbot_survey .sv_err{margin-top:8px; font-size:14px; font-weight:500; color:#C0392B;}
.chatbot_survey .sv_q.error legend{color:#C0392B;}

.chatbot_survey textarea{display:block; width:100%; height:88px; box-sizing:border-box; padding:12px 14px; border:1px solid #D8D8D8; border-radius:10px; font-family:inherit; font-size:16px; line-height:1.5; color:#1E2124; resize:none;}
.chatbot_survey textarea::placeholder{color:#6B7682;}
.chatbot_survey textarea:hover{border-color:#8C98A4;}

.chatbot_survey .sv_btns{display:flex; gap:8px;}
.chatbot_survey .sv_btns button, .chatbot_survey .btn_sv_close{flex:1 1 0; height:52px; border-radius:10px; font-family:inherit; font-size:16px; cursor:pointer; transition:background .2s, filter .2s;}
.chatbot_survey .btn_sv_skip{border:1px solid #D8D8D8; background:#fff; font-weight:500; color:#333;}
.chatbot_survey .btn_sv_skip:hover{background:#F5F7F9;}
.chatbot_survey .btn_sv_send, .chatbot_survey .btn_sv_close{border:0; background:linear-gradient(90deg, #1555AC 0%, #0176B6 100%); font-weight:700; color:#fff;}
.chatbot_survey .btn_sv_send:hover, .chatbot_survey .btn_sv_close:hover{filter:brightness(0.88);}
.chatbot_survey .sv_foot{margin-top:-12px; font-size:13px; color:#55636F; text-align:center;}
.chatbot_survey .sv_foot span{color:#C0392B;}

.chatbot_survey .sv_done{display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; margin-top:min(12vh, 120px);}
.chatbot_survey .sv_done .char{width:120px;}
.chatbot_survey .sv_done .char img{display:block; width:100%; height:auto;}
.chatbot_survey .sv_done .sv_tit{font-size:22px;}
.chatbot_survey .sv_done .sv_desc{font-size:16px; color:#333;}
.chatbot_survey .btn_sv_close{flex:none; width:100%; margin-top:14px;}
@media all and (max-width:1023px){
	.chatbot_survey{padding:16px 16px 24px;}
	.chatbot_survey .sv_form{padding:24px 18px 20px; gap:20px;}
	.chatbot_survey .sv_star .lbl{font-size:12px;}
	.chatbot_survey .sv_opts{flex-direction:column;}
	.chatbot_survey .sv_opt{flex:none; justify-content:flex-start; padding:0 18px; border-radius:10px;}
}
.chatbot_survey .sv_tit, .chatbot_survey .sv_desc, .chatbot_survey textarea::placeholder, .chatbot_survey .sv_opt{word-break:keep-all;}
@media (prefers-reduced-motion: reduce){ .chatbot_survey .ico_star, .chatbot_survey .sv_star{transition:none;} .chatbot_survey .sv_star:hover .ico_star{transform:none;} }

/* 설문 버튼: '새 대화를 시작할까요?' 팝업 버튼과 같은 디자인 (카드 하단에 붙은 좌우 분할 버튼) */
.chatbot_survey .sv_form, .chatbot_survey .sv_done{border-radius:12px; overflow:hidden;}
.chatbot_survey .sv_foot{margin:-8px 0 0;}
.chatbot_survey .sv_btns{gap:0; margin:0 -24px -24px;}
.chatbot_survey .sv_btns button, .chatbot_survey .btn_sv_close{height:48px; border:0; border-radius:0; font-size:15px;}
.chatbot_survey .btn_sv_skip{background:#CDDEEE; color:#1E2124; font-weight:400;}
.chatbot_survey .btn_sv_skip:hover{background:#BACFE4;}
.chatbot_survey .btn_sv_send, .chatbot_survey .btn_sv_close{background:linear-gradient(90deg, #0A6DBC 0%, #0176B6 100%); color:#fff; font-weight:700;}
.chatbot_survey .btn_sv_send:hover, .chatbot_survey .btn_sv_close:hover{filter:brightness(0.88);}
.chatbot_survey .sv_done{padding-bottom:0;}
.chatbot_survey .btn_sv_close{width:calc(100% + 48px); margin:14px -24px 0;}
@media all and (max-width:1023px){ .chatbot_survey .sv_btns{margin:0 -18px -20px;} .chatbot_survey .btn_sv_close{width:calc(100% + 36px); margin:14px -18px 0;} .chatbot_survey .sv_done{padding-left:18px; padding-right:18px;} }
/* 설문 담이: 하트가 원 밖으로 잘리지 않게 원 배경 없이 표시 */
.chatbot_survey .sv_head .char{width:88px; height:88px; border-radius:0; background:none; overflow:visible;}
.chatbot_survey .sv_head .char img{width:88px; height:88px;}
.chatbot_survey .sv_done .char{width:140px;}
.chatbot_card .data_tbl { font-size: 14px; }
.chatbot_card .data_tbl caption { padding-bottom: 6px; font-weight: 700; text-align: left; }
.chatbot_card .data_tbl th, .chatbot_card .data_tbl td { width: auto; padding: 8px 10px 8px 0; white-space: nowrap; }
