/* 공통 메시지 dialog (msg-dialog.js) — 홈페이지 · 배송 기사 화면
   색은 화면의 --accent · --text … 를 따르고(없으면 기본값), 크기는 --msgd-fs(글자) · --msgd-h(버튼 높이)로 바꿈 */
dialog.msgd{width:min(400px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:0;border-radius:20px;background:var(--surface,#fff);color:var(--text,#111827);box-shadow:0 20px 60px rgb(15 23 42 / 28%);overflow:auto}
dialog.msgd[open]{animation:msgdIn .18s ease-out}
dialog.msgd::backdrop{background:rgb(15 23 42 / 50%)}
html:has(dialog.msgd[open]){overflow:hidden}
.msgd [hidden]{display:none!important}
.msgd-in{padding:26px 22px 20px;text-align:center}
.msgd-icon{--c:var(--accent,#2563eb);display:grid;place-items:center;width:52px;height:52px;margin:0 auto 12px;border-radius:50%;background:color-mix(in srgb,var(--c) 13%,transparent);color:var(--c)}
.msgd-icon svg{width:28px;height:28px}
.msgd.is-warn .msgd-icon,.msgd.is-danger .msgd-icon{--c:var(--danger,#dc2626)}
.msgd-title{margin:0 0 6px;font-size:calc(var(--msgd-fs,15px) + 3px);font-weight:800;line-height:1.4}
.msgd-text{margin:0;font-size:var(--msgd-fs,15px);line-height:1.6;white-space:pre-line;word-break:keep-all;overflow-wrap:anywhere}
.msgd-strong{margin:12px 0 4px;font-size:30px;font-weight:800;letter-spacing:1px;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.msgd-note{margin:6px 0 0;color:var(--muted,#6b7280);font-size:calc(var(--msgd-fs,15px) - 2px);line-height:1.5;white-space:pre-line;word-break:keep-all}
.msgd-value{width:100%;height:46px;margin-top:14px;padding:0 12px;border:1px solid var(--line,#d1d5db);border-radius:10px;background:var(--surface-2,#f3f4f6);color:inherit;font:inherit;font-size:16px;text-align:center}
.msgd-acts{display:flex;gap:8px;margin-top:22px}
.msgd-btn{flex:1 1 0;min-width:0;min-height:var(--msgd-h,48px);padding:0 12px;border:1px solid var(--line,#d1d5db);border-radius:14px;background:transparent;color:inherit;font:inherit;font-size:calc(var(--msgd-fs,15px) + 1px);font-weight:700;cursor:pointer}
.msgd-btn.is-ok{border-color:var(--accent,#2563eb);background:var(--accent,#2563eb);color:var(--accent-ink,#fff)}
.msgd.is-danger .msgd-btn.is-ok{border-color:var(--danger,#dc2626);background:var(--danger,#dc2626);color:#fff}
.msgd-btn:focus-visible{outline:3px solid color-mix(in srgb,var(--accent,#2563eb) 40%,transparent);outline-offset:2px}
@keyframes msgdIn{from{opacity:0;transform:translateY(10px) scale(.97)}}
@media(prefers-reduced-motion:reduce){dialog.msgd[open]{animation:none}}
