/* StyleShop 상담 위젯 v2 (design/cs.pen W3, W4). 흰 바탕, 거의 검은 주 버튼, 청록은 고객 말풍선과 보내기에만 */
.csw-launch,.csw-panel{--ground:#f4f4f2;--raised:#f3f3f1;--border:#e8e7e3;--rule:#f0efec;--control:#cfcec9;--text:#131416;--muted:#5d5f60;
  --accent:#1b6c80;--primary:#1d1f20;--neg:#c4242a;
  font:15px/1.5 "IBM Plex Sans KR",system-ui,-apple-system,sans-serif;color:var(--text);box-sizing:border-box;word-break:keep-all;overflow-wrap:anywhere;-webkit-font-smoothing:antialiased}
.csw-panel *,.csw-panel *::before,.csw-panel *::after{box-sizing:border-box}
.csw-panel button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0;text-align:left}
.csw-launch:focus-visible,.csw-panel :focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* 여는 버튼 */
.csw-launch{position:fixed;right:24px;bottom:24px;z-index:2147483000;display:flex;align-items:center;gap:10px;height:56px;padding:0 20px 0 10px;
  background:var(--primary);color:#fff;border:0;border-radius:28px;cursor:pointer;transition:transform .12s ease,background .12s ease}
.csw-launch:hover{background:#000}.csw-launch:active{transform:scale(.97)}
.csw-launch .csw-av{width:36px;height:36px;font-size:13px}
.csw-lt{display:flex;flex-direction:column;line-height:1.25}
.csw-launch-t{font-size:15px;font-weight:500}
.csw-launch-t::before{content:"문의하기"}.csw-launch.on .csw-launch-t::before{content:"문의 닫기"}
.csw-lt small{font-size:11px;color:#c9cbcd}
.csw-badge{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--neg);color:#fff;font-size:12px;font-weight:600;line-height:20px;text-align:center;font-variant-numeric:tabular-nums}
.csw-badge[hidden]{display:none}
@media (max-width:480px){.csw-launch{right:16px;bottom:16px}.csw-lt small{display:none}}

/* 창 */
.csw-panel{position:fixed;right:24px;bottom:92px;z-index:2147483000;width:380px;height:min(660px,calc(100vh - 116px));display:flex;flex-direction:column;
  background:#fff;border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.14),0 0 0 1px rgba(0,0,0,.04);overflow:hidden}
.csw-panel[hidden]{display:none}
@media (max-width:480px){.csw-panel{inset:0;width:auto;height:100%;height:100dvh;border-radius:0;box-shadow:none}.csw-launch.on{display:none}}
@media (prefers-reduced-motion:no-preference){.csw-panel:not([hidden]){animation:csw-in .18s cubic-bezier(.2,.8,.2,1)}@keyframes csw-in{from{opacity:0;transform:translateY(8px) scale(.98)}}}
.csw-ib{width:40px;height:40px;display:inline-grid !important;place-items:center;color:var(--muted);border-radius:20px;flex:none}
.csw-ib:hover{background:var(--raised)}
.csw-panel svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.csw-av{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;font-size:12px;font-weight:600;flex:none}
.csw-cap{margin:0;font-size:13px;color:var(--muted)}
.csw-pill{display:inline-block;width:max-content;padding:1px 8px;border-radius:4px;background:#ebedee;color:#353736;font-size:12px;font-style:normal;line-height:20px}
.csw-ok{background:#dcfae5;color:#04250e}
.csw-primary{display:flex !important;align-items:center;justify-content:center;height:44px;border-radius:22px;background:var(--primary) !important;color:#fff !important;font-weight:500 !important;text-align:center !important;transition:transform .12s ease}
.csw-primary:hover{background:#000 !important}.csw-primary:active{transform:scale(.98)}
.csw-primary:disabled{opacity:.45;cursor:progress}

/* W3 시작 */
.csw-start .csw-top{display:flex;align-items:center;justify-content:space-between;height:56px;padding:0 8px 0 16px;flex:none}
.csw-brand{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600}
.csw-mark{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;background:var(--accent);color:#fff;font-size:12px;font-weight:600}
.csw-body{flex:1;overflow-y:auto;padding:8px 20px 20px;display:flex;flex-direction:column;gap:24px;overscroll-behavior:contain}
.csw-hello{display:flex;flex-direction:column;gap:12px}
.csw-h{margin:0;font-size:22px;line-height:1.35;font-weight:600;letter-spacing:-.01em}
.csw-ppl{display:flex;align-items:center;gap:10px}
.csw-avs{display:flex}.csw-avs .csw-av{box-shadow:0 0 0 2px #fff}.csw-avs .csw-av+.csw-av{margin-left:-6px}
.csw-ppl p{margin:0;font-size:13px;line-height:1.45;color:var(--muted);white-space:pre-line}
.csw-order{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:12px;background:var(--ground)}
.csw-orow{display:flex;gap:14px;align-items:center}
.csw-thumb{width:64px;height:80px;border-radius:6px;background:#dcd8d1;overflow:hidden;flex:none}
.csw-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.csw-oc{display:flex;flex-direction:column;gap:3px;min-width:0}
.csw-oc strong{font-size:15px;font-weight:600}
.csw-oc span{font-size:14px;font-variant-numeric:tabular-nums}
.csw-topics{display:flex;flex-direction:column}
.csw-topics .csw-cap{margin-bottom:2px}
.csw-topic{display:flex !important;align-items:center;gap:12px;width:100%;min-height:60px;padding:8px 0 !important;border-bottom:1px solid var(--rule) !important;color:var(--muted) !important}
.csw-topic>span{flex:1;display:flex;flex-direction:column;gap:1px}
.csw-topic strong{font-weight:500;color:var(--text)}
.csw-topic span span{font-size:13px}
.csw-topic:hover strong{text-decoration:underline;text-underline-offset:4px}
.csw-topic:disabled{opacity:.5;cursor:progress}
.csw-recent{display:flex !important;align-items:center;gap:12px;padding:12px 14px !important;border:1px solid var(--border) !important;border-radius:12px;color:var(--muted) !important}
.csw-recent>span{flex:1;display:flex;flex-direction:column}
.csw-recent strong{color:var(--text);font-weight:500}
.csw-recent span span{font-size:13px}
.csw-note{margin:0;font-size:13px;color:var(--muted)}

/* W4 대화 */
.csw-head{display:flex;align-items:center;gap:4px;height:60px;padding:0 8px 0 4px;border-bottom:1px solid var(--rule);flex:none}
.csw-hav .csw-av{width:32px;height:32px;font-size:13px}
.csw-ht{flex:1;display:flex;flex-direction:column;padding-left:8px;line-height:1.3;min-width:0}
.csw-ht strong{font-size:15px;font-weight:600}
.csw-ht span{font-size:12px;color:var(--muted)}
.csw-thread{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.csw-day{margin:0 0 4px;text-align:center;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:pre}
.csw-sys{margin:4px 0;text-align:center;font-size:12px;color:var(--muted)}
.csw-me,.csw-ag{display:flex;flex-direction:column;gap:4px;max-width:84%}
.csw-me{align-self:flex-end;align-items:flex-end}
.csw-b{padding:10px 14px;white-space:pre-wrap;word-break:break-word}
.csw-me .csw-b{background:var(--accent);color:#fff;border-radius:18px 18px 4px 18px}
.csw-ag .csw-b{background:var(--raised);border-radius:18px 18px 18px 4px}
.csw-meta{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.csw-img{display:block;max-width:220px;max-height:260px;border-radius:10px}
.csw-file{display:flex;gap:8px;align-items:center;padding:10px 12px;border-radius:12px;background:var(--raised);color:var(--text);text-decoration:none;font-size:14px;max-width:240px}
.csw-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.csw-card{width:286px;display:flex;flex-direction:column;gap:12px;padding:14px;border:1px solid var(--border);border-radius:14px}
.csw-card .csw-oc strong{font-size:14px}
.csw-card .csw-oc span{font-size:12px;color:var(--muted)}
.csw-eta{display:flex;justify-content:space-between;align-items:baseline;padding-top:12px;border-top:1px solid var(--rule)}
.csw-eta span{font-size:13px;color:var(--muted)}
.csw-eta strong{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}
.csw-link{font-size:13px;color:var(--text);text-underline-offset:3px}
.csw-form{width:300px;display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--border);border-radius:14px}
.csw-ft{font-size:15px;font-weight:600}
.csw-form .csw-ok{margin-top:-6px}
.csw-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:500}
.csw-field input,.csw-field textarea{font:inherit;font-size:15px;font-weight:400;color:var(--text);background:#fff;border:1px solid var(--control);border-radius:8px;padding:9px 12px;resize:vertical;min-height:42px}
.csw-field input:focus,.csw-field textarea:focus{border-color:var(--accent);outline:0;box-shadow:0 0 0 3px rgba(27,108,128,.15)}
.csw-field input:disabled,.csw-field textarea:disabled{background:var(--raised);border-color:var(--raised);color:var(--text)}
.csw-end{display:flex;flex-direction:column;gap:12px;padding:16px;margin-top:8px;border-radius:12px;background:var(--ground);text-align:center;font-size:14px;color:var(--muted)}
.csw-end p{margin:0}
.csw-comp{display:flex;align-items:flex-end;gap:8px;padding:8px 12px 12px;border-top:1px solid var(--rule);flex:none}
@media (max-width:480px){.csw-comp{padding-bottom:max(12px,env(safe-area-inset-bottom))}}
.csw-comp .csw-ib{margin-bottom:2px}
.csw-in{flex:1;min-height:44px;max-height:120px;font:inherit;font-size:16px;line-height:1.4;padding:11px 16px;border:1px solid transparent;border-radius:22px;background:var(--raised);color:var(--text);resize:none;outline:0}
.csw-in:focus{background:#fff;border-color:var(--control)}
.csw-in:disabled{opacity:.5}
.csw-send{width:44px;height:44px;border-radius:50% !important;background:var(--accent) !important;color:#fff !important;display:grid !important;place-items:center;flex:none;transition:transform .12s ease}
.csw-send:active{transform:scale(.94)}
.csw-send:disabled{opacity:.35}
.csw-toast{position:absolute;left:12px;right:12px;bottom:76px;margin:0;padding:12px 14px;border-radius:10px;background:var(--primary);color:#fff;font-size:14px}
/* 만족도와 보호 안내 (design/cs.pen A3) */
.csw-notice{margin:0 0 4px;padding:8px 12px;border-radius:10px;background:var(--ground);font-size:12px;line-height:1.5;color:var(--muted);text-align:center}
.csw-wide{max-width:100%;align-self:stretch}
.csw-csat{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid var(--border);border-radius:14px}
.csw-scale{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.csw-sc{height:44px;border-radius:10px !important;background:var(--raised) !important;font-weight:600 !important;text-align:center !important;font-variant-numeric:tabular-nums}
.csw-sc[aria-checked=true]{background:var(--primary) !important;color:#fff !important}
.csw-sc:disabled{cursor:default}
.csw-ends{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}
.csw-pickname{margin:0;min-height:20px;font-size:13px;font-weight:500;text-align:center}
.csw-fb{height:42px;padding:0 12px;border:1px solid var(--control);border-radius:8px;font:inherit;font-size:15px;color:var(--text)}
.csw-fb:focus{border-color:var(--accent);outline:0;box-shadow:0 0 0 3px rgba(27,108,128,.15)}
.csw-fbdone{margin:0;font-size:14px}

/* 크게 보기 (design/cs.pen W5): PC 에서만, 오른쪽에 붙은 큰 창 + 이 상담 칸 */
.csw-scrim{position:fixed;inset:0;z-index:2147482999;background:rgba(19,20,22,.16)}
.csw-scrim[hidden]{display:none}
.csw-tr{display:flex;align-items:center}
.csw-cbody{flex:1;display:flex;min-height:0}
.csw-cmain{flex:1;display:flex;flex-direction:column;min-width:0;position:relative}
.csw-aside{display:none}
.csw-at span,.csw-hint,.csw-send span,.csw-maxb span{display:none}
.csw-maxb{display:none !important}
.csw-comp .csw-at{order:1}.csw-comp .csw-in{order:2}.csw-comp .csw-send{order:3}
@media (min-width:900px){.csw-maxb{display:inline-flex !important}}
.csw-panel.csw-max{top:24px;bottom:24px;right:24px;width:min(960px,calc(100vw - 48px));height:auto}
.csw-launch.csw-under{display:none}
.csw-max .csw-head{height:64px;padding:0 12px 0 16px;gap:8px}
.csw-max .csw-hav .csw-av{width:36px;height:36px;font-size:14px}
.csw-max .csw-ht strong{font-size:16px}
.csw-max .csw-maxb{width:auto;padding:0 10px;gap:6px;border-radius:8px;font-size:13px;color:#45474a}
.csw-max .csw-maxb span{display:inline}
.csw-max .csw-me,.csw-max .csw-ag{max-width:min(560px,78%)}
.csw-max .csw-wide{max-width:420px;align-self:flex-start}
.csw-max .csw-comp{flex-wrap:wrap;align-items:center;gap:8px;width:min(800px,calc(100% - 64px));margin:0 auto 28px;padding:14px 16px;border:1px solid var(--control);border-radius:14px}
.csw-max .csw-comp:focus-within{border-color:var(--accent)}
.csw-max .csw-in{order:0;flex:1 1 100%;min-height:56px;padding:2px 0;background:none;border:0;border-radius:0}
.csw-max .csw-in:focus{background:none;border:0}
.csw-max .csw-at{order:1;width:auto;padding:0 10px;gap:6px;border-radius:8px;font-size:13px;color:#45474a}
.csw-max .csw-at span{display:inline}
.csw-max .csw-hint{order:2;display:inline;flex:1;font-size:12px;color:var(--muted);white-space:pre}
.csw-max .csw-send{order:3;width:auto;height:36px;padding:0 16px;border-radius:18px !important;gap:6px;grid-auto-flow:column}
.csw-max .csw-send svg{display:none}
.csw-max .csw-send span{display:inline;font-size:14px;font-weight:500}
.csw-max .csw-aside{display:flex;flex-direction:column;gap:24px;width:300px;flex:none;padding:20px;border-left:1px solid var(--rule);background:#fafaf9;overflow-y:auto}
.csw-aside section{display:flex;flex-direction:column;gap:8px}
.csw-aside h3{margin:0;font-size:12px;font-weight:400;color:var(--muted)}
.csw-aside p{margin:0;font-size:13px;line-height:1.5;white-space:pre-line}
.csw-kv{display:flex;justify-content:space-between;gap:12px;font-size:13px;min-height:24px;align-items:center}
.csw-kv span{color:var(--muted)}.csw-kv b{font-weight:400;text-align:right}
.csw-aside .csw-thumb{width:56px;height:70px}
.csw-aside .csw-oc strong{font-size:14px}.csw-aside .csw-oc span{font-size:13px}
.csw-mute{color:var(--muted)}
.csw-files{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.csw-files a{display:block;aspect-ratio:1;border-radius:6px;overflow:hidden;background:var(--raised)}
.csw-files img{width:100%;height:100%;object-fit:cover;display:block}
.csw-files .csw-fname{grid-column:1 / -1;aspect-ratio:auto;padding:8px 10px;font-size:12px;color:var(--text);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.csw-drop::after{content:"여기에 놓으면 보내요";position:absolute;inset:12px;display:grid;place-items:center;border:2px dashed var(--accent);border-radius:14px;background:rgba(227,239,242,.85);color:var(--accent);font-weight:500}
/* 크게 볼 때 시작 화면: 왼쪽 인사와 최근 주문, 오른쪽 문의 고르기 */
.csw-max.csw-start .csw-top{height:64px}
.csw-max .csw-h{font-size:28px}
.csw-max .csw-in,.csw-max .csw-in:focus,.csw-max .csw-in:focus-visible{outline:none;box-shadow:none}
.csw-max .csw-at,.csw-max .csw-maxb{display:inline-flex !important;flex-direction:row;align-items:center;height:32px}

/* 1920 기준 크게 보기 (design/cs.pen W6): 가운데 넓은 창, 왼쪽 내 상담, 가운데 대화 800, 오른쪽 이 상담과 주문 */
.csw-rail,.csw-hbrand{display:none}
.csw-cbody>.csw-body{flex:1;min-width:0}
.csw-max .csw-thread{padding:24px max(32px,calc((100% - 800px) / 2))}
.csw-max .csw-me .csw-b,.csw-max .csw-ag .csw-b{font-size:16px}
.csw-max .csw-body{padding:48px 32px;gap:28px}
.csw-max .csw-body>*{width:100%;max-width:760px;margin-left:auto;margin-right:auto}
.csw-max .csw-body .csw-order{display:none}
.csw-max .csw-h{font-size:30px}
.csw-max .csw-topics{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.csw-max .csw-topics .csw-cap{grid-column:1 / -1}
.csw-max .csw-topic{min-height:84px;padding:16px 18px !important;border:1px solid var(--border) !important;border-radius:12px}
.csw-max .csw-topic strong{font-size:16px}
.csw-max .csw-topic:hover{border-color:var(--control) !important;background:var(--raised)}
.csw-max .csw-aside{width:360px;padding:24px;gap:28px}
.csw-aside h3{font-size:13px;font-weight:600;color:#45474a}
.csw-aside .csw-orow{padding-bottom:12px;border-bottom:1px solid var(--rule)}
.csw-oask{font-size:12px !important;font-weight:500;color:var(--accent) !important;margin-top:2px}
.csw-oask:hover{text-decoration:underline;text-underline-offset:3px}
.csw-oask:disabled{opacity:.5}
.csw-rail{flex-direction:column;gap:6px;width:320px;flex:none;padding:20px 16px;background:#fafaf9;border-right:1px solid var(--rule);overflow-y:auto}
.csw-rh{display:flex;align-items:center;justify-content:space-between;padding:0 8px 8px}
.csw-rh h3{margin:0;font-size:18px;font-weight:600}
.csw-new{height:34px;padding:0 14px !important;border-radius:17px;background:#1b1c1d !important;color:#fff !important;font-size:13px !important;font-weight:500}
.csw-new::before{content:"+ "}
.csw-rlist{display:flex;flex-direction:column;gap:4px}
.csw-ri{display:flex !important;flex-direction:column;gap:4px;width:100%;padding:12px !important;border-radius:10px;border:1px solid transparent !important}
.csw-ri:hover{background:#f1f1ef !important}
.csw-ri.on{background:#fff !important;border-color:var(--rule) !important}
.csw-ra{display:flex;align-items:center;gap:8px}
.csw-ra strong{font-size:14px;font-weight:600}
.csw-ra small{font-size:12px;color:var(--muted);flex:1}
.csw-ra .csw-pill{font-style:normal}
.csw-pill.csw-live{background:#e3eff2;color:#1a6a7d}
.csw-rl{font-size:13px;color:#45474a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.csw-rw{font-size:12px;color:var(--muted)}
@media (min-width:1280px){
  .csw-panel.csw-max{left:0;right:0;margin:0 auto;top:32px;bottom:32px;width:min(1680px,calc(100vw - 64px))}
  .csw-max .csw-rail{display:flex}
  .csw-max .csw-head{padding-left:24px}
  .csw-max .csw-hback{display:none !important}
  .csw-max .csw-hbrand{display:block;width:304px;flex:none;font-size:16px;font-weight:600}
  .csw-max.csw-start .csw-top{padding-left:24px}
}
/* 불러오는 동안 스켈레톤 */
.csw-sk{display:block;border-radius:6px;background:linear-gradient(90deg,#efeeea 25%,#f7f6f3 45%,#efeeea 65%);background-size:300% 100%;animation:csw-sk 1.3s ease-in-out infinite}
@keyframes csw-sk{from{background-position:100% 0}to{background-position:0 0}}
@media (prefers-reduced-motion:reduce){.csw-sk{animation:none}}
.csw-skm{width:100%;max-width:100% !important}
.csw-skb{height:40px;border-radius:18px}
.csw-skri{pointer-events:none}
.csw-skri .csw-sk{height:12px}.csw-skri .csw-sk:nth-child(1){width:55%}.csw-skri .csw-sk:nth-child(2){width:85%}.csw-skri .csw-sk:nth-child(3){width:30%}
.csw-skav{width:32px;height:32px;border-radius:50%}
.csw-max .csw-skav{width:36px;height:36px}
/* 스크롤은 되고 막대는 안 보이게 */
.csw-panel,.csw-panel *{scrollbar-width:none}
.csw-panel ::-webkit-scrollbar,.csw-panel::-webkit-scrollbar{display:none;width:0;height:0}
