#cq-launch,#cq-panel{font:500 16px/1.5 Pretendard,Arial,sans-serif;box-sizing:border-box}#cq-launch{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:100000;display:flex;align-items:center;gap:9px;min-height:48px;padding:0 18px;border:1px solid #fff;border-radius:10px;background:#063d3c;color:white;font-weight:700;cursor:pointer}#cq-panel{position:fixed;inset:auto 18px max(18px,env(safe-area-inset-bottom)) auto;margin:0;width:min(360px,calc(100% - 36px));max-height:calc(100dvh - 36px);overflow:auto;padding:22px;background:white;color:#000;border:1px solid #bbb;border-top:3px solid #008f89;border-radius:8px}#cq-panel::backdrop{background:rgba(0,30,27,.12)}.cq-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ddd;padding-bottom:10px}.cq-head strong{font-size:19px}.cq-head button{background:white;color:black;padding:10px;cursor:pointer;font-size:14px}.cq-intro{font-size:21px;font-weight:650;margin:20px 0 14px}#cq-panel label,#cq-panel small{display:block;font-size:13px;margin:12px 0 4px}#cq-panel select,#cq-panel textarea{box-sizing:border-box;width:100%;padding:10px;border:1px solid #aaa;background:white;color:#000;font:inherit;border-radius:4px}#cq-panel select{appearance:auto}#cq-panel textarea{resize:vertical}.cq-note{font-size:14px;margin:12px 0 16px;line-height:1.55}#cq-mail{display:block;text-align:center;padding:12px;background:#063d3c;color:white;border-radius:4px;font-weight:650}#cq-panel small{text-align:center}#cq-launch:focus-visible,#cq-panel :focus-visible{outline:3px solid #008f89;outline-offset:2px}@media(max-width:600px){#cq-launch{right:10px;padding:0 12px;bottom:max(10px,env(safe-area-inset-bottom));font-size:15px}}
#cq-panel{width:min(396px,calc(100% - 24px));padding:18px;overscroll-behavior:contain}#cq-panel [hidden]{display:none!important}#cq-panel .cq-note{font-size:12px;line-height:1.5;margin:8px 0 10px}#cq-log{max-height:clamp(110px,25dvh,250px);overflow-y:auto;padding:10px 0;border-block:1px solid #ddd;margin-top:12px;overflow-wrap:anywhere}#cq-log>p,#cq-status{font-size:13px}#cq-log .cq-row{padding:5px 8px 8px;text-align:start;margin:6px 0}#cq-log .cq-row:is(.visitor,.agent)>small:first-child{display:flex;align-items:center;gap:7px}#cq-log .cq-row:is(.visitor,.agent)>small:first-child::before{content:'';width:28px;height:28px;flex:none;background:url('/brand/2d/chat-mascot.svg') center/contain no-repeat}#cq-launch .cq-mascot{width:32px;height:32px;flex:none}#cq-log .cq-row small{text-align:start;margin:0;font-size:12px}#cq-log .cq-row p{white-space:pre-wrap;font-size:15px}#cq-panel button:not(#cq-close){padding:8px 12px;cursor:pointer;border:1px solid #aaa;border-radius:4px;font:inherit}#cq-log summary,#cq-log button{font-size:12px!important}#cq-send{width:100%;background:#063d3c;color:white;font-weight:650;margin-top:5px}#cq-send:disabled{opacity:.6}#cq-panel #cq-mail{background:white;color:#000;text-decoration:underline;font-size:13px;padding:8px 4px}#cq-panel textarea{min-height:50px}@media(max-width:600px){#cq-panel{right:12px}}
#cq-log .cq-row.agent>small:first-child::before{background-image:url("/brand/2d/chat-agent-smile.svg")}


#cq-panel .cq-label{display:block;font-size:13px;margin:12px 0 6px}
#cq-tabs{display:flex;gap:0;border-bottom:1px solid #ccc;overflow-x:auto;scrollbar-width:none}
#cq-tabs::-webkit-scrollbar{display:none}
#cq-panel #cq-tabs [role=tab]{flex:1 0 auto;padding:9px 10px;margin:0 0 -1px;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:#555;font-size:14px;line-height:1.3;white-space:nowrap;cursor:pointer}
#cq-panel #cq-tabs [role=tab][aria-selected=true]{color:#063d3c;border-bottom-color:#008f89;font-weight:700}
#cq-panel #cq-tabs [role=tab]:disabled{opacity:.35;cursor:default}

#cq-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;border:0;overflow:visible}
#cq-panel #cq-tabs [role=tab]{margin:0;padding:10px 8px;border:1px solid #c9d6d2;border-radius:6px;background:#fff;color:#33413f;white-space:normal;text-align:center;font-size:14px}
#cq-panel #cq-tabs [role=tab][aria-selected=true]{background:#063d3c;border-color:#063d3c;color:#fff;font-weight:700}
#cq-panel #cq-tabs [role=tab]{min-width:0;overflow-wrap:anywhere;hyphens:auto;line-height:1.25}
#cq-panel{border-top:1px solid #bbb}
#cq-panel :focus,#cq-panel :focus-visible,#cq-launch:focus-visible{outline:none}
#cq-panel :is(select,textarea):focus{border-color:#555}

