/* Burger Pizza Hub Chatbot — 10 UI styles */
#bph-assistant{
  position:fixed;z-index:9990;right:18px;bottom:88px;
  font-family:Poppins,-apple-system,BlinkMacSystemFont,sans-serif;
  --bot-primary:#FFC107;--bot-dark:#1a1a1a;--bot-bg:#fff;--bot-msg:#f7f7f7;
}
#bph-assistant.bot-pos-left{right:auto;left:18px}
#bph-assistant .bot-toggle{
  width:58px;height:58px;border-radius:50%;border:0;cursor:pointer;
  background:var(--bot-primary);color:var(--bot-dark);
  box-shadow:0 8px 24px rgba(0,0,0,.18);display:flex;align-items:center;justify-content:center;
  position:relative;padding:0;overflow:visible;
}
#bph-assistant .bot-toggle-avatar{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%;overflow:hidden}
#bph-assistant .bot-toggle-avatar img,#bph-assistant .bot-avatar-img{width:100%;height:100%;object-fit:cover;border-radius:50%}
#bph-assistant .bot-avatar-emoji{font-size:26px;line-height:1}
#bph-assistant .bot-head-logo{width:40px;height:40px;border-radius:12px;overflow:hidden;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.15)}
#bph-assistant .bot-head-logo img{width:100%;height:100%;object-fit:cover}
#bph-assistant .bot-ping{
  position:absolute;top:2px;right:2px;width:12px;height:12px;border-radius:50%;
  background:#4CAF50;border:2px solid #fff;animation:botPulse 1.6s infinite
}
@keyframes botPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.15)}}

#bph-assistant .bot-panel{
  position:absolute;right:0;bottom:70px;width:min(360px,calc(100vw - 28px));
  height:min(560px,calc(100dvh - 150px));background:var(--bot-bg);
  border-radius:20px;box-shadow:0 16px 48px rgba(0,0,0,.22);
  display:flex;flex-direction:column;overflow:hidden;
  opacity:0;transform:translateY(12px) scale(.96);pointer-events:none;
  transition:opacity .22s,transform .22s;
}
#bph-assistant.bot-pos-left .bot-panel{right:auto;left:0}
#bph-assistant .bot-panel.open{opacity:1;transform:none;pointer-events:auto}

#bph-assistant .bot-head{
  display:flex;align-items:center;gap:10px;padding:14px 14px 12px;
  background:var(--bot-dark);color:#fff;flex-shrink:0
}
#bph-assistant .bot-head-info{flex:1;min-width:0}
#bph-assistant .bot-head-info strong{display:block;font-size:14px;font-weight:700}
#bph-assistant .bot-head-info small{font-size:11px;opacity:.75}
#bph-assistant .bot-close{border:0;background:transparent;color:#fff;font-size:24px;cursor:pointer;line-height:1;padding:0 4px}

#bph-assistant .bot-messages{
  padding:14px;flex:1;overflow-y:auto;overscroll-behavior:contain;
  background:var(--bot-msg);display:flex;flex-direction:column;gap:10px;
  min-height:0;overflow-x:hidden;-webkit-overflow-scrolling:touch
}
/* IMPORTANT: children of a column flex box shrink by default -> cards collapsed to 0px height */
#bph-assistant .bot-messages > *{flex-shrink:0}
#bph-assistant .bot-bubble{
  max-width:92%;white-space:pre-line;word-break:break-word;padding:10px 12px;
  border-radius:14px;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.06);
  align-self:flex-start;color:#333;font-size:13px;line-height:1.45
}
#bph-assistant .bot-bubble.user{
  background:var(--bot-primary);align-self:flex-end;color:#1a1a1a;border-bottom-right-radius:4px;font-weight:500
}
#bph-assistant .bot-bubble.assistant{border-bottom-left-radius:4px}
#bph-assistant .bot-typing span{
  display:inline-block;width:6px;height:6px;margin:0 2px;border-radius:50%;background:#bbb;
  animation:botDot 1s infinite
}
#bph-assistant .bot-typing span:nth-child(2){animation-delay:.15s}
#bph-assistant .bot-typing span:nth-child(3){animation-delay:.3s}
@keyframes botDot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}

#bph-assistant .bot-quick{display:flex;flex-wrap:wrap;gap:7px;margin-top:2px}
#bph-assistant .bot-quick button,#bph-assistant .bot-action{
  border:1px solid #e8d9a8;background:#fff9e7;color:#242424;padding:7px 11px;
  border-radius:20px;cursor:pointer;font:inherit;font-size:12px;text-decoration:none;font-weight:600
}

