/* 공통 안내창·모바일 바텀시트 */
.floating-chat { display: none; }
@media (max-width: 1024px) {
  .floating-chat { position: fixed; z-index: 45; right: max(20px, calc((100vw - 768px) / 2 + 20px)); bottom: calc(20px + env(safe-area-inset-bottom)); border: 1px solid #34353c; border-radius: 999px; background: #111218; color: #fff; box-shadow: 0 3px 10px #0003; transition: width 0.3s ease-out, height 0.3s ease-out; text-align: left; }
  .floating-chat img { object-fit: contain; transition: width 0.3s ease-out, height 0.3s ease-out; }
  .floating-chat-expanded { left: 19px; top: 9px; transition: opacity 0.2s ease-out, transform 0.3s ease-out; }
  .floating-chat-compact { left: 16px; top: 10px; transition: opacity 0.2s ease-in; }
  .floating-chat.is-compact, .floating-chat.is-compact img { transition-timing-function: ease-in; }
  .floating-chat.is-compact .floating-chat-expanded { transform: translateX(16px); transition-timing-function: ease-in; }
  .floating-chat.is-compact .floating-chat-compact { transition: opacity 0.2s ease-out 0.1s; }
  body:has(dialog[open]) .floating-chat, body:has(.cookie-notice:not([hidden])) .floating-chat { visibility: hidden; pointer-events: none; }
  .mf-chat-sheet { --mf-sheet-unit: 1px; padding-bottom: 52px; }
  .mf-chat-sheet .mf-chat-social { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-chat, .floating-chat * { transition: none !important; }
}
@media (max-width: 1024px) {
  .mf-consent-sheet { text-align: left; padding: 16px 20px 36px; }
  .mf-consent-logo { display: block; width: 140px; margin: 68px auto 28px; }
  .mf-consent-all { display: flex; align-items: center; gap: 4px; margin: 0 28px 12px; font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px))); }
  .mf-consent-sheet input { accent-color: #4132b6; width: 15px; height: 15px; flex-shrink: 0; margin: 2px 0 0; }
  .mf-consent-options { display: grid; gap: 8px; margin: 0 30px 16px 44px; }
  .mf-consent-options label { display: flex; gap: 5px; align-items: flex-start; font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px))); line-height: 20px; }
  .mf-consent-options a { text-decoration: underline; }
  .mf-consent-sheet .mf-consent-note { color: #292d30; }
  .mf-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .mf-consent-actions button { min-height: 52px; border: 1px solid #ddd; background: #fff; border-radius: 8px; font-size: max(min(14px, 16px), calc(16px - var(--font-size-step, 0px))); font-weight: 700; }
  .mf-consent-actions [data-consent-continue] { background: var(--responsive-color-e03830); color: #fff; border-color: var(--responsive-color-e03830); }
  .mf-consent-actions [disabled] { opacity: 0.45; cursor: not-allowed; }
  .floating-chat, .floating-chat.is-compact, .floating-chat img, .floating-chat.is-compact img { transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .floating-chat, .floating-chat img { transition: none !important; }
}
.mf-chat-sheet { --mf-sheet-unit: min(1px, 0.2272727273vw); position: fixed; inset: auto 0 0; box-sizing: border-box; width: min(100%, 440px); max-width: 100%; max-height: 90dvh; margin: 0 auto; padding: calc(var(--mf-sheet-unit) * 16) calc(var(--mf-sheet-unit) * 20) calc(calc(var(--mf-sheet-unit) * 36) + env(safe-area-inset-bottom)); overflow-y: auto; border: 0; border-radius: calc(var(--mf-sheet-unit) * 24) calc(var(--mf-sheet-unit) * 24) 0 0; background: #fff; color: #292d30; text-align: center; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-width: thin; }
.mf-chat-sheet::backdrop { background: #0008; }
.mf-chat-handle { width: calc(var(--mf-sheet-unit) * 36); height: calc(var(--mf-sheet-unit) * 4); margin: 0 auto; border-radius: 999px; background: #e3e3e3; }
.mf-chat-close { position: absolute; top: calc(var(--mf-sheet-unit) * 22); right: calc(var(--mf-sheet-unit) * 16); display: grid; place-items: center; width: calc(var(--mf-sheet-unit) * 40); height: calc(var(--mf-sheet-unit) * 40); padding: calc(var(--mf-sheet-unit) * 8); border: 0; background: transparent; color: #666; }
.mf-chat-close svg { stroke-linecap: round; stroke-linejoin: round; width: calc(var(--mf-sheet-unit) * 24); height: calc(var(--mf-sheet-unit) * 24); }
.mf-chat-logo { display: block; width: calc(var(--mf-sheet-unit) * 140); height: calc(var(--mf-sheet-unit) * 36); margin: calc(var(--mf-sheet-unit) * 68) auto calc(var(--mf-sheet-unit) * 24); object-fit: contain; }
.mf-chat-sheet h2 { margin: 0; font-size: max(min(14px, calc(var(--mf-sheet-unit) * 20)), calc(calc(var(--mf-sheet-unit) * 20) - var(--font-size-step, 0px))); font-weight: 800; line-height: 1.5; word-break: keep-all; }
.mf-chat-sheet p { margin: calc(var(--mf-sheet-unit) * 6) 0 calc(var(--mf-sheet-unit) * 40); color: #797d7f; font-size: max(min(14px, calc(var(--mf-sheet-unit) * 14)), calc(calc(var(--mf-sheet-unit) * 14) - var(--font-size-step, 0px))); line-height: 1.5; word-break: keep-all; }
.mf-chat-bubble { position: relative; display: flex; align-items: center; gap: 2px; width: fit-content; margin: 0 auto calc(var(--mf-sheet-unit) * 12); padding: 5px 16px; border-radius: 999px; background: #191a18; color: white; font-size: max(min(14px, 12px), calc(12px - var(--font-size-step, 0px))); font-weight: 500; line-height: calc(var(--mf-sheet-unit) * 22); }
.mf-chat-bubble::after { position: absolute; bottom: calc(var(--mf-sheet-unit) * -5); left: calc(50% - calc(var(--mf-sheet-unit) * 5)); width: calc(var(--mf-sheet-unit) * 10); height: calc(var(--mf-sheet-unit) * 10); background: #191a18; transform: rotate(45deg); content: ''; }
.mf-chat-social { display: flex; box-sizing: border-box; align-items: center; justify-content: center; gap: calc(var(--mf-sheet-unit) * 8); width: 100%; min-height: calc(var(--mf-sheet-unit) * 48); padding: calc(var(--mf-sheet-unit) * 10); border: 1px solid transparent; border-radius: calc(var(--mf-sheet-unit) * 8); font-weight: 700; font-size: max(min(14px, calc(var(--mf-sheet-unit) * 18)), calc(calc(var(--mf-sheet-unit) * 18) - var(--font-size-step, 0px))); line-height: calc(var(--mf-sheet-unit) * 24); }
.mf-chat-social img, .mf-chat-social svg { width: calc(var(--mf-sheet-unit) * 24); height: calc(var(--mf-sheet-unit) * 24); object-fit: contain; }
.mf-chat-kakao { background: #ffe500; color: #191a18; }
.mf-chat-naver { margin-top: calc(var(--mf-sheet-unit) * 12); border-color: #dedede; background: #fff; color: #292d30; }
@media (max-width: 1024px) {
  .mf-chat-sheet { --mf-sheet-unit: 1px; }
  .mf-chat-sheet .mf-chat-social { min-height: 56px; }
  .mf-chat-sheet.mf-consent-sheet { padding: 16px 20px 36px; border-radius: 24px 24px 0 0; text-align: left; }
  .mf-consent-sheet h2 { margin: 0 30px 14px; font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px))); line-height: 20px; }
  .mf-consent-sheet .mf-consent-note { margin: 0 30px 24px; font-size: max(min(14px, 12px), calc(12px - var(--font-size-step, 0px))); line-height: 16px; }
  .mf-consent-sheet .mf-consent-status { margin: 0 30px 16px; font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px))); color: #b2392e; }
}
html body dialog.mf-chat-sheet[data-motion='bottom-sheet'][open] { transition: translate 0.3s ease-out; }
html body dialog.mf-chat-sheet[data-motion='bottom-sheet'][open].is-closing { translate: 0 100%; transition-timing-function: ease-in; }
html body dialog.mf-chat-sheet[data-motion='bottom-sheet'][open]::backdrop { transition: background-color 0.3s ease-out; }
html body dialog.mf-chat-sheet[data-motion='bottom-sheet'][open].is-closing::backdrop { background: transparent; transition-timing-function: ease-in; }
@media (prefers-reduced-motion: reduce) {
  html body dialog.mf-chat-sheet[open], html body dialog.mf-chat-sheet[open]::backdrop { transition: none; }
}
@media (max-width: 1024px) {
  .floating-chat, .floating-chat.is-compact { display: inline-flex; align-items: center; width: max-content; max-width: calc(100vw - 40px); height: 56px; padding: 0 0 0 22px; gap: 18px; border: 1px solid #34353c; background: #111218; box-shadow: 0 3px 10px #0003; transition: none; pointer-events: auto; }
  .floating-chat-body, .floating-chat.is-compact .floating-chat-body { position: static; display: block; width: auto; max-width: none; height: auto; padding: 8px 0; border: 0; background: none; box-shadow: none; pointer-events: auto; transition: none; }
  .floating-chat-expanded, .floating-chat.is-compact .floating-chat-expanded { position: static; display: grid; width: auto; opacity: 1; transform: none; white-space: nowrap; transition: none; }
  .floating-chat-compact, .floating-chat.is-compact .floating-chat-compact { position: static; display: none; width: auto; opacity: 1; font-weight: 700; white-space: nowrap; transition: none; }
  .floating-chat.is-compact .floating-chat-expanded { display: none; }
  .floating-chat.is-compact .floating-chat-compact { display: block; }
  .floating-chat img, .floating-chat.is-compact img { position: relative; right: auto; bottom: auto; flex: 0 0 58px; border: 0; transform: none; transition: none; pointer-events: auto; }
  .floating-chat-expanded strong { font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px))); line-height: 20px; letter-spacing: -0.4px; }
  .floating-chat-expanded > span { font-size: max(min(14px, 12px), calc(12px - var(--font-size-step, 0px))); line-height: 16px; letter-spacing: -0.3px; }
  .floating-chat-compact, .floating-chat.is-compact .floating-chat-compact { font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px))); line-height: 24px; }
  .floating-chat img, .floating-chat.is-compact img { flex-basis: 76px; width: 76px; height: 76px; max-width: none; margin: -9px; }
  .floating-chat, .floating-chat.is-compact { isolation: isolate; border: 0; background: transparent; box-shadow: none; }
  .floating-chat::before { content: ''; position: absolute; inset: 0 22px 0 0; z-index: -1; border: 1px solid #34353c; border-radius: 999px; background: #111218; box-shadow: 0 3px 10px #0003; pointer-events: none; }
  .floating-chat-body, .floating-chat.is-compact .floating-chat-body { flex: 1 1 auto; min-width: 0; overflow: hidden; }
  .floating-chat img, .floating-chat.is-compact img { flex-shrink: 0; }
}
.mf-promotion-sheet h2 { white-space: pre-line; }
.mf-promotion-sheet .promotion-action { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 10px; border-radius: 8px; background: #ffe500; color: #191a18; font-size: max(min(14px, 18px), calc(18px - var(--font-size-step, 0px))); font-weight: 700; }
.mf-promotion-sheet .promotion-action img { width: 24px; height: 24px; object-fit: contain; }
@media (max-width: 1024px) {
  html body .mf-promotion-sheet h2 { font-size: max(min(14px, 22px), calc(22px - var(--font-size-step, 0px))); line-height: 30px; }
  html body .mf-promotion-sheet p { font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px))); line-height: 21px; margin: 12px 0 35px; }
  html body .mf-promotion-sheet .mf-chat-logo { margin: 60px auto 28px; }
  html body .mf-promotion-sheet .promotion-action { font-size: max(min(14px, 18px), calc(18px - var(--font-size-step, 0px))); }
  html body .mf-chat-sheet:not(.mf-consent-sheet):not(.mf-promotion-sheet) .mf-chat-logo { margin-top: 82px; }
  html body .mf-consent-sheet { padding-bottom: 36px; }
  html body .mf-consent-sheet .mf-consent-logo { margin-bottom: 20px; }
  html body .mf-consent-sheet :is(h2, .mf-consent-all, .mf-consent-options label) { font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px))); line-height: 20px; }
  html body .mf-consent-sheet .mf-consent-all { margin-bottom: 8px; }
  html body .mf-consent-sheet input[type='checkbox'] { appearance: auto; -webkit-appearance: checkbox; width: 14px !important; height: 14px !important; min-width: 14px; min-height: 14px; margin: 2px 0 0; accent-color: #3e4158; background: initial; border: initial; border-radius: 2px; }
  html body .mf-consent-sheet input[type='checkbox']:before, html body .mf-consent-sheet input[type='checkbox']:after { display: none !important; }
  html body .mf-consent-actions [data-consent-continue] { background: var(--responsive-color-ff1725); border-color: var(--responsive-color-ff1725); }
  html body .mf-chat-sheet:not(.mf-consent-sheet):not(.mf-promotion-sheet) { padding-bottom: 52px; }
  html body .mf-chat-sheet .mf-chat-logo { height: auto; }
  .mf-chat-kakao svg { width: 18px; height: 18px; }
  html body .mf-promotion-sheet { padding-bottom: 28px; }
  html body .mf-promotion-sheet .mf-chat-close { font-size: max(min(14px, 32px), calc(32px - var(--font-size-step, 0px))); line-height: 24px; }
  html body .mf-promotion-sheet .promotion-action img { width: 18px; height: 18px; }
  html body dialog.mf-chat-sheet.article-login-sheet { padding-bottom: 70px; }
  html body dialog.mf-chat-sheet.article-login-sheet .mf-chat-logo { width: 140px; height: 32px; margin: 100px auto 30px; }
  html body dialog.mf-chat-sheet.article-login-sheet > h2 { display: block; margin: 0 0 8px; font-size: 20px; line-height: 28px; font-weight: 700; }
  html body dialog.mf-chat-sheet.article-login-sheet > p { margin: 0 0 40px; font-size: 14px; line-height: 21px; }
  html body dialog.mf-chat-sheet.article-login-sheet .mf-chat-bubble { font-size: 12px; }
  html body dialog.mf-chat-sheet.article-login-sheet .mf-chat-social { min-height: 42px; padding: 8px; font-size: 16px; line-height: 24px; }
}
html body dialog.account-demo-provider { padding: 52px 20px 36px; text-align: center; }
html body dialog.account-demo-provider h2 { margin: 0 0 32px; font-size: 32px; }
html body dialog.account-demo-provider p { font-size: 14px; line-height: 22px; color: #666; margin-bottom: 28px; }
.account-demo-submit { width: 100%; min-height: 44px; background: #ffe500; border-radius: 8px; font-size: 16px; font-weight: 700; }
.mf-test-login { display: block; margin: 14px auto 0; padding: 8px 16px; color: #666; font-size: 14px; text-decoration: underline; }
.mf-test-login[hidden] { display: none; }
/* 모바일 바텀시트 카카오 버튼 공통 크기 */
@media (max-width: 1024px) {
  html body dialog.mf-chat-sheet .mf-chat-kakao, html body dialog.mf-promotion-sheet .promotion-action { font-size: 16px; }
  html body dialog.mf-promotion-sheet .promotion-action span { font-size: inherit; }
}
/* 모바일 공통 채팅 버튼 */
@media (max-width: 1024px) {
  html:root body[class] > button.floating-chat { display: inline-flex !important; }
}
/* 채팅·글쓰기 플로팅 버튼 크기 */
@media (max-width: 1024px) {
  html body > button.floating-chat { width: 254px; height: 56px; }
  html body > button.floating-chat.is-compact { width: 150px; height: 56px; }
}
@media (min-width:1025px) {
  .floating-chat, .floating-chat.is-compact { display: inline-flex; align-items: center; width: max-content; max-width: calc(100vw - 40px); height: 56px; padding: 0 0 0 22px; gap: 18px; border: 1px solid #34353c; background: #111218; box-shadow: 0 3px 10px #0003; transition: none; pointer-events: auto; }
  .floating-chat-body, .floating-chat.is-compact .floating-chat-body { position: static; display: block; width: auto; max-width: none; height: auto; padding: 8px 0; border: 0; background: none; box-shadow: none; pointer-events: auto; transition: none; }
  .floating-chat-expanded, .floating-chat.is-compact .floating-chat-expanded { position: static; display: grid; width: auto; opacity: 1; transform: none; white-space: nowrap; transition: none; }
  .floating-chat-compact, .floating-chat.is-compact .floating-chat-compact { position: static; display: none; width: auto; opacity: 1; font-weight: 700; white-space: nowrap; transition: none; }
  .floating-chat.is-compact .floating-chat-expanded { display: none; }
  .floating-chat.is-compact .floating-chat-compact { display: block; }
  .floating-chat img, .floating-chat.is-compact img { position: relative; right: auto; bottom: auto; flex: 0 0 58px; border: 0; transform: none; transition: none; pointer-events: auto; }
  .floating-chat-expanded strong { font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px))); line-height: 20px; letter-spacing: -0.4px; }
  .floating-chat-expanded > span { font-size: max(min(14px, 12px), calc(12px - var(--font-size-step, 0px))); line-height: 16px; letter-spacing: -0.3px; }
  .floating-chat-compact, .floating-chat.is-compact .floating-chat-compact { font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px))); line-height: 24px; }
  .floating-chat img, .floating-chat.is-compact img { flex-basis: 76px; width: 76px; height: 76px; max-width: none; margin: -9px; }
  .floating-chat, .floating-chat.is-compact { isolation: isolate; border: 0; background: transparent; box-shadow: none; }
  .floating-chat::before { content: ''; position: absolute; inset: 0 22px 0 0; z-index: -1; border: 1px solid #34353c; border-radius: 999px; background: #111218; box-shadow: 0 3px 10px #0003; pointer-events: none; }
  .floating-chat-body, .floating-chat.is-compact .floating-chat-body { flex: 1 1 auto; min-width: 0; overflow: hidden; }
  .floating-chat img, .floating-chat.is-compact img { flex-shrink: 0; }
  html body > .floating-chat { position: fixed; z-index: 45; right: 24px; bottom: 24px; color: #fff; text-align: left; width: 254px; height: 56px; }
  html body > .floating-chat.is-compact { width: 150px; }
  body:has(dialog[open]) .floating-chat { visibility: hidden; }
}
@media (min-width:1025px) {
  html body .mf-consent-sheet { padding: 32px 24px; text-align: left; }
  .mf-consent-logo { display: block; width: 140px; margin: 24px auto; }
  .mf-consent-sheet h2 { margin: 0 0 20px; font-size: 16px; line-height: 24px; }
  .mf-consent-all { display: flex; gap: 8px; margin-bottom: 16px; }
  .mf-consent-options { display: grid; gap: 12px; }
  .mf-consent-options label { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 20px; }
  .mf-consent-sheet input { flex-shrink: 0; width: 15px; height: 15px; margin-top: 3px; accent-color: #4132b6; }
  .mf-consent-options a { text-decoration: underline; }
  .mf-consent-note { margin: 20px 0; font-size: 12px; line-height: 18px; }
  .mf-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .mf-consent-actions button { min-height: 52px; border: 1px solid #ddd; border-radius: 0; background: #fff; font-size: 16px; }
  .mf-consent-actions [data-consent-continue] { background: #e03830; border-color: #e03830; color: #fff; }
  .mf-consent-actions [disabled] { opacity: .45; cursor: not-allowed; }
}
/* PC 안내창은 모바일과 동일한 시각 규격 사용. 플로팅 버튼은 모바일 전용. */
@media (min-width: 1025px) {
  .mf-chat-sheet { --mf-sheet-unit: 1px; padding-bottom: 52px; }
  .mf-chat-sheet .mf-chat-social { min-height: 56px; }
  .mf-consent-sheet { text-align: left; padding: 16px 20px 36px; }
  .mf-consent-logo { display: block; width: 140px; margin: 16px auto 24px; }
  .mf-consent-all { display: flex; align-items: center; gap: 4px; margin: 0 28px 12px; font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px))); }
  .mf-consent-sheet input { accent-color: #4132b6; width: 15px; height: 15px; flex-shrink: 0; margin: 2px 0 0; }
  .mf-consent-options { display: grid; gap: 8px; margin: 0 30px 16px 44px; }
  .mf-consent-options label { display: flex; gap: 5px; align-items: flex-start; font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px))); line-height: 20px; }
  .mf-consent-options a { text-decoration: underline; }
  .mf-consent-sheet .mf-consent-note { color: #292d30; }
  .mf-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .mf-consent-actions button { min-height: 52px; border: 1px solid #ddd; background: #fff; border-radius: 0; font-size: max(min(14px, 16px), calc(16px - var(--font-size-step, 0px))); font-weight: 700; }
  .mf-consent-actions [data-consent-continue] { background: var(--responsive-color-e03830); color: #fff; border-color: var(--responsive-color-e03830); }
  .mf-consent-actions [disabled] { opacity: 0.45; cursor: not-allowed; }
  .mf-chat-sheet { --mf-sheet-unit: 1px; }
  .mf-chat-sheet .mf-chat-social { min-height: 56px; }
  .mf-chat-sheet.mf-consent-sheet { inset: 0; margin: auto; width: min(480px, calc(100vw - 32px)); max-width: none; height: fit-content; max-height: calc(100dvh - 32px); padding: 44px 24px 28px; border-radius: 0; text-align: left; }
  .mf-consent-sheet h2 { margin: 0 30px 14px; font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px))); line-height: 20px; }
  .mf-consent-sheet .mf-consent-note { margin: 0 30px 24px; font-size: max(min(14px, 12px), calc(12px - var(--font-size-step, 0px))); line-height: 16px; }
  .mf-consent-sheet .mf-consent-status { margin: 0 30px 16px; font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px))); color: #b2392e; }
  html body .mf-promotion-sheet h2 { font-size: max(min(14px, 22px), calc(22px - var(--font-size-step, 0px))); line-height: 30px; }
  html body .mf-promotion-sheet p { font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px))); line-height: 21px; margin: 12px 0 35px; }
  html body .mf-promotion-sheet .mf-chat-logo { margin: 20px auto 28px; }
  html body :is(.mf-promotion-sheet,.mf-consent-sheet) .mf-chat-handle { display: none; }
  html body .mf-promotion-sheet .promotion-action { font-size: max(min(14px, 18px), calc(18px - var(--font-size-step, 0px))); }
  html body .mf-chat-sheet:not(.mf-consent-sheet):not(.mf-promotion-sheet) .mf-chat-logo { margin-top: 82px; }
  html body .mf-consent-sheet { padding-bottom: 36px; }
  html body .mf-consent-sheet .mf-consent-logo { margin-bottom: 20px; }
  html body .mf-consent-sheet :is(h2, .mf-consent-all, .mf-consent-options label) { font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px))); line-height: 20px; }
  html body .mf-consent-sheet .mf-consent-all { margin-bottom: 8px; }
  html body .mf-consent-sheet input[type='checkbox'] { appearance: auto; -webkit-appearance: checkbox; width: 14px !important; height: 14px !important; min-width: 14px; min-height: 14px; margin: 2px 0 0; accent-color: #3e4158; background: initial; border: initial; border-radius: 0; }
  html body .mf-consent-sheet input[type='checkbox']:before, html body .mf-consent-sheet input[type='checkbox']:after { display: none !important; }
  html body .mf-consent-actions [data-consent-continue] { background: var(--responsive-color-ff1725); border-color: var(--responsive-color-ff1725); }
  html body .mf-chat-sheet:not(.mf-consent-sheet):not(.mf-promotion-sheet) { padding-bottom: 52px; }
  html body .mf-chat-sheet .mf-chat-logo { height: auto; }
  .mf-chat-kakao svg { width: 18px; height: 18px; }
  html body .mf-promotion-sheet { inset: 0; margin: auto; height: fit-content; padding: 32px 28px 28px; border-radius: 0; }
  html body .mf-promotion-sheet .mf-chat-close { font-size: max(min(14px, 32px), calc(32px - var(--font-size-step, 0px))); line-height: 24px; }
  html body .mf-promotion-sheet .promotion-action img { width: 18px; height: 18px; }
  html body dialog.mf-chat-sheet.article-login-sheet { padding-bottom: 70px; }
  html body dialog.mf-chat-sheet.article-login-sheet .mf-chat-logo { width: 140px; height: 32px; margin: 100px auto 30px; }
  html body dialog.mf-chat-sheet.article-login-sheet > h2 { display: block; margin: 0 0 8px; font-size: 20px; line-height: 28px; font-weight: 700; }
  html body dialog.mf-chat-sheet.article-login-sheet > p { margin: 0 0 40px; font-size: 14px; line-height: 21px; }
  html body dialog.mf-chat-sheet.article-login-sheet .mf-chat-bubble { font-size: 12px; }
  html body dialog.mf-chat-sheet.article-login-sheet .mf-chat-social { min-height: 42px; padding: 8px; font-size: 16px; line-height: 24px; }
  html body dialog.mf-chat-sheet .mf-chat-kakao, html body dialog.mf-promotion-sheet .promotion-action { font-size: 16px; }
  html body dialog.mf-promotion-sheet .promotion-action span { font-size: inherit; }
  html:root body[class] > button.floating-chat { display: none !important; }
}

