.back-to-top{top:50%!important;right:clamp(10px,2vw,22px)!important;bottom:auto!important;transform:translateY(-50%) scale(.9)!important}.back-to-top.is-visible{transform:translateY(-50%) scale(1)!important}
.wm-chat-panel{position:fixed;z-index:70;right:20px;bottom:calc(20px + env(safe-area-inset-bottom));width:min(460px,calc(100vw - 32px));max-height:min(760px,calc(100dvh - 40px));display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid rgba(180,216,240,.82);border-radius:28px;background:#fff;box-shadow:0 30px 90px rgba(5,45,78,.28);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(18px) scale(.98);transform-origin:bottom right;transition:opacity .24s,visibility .24s,transform .24s}.wm-chat-panel,.wm-chat-panel *,.wm-chat-panel *::before,.wm-chat-panel *::after{box-sizing:border-box}.wm-chat-panel.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:none}.wm-chat-head{position:relative;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 18px 16px;color:#fff;background:linear-gradient(135deg,#0b77c8,#075cae)}.wm-chat-brand{display:flex;align-items:center;gap:12px;min-width:0}.wm-chat-avatar{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;flex:0 0 auto;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.27)}.wm-chat-avatar svg{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:1.8}.wm-chat-brand strong{display:block;font-size:1rem}.wm-chat-brand small{display:block;margin-top:4px;color:#dff3ff;font-size:.72rem}.wm-chat-close{width:40px;height:40px;padding:0;border:1px solid rgba(255,255,255,.3);border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.1);color:#fff;font-size:1.45rem;line-height:1;cursor:pointer}.wm-chat-body{position:relative;min-width:0;padding:20px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(180deg,#f5fbff,#fff 38%)}
.wm-chat-welcome{margin-bottom:15px;padding:15px 16px;border:0;border-radius:20px;background:linear-gradient(135deg,#eef8ff,#fbfdff);box-shadow:inset 0 0 0 1px rgba(194,224,243,.62)}.wm-chat-intro{margin:0 0 5px;color:#0b3157;font-size:1.05rem;font-weight:750;line-height:1.45}.wm-chat-note{margin:0;color:#5b7188;font-size:.79rem;line-height:1.6}.wm-chat-topics{display:grid;gap:8px}.wm-chat-topic{width:100%;min-height:50px;padding:12px 15px;border:0;border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;color:#153e63;background:#fff;font:650 .92rem/1.45 "Anuphan","IBM Plex Sans Thai",sans-serif;cursor:pointer;box-shadow:inset 0 0 0 1px #d8e8f3,0 7px 18px rgba(22,95,149,.04);transition:transform .18s,background .18s,box-shadow .18s}.wm-chat-topic:hover,.wm-chat-topic:focus-visible{transform:translateY(-1px);background:#f5fbff;box-shadow:inset 0 0 0 1px #70bde9,0 9px 22px rgba(22,95,149,.08)}.wm-chat-topic span:last-child{color:#1685d1;font-size:1.35rem}
.wm-chat-intro.is-typing::after,.wm-chat-note.is-typing::after{content:"";display:inline-block;width:2px;height:1em;margin-left:3px;vertical-align:-.1em;border-radius:2px;background:#1684d2;animation:wmTypeCursor .72s steps(1) infinite}
.wm-chat-form[hidden],.wm-chat-success[hidden],.wm-chat-topics[hidden],.wm-form-step[hidden]{display:none}.wm-chat-form{display:grid;width:100%;min-width:0;gap:14px}.wm-form-toolbar{display:flex;min-width:0;align-items:center;gap:10px}.wm-chat-back{flex:0 0 auto;padding:8px 10px;border:0;border-radius:999px;background:#eaf6fd;color:#1478bd;font-weight:700;cursor:pointer}.wm-chat-selection{min-width:0;margin:0;padding:9px 12px;border-radius:999px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#eef8ff;color:#15537f;font-size:.78rem;font-weight:700}.wm-form-progress{display:grid;grid-template-columns:26px minmax(40px,90px) 26px;align-items:center;justify-content:center}.wm-form-progress span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#e7f0f6;color:#7890a3;font-size:.72rem;font-weight:800}.wm-form-progress span.is-active{color:#fff;background:#1684d2;box-shadow:0 5px 14px rgba(22,132,210,.24)}.wm-form-progress i{height:2px;background:#d9e8f2}.wm-form-step{width:100%;min-width:0;max-width:100%;margin:0;padding:18px;border:0;border-radius:22px;overflow:hidden;background:rgba(255,255,255,.92);box-shadow:0 14px 38px rgba(20,86,136,.09),inset 0 0 0 1px rgba(208,229,242,.72)}.wm-form-step legend{float:left;width:100%;max-width:100%;margin:0 0 5px;color:#0b3157;font-size:1.06rem;font-weight:800}.wm-step-note{clear:both;margin:0 0 15px;color:#6a8195;font-size:.76rem;line-height:1.55}.wm-field{display:grid;min-width:0;max-width:100%;gap:6px;margin-top:12px}.wm-field label{max-width:100%;color:#173f62;font-size:.78rem;font-weight:700}.wm-field label small{font-weight:500;color:#71869a}.wm-field input,.wm-field textarea{display:block;width:100%;min-width:0;max-width:100%;padding:12px 13px;border:1px solid transparent;border-radius:14px;background:#f2f7fb;color:#0b2b4c;font:500 16px/1.45 "Anuphan","IBM Plex Sans Thai",sans-serif;outline:none;transition:background .18s,border-color .18s,box-shadow .18s}.wm-field input::placeholder,.wm-field textarea::placeholder{color:#91a4b4}.wm-field textarea{min-height:116px;resize:vertical}.wm-field input:focus,.wm-field textarea:focus{border-color:#55abe0;background:#fff;box-shadow:0 0 0 4px rgba(45,155,219,.11)}.wm-field-row{display:grid;min-width:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.wm-field-row>*{min-width:0}.wm-chat-next,.wm-chat-submit{width:100%;min-height:49px;margin-top:17px;border:0;border-radius:15px;color:#fff;background:linear-gradient(135deg,#168ee0,#075cae);font-weight:800;cursor:pointer;box-shadow:0 10px 24px rgba(7,92,174,.2)}.wm-chat-next{display:flex;align-items:center;justify-content:center;gap:8px}.wm-form-actions{display:grid;grid-template-columns:.38fr .62fr;gap:9px;margin-top:15px}.wm-form-actions .wm-chat-submit{margin:0}.wm-step-back{border:0;border-radius:15px;background:#e9f3f9;color:#315875;font-weight:750;cursor:pointer}.wm-chat-submit:disabled{opacity:.58;cursor:wait}.wm-consent{display:grid;grid-template-columns:19px minmax(0,1fr);gap:9px;align-items:start;margin-top:14px;padding:11px;border-radius:13px;background:#f6f9fb;color:#5b7188;font-size:.73rem;line-height:1.5}.wm-consent input{width:18px;height:18px;margin:1px 0 0;accent-color:#1677d2}.wm-privacy-details{margin-top:9px;color:#71869a;font-size:.7rem;line-height:1.5}.wm-privacy-details summary{cursor:pointer;color:#5e7890}.wm-privacy-details p{margin:6px 0 0}.wm-chat-error{margin:10px 0 0;padding:9px 11px;border-radius:11px;background:#fff1f0;color:#b42318;font-size:.76rem;line-height:1.5}.wm-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
.wm-chat-success{text-align:center;padding:2px 8px 8px}.wm-success-copy{position:relative;margin-top:22px;padding:26px 16px 18px;border-radius:20px;background:#f4faff;box-shadow:inset 0 0 0 1px #d8ebf7}.wm-chat-success-icon{position:absolute;top:-20px;left:50%;width:42px;height:42px;border:4px solid #fff;border-radius:50%;display:grid;place-items:center;transform:translateX(-50%);color:#fff;background:linear-gradient(135deg,#27b77c,#168b67);font-size:1.2rem}.wm-chat-success h3{margin:10px 0 7px;color:#0b3157;font-size:1.2rem}.wm-chat-success p{margin:0;color:#5b7188;font-size:.86rem;line-height:1.65}.wm-chat-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.wm-chat-actions a{min-height:45px;padding:10px 12px;border:1px solid #c7dfef;border-radius:14px;display:grid;place-items:center;color:#116cae;background:#fff;font-size:.8rem;font-weight:800}.wm-chat-actions a:first-child{color:#fff;border-color:#1677d2;background:#1677d2}.wm-chat-new{margin-top:12px;padding:7px;border:0;background:none;color:#1376b8;font-weight:700;cursor:pointer}
@keyframes wmTypeCursor{0%,48%{opacity:1}49%,100%{opacity:0}}
@media(max-width:620px){.wm-chat-panel{inset:auto 0 0 0;width:100%;max-height:min(88dvh,760px);border-radius:26px 26px 0 0;transform:translateY(30px);transform-origin:bottom center}.wm-chat-body{padding:16px 14px calc(18px + env(safe-area-inset-bottom))}.wm-chat-head{padding:15px 16px}.wm-chat-welcome{padding:14px}.wm-field-row{grid-template-columns:1fr}.wm-form-step{padding:16px 14px}.back-to-top{top:50%!important;right:10px!important;bottom:auto!important;width:48px;height:48px}}
@media(prefers-reduced-motion:reduce){.wm-chat-panel,.wm-chat-topic{transition:none}}
.wm-form-step legend{float:none;display:block;width:auto;padding:0}.wm-step-note{clear:none}