#bph-assistant .bot-products{
  display:flex;gap:10px;overflow-x:auto;padding:6px 2px 10px;width:100%;
  max-width:100%;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  scrollbar-width:thin;align-self:stretch;flex:0 0 auto;min-height:max-content;box-sizing:border-box
}
#bph-assistant .bot-products::-webkit-scrollbar{height:6px}
#bph-assistant .bot-products::-webkit-scrollbar-thumb{background:#ccc;border-radius:4px}
#bph-assistant .bot-product{
  background:#fff;border:1px solid #e8e8e8;border-radius:14px;min-width:152px;width:152px;
  overflow:hidden;scroll-snap-align:start;box-shadow:0 3px 12px rgba(0,0,0,.08);flex:0 0 152px
}
#bph-assistant .bot-product-imgwrap{width:100%;height:96px;background:#f3f3f3;overflow:hidden}
#bph-assistant .bot-product-imgwrap img{width:100%;height:96px;object-fit:cover;display:block}
#bph-assistant .bot-product-ph{
  width:100%;height:96px;display:flex;align-items:center;justify-content:center;
  background:#f0f0f0;font-size:32px
}
#bph-assistant .bot-product-info{padding:10px}
#bph-assistant .bot-product-name{
  font-weight:700;font-size:12.5px;line-height:1.3;color:#1a1a1a;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:32px
}
#bph-assistant .bot-product-desc{font-size:10px;color:#888;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#bph-assistant .bot-product-price{font-weight:800;margin:6px 0;color:#1a1a1a;font-size:13px}
#bph-assistant .bot-add{
  border:0;border-radius:10px;background:var(--bot-primary);padding:8px 8px;
  font-weight:700;cursor:pointer;width:100%;font-size:12px;color:#1a1a1a
}
#bph-assistant .bot-add:disabled{opacity:.75}
/* dark styles product readability */
.bot-style-2 .bot-product,.bot-style-4 .bot-product,.bot-style-10 .bot-product{background:#222;border-color:#333}
.bot-style-2 .bot-product-name,.bot-style-4 .bot-product-name,.bot-style-10 .bot-product-name,
.bot-style-2 .bot-product-price,.bot-style-4 .bot-product-price,.bot-style-10 .bot-product-price{color:#fff}
.bot-style-2 .bot-product-imgwrap,.bot-style-4 .bot-product-imgwrap,.bot-style-10 .bot-product-imgwrap{background:#333}

#bph-assistant .bot-foot{display:flex;gap:8px;padding:12px;background:#fff;border-top:1px solid #eee;flex-shrink:0}
#bph-assistant .bot-input{
  flex:1;min-width:0;border:1px solid #ddd;border-radius:25px;padding:11px 14px;
  outline:none;background:#fff;color:#222;font:inherit;font-size:13px
}
#bph-assistant .bot-input:focus{border-color:var(--bot-primary)}
#bph-assistant .bot-send{
  border:0;background:var(--bot-primary);border-radius:50%;width:42px;height:42px;
  cursor:pointer;font-size:18px;font-weight:700;flex-shrink:0;color:#1a1a1a
}
#bph-assistant .bot-note{text-align:center;font-size:10px;background:#fff;color:#888;padding:0 12px 10px}
#bph-assistant .bot-note a{color:inherit;font-weight:700;text-decoration:none}
#bph-assistant .bot-note a:hover{text-decoration:underline}

/* ===== 10 Styles ===== */
/* 1 Classic Gold */
.bot-style-1{--bot-primary:#FFC107;--bot-dark:#1a1a1a;--bot-bg:#fff;--bot-msg:#fafafa}
/* 2 Dark Modern */
.bot-style-2{--bot-primary:#FFC107;--bot-dark:#0d0d0d;--bot-bg:#1a1a1a;--bot-msg:#121212}
.bot-style-2 .bot-bubble{background:#222;color:#eee;box-shadow:none}
.bot-style-2 .bot-bubble.user{background:#FFC107;color:#111}
.bot-style-2 .bot-product{background:#222;border-color:#333}
.bot-style-2 .bot-product-name,.bot-style-2 .bot-product-price{color:#fff}
.bot-style-2 .bot-foot,.bot-style-2 .bot-note{background:#1a1a1a;border-color:#333;color:#888}
.bot-style-2 .bot-input{background:#222;border-color:#333;color:#fff}
.bot-style-2 .bot-quick button,.bot-style-2 .bot-action{background:#2a2a2a;border-color:#444;color:#FFC107}
/* 3 Soft Rounded */
.bot-style-3{--bot-primary:#FFB300;--bot-dark:#2d2d2d;--bot-bg:#fff;--bot-msg:#f3f3f3}
.bot-style-3 .bot-panel{border-radius:28px}
.bot-style-3 .bot-product{border-radius:20px}
.bot-style-3 .bot-bubble{border-radius:18px}
/* 4 Neon Night */
.bot-style-4{--bot-primary:#00e5ff;--bot-dark:#050510;--bot-bg:#0a0a18;--bot-msg:#080814}
.bot-style-4 .bot-toggle{box-shadow:0 0 20px rgba(0,229,255,.45)}
.bot-style-4 .bot-bubble{background:#12122a;color:#e0f7fa;border:1px solid #1e3a4a}
.bot-style-4 .bot-bubble.user{background:#00e5ff;color:#041018}
.bot-style-4 .bot-product{background:#12122a;border-color:#1e3a4a}
.bot-style-4 .bot-product-name,.bot-style-4 .bot-product-price{color:#e0f7fa}
.bot-style-4 .bot-foot,.bot-style-4 .bot-note{background:#0a0a18;border-color:#1e3a4a;color:#6a8}
.bot-style-4 .bot-input{background:#12122a;border-color:#1e3a4a;color:#fff}
.bot-style-4 .bot-quick button,.bot-style-4 .bot-action{background:#12122a;border-color:#00e5ff;color:#00e5ff}
/* 5 Minimal White */
.bot-style-5{--bot-primary:#111;--bot-dark:#111;--bot-bg:#fff;--bot-msg:#fff}
.bot-style-5 .bot-panel{border:1px solid #e5e5e5;box-shadow:0 8px 30px rgba(0,0,0,.08)}
.bot-style-5 .bot-bubble{box-shadow:none;border:1px solid #eee}
.bot-style-5 .bot-bubble.user{background:#111;color:#fff}
.bot-style-5 .bot-add,.bot-style-5 .bot-send{background:#111;color:#fff}
.bot-style-5 .bot-quick button,.bot-style-5 .bot-action{border-color:#ddd;background:#fafafa;color:#111}
/* 6 Gradient Hero */
.bot-style-6{--bot-primary:#ff6b00;--bot-dark:linear-gradient(135deg,#FFC107,#ff6b00);--bot-bg:#fff;--bot-msg:#fff8f0}
.bot-style-6 .bot-head{background:linear-gradient(135deg,#FFC107,#ff6b00);color:#1a1a1a}
.bot-style-6 .bot-close{color:#1a1a1a}
.bot-style-6 .bot-toggle{background:linear-gradient(135deg,#FFC107,#ff6b00)}
.bot-style-6 .bot-bubble.user{background:linear-gradient(135deg,#FFC107,#ff6b00);color:#1a1a1a}
/* 7 Card Stack */
.bot-style-7{--bot-primary:#FFC107;--bot-dark:#222;--bot-bg:#f0f0f0;--bot-msg:#e8e8e8}
.bot-style-7 .bot-bubble{box-shadow:0 4px 14px rgba(0,0,0,.08)}
.bot-style-7 .bot-product{box-shadow:0 6px 16px rgba(0,0,0,.1);border:0}
/* 8 Green Fresh */
.bot-style-8{--bot-primary:#4CAF50;--bot-dark:#1b5e20;--bot-bg:#fff;--bot-msg:#f1f8f1}
.bot-style-8 .bot-bubble.user{color:#fff}
.bot-style-8 .bot-add,.bot-style-8 .bot-send{color:#fff}
.bot-style-8 .bot-quick button,.bot-style-8 .bot-action{background:#e8f5e9;border-color:#a5d6a7;color:#1b5e20}
/* 9 Purple Soft */
.bot-style-9{--bot-primary:#9c27b0;--bot-dark:#4a148c;--bot-bg:#fff;--bot-msg:#f9f0fb}
.bot-style-9 .bot-bubble.user{color:#fff}
.bot-style-9 .bot-add,.bot-style-9 .bot-send{color:#fff}
.bot-style-9 .bot-quick button,.bot-style-9 .bot-action{background:#f3e5f5;border-color:#ce93d8;color:#4a148c}
/* 10 BurgerLab Pro */
.bot-style-10{--bot-primary:#FFC107;--bot-dark:#111;--bot-bg:#1a1a1a;--bot-msg:#141414}
.bot-style-10 .bot-head{background:#111;border-bottom:1px solid #2a2a2a}
.bot-style-10 .bot-bubble{background:#222;color:#eee;border-radius:12px}
.bot-style-10 .bot-bubble.user{background:#FFC107;color:#111}
.bot-style-10 .bot-product{background:#222;border:1px solid #333;border-radius:12px}
.bot-style-10 .bot-product-name,.bot-style-10 .bot-product-price{color:#fff}
.bot-style-10 .bot-foot,.bot-style-10 .bot-note{background:#1a1a1a;border-color:#2a2a2a}
.bot-style-10 .bot-input{background:#222;border-color:#333;color:#fff}
.bot-style-10 .bot-quick button,.bot-style-10 .bot-action{background:#222;border-color:#FFC107;color:#FFC107;border-radius:12px}

@media(max-width:600px){
  #bph-assistant{right:12px;bottom:79px}
  #bph-assistant.bot-pos-left{left:12px;right:auto}
  #bph-assistant .bot-toggle{width:54px;height:54px}
  #bph-assistant .bot-panel{height:min(560px,calc(100dvh - 155px));width:calc(100vw - 24px);border-radius:18px}
}