/* 2026-11-29 대표 요청: 문의 채팅 버튼 검은 박스 제거 */
#cq-launch{background:transparent;border:0;border-radius:0;padding:0;min-height:0;color:#063d3c;gap:8px;box-shadow:none}
#cq-launch .cq-mascot{width:46px;height:46px}
#cq-launch #cq-label{font-weight:700;font-size:15px;text-shadow:0 0 6px #fff,0 0 2px #fff}
@media(max-width:600px){#cq-launch #cq-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}#cq-launch .cq-mascot{width:52px;height:52px}}

/* 2026-11-29 대표 요청: 담당자 메시지는 오른쪽 */
#cq-log .cq-row{max-width:85%}
#cq-log .cq-row.agent{margin-inline-start:auto;display:flex;flex-direction:column;align-items:flex-end;text-align:end}
#cq-log .cq-row.agent>small:first-child{flex-direction:row-reverse;text-align:end}
#cq-log .cq-row.agent>p{text-align:end!important}
#cq-log .cq-row.agent>small:first-child{flex-direction:row}

/* 1:1chat 언어 선택: 번역 아이콘 */
#cq-panel .cq-head{display:flex;align-items:center;gap:6px}
#cq-panel .cq-head #cq-title{flex:1}
.cq-lang-ico{position:relative;display:inline-flex;align-items:center;gap:6px;height:40px;min-width:40px;padding:0 5px;border-radius:10px;color:#111;cursor:pointer}
.cq-lang-ico:hover,.cq-lang-ico:focus-within{background:rgba(0,0,0,.06)}
.cq-lang-ico svg{width:28px;height:28px;flex:none;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.cq-lang-ico svg .b2{fill:#fff}
.cq-lang-ico .cq-lang-hint{display:none;font-size:12px;font-weight:600;white-space:nowrap}
.cq-lang-ico.needs-lang .cq-lang-hint{display:inline}
#cq-panel .cq-lang-ico select#cq-lang{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;font-size:16px}
.cq-sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;margin:0!important;padding:0!important}
/* 메시지 번역 버튼: 아이콘 */
#cq-panel .cq-tr-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;margin-top:4px;padding:0!important;border:0!important;border-radius:10px;background:transparent!important;color:#111;cursor:pointer}
#cq-panel .cq-tr-btn:hover,#cq-panel .cq-tr-btn:focus-visible{background:rgba(0,0,0,.06)!important}
#cq-panel .cq-tr-btn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
#cq-panel .cq-tr-btn svg .b2{fill:#fff}
/* 메시지 번역 버튼: 아이콘 + Translate 글자, 아이콘 흔들림 */
#cq-panel .cq-tr-btn{width:auto;gap:6px;padding:0 10px 0 6px!important;font-size:13px;font-weight:700;color:#111}
#cq-panel .cq-tr-btn .cq-tr-label{line-height:1}
@keyframes cqTrWiggle{0%,62%,100%{transform:rotate(0)}66%{transform:rotate(-14deg)}72%{transform:rotate(12deg)}78%{transform:rotate(-8deg)}84%{transform:rotate(5deg)}90%{transform:rotate(0)}}
#cq-panel .cq-tr-btn svg{transform-origin:50% 60%;animation:cqTrWiggle 2.4s ease-in-out infinite}
#cq-panel .cq-tr-btn:hover svg{animation-duration:1s}
@media (prefers-reduced-motion:reduce){#cq-panel .cq-tr-btn svg{animation:none}}
/* 문의 유형: 아이룬 표정 아이콘 4개 + 아래 글자 */
#cq-panel #cq-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#cq-panel #cq-tabs [role=tab]{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;padding:10px 4px 8px;border:1.5px solid #e1e8e7;border-radius:14px;background:#fff;color:#4a5a5a;font-size:12px;font-weight:600;line-height:1.25;text-align:center}
#cq-panel #cq-tabs [role=tab] .cq-tab-ico{width:44px;height:44px;display:block;transition:transform .2s ease}
#cq-panel #cq-tabs [role=tab]:hover .cq-tab-ico{transform:translateY(-2px) scale(1.06)}
#cq-panel #cq-tabs [role=tab][aria-selected=true]{background:#eafaf7;border-color:#063d3c;color:#063d3c;font-weight:800}
#cq-panel #cq-tabs [role=tab][aria-selected=false] .cq-tab-ico{opacity:.75}
#cq-panel #cq-tabs [role=tab]:disabled{opacity:1}
@media (max-width:360px){#cq-panel #cq-tabs [role=tab] .cq-tab-ico{width:36px;height:36px}}
/* 채팅창 넓게 */
#cq-panel{width:520px!important;max-width:calc(100% - 24px)!important}
#cq-panel #cq-log{min-height:220px!important;max-height:min(420px,48vh)!important}
#cq-panel #cq-body{min-height:72px}
@media (max-width:600px){#cq-panel{width:auto!important;max-width:calc(100% - 16px)!important}#cq-panel #cq-log{min-height:160px!important}}

/* 번역된 문장 */
#cq-panel .cq-tr-out{margin:4px 0 0;padding:6px 10px;border-radius:10px;background:#f3f7f6;color:#2c3a3a;font-size:14px}
