/* 奶蛙 5.0 满血版：三栏面板（纯前端，不动订单与钱包逻辑） */
.shop-companion{animation:buddy-bob 3.4s ease-in-out infinite}
@keyframes buddy-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.shop-companion[data-mood="night"]{animation:none}
.shop-companion[data-mood="night"] .shop-companion-face img{filter:brightness(.85) saturate(.9)}
.shop-companion.panel-open .shop-companion-bubble{display:none!important}
.companion-panel{position:fixed;z-index:770;width:min(340px,calc(100vw - 32px));background:#fff;border:1px solid #e7dfe1;border-radius:18px;box-shadow:0 18px 50px rgba(51,30,36,.18);padding:14px 16px 12px;color:#332b31;font-size:13px;line-height:1.7;box-sizing:border-box}
.companion-panel[hidden]{display:none!important}
.companion-panel-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.companion-panel-head strong{flex:1;font-size:15px}
.companion-panel-ver{font-size:10px;color:#fff;background:#8d3a4c;border-radius:99px;padding:1px 8px}
.companion-panel-head button{border:0;background:#f7f2f3;border-radius:50%;width:26px;height:26px;font-size:16px;line-height:1;cursor:pointer;color:#8d3a4c}
.companion-panel-greet{margin:0 0 10px;color:#493b42}
.companion-panel-tabs{display:flex;gap:4px;border-bottom:1px solid #eee;margin-bottom:10px}
.companion-panel-tabs button{flex:1;border:0;background:none;padding:7px 0 8px;font:inherit;font-size:13px;font-weight:650;color:#8d94a0;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}
.companion-panel-tabs button.is-active{color:#8d3a4c;border-bottom-color:#8d3a4c}
.companion-panel-tab[hidden]{display:none!important}
.companion-chat-log{max-height:240px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;margin-bottom:10px;padding-right:2px}
.companion-bubble-frog{align-self:flex-start;max-width:88%;background:#faf8f8;border:1px solid #efe9eb;border-radius:14px 14px 14px 4px;padding:9px 12px}
.companion-bubble-frog a{color:#8d3a4c}
.companion-bubble-user{align-self:flex-end;max-width:88%;background:#6c303e;color:#fff5ed;border-radius:14px 14px 4px 14px;padding:9px 12px}
.companion-followups{display:flex;flex-wrap:wrap;gap:6px}
.companion-followups button{border:1px solid #e7dde1;background:#fff;border-radius:99px;padding:4px 10px;font-size:12px;color:#8d3a4c;cursor:pointer}
.companion-order-row{display:flex;justify-content:space-between;gap:8px;text-decoration:none;color:#332b31;background:#fff;border:1px solid #eee;border-radius:10px;padding:7px 10px;margin-top:6px}
.companion-order-row b{white-space:nowrap;color:#8d3a4c}
.companion-panel-actions{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.companion-panel-actions a{flex:1 1 30%;text-align:center;text-decoration:none;color:#754351;background:#fff9f8;border:1px solid #e7dde1;border-radius:10px;padding:7px 4px;font-size:12px;font-weight:650;box-sizing:border-box}
.companion-panel-actions a:active{transform:scale(.96)}
.companion-panel-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.companion-panel-chips button{border:1px solid #e7dde1;background:#fbfafb;border-radius:99px;padding:5px 11px;font-size:12px;color:#5b6574;cursor:pointer}
.companion-panel-chips button:active{transform:scale(.96)}
.companion-panel-form,.companion-search-form{display:flex;gap:6px}
.companion-panel-form input,.companion-search-form input{min-width:0;flex:1;border:1px solid #e7dde1;border-radius:10px;padding:8px 10px;font:inherit;font-size:13px}
.companion-panel-form button,.companion-search-form button{border:0;border-radius:10px;background:#6c303e;color:#fff5ed;padding:8px 14px;font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
.companion-search-form{margin-bottom:12px}
.companion-brief-hi{font-weight:700;margin:0 0 4px}
.companion-brief-head{font-weight:700;margin:10px 0 0}
.companion-brief-line{display:block;color:#8d3a4c;text-decoration:none;margin-top:4px}
.companion-panel-tip{margin:10px 0 0;font-size:11px;color:#a7979f}
.companion-tip-row{display:flex;align-items:center;gap:8px}
.companion-tip-row .companion-panel-tip{flex:1}
.companion-tip-row button,.companion-brief-refresh{border:1px solid #e7dde1;background:#fbfafb;border-radius:99px;padding:3px 10px;font-size:11px;color:#5b6574;cursor:pointer;white-space:nowrap}
.companion-brief-refresh{margin-top:8px}
.companion-panel-snooze{display:block;margin:8px 0 0 auto;border:0;background:none;color:#b1a0a6;font-size:11px;cursor:pointer;padding:0}
@media (prefers-reduced-motion:reduce){.shop-companion{animation:none}}
.companion-panel-tabs button{position:relative}
.companion-tab-dot{position:absolute;top:5px;right:16px;width:8px;height:8px;border-radius:50%;background:#d33e52}
.companion-tab-dot[hidden]{display:none!important}

.companion-brief-unread{display:block;color:#c0273c!important;font-weight:700;background:#fff1f2;border:1px solid #f3c2c9;border-radius:10px;padding:7px 10px}
