/* ===== 챗봇 단추 ===== */
.site_fab .site_fab_bot { width: 48px; padding: 0; font-size: 1.25rem; color: var(--front_on_primary); background: var(--front_primary); border-color: var(--front_primary); border-radius: 50%; }
@media (hover: hover) {
	.site_fab .site_fab_bot:hover { color: var(--front_on_primary); background: var(--front_primary_hover); }
}
.site_fab .site_fab_bot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site_fab .site_fab_bot[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--front_primary_soft), var(--front_shadow_raised); }

/* ===== 채팅 창 ===== */
.chatbot { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; background: var(--front_surface); }
.chatbot[hidden] { display: none; }
.is_keyboard .chatbot { top: var(--view_top); bottom: auto; height: var(--view_height); }
.chatbot:focus { outline: 0; }
.chatbot_head { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 10px 10px 10px 16px; color: var(--front_on_primary); background: var(--front_primary); }
.chatbot_avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; background: rgba(255, 255, 255, .18); border-radius: 50%; }
.chatbot_title { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 1.0625rem; white-space: nowrap; text-overflow: ellipsis; }
.chatbot_tool { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: inherit; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.chatbot_log { position: relative; flex: 1 1 auto; min-height: 0; display: grid; align-content: start; gap: 14px; padding: 16px; overflow-y: auto; overscroll-behavior: contain; background: var(--front_surface_alt); }
.chatbot_intro { display: grid; justify-items: center; gap: 6px; padding: 6px 0 2px; text-align: center; }
.chatbot_intro_logo { display: grid; place-items: center; min-width: 64px; height: 64px; padding: 0 16px; background: var(--front_surface); border: 1px solid var(--front_border); border-radius: 20px; }
.chatbot_intro_logo img { max-width: 150px; max-height: 34px; object-fit: contain; }
.chatbot_intro_name { font-size: 1.0625rem; }
.chatbot_intro_hours { display: inline-flex; align-items: baseline; gap: 6px; font-size: .875rem; color: var(--front_text_soft); }
.chatbot_intro_hours i { color: var(--front_primary); }
.chatbot_day { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .8125rem; color: var(--front_muted); white-space: nowrap; }
.chatbot_day::before,
.chatbot_day::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--front_border); }
.chatbot_msg { display: grid; justify-items: start; gap: 4px; max-width: 92%; }
.chatbot_msg.is_bot { grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; max-width: 96%; }
.chatbot_msg.is_user { justify-self: end; justify-items: end; }
.chatbot_msg_avatar { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; font-size: .8125rem; color: var(--front_primary); background: var(--front_primary_soft); border-radius: 50%; }
.chatbot_msg_body { display: grid; justify-items: start; gap: 8px; min-width: 0; }
.chatbot_msg.is_user .chatbot_msg_body { justify-items: end; }
.chatbot_time { font-size: .8125rem; color: var(--front_muted); }
.chatbot_msg.is_bot .chatbot_time { grid-column: 2; }
.chatbot_bubble { margin: 0; padding: 10px 14px; line-height: 1.6; color: var(--front_text); background: var(--front_surface); border: 1px solid var(--front_border); border-radius: 4px 16px 16px 16px; overflow-wrap: anywhere; }
.chatbot_msg.is_user .chatbot_bubble { color: var(--front_on_primary); background: var(--front_primary); border-color: var(--front_primary); border-radius: 16px 4px 16px 16px; }
.chatbot_bubble strong { display: block; margin-bottom: 4px; }
.chatbot_bubble.is_notice { display: flex; gap: 8px; align-items: baseline; color: var(--front_warning); background: var(--front_warning_soft); border-color: transparent; }
.chatbot_bubble.is_notice i { flex: 0 0 auto; }
.chatbot_bubble.is_handoff { font-weight: 600; background: var(--front_primary_soft); border-color: var(--front_primary); }
.chatbot_image { display: block; max-width: 100%; height: auto; margin: 4px 0 8px; border-radius: 8px; }
.chatbot_para { margin: 0; }
.chatbot_para + .chatbot_para,
.chatbot_para + .chatbot_steps,
.chatbot_steps + .chatbot_para { margin-top: 6px; }
.chatbot_steps { display: grid; gap: 4px; margin: 0; padding-left: 1.5em; }
.chatbot_steps li::marker { font-weight: 700; color: var(--front_primary); }
.chatbot_offer { display: grid; gap: 6px; }
.chatbot_chip.is_mine i { color: var(--front_primary); }
.chatbot_mine { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chatbot_mine li { display: grid; gap: 2px; padding: 10px 12px; background: var(--front_surface); border: 1px solid var(--front_border); border-radius: 12px; }
.chatbot_mine_head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; }
.chatbot_mine_status { font-weight: 600; color: var(--front_primary); }
.chatbot_mine_meta { font-size: .875rem; color: var(--front_muted); }
.chatbot_mine_link { justify-self: start; color: var(--front_primary); text-decoration: underline; }
.chatbot_suggest { display: grid; flex: 0 0 auto; max-height: 40%; padding: 6px 8px; overflow-y: auto; background: var(--front_surface); border-top: 1px solid var(--front_border); }
.chatbot_suggest[hidden] { display: none; }
.chatbot_suggest_item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px; font: inherit; line-height: 1.35; text-align: left; color: var(--front_text); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.chatbot_suggest_item i { flex: 0 0 auto; color: var(--front_muted); }
.chatbot_suggest_item:focus-visible { outline: none; background: var(--front_primary_soft); }
.chatbot_warn { margin: 0; padding: 8px 14px 0; font-size: .875rem; color: var(--front_danger); background: var(--front_surface); }
.chatbot_label { margin: 4px 0 0; font-size: .875rem; font-weight: 600; color: var(--front_text_soft); }
.chatbot_chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chatbot_chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; font: inherit; line-height: 1.35; text-align: left; color: var(--front_primary); background: var(--front_surface); border: 1px solid var(--front_primary); border-radius: 18px; cursor: pointer; }
.chatbot_chip.is_category { color: var(--front_text); border-color: var(--front_border_strong); }
.chatbot_chip[hidden] { display: none; }
.chatbot_chip:disabled { color: var(--front_muted); background: var(--front_surface); border-color: var(--front_border); cursor: default; }
.chatbot_chip.is_picked { color: var(--front_primary); background: var(--front_primary_soft); border-color: var(--front_primary); }
.chatbot_chip.is_more,
.chatbot_chip.is_nav { color: var(--front_text_soft); background: transparent; border-color: var(--front_border_strong); border-style: dashed; }
.chatbot_chip.is_nav { border-style: solid; }
.chatbot_chip.is_more span { color: var(--front_primary); font-weight: 600; }
.chatbot_nav { display: flex; flex-wrap: wrap; gap: 6px; }
.chatbot_actions { display: flex; flex-wrap: wrap; gap: 6px; }
.chatbot_action { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; font: inherit; font-weight: 600; color: var(--front_on_primary); background: var(--front_primary); border: 0; border-radius: 18px; cursor: pointer; }
.chatbot_action.is_kakao { color: #3c1e1e; background: #fee500; }
.chatbot_links { display: flex; flex-wrap: wrap; gap: 6px; }
.chatbot_link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; font-weight: 600; color: var(--front_primary); background: var(--front_primary_soft); border: 1px solid transparent; border-radius: 18px; text-decoration: none; }
.chatbot_bubble a { color: var(--front_primary); text-decoration: underline; overflow-wrap: anywhere; }
.front .chatbot_action, .front .chatbot_action:hover { color: var(--front_on_primary); }
.front .chatbot_action.is_kakao, .front .chatbot_action.is_kakao:hover { color: #3c1e1e; }
.front .chatbot_link, .front .chatbot_link:hover,
.front .chatbot_mine_link, .front .chatbot_mine_link:hover { color: var(--front_primary); }
.chatbot_feedback { display: flex; align-items: center; gap: 4px; font-size: .875rem; color: var(--front_muted); }
.chatbot_feedback button { min-height: 32px; padding: 0 12px; font: inherit; color: var(--front_text_soft); background: var(--front_surface); border: 1px solid var(--front_border_strong); border-radius: 16px; cursor: pointer; }
.chatbot_feedback button[aria-pressed="true"] { font-weight: 600; color: var(--front_primary); background: var(--front_primary_soft); border-color: var(--front_primary); }
.chatbot_feedback[data-done] button { cursor: default; }
.chatbot_feedback[data-done] button[aria-pressed="false"] { opacity: .5; }
.chatbot_item { display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--front_border); }
.chatbot_item:first-of-type { padding-top: 0; border-top: 0; }
.chatbot_typing { display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--front_surface); border: 1px solid var(--front_border); border-radius: 4px 16px 16px 16px; }
.chatbot_typing i { width: 6px; height: 6px; background: var(--front_muted); border-radius: 50%; animation: chatbot_dot 1s infinite ease-in-out; }
.chatbot_typing i:nth-child(2) { animation-delay: .15s; }
.chatbot_typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatbot_dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chatbot_form { display: flex; gap: 8px; flex: 0 0 auto; padding: 10px 12px; background: var(--front_surface); border-top: 1px solid var(--front_border); }
.chatbot_menu { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; font-size: 1.125rem; color: var(--front_text_soft); background: var(--front_surface); border: 1px solid var(--front_border_strong); border-radius: 50%; cursor: pointer; }
.chatbot_form input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; font-size: 16px; border: 1px solid var(--front_border_strong); border-radius: 22px; }
.chatbot_send { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; color: var(--front_on_primary); background: var(--front_primary); border: 0; border-radius: 50%; cursor: pointer; }
.chatbot_note { margin: 0; padding: 0 14px 10px; font-size: .8125rem; color: var(--front_muted); background: var(--front_surface); }
.chatbot_note a { color: var(--front_text_soft); text-decoration: underline; white-space: nowrap; }
@media (hover: hover) {
	.chatbot_tool:hover { background: rgba(255, 255, 255, .16); }
	.chatbot_chip:not(:disabled):hover { color: var(--front_on_primary); background: var(--front_primary); }
	.chatbot_chip.is_category:hover { color: var(--front_on_primary); background: var(--front_text); border-color: var(--front_text); }
	.chatbot_chip.is_more:hover,
	.chatbot_chip.is_nav:hover { color: var(--front_text); background: var(--front_surface); border-color: var(--front_text); }
	.chatbot_action:hover { filter: brightness(.95); }
	.chatbot_link:hover { border-color: var(--front_primary); }
	.chatbot_suggest_item:hover { background: var(--front_primary_soft); }
	.chatbot_feedback:not([data-done]) button:hover { color: var(--front_on_primary); background: var(--front_primary); border-color: var(--front_primary); }
	.chatbot_menu:hover { color: var(--front_primary); border-color: var(--front_primary); }
}
@media (prefers-reduced-motion: reduce) {
	.chatbot_typing i { animation: none; }
}
@media (min-width: 640px) {
	.chatbot { inset: auto 16px 84px auto; width: 380px; height: min(640px, calc(100svh - 110px)); overflow: hidden; border: 1px solid var(--front_border); border-radius: var(--front_radius); box-shadow: var(--front_shadow_raised); }
	.is_keyboard .chatbot { top: auto; bottom: calc(var(--keyboard_height) + 16px); height: min(640px, calc(var(--view_height) - 32px)); }
}
@media (min-width: 1024px) {
	.site_fab .site_fab_bot { width: 52px; }
	.chatbot { right: calc(var(--quick_room, 72px) + 16px); bottom: 20px; }
}

