/* Molly how-to popup (from prototype) */
.molly-howto-root { --plum:#302333; --pink:#FF3B93; --cream:#FFF9F6; --white:#fff; --muted:rgba(48,35,51,.66); }
.molly-howto-root .howto { border:0; padding:0; background:transparent; max-width:520px; width:calc(100% - 40px); color:var(--plum); margin:auto; font-family:"IBM Plex Sans Thai","IBM Plex Sans",system-ui,sans-serif; font-size:calc(1rem * var(--molly-fs,1)); }
.molly-howto-root .howto::backdrop { background:rgba(48,35,51,.52); }
.molly-howto-root .howto-inner { background:var(--white); border-radius:calc(var(--radius,10px) + 4px); padding:28px 28px 24px; box-shadow:0 16px 48px rgba(48,35,51,.18); max-height:calc(100vh - 40px); overflow:auto; position:relative; }
.molly-howto-root .howto-x { position:absolute; top:12px; right:12px; width:36px; height:36px; border:0; background:transparent; color:var(--muted); font-size:1.4em; line-height:1; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.molly-howto-root .howto-x:hover { background:var(--cream); color:var(--plum); }
.molly-howto-root .howto h2 { font-size:1.28em; font-weight:600; letter-spacing:-.02em; line-height:1.35; padding-right:28px; margin:0 0 18px; color:var(--plum); }
.molly-howto-root .howto h2:focus { outline:none; }
.molly-howto-root .howto-steps { list-style:none; display:flex; flex-direction:column; margin:0 0 22px; padding:0; position:relative; counter-reset:howto; }
.molly-howto-root .howto-steps::before { content:""; position:absolute; left:13px; top:14px; bottom:14px; width:1px; background:rgba(255,59,147,.35); }
.molly-howto-root .howto-steps li { display:grid; grid-template-columns:28px 1fr; gap:14px; align-items:start; position:relative; margin:0; }
.molly-howto-root .howto-steps li + li { margin-top:16px; }
.molly-howto-root .howto-num { width:28px; height:28px; border-radius:50%; background:var(--pink); color:#fff; font-weight:600; font-size:.82em; display:flex; align-items:center; justify-content:center; position:relative; z-index:1; margin-top:1px; }
.molly-howto-root .howto-num::before { counter-increment:howto; content:counter(howto); }
.molly-howto-root .howto-steps h3 { font-size:.98em; font-weight:600; line-height:1.35; margin:2px 0; color:var(--plum); }
.molly-howto-root .howto-steps p { font-size:.86em; color:var(--muted); line-height:1.5; margin:0; }
.molly-howto-root .howto-steps a { color:var(--pink); font-weight:500; }
.molly-howto-root .howto-actions { display:flex; flex-wrap:wrap; gap:10px; }
.molly-howto-root .btn-plum, .molly-howto-root .btn-line { flex:1 1 auto; min-width:140px; display:inline-flex; align-items:center; justify-content:center; gap:8px; font-weight:600; font-size:.92em; padding:11px 18px; border-radius:8px; border:0; cursor:pointer; text-decoration:none; white-space:nowrap; font-family:inherit; }
.molly-howto-root .btn-plum { background:var(--plum); color:#fff; }
.molly-howto-root .btn-line { background:var(--line-green,#06C755); color:#fff; }
.molly-howto-root .btn-line svg { width:20px; height:20px; }
body.howto-open { overflow:hidden; }
.molly-howto-btn { display:inline-flex; align-items:center; justify-content:center; background:var(--plum,#302333); color:#fff !important; font-weight:600; padding:10px 20px; border-radius:8px; text-decoration:none !important; }
@media (max-width:640px) {
  .molly-howto-root .howto { width:calc(100% - 28px); }
  .molly-howto-root .howto-inner { padding:22px 18px 18px; }
  .molly-howto-root .howto h2 { font-size:1.12em; margin-bottom:14px; }
  .molly-howto-root .howto-steps { margin-bottom:16px; }
  .molly-howto-root .howto-steps li + li { margin-top:14px; }
}
