/* v28 빠른 상담(cs-)·홈 앱 팝업(hm-app) — MO. tools/gen_cs_css.py 로 만든 파일(손으로 고치지 말 것). 원본: cms.rebeauty-builder.com assets/mo/css/{consult,base,pages/home}.css */
.cs{position:fixed;right:max(16px,calc((100vw - 480px) / 2 + 16px));bottom:calc(16px + env(safe-area-inset-bottom));z-index:100}
body.has-tabbar .cs{bottom:calc(56px + 16px + env(safe-area-inset-bottom))}
body.has-modal .cs{display:none}
.cs-fab{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:linear-gradient(180deg,#febeb1 0%,#f68770 22.6%,#e9694f 72.6%,#ffac75 100%);box-shadow:0 3.45px 6.89px rgba(117,124,133,.4);color:#fff}
.cs-fab-ic{width:29.45px;height:29.29px}
.cs-tip{position:absolute;right:0;bottom:60px;width:225.56px;height:68.07px}
.cs-tip-bg{position:absolute;left:0;top:0;width:225.56px;height:68.35px;filter:drop-shadow(0 1.66px 3.32px rgba(117,124,133,.4));overflow:visible}
.cs-tip-txt{position:absolute;left:13.44px;top:9.13px;font-size:14px;font-weight:700;line-height:1.4;letter-spacing:-.02em;color:#222;white-space:nowrap}
.cs-tip-txt b{color:#ec7057}
.cs-tip-go{position:absolute;left:13.17px;top:31.52px;display:flex;align-items:center;gap:5px;font-size:12px;font-weight:600;line-height:17px;color:#999}
.cs-tip-go .ic{width:12.9px;height:11.61px}
.cs-tip-x{position:absolute;left:195.56px;top:7px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#ebebeb;color:#a49da9}
.cs-tip-x::before{content:"";position:absolute;inset:-8px}
.cs-tip-x .ic{width:22px;height:22px}
.cs.tip-off .cs-tip{display:none}


.cs-page{position:relative;display:flex;flex-direction:column;height:100vh;height:100dvh;overflow:hidden;isolation:isolate;color:#222;font-size:16px;line-height:1.4}

.cs-page::before{content:"";position:absolute;left:-11.7px;top:-183.9px;z-index:-1;width:401px;height:401px;border-radius:50%;background:radial-gradient(circle at 100% 0,#f6d2cd,#ffe5d3 100%);opacity:.6;filter:blur(146.7px);pointer-events:none}
.cs-page[data-view=chat]::before{left:94.9px}
.cs-view{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}
.cs-bar{position:relative;flex:none;z-index:2;background:none;box-shadow:none}
.cs-bar .bar-title{letter-spacing:-.01em}
.cs-bar .bar-btn{color:#999}
.cs-readall{font-size:14px;font-weight:600;line-height:1;letter-spacing:-.02em;color:#777}
.cs-exit{display:grid;place-items:center;width:24px;height:24px;color:#999}
.cs-exit .ic{width:23.48px;height:23.48px}
.cs-body{position:relative;flex:1;min-height:0}
.cs-scroll{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.cs-heart{display:block;width:54.78px;height:47.8px;margin:0 auto}


.cs-rooms{padding:33px 0 80px}
.cs-room{position:relative;height:62.5px;-webkit-touch-callout:none;user-select:none}
.cs-room+.cs-room{margin-top:27.4px}
.cs-room-open{display:flex;gap:7.8px;width:100%;height:100%;padding:7.8px 52px 7.8px 19.57px;text-align:start}
.cs-ava{flex:none;width:37.17px;height:37.17px;border-radius:50%;background:#a1b28d}
.cs-ava.c1{background:#ce7565}
.cs-ava.c2{background:#685072}
.cs-room-txt{display:block;flex:1;min-width:0}
.cs-room-top{display:flex;align-items:center;height:17px}
.cs-room-top b{font-size:17px;font-weight:700;line-height:1;color:#444;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-room-top time{flex:none;margin:3px 0 0 6px;font-size:12px;font-weight:300;line-height:1;color:#777}
.cs-room-top .cs-dot{position:static;margin:2px 0 0 6px}
.cs-room-last{display:block;margin-top:7.8px;font-size:16px;line-height:1.4;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-more{position:absolute;right:8px;top:4px;display:grid;place-items:center;width:32px;height:32px;color:#444;opacity:0;transition:opacity .15s}
.cs-more .ic{width:23.5px;height:23.5px}
.cs-room.is-more .cs-more,.cs-more:focus-visible{opacity:1}
@media (hover:hover){.cs-room:hover .cs-more{opacity:1}}
.cs-room.is-more{background:rgba(242,239,243,.6)}
.cs-dot{position:absolute;width:5.87px;height:5.87px;border-radius:50%;background:#ff5a65}


.cs-empty{position:absolute;inset:0 0 38px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}
.cs-empty h3{margin-top:41px;font-size:20px;font-weight:700;line-height:1;color:#222}
.cs-empty p{margin-top:15px;font-size:16px;line-height:1.4;color:#555}
.cs-new{position:absolute;left:50%;bottom:19.6px;z-index:2;height:40.1px;padding:0 19.75px;border-radius:7.83px;background:#4b3952;box-shadow:inset 0 0 0 1px #4b3952;color:#fff;font-size:16px;font-weight:700;line-height:1.4;transform:translateX(-50%);white-space:nowrap}


.cs-tabs{flex:none;display:flex;height:calc(68.5px + env(safe-area-inset-bottom));padding:0 8px env(safe-area-inset-bottom);background:#fff}
.cs-page[data-view=chat] .cs-tabs{display:none}
.cs-tab{flex:1;display:flex;flex-direction:column;align-items:center;padding-top:11.5px;gap:2px;font-size:14px;font-weight:500;line-height:20px;color:#777}
.cs-tab[aria-current=page]{color:#222}
.cs-tab-ic{position:relative;display:block;width:23.5px;height:23.5px}
.cs-tab-ic .ic{display:block;width:23.5px;height:23.5px}
.cs-tab-ic .ic-cs-tab-chat{position:absolute;left:-1.5px;top:2.4px;width:20.57px;height:19.57px}
.cs-tab-ic .cs-dot{left:17.1px;top:-.5px}


.cs-log{padding:25.4px 23.5px 24px}
.cs-msgs:empty{display:none}
.cs-hello{padding-top:56.6px;text-align:center}
.cs-hello h3{margin-top:47.2px;font-size:20px;font-weight:700;line-height:1;color:#222}
.cs-hello>p{margin-top:15.2px;font-size:16px;line-height:1.4;color:#555}
.cs-hello .cs-hello-line{display:flex;align-items:center;gap:8px;margin:74.8px -8.5px 0;font-size:14px;line-height:20px;color:#555}
.cs-hello-line::before,.cs-hello-line::after{content:"";flex:1;height:1px;background:#eee}
.cs-menu{display:grid;gap:8px;width:169.24px;margin:18.2px auto 0}
.cs-menu button{display:flex;align-items:center;justify-content:center;width:100%;height:39.1px;border-radius:5000px;background:#fff;box-shadow:inset 0 0 0 1px #eee;font-size:16px;line-height:1.4;color:#333}
.cs-menu button:active{box-shadow:inset 0 0 0 1px #ce7565;color:#ce7565}
.cs-log.has-msgs .cs-hello{display:none}


.cs-msg+.cs-msg{margin-top:20px}
.cs-msg.bot+.cs-msg.me{margin-top:16px}
.cs-bub{font-size:16px;line-height:1.4;white-space:pre-line;word-break:break-word}
.cs-msg.me{display:flex;justify-content:flex-end}
.cs-msg.me .cs-bub{max-width:min(296px,100%);padding:8px 11.7px;border-radius:11.74px 0 11.74px 11.74px;background:#ce7565;color:#fff}
.cs-who{display:flex;align-items:center;height:23.5px}
.cs-who .cs-ava{width:23.48px;height:23.48px}
.cs-who b{margin-left:5.9px;font-size:15px;font-weight:500;line-height:1;color:#555}
.cs-who time{margin:2px 0 0 6px;font-size:12px;font-weight:300;line-height:1;color:#777}
.cs-msg.bot .cs-bub{display:inline-block;max-width:min(296px,100%);margin-top:11.7px;padding:11.74px;border-radius:0 11.74px 11.74px 11.74px;background:#f2f5ee;color:#222}

.cs-msg.agent .cs-ava{background:#685072}
.cs-msg.agent .cs-bub{background:#f2eff3}
.cs-chips{display:flex;flex-wrap:wrap;gap:7.8px;max-width:296px;margin-top:11.7px}
.cs-chips button{height:31.3px;padding:0 12px;border-radius:3.9px;background:#d5dccc;box-shadow:inset 0 0 0 1px #a1b28d;font-size:16px;line-height:1.4;color:#4b3952;white-space:nowrap}
.cs-chips button:active{background:#c5d0b8}
.cs-msg.sys{margin-left:-7px;margin-right:-7px;padding-top:20px;border-top:1px solid #ddd;text-align:center;font-size:16px;line-height:1.4;color:#555;white-space:pre-line}


.cs-input{flex:none;display:flex;align-items:flex-start;gap:12.7px;height:calc(74.4px + env(safe-area-inset-bottom));padding:15.6px 14.7px env(safe-area-inset-bottom) 10.76px;border-top:1px solid #eee;background:#fff}
.cs-input input{flex:1;min-width:0;height:40.1px;padding:0 19.5px;border:1px solid #ddd;border-radius:5000px;background:#f3f3f5;font-size:16px;font-weight:500;color:#222;outline:0}
.cs-input input::placeholder{color:#797979;opacity:1}
.cs-input input:focus{border-color:#ce7565}
.cs-send{display:grid;place-items:center;width:27.4px;height:27.4px;margin-top:6.4px;color:#d3d1d7}
.cs-send .ic{width:27.4px;height:27.4px}
.cs-input.has-text .cs-send{color:#ce7565}


.cs-set{padding:27px 16px 24px}
.cs-me{text-align:center}
.cs-me p{margin-top:20px;font-size:16px;line-height:1.4;color:#555}
.cs-me b{font-weight:600}
.cs-set-h{margin-top:51.4px;padding-top:19.6px;border-top:1px solid #eeeae8;font-size:13px;font-weight:400;line-height:1;color:#a6a2a0}
.cs-set-list{margin-top:9.7px}
.cs-set-list>li{height:41px}
.cs-set-row{display:flex;align-items:center;gap:4px;width:100%;height:41px;font-size:16px;line-height:1;color:#333;text-align:start}
.cs-set-row>.ic{width:20px;height:20px;color:#444}
.cs-set-row>span:not(.ic){flex:1}
.cs-set-row em{font-style:normal;color:#333}
.cs-set-row .cs-chev{width:14px;height:14px;margin:0 0 0 8px;color:#999;transform:scaleX(-1)}
.cs-switch{position:relative;flex:none;width:44.57px;height:26px;border-radius:13px;background:#eaebec;box-shadow:inset 0 0 0 .93px #e8e9f1;transition:background .2s}
.cs-switch::after{content:"";position:absolute;left:2.79px;top:2.79px;width:20.43px;height:20.43px;border-radius:50%;background:#fff;box-shadow:0 .93px 1.86px rgba(0,0,0,.1);transition:transform .2s}
.cs-switch[aria-checked=true]{background:#7d948b}
.cs-switch[aria-checked=true]::after{transform:translateX(18.57px)}


.cs-dim{position:absolute;inset:0;z-index:5}
.cs-confirm{display:grid;place-items:center;background:rgba(1,1,1,.8)}
.cs-confirm-box{width:233.8px;border-radius:7.83px;background:#fff;overflow:hidden;text-align:center}
.cs-confirm-box p{padding:35px 0 32px;font-size:17px;font-weight:500;line-height:1;color:#444}
.cs-confirm-box div{display:flex}
.cs-confirm-box button{flex:1;height:47px;background:#d4d4d4;font-size:16px;font-weight:600;line-height:1;color:#444}
.cs-confirm-box button+button{background:#81a55f;color:#fff}
.cs-sheet{bottom:calc(68.5px + env(safe-area-inset-bottom));display:flex;align-items:flex-end;background:rgba(9,9,9,.6)}
.cs-sheet-box{position:relative;width:100%;height:363px;max-height:calc(100% - 40px);padding:0 0 16px;border-radius:15.65px 15.65px 0 0;background:#fff;overflow-y:auto;animation:cs-up .22s ease-out}
@keyframes cs-up{from{transform:translateY(100%)}}
.cs-sheet-h{padding:17.6px 16px 0;font-size:14px;font-weight:500;line-height:1;color:#888}
.cs-sheet-x{position:absolute;right:15.74px;top:11.73px;display:grid;place-items:center;width:21.52px;height:21.52px;border-radius:50%;background:#ebebeb;color:#a49da9}
.cs-sheet-x::before{content:"";position:absolute;inset:-10px}
.cs-sheet-x .ic{width:21.52px;height:21.52px}
.cs-sheet-q{display:flex;align-items:center;gap:4px;height:30px;margin:15px 16px 0;padding:0 11.7px;background:#f9f9fc;color:#86818c}
.cs-sheet-q .ic{width:20.54px;height:20.54px}
.cs-sheet-q input{flex:1;min-width:0;height:100%;border:0;background:none;outline:0;font-size:16px;color:#222}
.cs-sheet-q input::placeholder{color:#86818c;opacity:1;font-size:14px}
.cs-sheet-h2{position:relative;margin-top:19.3px;padding:19.6px 16px 0;font-size:14px;font-weight:500;line-height:1;color:#888}
.cs-sheet-h2::before{content:"";position:absolute;left:15.65px;right:15.65px;top:0;height:1px;background:#eeeae8}
.cs-langs{display:grid;gap:3.65px;margin-top:14.4px;padding:0 16px}
.cs-langs button{display:flex;align-items:center;gap:4px;width:100%;height:28px;font-size:16px;line-height:1;letter-spacing:-.02em;color:#333;text-align:start}
.cs-langs small{font-size:16px;color:#999}
.cs-langs button[aria-current=true]{color:#685072}
.cs-langs-none{padding:12px 16px;font-size:15px;color:#999}
.v28m{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.6)}
.v28m-box{position:relative;width:100%;max-width:440px;max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:8px;padding:28px 20px}
.v28m.sheet{place-items:end center;padding:0}
.v28m.sheet .v28m-box{max-width:480px;border-radius:16px 16px 0 0;padding:24px 16px calc(16px + env(safe-area-inset-bottom));animation:rb-sheet .25s ease-out}
@keyframes rb-sheet{from{transform:translateY(100%)}}
.v28m-x{position:absolute;right:12px;top:12px;display:grid;place-items:center;width:32px;height:32px;color:#555}
.v28m-x .ic{width:20px;height:20px}
body.has-modal{overflow:hidden}
.v28m-box:focus,.side-panel:focus,.v28m:focus{outline:none}
.hm-app.sheet .hm-app-box{padding:0;border-radius:24px 24px 0 0;background:linear-gradient(180deg,#f5efe2 0%,#fbf8f2 30%,#fff 58%);text-align:center}
.hm-app-x{right:12px;top:12px;width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.85);color:var(--c-plum-d)}
.hm-app-main{padding:32px 20px 20px}
.hm-app-ic{width:64px;height:64px;margin:0 auto;border-radius:16px;box-shadow:0 6px 14px rgba(89,73,57,.18)}
.hm-app-t{margin-top:16px;font-size:22px;font-weight:700;line-height:1.35;letter-spacing:-.02em;color:var(--c-ink)}
.hm-app-d{margin-top:8px;font-size:15px;line-height:1.55;color:var(--c-text)}
.hm-app-lang{display:inline-flex;align-items:center;gap:6px;margin-top:14px;padding:5px 12px;border-radius:999px;background:var(--c-lav);color:var(--c-plum);font-size:13px;font-weight:600;line-height:1.3}
.hm-app-lang .ic{width:15px;height:15px}
.hm-app .hm-app-btn{display:flex;width:100%;height:auto;min-height:48px;margin-top:20px;padding:8px 8px 8px 18px;line-height:1.3;white-space:normal}
.hm-app-btn span{flex:1}
.hm-app-btn i{flex:none}
.hm-app-note{margin-top:10px;font-size:12px;line-height:1.5;color:var(--c-gray)}
.hm-app-foot{display:flex;padding-bottom:env(safe-area-inset-bottom);border-top:1px solid #eee}
.hm-app-foot button{flex:1;min-height:52px;padding:8px;font-size:14px;line-height:1.35;color:var(--c-muted)}
.hm-app-foot button+button{box-shadow:inset 1px 0 0 #eee}
.hm-app-foot .hm-app-close{font-weight:600;color:var(--c-ink2)}
/* v28 덧붙임 — cms 모바일 /consult 쪽을 같은 쪽 위 전체 화면 층으로 */
.cs-page.cs-ov{position:fixed;inset:0;z-index:210;width:100%;max-width:480px;margin:0 auto;background:#fff}
.cs-menu a{display:flex;align-items:center;justify-content:center;width:100%;height:39.15px;border-radius:5000px;background:#fff;box-shadow:inset 0 0 0 1px #eee;font-size:16px;line-height:1.4;color:#333;text-decoration:none}
.cs-input input:disabled{opacity:.6}
.cs-set-row>em{flex:none}
/* body keep-all 이라 쪼갤 자리 없는 일본어·중국어 줄이 칸을 넘지 않게(그 자리에서 끊기) */
.hm-app-box,.cs-win,.cs-page{overflow-wrap:break-word}
/* 칩 글이 긴 언어(vi 등)는 칩 폭을 글에 맞춰 넓힌다(cms 폭은 최소로) */
.cs-menu{width:max-content;min-width:169.24px;max-width:100%}
.cs-menu button,.cs-menu a{padding:0 16px;white-space:nowrap}
/* 앱 팝업 안 리뷰티맵 줄(모바일 시트) — iOS 는 이 줄만 */
.hm-app-map{display:grid;grid-template-columns:88px 1fr;align-items:center;gap:12px;margin:0 20px 20px;padding:12px;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 1px #ece6dc;text-align:start}
.hm-app-map-shot{width:88px;height:50px;border-radius:10px;overflow:hidden;box-shadow:inset 0 0 0 1px #ece6dc}
.hm-app-map-shot img{display:block;width:100%;height:100%;object-fit:cover;object-position:60% 40%}
.hm-app-map-tx{min-width:0;display:flex;flex-direction:column;gap:3px}
.hm-app-map-tx b{font-size:15px;font-weight:700;line-height:1.3;color:var(--c-ink)}
.hm-app-map-tx span{font-size:13px;line-height:1.45;color:var(--c-text)}
.hm-app .hm-app-map-btn{grid-column:1/-1;display:flex;width:100%;height:40px;background:#fff;color:var(--c-plum-d);box-shadow:inset 0 0 0 1px var(--c-plum-d)}
.hm-app .hm-app-map-btn::before{background:var(--c-plum-d)}
.hm-app .hm-app-map-btn i{width:28px;height:28px;background:var(--c-plum-d);color:#fff}
.hm-app.is-ios .hm-app-main{display:none}
.hm-app.is-ios .hm-app-map{margin-top:56px}
/* 홈 리뷰티맵 띠(모바일) — hm-pop 머리 간격 그대로 */
.hm-map{padding:72px 0 64px;background:#fff;text-align:center}
.hm-map .hm-title{height:107.7px;margin-top:39px}
.hm-map .hm-title .ini{font-size:79.1px}
.hm-map .hm-sub2{margin-top:39.9px}
.hm-map-desc{margin:16px 24px 0;font-size:15px;font-weight:300;line-height:1.6;color:var(--c-muted)}
.hm-map-shot{display:block;margin:32px 16px 0;border-radius:16px;overflow:hidden;box-shadow:0 12px 32px rgba(43,30,51,.16)}
.hm-map-shot img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.hm-map-btn{margin-top:40px}