/* ===== 도움말 ===== */
.help_search { display: flex; gap: 8px; margin-bottom: 24px; }
.help_search input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 16px; font-size: 16px; border: 1px solid var(--front_border_strong); border-radius: var(--front_radius_small); }
.help_group { margin-bottom: 32px; }
.help_group[hidden] { display: none; }
.help_group_title { margin: 0 0 10px; font-size: 1.1875rem; }
.help_item { border-bottom: 1px solid var(--front_border); }
.help_item[hidden] { display: none; }
.help_item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; font-weight: 600; list-style: none; cursor: pointer; }
.help_item summary::-webkit-details-marker { display: none; }
.help_item summary i { color: var(--front_muted); transition: transform .2s ease; }
.help_item[open] summary i { transform: rotate(180deg); }
.help_answer a { color: var(--front_primary); text-decoration: underline; overflow-wrap: anywhere; }
.help_links { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px; }
.help_image { display: block; max-width: min(100%, 480px); height: auto; margin: 0 0 10px; border-radius: var(--front_radius_small); }
.help_answer { margin: 0 0 16px; padding: 14px 16px; line-height: 1.7; white-space: pre-line; color: var(--front_text_soft); background: var(--front_surface_alt); border-radius: var(--front_radius_small); }
.help_empty { padding: 32px 0; text-align: center; color: var(--front_muted); }
