/* お店のチャットボット（ボタンで選ぶ形）の見た目 v1 — 2026-10-28 業務自動化部長（ORD-20261028-06）
   お店の色に合わせるとき：window.SHOP_BOT.theme = { accent: "#b5452b", ink: "#2b2623", bg: "#fbf8f4" }（または .sb{--sb-accent:…} を CSS で上書き）
   ページのほかの CSS に影響しないよう、すべて .sb の中だけに書いている */
.sb{--sb-accent:#b5452b;--sb-ink:#24211f;--sb-bg:#faf8f5;--sb-line:#e5dfd7;--sb-muted:#5f5a55;--sb-soft:rgba(0,0,0,.04);
  position:fixed;right:16px;bottom:16px;z-index:2147483000;font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic","YuGothic","Noto Sans JP",system-ui,sans-serif;line-height:1.6;color:var(--sb-ink);font-size:14px;text-align:left}
.sb *,.sb *::before,.sb *::after{box-sizing:border-box}
.sb p{margin:0}
.sb-launch{display:flex;align-items:center;justify-content:center;width:60px;height:60px;margin-left:auto;padding:0;border:0;border-radius:50%;background:var(--sb-accent);color:var(--sb-accent);cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.28);transition:transform .15s}
.sb-launch:hover{transform:scale(1.06)}
.sb-launch:focus-visible{outline:3px solid var(--sb-ink);outline-offset:3px}
.sb-robot{display:block;width:40px;height:40px;color:#fff}
.sb-robot svg,.sb-avatar svg{display:block;width:100%;height:100%}
.sb.is-open .sb-launch{display:none}
.sb-panel{width:370px;height:min(580px,calc(100vh - 32px));display:flex;flex-direction:column;background:var(--sb-bg);border:1px solid var(--sb-line);border-radius:16px;overflow:hidden;box-shadow:0 14px 40px rgba(0,0,0,.25)}
.sb-panel[hidden]{display:none}
.sb-head{display:flex;align-items:center;gap:10px;padding:9px 10px 9px 12px;background:var(--sb-accent);color:#fff}
.sb-avatar{flex:none;width:34px;height:34px;padding:3px;border-radius:50%;background:rgba(255,255,255,.18);color:#fff}
.sb-head-t{flex:1;min-width:0}
.sb-head-t b{display:block;font-size:15px;line-height:1.3}
.sb-head-t small{display:block;font-size:12px;opacity:.9;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-close{flex:none;width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.5);background:none;color:#fff;font-size:19px;line-height:1;cursor:pointer;padding:0}
.sb-close:hover,.sb-close:focus-visible{background:rgba(255,255,255,.18);outline:none}
.sb-log{flex:1;overflow-y:auto;padding:12px 10px;display:flex;flex-direction:column;gap:9px;overscroll-behavior:contain}
.sb-msg{max-width:94%;padding:9px 12px;border-radius:14px;overflow-wrap:anywhere}
.sb-bot{align-self:flex-start;background:#fff;border:1px solid var(--sb-line);border-top-left-radius:4px}
.sb-ans{width:94%}
.sb-user{align-self:flex-end;background:var(--sb-ink);color:#fff;border-top-right-radius:4px;white-space:pre-wrap}
.sb-bot>p+*{margin-top:6px}
.sb-title{font-weight:700;color:var(--sb-accent)}
.sb-lines{display:flex;flex-direction:column;gap:4px;margin-top:5px}
.sb-line{display:flex;flex-wrap:wrap;gap:2px 8px;align-items:baseline}
.sb-label{flex:none;padding:0 7px;border-radius:4px;background:var(--sb-soft);color:var(--sb-muted);font-size:12px;font-weight:700}
.sb-text{flex:1 1 auto;min-width:0}
.sb-group{margin-top:4px;font-weight:700;font-size:13px;color:var(--sb-muted)}
.sb-item{padding:2px 0;border-bottom:1px dotted var(--sb-line)}
.sb-price{flex:none;margin-left:auto;font-weight:700;white-space:nowrap}
.sb-note{font-size:12px;color:var(--sb-muted)}
.sb-sub{margin-top:8px;font-size:12px;color:var(--sb-muted)}
.sb-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.sb-chip,.sb-more{font:inherit;font-size:13px;line-height:1.4;padding:6px 11px;border-radius:999px;border:1px solid var(--sb-accent);background:#fff;color:var(--sb-accent);cursor:pointer;text-align:left}
.sb-chip:hover,.sb-chip:focus-visible,.sb-more:hover,.sb-more:focus-visible{background:var(--sb-accent);color:#fff;outline:none}
.sb-chip-more{border-style:dashed}
.sb-more{display:inline-block;margin-top:8px;border-style:dashed;font-size:12px;padding:4px 10px}
.sb-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.sb-act{display:inline-block;padding:6px 12px;border-radius:10px;border:1px solid var(--sb-ink);background:#fff;color:var(--sb-ink);font-size:13px;font-weight:700;text-decoration:none;line-height:1.4}
.sb-act-main{background:var(--sb-ink);color:#fff}
.sb-act:hover,.sb-act:focus-visible{opacity:.85;outline:2px solid var(--sb-accent);outline-offset:1px}
.sb-form{display:flex;gap:6px;padding:8px;border-top:1px solid var(--sb-line);background:#fff}
.sb-in{flex:1;min-width:0;font:inherit;font-size:16px;padding:8px 10px;border:1px solid var(--sb-line);border-radius:10px;background:var(--sb-bg);color:var(--sb-ink)}
.sb-in:focus{outline:2px solid var(--sb-accent);outline-offset:0;border-color:var(--sb-accent)}
.sb-send{flex:none;font:inherit;font-weight:700;font-size:14px;padding:8px 14px;border:0;border-radius:10px;background:var(--sb-accent);color:#fff;cursor:pointer}
.sb-foot{padding:0 10px 7px;background:#fff;font-size:11px;color:var(--sb-muted)}
@media (max-width:480px){
  .sb{right:12px;bottom:12px}
  .sb.is-open{left:8px;right:8px;bottom:8px}
  .sb-panel{width:100%;height:min(78vh,600px)}
  .sb{font-size:15px}
}
@media (prefers-reduced-motion:reduce){.sb-launch{transition:none}}
