.tmt-root{position:fixed;right:18px;bottom:16px;z-index:80;font-family:"DM Sans",Arial,sans-serif;color:#33272c}
.tmt-root [hidden],#order-review[hidden]{display:none!important}
.tmt-launcher{position:relative;width:92px;height:105px;border:0;background:none;padding:0;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;filter:drop-shadow(0 9px 13px #37132540);animation:tmt-bob 3.2s ease-in-out infinite}
.tmt-moving .tmt-launcher{cursor:grabbing;animation:none}
.tmt-art{position:relative;display:block;width:100%;height:100%;background:url('mascot/a-trung-v55.svg') center/contain no-repeat;pointer-events:none;-webkit-touch-callout:none}
.tmt-art::after{content:"";position:absolute;inset:0;background:url('mascot/a-trung-blink-v55.svg') center/contain no-repeat;opacity:0;animation:none}
.tmt-launcher-tip,.tmt-launcher-count{pointer-events:none;-webkit-touch-callout:none}
.tmt-launcher-tip{position:absolute;right:69px;bottom:58px;width:max-content;max-width:175px;border:1px solid #ead6cd;border-radius:16px 16px 4px 16px;padding:8px 11px;background:#fffaf4;box-shadow:0 8px 22px #2c16251e;color:#63293b;font-size:12px;font-weight:800;line-height:1.3;text-align:center}
.tmt-hint-right .tmt-launcher-tip{right:auto;left:78px;border-radius:16px 16px 16px 4px}
.tmt-launcher-count{position:absolute;top:3px;right:4px;min-width:23px;padding:3px 6px;border-radius:50px;background:#b82f4e;color:white;font-size:11px;font-weight:800}
.tmt-chat,.tmt-cart-popup{position:fixed;right:114px;bottom:32px;width:min(390px,calc(100vw - 136px));animation:tmt-appear .2s ease-out}
.tmt-reply{position:relative;width:max-content;max-width:100%;margin:0 0 9px auto;padding:11px 14px;border:1px solid #ead6cd;border-radius:18px 18px 4px 18px;background:#fffaf4;box-shadow:0 12px 35px #38192530;color:#63293b;font-size:13px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.tmt-reply-link{display:block;margin-top:7px;color:#982946;font-weight:800;text-decoration:underline}
.tmt-read{display:inline-grid;place-items:center;width:30px;height:30px;margin-left:7px;padding:0;border:0;border-radius:9px;background:#f4e8dd;color:#682c3f;font-size:14px;cursor:pointer;vertical-align:middle}
.tmt-tools{display:flex;justify-content:space-between;gap:8px;margin:5px 4px 0}.tmt-tools button{border:0;background:transparent;color:#704b55;font-size:11px;font-weight:700;text-decoration:underline;cursor:pointer;padding:3px 5px}
.tmt-history{max-height:min(190px,30dvh);overflow:auto;list-style:none;margin:6px 0 0;padding:7px;border:1px solid #ead6cd;border-radius:14px;background:#fffaf4;box-shadow:0 10px 25px #38192522}
.tmt-turn{max-width:88%;margin:5px 0;padding:8px 10px;border-radius:11px;font-size:12px;line-height:1.35;overflow-wrap:anywhere}.tmt-turn-user{margin-left:auto;background:#f2dfd3;color:#442c30}.tmt-turn-assistant{background:#fff;color:#63293b;border:1px solid #f0e4da}
.tmt-root[data-mood="thinking"] .tmt-launcher{animation:tmt-think 1.7s ease-in-out infinite}.tmt-root[data-mood="happy"] .tmt-launcher{animation:tmt-happy .75s ease-in-out 2}.tmt-root.tmt-speaking .tmt-art{filter:drop-shadow(0 0 10px #f5ba63)}
.tmt-typing-dot{display:inline-block;width:5px;height:5px;margin-left:3px;border-radius:50%;background:currentColor;vertical-align:middle;animation:tmt-dot 1s ease-in-out infinite}.tmt-typing-dot:nth-last-child(2){animation-delay:.15s}.tmt-typing-dot:last-child{animation-delay:.3s}
.tmt-intro-center{left:50%!important;top:46%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%);animation:tmt-intro-in .55s cubic-bezier(.2,1.4,.3,1) both}
.tmt-intro-center .tmt-launcher{width:min(230px,55vw);height:min(265px,63vw)}
.tmt-intro-center .tmt-launcher-tip{right:auto;left:50%;bottom:-45px;transform:translateX(-50%);width:max-content;max-width:min(310px,86vw);font-size:14px;text-align:center;box-shadow:0 20px 60px #38192540}
.tmt-privacy{display:block;margin:5px 5px 0;text-align:right;color:#71605e;font-size:10px;line-height:1.3}
.tmt-compose{display:flex;align-items:center;gap:7px;padding:7px;border:1px solid #e6c9b9;border-radius:18px;background:#fffcf7;box-shadow:0 12px 38px #38192538}
.tmt-input{flex:1;min-width:0;border:0;outline:0;padding:9px 7px;background:transparent;color:#33272c;font:inherit;font-size:16px}
.tmt-input::placeholder{color:#8a7775}
.tmt-compose button{flex:none;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:12px;background:#f4e8dd;color:#682c3f;font-size:18px;cursor:pointer}
.tmt-compose .tmt-send{background:#b82f4e;color:white}
.tmt-compose button:disabled{opacity:.5;cursor:wait}
.tmt-cart-trigger{position:relative}.tmt-cart-count{position:absolute;right:-4px;top:-5px;min-width:17px;padding:1px 4px;border-radius:30px;background:#b82f4e;color:white;font-size:10px;line-height:1.4}
.tmt-cart-popup{bottom:42px;padding:15px;border:1px solid #e6c9b9;border-radius:20px;background:#fffcf7;box-shadow:0 20px 52px #38192544}
.tmt-cart-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.tmt-cart-head strong{font-family:Fraunces,Georgia,serif;font-size:19px;color:#61273a}.tmt-cart-close{width:28px;height:28px;border:0;border-radius:50%;background:#f4e8dd;color:#61273a;font-size:19px;cursor:pointer}
.tmt-cart-items{max-height:min(270px,45dvh);overflow:auto;margin:10px 0}.tmt-cart-empty{margin:8px 0;color:#796b64;font-size:13px}
.tmt-cart-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 8px;padding:9px 0;border-top:1px solid #f0e2d8;font-size:13px}.tmt-cart-row>strong{color:#61273a}.tmt-cart-controls{display:flex;align-items:center;gap:9px;grid-column:1/-1}.tmt-cart-controls button{width:29px;height:29px;border:1px solid #e3c9b8;border-radius:9px;background:#fff6ed;color:#61273a;font-size:18px;cursor:pointer}
.tmt-cart-summary{padding:10px 0;border-top:1px solid #e6c9b9;color:#61273a;font-size:14px;font-weight:800}.tmt-order-link{width:100%;border:0;border-radius:12px;padding:11px;background:#6a283c;color:#fff7ec;font-size:13px;font-weight:800;cursor:pointer}
.tmt-voice-indicator{position:absolute;right:18px;bottom:108px;display:flex;align-items:center;gap:10px;min-width:185px;max-width:260px;margin:0;padding:11px 13px;border:1px solid #e9c7d1;border-radius:16px;background:#fffaf4;box-shadow:0 9px 25px #38192538;color:#63293b;font-size:12px;font-weight:800;pointer-events:none}
.tmt-voice-indicator[hidden]{display:none}
.tmt-wave{display:flex;align-items:center;justify-content:center;gap:3px;height:26px;flex:none}.tmt-wave i{display:block;width:3px;height:7px;border-radius:5px;background:#b82f4e;animation:tmt-wave 760ms ease-in-out infinite alternate}.tmt-wave i:nth-child(2),.tmt-wave i:nth-child(4){animation-delay:160ms}.tmt-wave i:nth-child(3){animation-delay:320ms}
.tmt-voice-caption{line-height:1.3}
.tmt-hint-right .tmt-voice-indicator{right:auto;left:0}
.tmt-listening .tmt-launcher{animation:tmt-record 1.15s ease-in-out infinite}.tmt-listening .tmt-launcher-tip{display:none}
.tmt-root button:focus-visible,.tmt-root input:focus-visible{outline:3px solid #d79452;outline-offset:2px}
#order-review{margin-top:13px;padding:15px;border:1px solid #cead9d;border-radius:16px;background:#fff5e9;font-size:13px;line-height:1.5}
#order-review h3{margin:0 0 9px;font-family:Fraunces,Georgia,serif;font-size:22px;color:#63273b}
#order-review ul{margin:0 0 10px;padding-left:20px}#order-review li{margin:4px 0}#order-review p{margin:5px 0}
.review-actions{display:flex;gap:8px;margin-top:13px}.review-actions button{flex:1;border:1px solid #752b3f;border-radius:11px;padding:10px;font-size:12px;font-weight:800;cursor:pointer}.review-actions button:first-child{background:white;color:#752b3f}.review-actions button:last-child{background:#752b3f;color:white}
@keyframes tmt-bob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-7px) rotate(2deg)}}
@keyframes tmt-blink{0%,91%,96%,100%{opacity:0}92%,95%{opacity:1}}
@keyframes tmt-think{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(4deg)}}
@keyframes tmt-happy{0%,100%{transform:translateY(0) rotate(0)}45%{transform:translateY(-13px) rotate(-7deg)}}
@keyframes tmt-appear{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes tmt-record{0%,100%{filter:drop-shadow(0 0 3px #b82f4e88);transform:scale(1)}50%{filter:drop-shadow(0 0 18px #b82f4ecc);transform:scale(1.1)}}
@keyframes tmt-wave{from{height:5px;opacity:.6}to{height:24px;opacity:1}}
@keyframes tmt-dot{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}
@keyframes tmt-intro-in{from{opacity:0;transform:translate(-50%,-42%) scale(.65)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@media(max-width:600px){.tmt-root{right:8px;bottom:8px}.tmt-launcher{width:67px;height:76px}.tmt-launcher-tip{right:56px;bottom:42px;max-width:145px;font-size:10px}.tmt-hint-right .tmt-launcher-tip{left:55px}.tmt-chat,.tmt-cart-popup{right:8px;bottom:91px;width:calc(100vw - 16px)}.tmt-voice-indicator{right:8px;bottom:87px}}
@media(prefers-reduced-motion:reduce){.tmt-launcher,.tmt-chat,.tmt-cart-popup,.tmt-wave i,.tmt-art::after,.tmt-root[data-mood="thinking"] .tmt-launcher,.tmt-root[data-mood="happy"] .tmt-launcher{animation:none}.tmt-listening .tmt-launcher{animation:none;outline:3px solid #b82f4e}.tmt-wave i{height:14px}}
.tmt-chat{display:flex;flex-direction:column;gap:8px;overflow:auto;overscroll-behavior:contain;min-height:0}
.tmt-chat .tmt-reply{position:relative;flex:0 1 auto;min-height:0;margin:0;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere;white-space:pre-line}
.tmt-chat .tmt-compose,.tmt-chat .tmt-tools{flex-shrink:0}
.tmt-chat .tmt-history{flex:0 1 auto;min-height:0;margin:0}
@media(max-width:600px){.tmt-input{font-size:16px}}
