.tm-alert-stack{position:fixed;inset:88px 20px auto auto;width:min(380px,calc(100vw - 32px));height:auto;max-height:calc(100dvh - 110px);overflow-y:auto;margin:0;padding:0;border:0;background:transparent;color:#0e3461;z-index:10000;display:flex;flex-direction:column;gap:10px;pointer-events:none;font-family:'IBM Plex Sans Thai',sans-serif}.tm-alert-stack:empty{display:none}.tm-alert-stack::backdrop{background:transparent;pointer-events:none}.tm-alert{display:flex;align-items:flex-start;gap:12px;padding:17px 13px 17px 16px;background:#fff;border:1px solid #dce4ef;border-left:4px solid #0e3461;border-radius:11px;box-shadow:0 8px 26px #0e34611c;pointer-events:auto;animation:tm-alert-enter .24s cubic-bezier(.2,.7,.25,1);flex-shrink:0}.tm-alert-icon{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:#edf2f9;color:#0e3461}.tm-alert svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.tm-alert-copy{flex:1;min-width:0}.tm-alert-copy strong{display:block;font-size:14px;font-weight:600;line-height:1.6;color:#0e3461}.tm-alert-copy p{margin:4px 0 0;color:#405773;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.tm-alert-close{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;padding:5px;border:0;border-radius:6px;background:transparent;color:#63748a;cursor:pointer}.tm-alert-close:focus-visible{outline:3px solid #fdb523;outline-offset:2px}.tm-alert-close:hover{background:#eef3f9}.tm-alert-success{border-left-color:#25825c}.tm-alert-success .tm-alert-icon{color:#21714f;background:#eaf6ef}.tm-alert-error{border-left-color:#c34242}.tm-alert-error .tm-alert-icon{color:#b13737;background:#ffeded}.tm-alert-warning{border-left-color:#fdb523}.tm-alert-warning .tm-alert-icon{color:#896000;background:#fff4d6}@keyframes tm-alert-enter{from{opacity:0;translate:20px 0}to{opacity:1;translate:0 0}}@media(max-width:600px){.tm-alert-stack{top:75px;right:16px;width:calc(100vw - 32px)}}@media(prefers-reduced-motion:reduce){.tm-alert{animation:none}}

/* The timer and dismiss timeout share the same remaining duration. */
.tm-alert{position:relative;overflow:hidden;padding-bottom:21px}.tm-alert-timer{position:absolute;bottom:0;left:0;right:0;height:4px;background:#e8eef6;pointer-events:none}.tm-alert-timer[hidden]{display:none}.tm-alert-timer>span{display:block;width:100%;height:100%;background:#0e3461;transform-origin:left center}.tm-alert-success .tm-alert-timer>span{background:#25825c}.tm-alert-error .tm-alert-timer>span{background:#c34242}.tm-alert-warning .tm-alert-timer>span{background:#fdb523}.tm-alert.tm-alert-leaving{animation:tm-alert-exit .18s ease-in forwards;pointer-events:none}@keyframes tm-alert-exit{to{opacity:0;translate:18px 0}}@media(prefers-reduced-motion:reduce){.tm-alert.tm-alert-leaving{animation:none}}
