/* 땡스티켓 실시간 상담 창 (2026-11-16) — 룸빵24 상담 창 구조 · 보라 테마 */
.tc-badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#ff4d4f;color:#fff;font-size:11px;font-weight:700;font-style:normal;line-height:20px;text-align:center;box-shadow:0 0 0 2px #fff}
.float-btn a,.fb-btn a{position:relative}
.tc{position:fixed;right:max(24px,env(safe-area-inset-right,0px));bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:300;display:flex;flex-direction:column;width:380px;height:600px;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);background:#fff;border-radius:20px;box-shadow:0 18px 60px rgba(40,20,90,.28);overflow:hidden;font-family:'Noto Sans KR',sans-serif;color:#1a1a2e}
.tc[hidden]{display:none}
.tc__head{display:flex;align-items:center;gap:11px;padding:15px 16px;background:linear-gradient(135deg,#7c3aed 0%,#9f67fa 100%);color:#fff;flex-shrink:0}
.tc__mark{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.18);font-weight:800;font-size:.95rem;flex-shrink:0}
.tc__title{flex:1;min-width:0}
.tc__title b{display:block;font-size:1rem;font-weight:800}
.tc__state{display:flex;align-items:center;gap:6px;font-size:.75rem;opacity:.9}
.tc__state i{width:7px;height:7px;border-radius:50%;background:#fbbf24}
.tc__state.is-on i{background:#4ade80;box-shadow:0 0 0 3px rgba(74,222,128,.25)}
.tc__x{border:0;background:rgba(255,255,255,.16);color:#fff;width:34px;height:34px;border-radius:50%;font-size:1.3rem;line-height:1;cursor:pointer;flex-shrink:0}
.tc__x:hover{background:rgba(255,255,255,.28)}
/* 시작 화면 (이름·번호·동의) */
.tc__gate{display:none;flex:1;overflow-y:auto;padding:20px 18px;flex-direction:column;gap:8px}
.tc--gated .tc__gate{display:flex}
.tc--gated .tc__body,.tc--gated .tc__form{display:none}
.tc__lead{margin:0 0 6px;font-size:1rem;font-weight:800;line-height:1.5}
.tc__lead small{display:block;margin-top:4px;font-size:.8rem;font-weight:400;color:#4b4b6b}
.tc__lab{font-size:.82rem;font-weight:700;color:#4b4b6b;margin-top:4px}
.tc__lab b{color:#7c3aed;font-size:.72rem;margin-left:3px}
.tc__in{width:100%;padding:12px 13px;border:1.5px solid #e8e4f8;border-radius:10px;font-size:16px;font-family:inherit;outline:none;background:#fff;color:#1a1a2e;box-sizing:border-box}
.tc__in:focus{border-color:#7c3aed}
.tc__hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.tc__agree{margin-top:6px;padding:12px;border-radius:10px;background:#f9f7ff;border:1px solid #e8e4f8}
.tc__chk{display:flex;align-items:flex-start;gap:8px;font-size:.84rem;line-height:1.5;cursor:pointer}
.tc__chk input{width:18px;height:18px;margin:1px 0 0;accent-color:#7c3aed;flex-shrink:0}
.tc__chk b{color:#7c3aed}
.tc__doc{margin-top:8px;font-size:.78rem;color:#4b4b6b}
.tc__doc summary{cursor:pointer;color:#7c3aed;font-weight:700}
.tc__doc dl{margin:8px 0 0}
.tc__doc dl div{display:flex;gap:8px;padding:4px 0;border-bottom:1px dashed #e8e4f8}
.tc__doc dt{flex-shrink:0;width:58px;font-weight:700}
.tc__doc dd{margin:0}
.tc__doc p{margin:8px 0 0}
.tc__err{min-height:18px;margin:4px 0 0;color:#e11d48;font-size:.8rem}
.tc__go{padding:14px 0;border:0;border-radius:12px;background:linear-gradient(135deg,#7c3aed,#9f67fa);color:#fff;font-size:1rem;font-weight:800;font-family:inherit;cursor:pointer}
.tc__go:disabled{opacity:.6}
/* 대화 */
.tc__body{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:9px;background:#f9f7ff}
.tc__msg{display:flex;flex-direction:column;max-width:84%}
.tc__msg p{margin:0;padding:10px 13px;border-radius:16px;font-size:.9rem;line-height:1.55;white-space:pre-wrap;word-break:break-word}
.tc__msg small{margin-top:3px;font-size:.7rem;color:#9090aa}
.tc__msg--them{align-self:flex-start}
.tc__msg--them p{background:#fff;border:1px solid #e8e4f8;border-top-left-radius:4px}
.tc__msg--me{align-self:flex-end;align-items:flex-end}
.tc__msg--me p{background:linear-gradient(135deg,#7c3aed,#9f67fa);color:#fff;border-top-right-radius:4px}
.tc__msg--sys{align-self:center;max-width:92%}
.tc__msg--sys p{background:none;border:1px dashed #d8d0f5;color:#4b4b6b;font-size:.78rem;padding:6px 11px;border-radius:10px;text-align:center}
.tc__form{display:flex;align-items:flex-end;gap:8px;padding:10px 10px 10px 12px;border-top:1px solid #e8e4f8;background:#fff;flex-shrink:0}
.tc__form textarea{flex:1 1 auto;min-width:0;width:0;max-height:110px;padding:10px 13px;border:1.5px solid #e8e4f8;border-radius:20px;font-size:16px;font-family:inherit;line-height:1.4;resize:none;outline:none;color:#1a1a2e}
.tc__form textarea:focus{border-color:#7c3aed}
.tc__form button{flex:0 0 44px;width:44px;height:44px;border:0;border-radius:50%;background:linear-gradient(135deg,#7c3aed,#9f67fa);color:#fff;cursor:pointer;display:grid;place-items:center}
.tc__form button svg{width:20px;height:20px;fill:currentColor}
.tc__form button:disabled{opacity:.55}
.tc__note{margin:0;padding:8px 14px 10px;font-size:.7rem;line-height:1.5;color:#9090aa;background:#fff;flex-shrink:0}
/* 히어로 폼 동의 체크 (index) */
.form-box .tc-agree{display:flex;align-items:flex-start;gap:8px;margin-bottom:14px;font-size:.8rem;line-height:1.5;color:rgba(255,255,255,.85);cursor:pointer}
.form-box .tc-agree input{width:17px;height:17px;margin:1px 0 0;accent-color:#fff;flex-shrink:0}
.form-box .tc-doc{margin:-6px 0 14px;font-size:.74rem;color:rgba(255,255,255,.75)}
.form-box .tc-doc summary{cursor:pointer;color:#fff;font-weight:700}
.form-box .tc-doc p{margin:6px 0 0;line-height:1.6}
.form-box .tc-ferr{min-height:16px;margin:0 0 8px;color:#fde68a;font-size:.8rem;font-weight:700}
@media (max-width:600px){
  .tc{right:0;bottom:0;left:0;top:0;width:auto;height:auto;max-height:none;border-radius:0}
  body.tc-on{overflow:hidden}
  body.tc-on .float-btn,body.tc-on .fb-btn{display:none}
  .tc__head{padding-top:calc(14px + env(safe-area-inset-top,0px))}
  .tc__note{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
}
/* 이름 잘못 입력 표시 (11-16) */
.tc__in[aria-invalid=true]{border-color:#e11d48;background:#fff5f7}
.form-box .form-row input[aria-invalid=true]{border-color:#fde68a;background:rgba(253,230,138,.15)}