/* 로그인은 별도 페이지와 중앙 모달을 함께 제공합니다. */
html body dialog.mf-chat-sheet.login-modal { --mf-sheet-unit: 1px; inset: 0; margin: auto; width: min(480px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); height: fit-content; padding: 44px 40px 40px; border-radius: 0; background: #fff; }
html body dialog.login-modal .mf-chat-handle,
html body dialog.login-modal .mf-chat-logo { display: none; }
html body dialog.login-modal > h2 { display: block; margin: 0 0 20px; font-size: 24px; line-height: 34px; font-weight: 700; }
html body dialog.login-modal > p { margin: 0 0 28px; font-size: 16px; line-height: 26px; }
html body dialog.login-modal .mf-chat-bubble { background: #fff; color: #333; border: 1px solid #ddd; box-shadow: 0 2px 5px #0002; margin-bottom: 20px; }
html body dialog.login-modal .mf-chat-bubble::after { background: #fff; }
html body dialog.login-modal .mf-chat-social { min-height: 48px; margin-top: 12px; padding: 12px; font-size: 16px; line-height: 24px; border-radius: 4px; }
html body dialog.login-modal .mf-chat-close { top: 8px; right: 8px; }
@media(max-width: 600px) { html body dialog.mf-chat-sheet.login-modal { padding: 40px 24px 28px; } html body dialog.login-modal > h2 { font-size: 20px; line-height: 28px; } html body dialog.login-modal > p { font-size: 14px; line-height: 22px; } }
/* 로그인 말풍선 꼬리까지 이어지는 그림자와 버튼 높이 */
html body dialog.login-modal .mf-chat-bubble {
  box-shadow: none;
  filter: drop-shadow(0 2px 3px #0002);
}
html body dialog.mf-chat-sheet.article-login-sheet .mf-chat-social {
  height: 56px;
  min-height: 56px;
  box-sizing: border-box;
}