/* 상담 창구 (버튼형 챗봇) · 전 페이지 공통 */
.cb-fab{position:fixed;right:16px;bottom:20px;z-index:9990;display:flex;flex-direction:column;align-items:flex-end;gap:10px;font-family:Pretendard,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;transition:opacity .3s,transform .3s}
.cb-fab.hid{opacity:0;pointer-events:none;transform:translateX(24px)}
.cb-fab .cb-sm{width:58px;height:58px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;box-shadow:0 6px 18px rgba(0,0,0,.25);font-weight:900;font-size:13px;line-height:1.1;text-decoration:none}
.cb-fab .cb-sm svg{width:20px;height:20px}
.cb-fab .cb-tel{background:#fff;color:#0B1C42}
.cb-fab .cb-kk{background:#FEE500;color:#191600}
.cb-fab .cb-main{position:relative;display:flex;align-items:center;gap:10px;background:linear-gradient(135deg,#3B78FF,#1F4FD8);color:#fff;border:0;border-radius:999px;padding:14px 22px 14px 16px;box-shadow:0 10px 30px rgba(31,79,216,.45);cursor:pointer;font:inherit;text-align:left;border:1px solid rgba(255,255,255,.25)}
.cb-fab .cb-main .ic{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;display:grid;place-items:center;flex:none}
.cb-fab .cb-main .ic svg{width:22px;height:22px}
.cb-fab .cb-main b{display:block;font-size:19px;font-weight:900;line-height:1.15}
.cb-fab .cb-main small{display:block;font-size:13px;font-weight:700;opacity:.8}
.cb-fab .cb-main .dot{position:absolute;top:-2px;right:6px;width:14px;height:14px;border-radius:50%;background:#E53935;border:2px solid #fff;animation:cbPulse 1.6s infinite}
@keyframes cbPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.25)}}
.cb-tip{position:fixed;right:16px;z-index:9989;background:#fff;color:#0B1C42;font:800 16px/1.45 Pretendard,'Apple SD Gothic Neo',sans-serif;padding:13px 16px;border-radius:16px 16px 4px 16px;box-shadow:0 8px 26px rgba(0,0,0,.2);max-width:250px;cursor:pointer;transition:.3s}
.cb-tip.hid{opacity:0;pointer-events:none;transform:translateY(8px)}
.cb-tip i{font-style:normal;color:#1F4FD8}

.cb-win{position:fixed;right:16px;bottom:16px;z-index:9995;width:410px;max-width:calc(100vw - 20px);height:680px;max-height:calc(100vh - 32px);background:#F2F4F9;border-radius:22px;box-shadow:0 24px 70px rgba(0,0,0,.4);display:flex;flex-direction:column;overflow:hidden;transform:translateY(20px) scale(.97);opacity:0;pointer-events:none;transition:.25s;font-family:Pretendard,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;color:#16223F;word-break:keep-all}
.cb-win.open{transform:none;opacity:1;pointer-events:auto}
.cb-h{background:#0A1636;color:#fff;padding:14px 12px 14px 16px;display:flex;align-items:center;gap:12px;flex:none}
.cb-h .av{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#3B78FF,#1F4FD8);color:#fff;display:grid;place-items:center;font-weight:900;font-size:21px;flex:none;position:relative}
.cb-h .av::after{content:"";position:absolute;right:-3px;bottom:-3px;width:13px;height:13px;border-radius:50%;background:#2ECC71;border:2px solid #0A1636}
.cb-h .tt{flex:1;min-width:0}
.cb-h .tt b{display:block;font-size:19px;font-weight:900;line-height:1.25}
.cb-h .tt small{display:block;font-size:14px;color:#BFD0F5;margin-top:1px}
.cb-h button{background:rgba(255,255,255,.12);border:0;color:#fff;border-radius:10px;height:40px;padding:0 10px;font:800 14px/1 inherit;cursor:pointer;flex:none}
.cb-h button.x{font-size:26px;width:40px;padding:0}
.cb-pg{height:5px;background:#D9E1F0;flex:none}
.cb-pg i{display:block;height:100%;background:#1F63FF;transition:width .3s}
.cb-b{flex:1;overflow-y:auto;padding:16px 14px 8px;-webkit-overflow-scrolling:touch}
.cb-m{max-width:88%;padding:13px 15px;border-radius:16px;font-size:18px;line-height:1.55;margin-bottom:10px}
.cb-m.b{background:#fff;border-top-left-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.05)}
.cb-m.u{background:#1F4FD8;color:#fff;margin-left:auto;border-top-right-radius:4px;cursor:pointer}
.cb-m.u .ed{display:block;font-size:13px;color:#CFE0FF;font-weight:700;margin-top:2px;text-align:right}
.cb-m em{font-style:normal;color:#C0392B;font-weight:800}
.cb-m .qn{display:block;font-size:13px;font-weight:800;color:#2C55B8;margin-bottom:2px}
.cb-m .hint{display:block;font-size:14px;color:#6A7590;margin-top:4px}
.cb-an{animation:cbPop .28s}
@keyframes cbPop{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.cb-ch{display:grid;gap:8px;margin:2px 0 14px}
.cb-ch button{display:block;width:100%;text-align:left;background:#fff;border:2px solid #C9D6EE;color:#0B1C42;font:800 18px/1.35 inherit;padding:14px 16px;border-radius:14px;cursor:pointer}
.cb-ch button small{display:block;font-size:14px;font-weight:600;color:#6A7590;margin-top:2px}
.cb-ch button:hover,.cb-ch button:focus-visible{border-color:#2C55B8;background:#F3F7FF}
.cb-ch button.y{background:#1F63FF;border-color:#1F63FF;color:#fff}.cb-ch button.y small{color:#DCE6FF}
.cb-ch button.k{background:#FEE500;border-color:#FEE500;color:#191600}
.cb-ch button.n{background:#0A1636;border-color:#0A1636;color:#fff}
.cb-ch .back{background:transparent;border:0;color:#5A6785;font-size:16px;padding:6px 4px;text-decoration:underline;text-underline-offset:3px}
.cb-ch.two{grid-template-columns:1fr 1fr}

/* 진단 결과 */
.cb-rs{background:#fff;border-radius:18px;padding:18px 16px;margin-bottom:12px;box-shadow:0 4px 14px rgba(11,28,66,.08)}
.cb-rs .lv{display:inline-block;font-size:14px;font-weight:900;padding:5px 11px;border-radius:999px;color:#fff;background:#2C55B8}
.cb-rs .lv.r{background:#D32F2F}.cb-rs .lv.o{background:#E67E22}.cb-rs .lv.a{background:#B8860B}
.cb-rs h4{font-size:21px;font-weight:900;line-height:1.35;margin:10px 0 6px;color:#0B1C42}
.cb-rs .sum{font-size:15px;color:#5A6785;background:#F3F5FA;border-radius:10px;padding:10px 12px}
.cb-rs .warn{margin-top:12px;background:#FFECEC;border:1.5px solid #F2B8B8;color:#8E1B1B;border-radius:12px;padding:12px 14px;font-size:16px;font-weight:700;line-height:1.5}
.cb-rs h5{font-size:17px;font-weight:900;margin:16px 0 6px;color:#0B1C42;display:flex;align-items:center;gap:6px}
.cb-rs h5 i{font-style:normal;font-size:13px;font-weight:900;padding:3px 8px;border-radius:6px;background:#FFF1B8;color:#7A5B00}
.cb-rs h5 i.w{background:#E3ECFF;color:#1F3F8F}
.cb-rs ol{padding-left:22px;font-size:16.5px;line-height:1.55}
.cb-rs li{margin:5px 0}
.cb-rs li b{color:#0B1C42}
.cb-rs .need{margin-top:16px;background:#0A1636;color:#fff;border-radius:14px;padding:15px 16px;font-size:16px;line-height:1.55}
.cb-rs .need b{display:block;color:#7FA9FF;font-size:18px;margin-bottom:4px}
.cb-fm{background:#fff;border-radius:18px;padding:16px;margin-bottom:12px}
.cb-fm label{display:block;font-size:15px;font-weight:800;margin:10px 0 5px}
.cb-fm label small{font-weight:600;color:#8090AA}
.cb-fm input{width:100%;box-sizing:border-box;font:inherit;font-size:18px;padding:13px;border:2px solid #D3DDF0;border-radius:12px;background:#fff}
.cb-fm .ag{display:flex;gap:8px;align-items:flex-start;font-size:14px;color:#5A6785;margin-top:12px;font-weight:600}
.cb-fm .ag input{width:20px;height:20px;flex:none;margin-top:1px}
.cb-fm .go{width:100%;margin-top:14px;background:#1F63FF;color:#fff;border:0;font:900 19px/1 inherit;padding:17px;border-radius:14px;cursor:pointer}
.cb-fm .er{color:#C0392B;font-size:15px;font-weight:700;margin-top:8px;min-height:1px}
.cb-f{flex:none;display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #DDE3EF}
.cb-f a{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;font-weight:900;font-size:17px;padding:13px 8px;border-radius:12px}
.cb-f .t{background:#0A1636;color:#fff}
.cb-f .k{background:#FEE500;color:#191600}

/* 페이지 안에 넣는 형태(1분 자가진단 페이지) */
.cb-inline{position:relative;max-width:640px;margin:0 auto;background:#F2F4F9;border-radius:22px;box-shadow:0 10px 40px rgba(11,28,66,.12);display:flex;flex-direction:column;overflow:hidden;font-family:Pretendard,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;color:#16223F;word-break:keep-all;min-height:560px}
.cb-inline .cb-b{max-height:none;overflow:visible}

@media (max-width:760px){
  .cb-fab{right:12px;bottom:14px;gap:8px}
  .cb-fab .cb-sm{width:50px;height:50px;font-size:11.5px}
  .cb-fab .cb-kk{display:none}
  .cb-fab .cb-main{padding:11px 18px 11px 12px}
  .cb-fab .cb-main .ic{width:36px;height:36px}
  .cb-fab .cb-main b{font-size:18px}
  .cb-tip{font-size:15px;max-width:220px}
  .cb-win{right:0;bottom:0;width:100vw;max-width:100vw;height:92vh;height:92svh;max-height:none;border-radius:22px 22px 0 0}
  .cb-m{font-size:17.5px}
}
/* 기존 하단 고정 신청 바는 오른쪽 아래 상담 창구로 대신합니다 */
.cb-nodock{display:none!important}
.fgfl{display:none!important}

.cb-fm .ag span{display:block}
.cb-fm .ag small{display:block;margin-top:3px;font-size:13px;color:#8090AA;font-weight:500}
.cb-fm .ag{padding:10px;border-radius:10px;border:2px solid transparent;transition:border-color .2s,background .2s}
.cb-fm .ag.need{border-color:#E53935;background:#FFF1F1;animation:cbShake .4s}
@keyframes cbShake{0%,100%{transform:none}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.cb-rs .warn b{color:#8E1B1B}
.cb-agneed{outline:2px solid #FF4D5E!important;outline-offset:4px;border-radius:8px;background:rgba(255,77,94,.12)!important;animation:cbShake .4s}

/* 가독성: 상담 창구 말풍선은 연한 남색, 고르는 버튼은 흰색 */
.cb-b{background:#EEF1F7}
.cb-m.b{background:#DCE5F6;color:#13213F;box-shadow:none;border:1px solid #C9D6EE}
.cb-m.b.q{background:#fff;border:2px solid #2C55B8}
.cb-m .qq{display:block;font-size:20px;font-weight:900;color:#0B1C42;line-height:1.4}
.cb-m .qn{color:#2C55B8}
.cb-ch button{background:#fff;border:2px solid #9FB4DE;box-shadow:0 2px 0 rgba(11,28,66,.06)}
@media (max-width:760px){.cb-m .qq{font-size:18.5px}}

/* 오른쪽 아래 순서: 상담하기(위) · 전화 · 카톡(아래) */
.cb-fab .cb-row{display:flex;gap:8px}
.cb-tip{border-radius:16px 16px 4px 16px}
/* PC에서는 상담 창을 크게 */
@media (min-width:761px){
  .cb-win{width:500px;height:min(800px,calc(100vh - 32px))}
  .cb-m{font-size:18.5px}
  .cb-ch button{font-size:18.5px;padding:15px 18px}
}
.cb-b{position:relative}
.cb-tip{padding-right:38px!important}
.cb-tip-x{position:absolute;top:6px;right:6px;width:28px;height:28px;border:0;border-radius:50%;background:#EEF1F7;color:#5A6785;font-size:18px;line-height:1;cursor:pointer}
/* v121 · 메신저처럼: 왼쪽 프로필 + 하늘색 말풍선(질문 포함) / 흰색 답 버튼 / 고른 답은 오른쪽 파란 말풍선 */
.cb-b{background:#EAF0F9!important;padding:18px 14px 10px!important}
.cb-m.b{position:relative;margin-left:46px!important;max-width:calc(100% - 60px)!important;background:#D6E6FB!important;border:0!important;color:#13213F;border-radius:18px!important;border-top-left-radius:6px!important;box-shadow:0 1px 1px rgba(11,28,66,.06)!important}
.cb-b>.cb-m.b:first-child::before,.cb-m.u+.cb-m.b::before,.cb-ch+.cb-m.b::before,.cb-m.b.q::before{content:"되";position:absolute;left:-46px;top:0;width:36px;height:36px;border-radius:12px;background:linear-gradient(135deg,#3B78FF,#1F4FD8);color:#fff;font-weight:900;font-size:17px;display:grid;place-items:center}
.cb-b>.cb-m.b:first-child,.cb-m.u+.cb-m.b,.cb-ch+.cb-m.b,.cb-m.b.q{margin-top:22px!important}
.cb-b>.cb-m.b:first-child::after,.cb-m.u+.cb-m.b::after,.cb-ch+.cb-m.b::after,.cb-m.b.q::after{content:"되찾길";position:absolute;left:2px;top:-21px;font-size:13px;font-weight:800;color:#5A6785}
.cb-b>.cb-m.b:first-child{margin-top:20px!important}
.cb-m.b.q{background:#D6E6FB!important;border:0!important}
.cb-m.b.q .qn{display:inline-block;margin-bottom:6px;padding:2px 9px;border-radius:999px;background:#fff;color:#1F4FD8;font-size:12.5px}
.cb-m.b.q .qq{font-size:20px;color:#0B1C42}
.cb-m.b.q .hint{color:#4F5D7D}
.cb-m.u{background:#1F4FD8!important;color:#fff;border-radius:18px!important;border-top-right-radius:6px!important;max-width:78%!important;margin-top:14px!important;box-shadow:0 2px 6px rgba(31,79,216,.25)}
.cb-ch{margin:8px 0 16px 46px!important;gap:8px!important}
.cb-ch button{position:relative;background:#fff!important;border:1.5px solid #D3DDEE!important;border-radius:16px!important;padding:14px 44px 14px 16px!important;box-shadow:0 1px 2px rgba(11,28,66,.06)!important;transition:border-color .15s,background .15s,transform .1s}
.cb-ch button::after{content:"›";position:absolute;right:16px;top:50%;transform:translateY(-52%);font-size:26px;font-weight:400;color:#9AA9C7}
.cb-ch button:hover,.cb-ch button:focus-visible{border-color:#1F63FF!important;background:#F4F8FF!important}
.cb-ch button:active{transform:scale(.99)}
.cb-ch button.y,.cb-ch button.k,.cb-ch button.n,.cb-ch .back{padding-right:16px!important}
.cb-ch button.y::after,.cb-ch button.k::after,.cb-ch button.n::after,.cb-ch .back::after{content:none}
.cb-ch button.y{background:#1F63FF!important;border-color:#1F63FF!important}
.cb-ch button.k{background:#FEE500!important;border-color:#FEE500!important}
.cb-ch button.n{background:#0A1636!important;border-color:#0A1636!important}
.cb-ch .back{background:transparent!important;border:0!important;box-shadow:none!important}
.cb-ch.two button{padding-right:16px!important}.cb-ch.two button::after{content:none}
.cb-an{animation:cbIn .28s ease both}
@keyframes cbIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (max-width:760px){.cb-m.b{margin-left:42px!important;max-width:calc(100% - 52px)!important}.cb-ch{margin-left:42px!important}.cb-b>.cb-m.b:first-child::before,.cb-m.u+.cb-m.b::before,.cb-ch+.cb-m.b::before,.cb-m.b.q::before{left:-42px;width:34px;height:34px}.cb-m.b.q .qq{font-size:19px}}
.cb-ch button{font-family:inherit!important;font-size:18px!important;font-weight:800!important;line-height:1.35!important;color:#0B1C42}
.cb-ch button small{font-size:14.5px!important;font-weight:600!important;color:#5E6B88!important;margin-top:3px!important}
.cb-ch button.y,.cb-ch button.n{color:#fff!important}.cb-ch button.y small,.cb-ch button.n small{color:#DCE6FF!important}
.cb-ch .back{font-weight:700!important;font-size:16px!important;color:#5A6785!important}
.cb-b>.cb-m.b:first-child+.cb-m.b.q{margin-top:8px!important}
.cb-b>.cb-m.b:first-child+.cb-m.b.q::before,.cb-b>.cb-m.b:first-child+.cb-m.b.q::after{content:none}
@media (max-width:760px){.cb-ch button{font-size:18.5px!important}}
/* v122 · 헤더: 대표변호사 얼굴 / 마지막 버튼: 흰 카드 + 아이콘으로 차분하게 */
.cb-h .avs{display:flex;flex:none}
.cb-h .avs img{width:42px;height:42px;border-radius:50%;object-fit:cover;object-position:top;border:2px solid #0B1C42;background:#13244F}
.cb-h .avs img+img{margin-left:-12px}
.cb-h .tt small{opacity:.85}
.cb-ch button.y,.cb-ch button.k,.cb-ch button.n{background:#fff!important;color:#0B1C42!important;border:1.5px solid #D3DDEE!important;padding:15px 44px 15px 58px!important}
.cb-ch button.y::after,.cb-ch button.k::after,.cb-ch button.n::after{content:"›"!important;position:absolute;right:16px;top:50%;transform:translateY(-52%);font-size:26px;font-weight:400;color:#9AA9C7}
.cb-ch button.y::before,.cb-ch button.k::before,.cb-ch button.n::before{content:"";position:absolute;left:14px;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:50%;background-position:center;background-repeat:no-repeat;background-size:18px}
.cb-ch button.n{border-color:#1F4FD8!important;box-shadow:0 0 0 3px rgba(31,79,216,.1)!important}
.cb-ch button.n::before{background-color:#1F4FD8;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9zm0 2c-4 0-8 2-8 5v2h16v-2c0-3-4-5-8-5z'/%3E%3C/svg%3E")}
.cb-ch button.y::before{background-color:#0B1C42;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E")}
.cb-ch button.k::before{background-color:#FEE500;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23191600'%3E%3Cpath d='M12 4C7 4 3 7.1 3 11c0 2.5 1.7 4.7 4.2 6l-1 3.6 4.2-2.7c.5.1 1 .1 1.6.1 5 0 9-3.1 9-7s-4-7-9-7z'/%3E%3C/svg%3E")}
.cb-ch button.y:hover,.cb-ch button.k:hover,.cb-ch button.n:hover{border-color:#1F63FF!important;background:#F4F8FF!important}
.cb-f a,.cb-f button{font-weight:800}
.cb-h .tt small{white-space:nowrap;font-size:12.5px!important}
